2016年1月11日
摘要: //中文官网http://www.jeasyui.net///英文官网http://www.jeasyui.com/ 阅读全文
posted @ 2016-01-11 18:00 苏上话 阅读(101) 评论(0) 推荐(0)
摘要: declare @str varchar(100) set @str='是否严格控制' --要搜索的字符串 declare @s varchar(8000) declare tb cursor local for select s='if exists(select 1 from ['+b.name 阅读全文
posted @ 2016-01-11 17:54 苏上话 阅读(3652) 评论(0) 推荐(0)
摘要: 两句话搞定[DllImport("user32.dll", CharSet = CharSet.Auto)]private static extern int SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int x, int y, int Width... 阅读全文
posted @ 2016-01-11 17:51 苏上话 阅读(7209) 评论(0) 推荐(0)
摘要: /// /// 读取EXCEL数据 /// /// /// public static System.Data.DataSet ExcelToDS(string Path) { s... 阅读全文
posted @ 2016-01-11 17:49 苏上话 阅读(2931) 评论(0) 推荐(0)
摘要: /// /// 获取本机 机器名 /// /// public static string GetMachineName() { ... 阅读全文
posted @ 2016-01-11 17:48 苏上话 阅读(2204) 评论(0) 推荐(0)
摘要: private void button1_Click(object sender, EventArgs e) { //调用系统默认的浏览器 System.Diagnostics.Process.Start(http://www.baidu... 阅读全文
posted @ 2016-01-11 17:46 苏上话 阅读(1795) 评论(0) 推荐(0)
摘要: //弹出一个选择目录的对话框privatevoid btnSelectPath_Click(object sender, EventArgs e) //弹出一个选择目录的对话框 { FolderBrowserDialog path = new FolderBrowserDialog(); ... 阅读全文
posted @ 2016-01-11 17:44 苏上话 阅读(27389) 评论(0) 推荐(1)
摘要: 1.this.Close(); 只是关闭当前窗口,若不是主窗体的话,是无法退出程序的,另外若有托管线程(非主线程),也无法干净地退出; 2.Application.Exit(); 强制所有消息中止,退出所有的窗体,但是若有托管线程(非主线程),也无法干净地退出; 3.Application.Exit 阅读全文
posted @ 2016-01-11 17:43 苏上话 阅读(3729) 评论(0) 推荐(0)
摘要: //读取文件内容(1).使用FileStream类进行文件的读取,并将它转换成char数组,然后输出。byte[] byData = new byte[100]; char[] charData = new char[1000]; public void Read() ... 阅读全文
posted @ 2016-01-11 17:39 苏上话 阅读(287) 评论(0) 推荐(0)
摘要: 1.参数 paramsValue的格式 要和 Reques.ContentType一致, 如果 contentype "application/x-www-form-urlencoded" 表单类型,那么 参数为 a=1&b=2 形式 如果 。。。 "application/json" json 类 阅读全文
posted @ 2016-01-11 17:32 苏上话 阅读(6930) 评论(0) 推荐(0)
摘要: public static string AssemblyDirectory { get { string codeBase = Assembly.GetExecutingAssembly().CodeBase; UriBuilder uri = new UriBuilder(codeBase); 阅读全文
posted @ 2016-01-11 17:30 苏上话 阅读(204) 评论(0) 推荐(0)
摘要: select srvname,* from master.dbo.sysservers//创建linkServer exec sp_addlinkedserver 'srv_lnk','','SQLOLEDB','服务器名'//登陆linkServer exec sp_addlinkedsrvlog... 阅读全文
posted @ 2016-01-11 17:28 苏上话 阅读(297) 评论(0) 推荐(0)
摘要: delete a from ( select *,ps=row_number()over(PARTITION by cCaption order by getdate())from AA_ColumnDic where ckey='r003')a where a.ps=2 阅读全文
posted @ 2016-01-11 17:19 苏上话 阅读(320) 评论(0) 推荐(0)
摘要: update u_menuset issort=t1.rowIdfrom(--select * from--( select cmenu_id,ROW_NUMBER() over(Order by cmenu_id) as rowId from u_menu) as t1where t1.cmenu... 阅读全文
posted @ 2016-01-11 17:18 苏上话 阅读(1225) 评论(0) 推荐(0)
摘要: /**功能:数据库备份*dbname:数据库名称*bakname:备份名称,包含完整路径*/usemasterBACKUPDATABASEdbnameTOdisk='c:\bakName'/**功能:数据库还原*@dbname:数据库名称*@bakname:备份名称,包含完整路径*/usemaste... 阅读全文
posted @ 2016-01-11 17:16 苏上话 阅读(459) 评论(0) 推荐(0)
摘要: 1、判断是否存在addOneArticle这个存储过程if Exists(select name from sysobjects where NAME = 'addOneArticle' and type='P')drop procedure addOneArticle2、判断是否存在countAr... 阅读全文
posted @ 2016-01-11 17:13 苏上话 阅读(1379) 评论(0) 推荐(0)
摘要: --添加表字段ALTER TABLE orderinfo ADD SumbitTime datetime NULL --修改表字段类型alter table orderinfoalter column taskState int not null 阅读全文
posted @ 2016-01-11 17:11 苏上话 阅读(368) 评论(0) 推荐(0)
摘要: declare @id nvarchar(20)DECLARE My_Cursor CURSOR --定义游标FOR (select autoid from U_VoucherItems where CardNum='k006' and CardSection='B') --查出需要的集合放到游标中... 阅读全文
posted @ 2016-01-11 17:09 苏上话 阅读(125) 评论(0) 推荐(0)