上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 57 下一页
摘要: 假设有两个List集合,找出集合中重复的部分://检测listX和listY中的重复部分//把X复制到Z避免循环同时操作X从而出现异常 itemX.ForEach(i => itemZ.Add(i)); foreach (Entry en in itemZ) ... 阅读全文
posted @ 2015-04-17 20:56 洛晨随风 阅读(163) 评论(0) 推荐(0) 编辑
摘要: select * from AM_C4_ENTRY t where t.created_by in ( select t.created_by from AM_C4_ENTRY t group by t.created_by having count(t.created_by) > 1) ; 阅读全文
posted @ 2015-04-14 21:18 洛晨随风 阅读(383) 评论(0) 推荐(0) 编辑
摘要: //判断不存在就创建目录 ,然后拷贝文件DirectoryInfo di = null;if (!Directory.Exists(n.Attribute("value").Value + goalPath)) { di = Dir... 阅读全文
posted @ 2015-04-11 14:18 洛晨随风 阅读(192) 评论(0) 推荐(0) 编辑
摘要: string result = Regex.Match(str,@"[^\\]+$").Value;//正则表达式this.listBox1.Items.Add(Path.GetFileName(str) + " ");//方法 //读取Excel中数据 到datata... 阅读全文
posted @ 2015-04-03 14:09 洛晨随风 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 只遍历子文件夹和根文件夹下面文件目录的方法: DirectoryInfo theFolder = new DirectoryInfo(@"E:\工作\Work");//文件的操作类 FileInfo[] fileRootInfo = theFolder.GetFiles();/... 阅读全文
posted @ 2015-04-03 11:13 洛晨随风 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 从数据库生成: public static void ToXML(string tablename) { //获取数据 string sql = "select * from " + tablename; DataTab... 阅读全文
posted @ 2015-03-16 17:01 洛晨随风 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 解决方案: ... 阅读全文
posted @ 2015-03-09 10:15 洛晨随风 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 添加引用如下: 前台代码如下: 赋值和取值都可以根据ID直接取就可以了,配置文件如下:1.4.3版本的不需要配置url属性,但是1.2.3版本需要写入URL,具体位置在ueditor.... 阅读全文
posted @ 2015-03-09 10:13 洛晨随风 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 第一个问题,参数传的空值,需要检查参数们有没有空值的情况第二个问题,与MSSQL不同的是,.net使用参数化调用oracle不加@加的是:,然后在参数化语句里面可以省略:冒号,如果不这么写,就会出现10136的错误正确写法如图最后一个问题就是,需要注意的是oracle的long类型使用起来虽然和MS... 阅读全文
posted @ 2015-03-04 14:00 洛晨随风 阅读(963) 评论(0) 推荐(0) 编辑
摘要: private void updateToolStripMenuItem_Click(object sender, EventArgs e) {//将数据更新回数据库 //获取源数据 DataTable dt = dataGridView1.... 阅读全文
posted @ 2015-02-28 10:51 洛晨随风 阅读(291) 评论(0) 推荐(0) 编辑
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 57 下一页