摘要: REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /v "1406" /t REG_DWORD /d "0" /f 阅读全文
posted @ 2012-12-14 17:55 宁静.致远 阅读(307) 评论(0) 推荐(0) 编辑
摘要: View Code 1 CREATE PROCEDURE dbo.Pr_SplitData 2 3 AS 4 5 DECLARE @Result INT 6 DECLARE @Res INT 7 8 --用于保存TMCountTemp表中的数据 9 DECLARE @UU INT 10 DECLARE @TempUU VARCHAR(8) 11 DECLARE @ComUU INT 12 DECLARE @Time ... 阅读全文
posted @ 2012-12-14 17:36 宁静.致远 阅读(573) 评论(0) 推荐(0) 编辑
摘要: public void WriteMessage(string filename, string message, string method) { string path = GetAssemblyPath() + @"\errorlog.txt"; FileStream fs = new FileStream(path, FileMode.OpenOrCreate, FileAccess.ReadWrite); using (StreamWriter sw = new StreamWriter(fs)) { sw.BaseStream.Seek(0, SeekOrigi 阅读全文
posted @ 2012-12-14 13:50 宁静.致远 阅读(145) 评论(0) 推荐(0) 编辑
摘要: int aa = 111;string aastr = aa.ToString("0000000");//或string aastr = aa.ToString().PadLeft(7,'0');string.Format(" {0:d7}", i);123.ToString("d7"); 阅读全文
posted @ 2012-12-14 13:36 宁静.致远 阅读(320) 评论(0) 推荐(0) 编辑