06 2011 档案

摘要:需求:将"11,21,31$12,22,32$13,23,33$14,24,34";转换为:"11,12,13,14$21,22,23,24$31,32,33,34";分析:其实就是如下的表格的列转行:11,21,3112,22,3213,23,3314,24.34... ...11,12,13,14,1...21,22,23,24,2...31,32,33,34,3...... ...思路:将所有元素列出来,取定长间隔的元素即可,实现代码:using System;using System.Collections.Generic;namespace a 阅读全文
posted @ 2011-06-26 21:26 清山博客 阅读(601) 评论(0) 推荐(0) 编辑
摘要:启动进程: private void StartProcess(){ try { if (!CheckProcessExists()) { Process p = new Process(); p.StartInfo.FileName = System.IO.Path.Combine(Application.StartupPath, "DataTool.exe"); p.StartInfo.Arguments = "DataTool.exe"; ... 阅读全文
posted @ 2011-06-25 15:07 清山博客 阅读(16280) 评论(0) 推荐(0) 编辑
摘要:using System;using System.IO;using System.Xml.Serialization;[Serializable]public class Model{ public string Name{get;set;} public string Possword{get;set;} public override string ToString() { return "Name:"+ Name+"possword:"+Possword; }}class App{ static void Main() { Model model 阅读全文
posted @ 2011-06-21 21:11 清山博客 阅读(190) 评论(0) 推荐(0) 编辑
摘要:很久没弄jQuery了,今天做项目时,遇到个问题:js取不到选中的CheckBoxList的ListItem的值。CheckBoxList前台解析为:<table id="listTest" border="0"><tr> <td> <input id="listTest_0" type="checkbox" name="listTest$0" /> <label for="listTest_0">item1< 阅读全文
posted @ 2011-06-21 20:00 清山博客 阅读(847) 评论(0) 推荐(0) 编辑
摘要:ACCESS语句:select * from数据表 where (DateDiff('d',日期字段,Date())=0) 语法DateDiff(interval, date1, date2 [, firstdayofweek] [, firstweekofyear] )DateDiff 函数的语法包含以下参数(参数:为操作、事件、方法、属性、函数或过程提供信息的值。):参数说明interval必选。该表达式为用于计算 date1 和 date2 之间的差的时间间隔。date1, date2必选。变量型(日期型)。表示两个要用于计算的日期。firstdayofweek可选。常量 阅读全文
posted @ 2011-06-15 21:47 清山博客 阅读(2397) 评论(0) 推荐(1) 编辑
摘要:using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.OleDb;using System.Collections;namespace TaoBaoSyncLibrary.Dal{ /// <summary> /// Access数据库访问助手类 /// </summary> public class DBHelper_Access { //数据库连接字符串(web.config来配置) ... 阅读全文
posted @ 2011-06-12 15:33 清山博客 阅读(470) 评论(0) 推荐(0) 编辑
摘要:2003版本的Access数据链接字符串: string dataBasePath = @"C:/Users/user/Documents/Test.mdb"; string connectionString = "provider=microsoft.jet.oledb.4.0;Data Source=" + dataBasePath + ";";2007版本的Access数据链接字符串应为: string dataBasePath = @"C:/Users/user/Documents/Test.accdb"; 阅读全文
posted @ 2011-06-12 15:29 清山博客 阅读(3264) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示