摘要: 于Excel导入的HDR=YES; IMEX=1详解2011年12月27日 星期二 11:17参数HDR的值:HDR=Yes,这代表第一行是标题,不做为数据使用 ,如果用HDR=NO,则表示第一行不是标题,做为数据来使用。系统默认的是YES参数Excel 8.0对于Excel 97以上版本都用Excel 8.0IMEX ( IMport EXport mode )设置 IMEX 有三种模式: 0 is Export mode 1 is Import mode 2 is Linked mode (full update capabilities) 我这里特别要说明的就是 IMEX 参数... 阅读全文
posted @ 2012-04-12 11:42 popoxxll 阅读(30700) 评论(5) 推荐(7) 编辑
摘要: case JSType.SendPrepay://支出 sqlis1 = "update T_COMPACT_INFO set ci_prepay_is=1,ci_prepay_date=convert(varchar,getdate(),120),ci_prepay_man='" + UserInfo.USER_NAME + "',ci_prepay_bank=" + (comBank.SelectedValue ?? "0") + ",ci_prepay_note='" + txtRem 阅读全文
posted @ 2012-04-12 11:41 popoxxll 阅读(471) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using Excel = Microsoft.Office.Interop.Excel;using System.Data.OleDb;using System.Data;using System.Windows.Forms;namespace PublicMod{ public class CExcel { /// <summary> /// 查询类 /// </summary> /// <par... 阅读全文
posted @ 2012-04-12 10:47 popoxxll 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 随之我从(CSDN,CNBLOG,51CTO等)搜了几个解决方案,性能确实都不大理想。首先还是感谢园友这个问题,接下来我就从网上抽取两个案例作优化说明 函数要求实现功能select 函数名 ('你好,我是追索')返回的结果(ni hao , wo shi zhui suo) 解决方案一: 解决方案一 /* 根据汉字获取全拼 1.生成所有读音临时表 2.根据Chinese_PRC_CS_AS_KS_WS 排序获取读音*/create function dbo.fn_Getquanpin1(@str varchar(100))returns varchar(8000)asbegin 阅读全文
posted @ 2012-04-12 10:34 popoxxll 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 加密过程图解1、打开加密程序.. 12、打开程序后,点击加入文件.. 23、选择对WLClient.exe进行加密,点击打开。.. 24、出现界面,红色圈入部分为自动生成。.. 35、点击“显示文件函数列表”,选择WLClient.FrmMain36、输入密钥P1和P2对应的密码,和后台定时检测的时间间隔,点击加密。.. 47、加密成功.. 48、到所示目录下找以下两个文件(只有生成成功才有).. 59、更新这两个文件到对应用户就可以了。.. 61、插上加密锁,打开加密程序2、打开程序后,点击加入文件3、选择对WLClient.exe进行加密,点击打开。4、出现界面,红色圈入部分为自动生成。5 阅读全文
posted @ 2012-04-12 09:24 popoxxll 阅读(294) 评论(0) 推荐(0) 编辑
摘要: struct DataGridViewPoint { public int FirstDisplayedScrollingRowIndex; public int FirstDisplayedScrollingColumnIndex; public object @object; } DataGridViewPoint myDataGridViewPoint;if(myDataGridViewPoint.FirstDisplayedScrollingRowIndex>0&&myDataG... 阅读全文
posted @ 2012-04-12 09:22 popoxxll 阅读(2195) 评论(1) 推荐(0) 编辑
摘要: public static class DataGridView { /// <summary> /// 用于给DataGridView中的行添加一个首列被冻结的为排序的列,排序列自动生成。 /// 如果存在其他列可以排序,还需要在Sorted事件中调用,重新绘制序号 /// </summary> /// <param name="dgv">要添加排序列的GataGridView对象</param> public static void SetRow... 阅读全文
posted @ 2012-04-12 09:22 popoxxll 阅读(1033) 评论(0) 推荐(1) 编辑
摘要: if (string.IsNullOrEmpty(driverList.Find(CheckDriver))) { sMessageBox.Warm("驾驶员不存在"); return false; }bool CheckDriver(string s) { if (s.IndexOf(comCompayDriver.Text.Trim()) > -1) { return ... 阅读全文
posted @ 2012-04-12 09:21 popoxxll 阅读(243) 评论(0) 推荐(0) 编辑
摘要: public static class MyControl { public static class DateTimePicker { public static void DateTimePickerMaxDate(params WinControl.DateTimePicker[] dtps) { foreach (WinControl.DateTimePicker var in dtps) { var.MaxDa... 阅读全文
posted @ 2012-04-12 09:17 popoxxll 阅读(511) 评论(0) 推荐(0) 编辑
摘要: List<string> subWGCarNo = WGCarNo.FindAll(GSMatchCarNo);private bool GSMatchCarNo(string s) { if (s.IndexOf(com_vehicle_code.Text.Trim()) > -1) { return true; } return false; } 阅读全文
posted @ 2012-04-12 09:17 popoxxll 阅读(338) 评论(0) 推荐(0) 编辑
摘要: CREATE OR REPLACE FUNCTION F_PINYIN(P_NAME IN VARCHAR2) RETURN VARCHAR2 AS V_COMPARE VARCHAR2(100); V_RETURN VARCHAR2(4000); FUNCTION F_NLSSORT(P_WORD IN VARCHAR2) RETURN VARCHAR2 AS BEGIN RETURN NLSSORT(P_WORD, 'NLS_SORT=SCHINESE_PINYIN_M'); END; BEGIN FOR I IN 1..NVL... 阅读全文
posted @ 2012-04-12 09:15 popoxxll 阅读(4336) 评论(1) 推荐(1) 编辑
摘要: regsvr32 C:\WINDOWS\system32\cell32.ocx 阅读全文
posted @ 2012-04-12 09:14 popoxxll 阅读(427) 评论(0) 推荐(0) 编辑
摘要: --可用,速度可以if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[fGetPy]') and xtype in (N'FN', N'IF', N'TF')) drop function [dbo].[fGetPy] GO --创建取拼音函数 create function fGetPy(@Str varchar(500)='') returns varchar(5... 阅读全文
posted @ 2012-04-12 09:13 popoxxll 阅读(4726) 评论(0) 推荐(0) 编辑
摘要: List<string> GSCarNo = new List<string>();//添加一空白选项 GSCarNo.Add("");tag=falseprivate void com_vehicle_code_KeyUp(object sender, KeyEventArgs e) { //回车模糊查询 if (e.KeyCode == Keys.Enter) { if (com_vehicle_code.Text.Trim().Length != 0) ... 阅读全文
posted @ 2012-04-12 09:12 popoxxll 阅读(213) 评论(0) 推荐(0) 编辑
摘要: ALTER TABLE tablename DISABLE TRIGGER triggername --禁止 ALTER TABLE tablename ENABLE TRIGGER triggername --允许 阅读全文
posted @ 2012-04-12 09:09 popoxxll 阅读(242) 评论(0) 推荐(0) 编辑
摘要: <SCRIPT LANGUAGE=vbscript><!--'''''''''''''''''''''''提供者:小白'联系方法:'E-mail:xiaobai@17560.net'欢迎大家测试'针对chenjf网友发现的问题'小白做了一处修改'另外,对刘伟强网友的回复是:本函数目前只能获取..?呵呵'如有不正确的地方,请提出来或是帮忙完善 阅读全文
posted @ 2012-04-12 09:08 popoxxll 阅读(209) 评论(0) 推荐(0) 编辑