摘要: dev 表格使用showAutoFilterRow 获取筛选后的结果集 阅读全文
posted @ 2017-01-18 19:27 吃葡萄不吐葡萄脾 阅读(643) 评论(0) 推荐(0) 编辑
摘要: DEV gridControl 表格内容筛选变色 repositoryItemRichTextEdit1 阅读全文
posted @ 2017-01-18 19:23 吃葡萄不吐葡萄脾 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 一 关于expdp和impdp 使用EXPDP和IMPDP时应该注意的事项:EXP和IMP是客户端工具程序,它们既可以在客户端使用,也可以在服务端使用。EXPDP和IMPDP是服务端的工具程序,他们只能在ORACLE服务端使用,不能在客户端使用。IMP只适用于EXP导出的文件,不适用于EXPDP导出 阅读全文
posted @ 2016-09-07 09:35 吃葡萄不吐葡萄脾 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 首先,以schemas方式导出用户JCMS24的全部数据: expdp system/system directory=data_pump_dir dumpfile=test_user.dmp schemas=JCMS24说明:使用system导出是为了导出JCMS24 schema中的全部内容,包 阅读全文
posted @ 2016-09-05 17:00 吃葡萄不吐葡萄脾 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 1、绑定数据,我这里直接绑定Datatable,需要设置DisplayMember(显示的数据),ValueMember(值数据)两个属性,如下 this.checkedListBoxControl1.DisplayMember = "ORA_TWO_CODE"; this.checkedListB 阅读全文
posted @ 2016-09-02 09:19 吃葡萄不吐葡萄脾 阅读(3754) 评论(0) 推荐(0) 编辑
摘要: decimal Round(decimal d, int decimals, MidpointRounding mode) 阅读全文
posted @ 2016-08-31 09:49 吃葡萄不吐葡萄脾 阅读(195) 评论(0) 推荐(0) 编辑
摘要: this.repositoryItemCheckEdit1.QueryCheckStateByValue += new DevExpress.XtraEditors.Controls.QueryCheckStateByValueEventHandler(re3_QueryCheckStateByVa 阅读全文
posted @ 2016-08-25 14:21 吃葡萄不吐葡萄脾 阅读(981) 评论(2) 推荐(0) 编辑
摘要: GridView.Columns[i].OptionsColumn.AllowEdit=false; 阅读全文
posted @ 2016-08-24 14:07 吃葡萄不吐葡萄脾 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 在使用ORACLE的过程中,会出现各种各样的问题,各种各样的错误,其中ORA-12899就是前段时间我在将数据导入到我本地机器上的时候一直出现的问题.不过还好已经解决了这个问题,现在分享一下,解决方案; 出现ORA-12899,是字符集引起的,中文在UTF-8中占3个字节,ZHS16GBK中占2个字 阅读全文
posted @ 2016-08-16 10:21 吃葡萄不吐葡萄脾 阅读(16979) 评论(0) 推荐(0) 编辑
摘要: 存储过程使用truncate时 EXECUTE IMMEDIATE 'TRUNCATE TABLE COMPANY_RTE'; 这样写即可 阅读全文
posted @ 2016-08-12 17:22 吃葡萄不吐葡萄脾 阅读(906) 评论(0) 推荐(0) 编辑
摘要: //创建存储过程 create or replace procedure nvduser1_ais.p1_delete_tablesas begin EXECUTE IMMEDIATE 'TRUNCATE TABLE vor'; EXECUTE IMMEDIATE 'TRUNCATE TABLE D 阅读全文
posted @ 2016-08-12 17:22 吃葡萄不吐葡萄脾 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Serializable的作用是为了保存对象的属性到本地文件、数据库、网络流、rmi以方便数据传输,当然这种传输可以是程序内的也可以是两个程序间的。而Android的Parcelable的设计初衷是因为Serializable效率过慢,为了在程序内不同组件间以及不同Android程序间(AIDL)高 阅读全文
posted @ 2016-08-11 21:18 吃葡萄不吐葡萄脾 阅读(501) 评论(0) 推荐(0) 编辑
摘要: The method setClass(Context, Class) in the type Intent is not applicable for the arguments (new View.OnClickListener(){}, Class 阅读全文
posted @ 2016-08-11 21:13 吃葡萄不吐葡萄脾 阅读(195) 评论(0) 推荐(0) 编辑
摘要: string condetion = System.Web.Configuration.WebConfigurationManager.AppSettings["condetion"]; string appPath = System.Web.Configuration.WebConfigurati 阅读全文
posted @ 2016-08-05 10:40 吃葡萄不吐葡萄脾 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 一:通过System.Data.OracleClient(需要安装Oracle客户端并配置tnsnames.ora)1. 添加命名空间System.Data.OracleClient引用2. using System.Data.OracleClient;3. string connString = 阅读全文
posted @ 2016-08-05 10:36 吃葡萄不吐葡萄脾 阅读(26706) 评论(0) 推荐(1) 编辑
摘要: string ItemClick = "pan_ItemClick"; //方法名 System.Reflection.MethodInfo method = this.GetType().GetMethod(ItemClick);//通过反射获得方法对象 Delegate _Click = Del 阅读全文
posted @ 2016-08-05 08:50 吃葡萄不吐葡萄脾 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 不能为空 <input onblur="if(this.value.replace(/^ +| +$/g,'')=='')alert('不能为空!')"> 只能输入英文和数字<input onblur="if(/[^0-9a-zA-Z]/g.test(value))alert('有错')"><inp 阅读全文
posted @ 2016-08-03 14:15 吃葡萄不吐葡萄脾 阅读(133) 评论(0) 推荐(0) 编辑
摘要: List<string> lstIDq = (from d in ds.Tables[0].AsEnumerable() select d.Field<string>(bb.起飞)).ToList<string>(); List<string> lstIDl = (from d in ds.Tabl 阅读全文
posted @ 2016-07-28 10:53 吃葡萄不吐葡萄脾 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 以数据库方式查询excel文件 阅读全文
posted @ 2016-07-28 10:52 吃葡萄不吐葡萄脾 阅读(193) 评论(0) 推荐(0) 编辑
摘要: c#操作excel 设置单元格值,打开excle文件,保存excel 阅读全文
posted @ 2016-07-28 10:51 吃葡萄不吐葡萄脾 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 等价是等同于的意思,表示同样的功能,用不同符号来书写。 ?,*,+,\d,\w 都是等价字符 ?等价于匹配长度{0,1} *等价于匹配长度{0,} +等价于匹配长度{1,} \d等价于[0-9] \w等价于[A-Za-z_0-9]。 ^([\u4E00-\u9FA5]+)([0-9]{0,})([\ 阅读全文
posted @ 2016-07-11 14:29 吃葡萄不吐葡萄脾 阅读(145) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u 阅读全文
posted @ 2016-06-29 14:27 吃葡萄不吐葡萄脾 阅读(392) 评论(0) 推荐(0) 编辑
摘要: void gridView_CustomColumnDisplayText(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e) { if (e.Column.FieldName == "G 阅读全文
posted @ 2016-06-27 14:49 吃葡萄不吐葡萄脾 阅读(1143) 评论(0) 推荐(0) 编辑
摘要: dev 显示行号 阅读全文
posted @ 2016-06-27 14:47 吃葡萄不吐葡萄脾 阅读(229) 评论(0) 推荐(0) 编辑
摘要: byte[] b = (byte[])(read.Rows[0]["txt_filecontent"]);//获取二进制文件 ByteConvertWord(b, read.Rows[0]["txt_filename"].ToString(), read.Rows[0]["txt_file_type 阅读全文
posted @ 2016-06-14 09:07 吃葡萄不吐葡萄脾 阅读(976) 评论(0) 推荐(0) 编辑
摘要: for (int i = 0; i < list_file.Items.Count; i++)//文件总数 { FileInfo info = new FileInfo(filePath + "\\" + list_file.Items[i]); FileStream fs = new FileSt 阅读全文
posted @ 2016-06-14 09:04 吃葡萄不吐葡萄脾 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 有可能是由于timer已经被回收掉了 你是在什么环境下面winform? webform? 经过你的补充我看明白了 是这样的 由于你的应用程序在特定空闲时间之后相应的w3wp辅助进程会被回收掉 所以你的timer自然没有作用了 你可以查看iis 应用程序池的属性 切换到性能选项卡空闲超时 默认的时间 阅读全文
posted @ 2016-06-14 07:53 吃葡萄不吐葡萄脾 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 线程实现定时任务 阅读全文
posted @ 2016-06-13 15:57 吃葡萄不吐葡萄脾 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 遇到的问题:1、缓存到本地的文件写入一次,不能读取,不能二次写入。程序报异常:文件被占用 解决办法: FileStream fs = new FileStream(appPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); Strea 阅读全文
posted @ 2016-06-13 11:35 吃葡萄不吐葡萄脾 阅读(2012) 评论(0) 推荐(0) 编辑