摘要: //1000=1秒 int timeclock = 1000 * 60*5; System.Timers.Timer t = new System.Timers.Timer(timeclock);//实例化Timer类,设置间隔时间为五分钟; t.Elapsed += new System.Time... 阅读全文
posted @ 2016-06-28 09:57 Akon.Ray 阅读(206) 评论(0) 推荐(0) 编辑
摘要: http://www.jb51.net/article/66689.htm 阅读全文
posted @ 2016-06-28 09:44 Akon.Ray 阅读(408) 评论(0) 推荐(0) 编辑
摘要: string XmlFile = ReturnXml(orgcode, u8no, ex.ToString(), resulttype, "0"); byte[] bytes = Encoding.UTF8.GetBytes(XmlFile); response.BinaryWrite(bytes); /// ... 阅读全文
posted @ 2016-06-28 09:38 Akon.Ray 阅读(10849) 评论(0) 推荐(0) 编辑
摘要: /// /// 创建xml文件 /// /// xml /// public string CreateXml(string xmlDoc) { string filePathName = string.Empty; try ... 阅读全文
posted @ 2016-06-28 09:35 Akon.Ray 阅读(1055) 评论(0) 推荐(0) 编辑
摘要: /// /// 获取数据库名称 /// /// 帐套号 /// public static string GetDBName(string Account) { StringBuilder strSql = new StringBuilder(); ... 阅读全文
posted @ 2016-06-28 09:33 Akon.Ray 阅读(278) 评论(0) 推荐(0) 编辑
摘要: StreamWriter sw = new StreamWriter(xmlFileName, false, new UTF8Encoding(false)); xmldoc.Save(sw); sw.Close(); 阅读全文
posted @ 2016-06-28 09:29 Akon.Ray 阅读(4540) 评论(0) 推荐(1) 编辑
摘要: public int Asc(string character) { if (character.Length == 1) { System.Text.ASCIIEncoding asciiEncoding = new System.Text.ASCIIEncoding(); ... 阅读全文
posted @ 2016-06-28 09:25 Akon.Ray 阅读(382) 评论(0) 推荐(0) 编辑
摘要: /// /// 上传文件:要设置共享文件夹是否有创建的权限,否则无法上传文件 /// /// 文件路径以及文件名 /// 网络文件夹地址 /// 用户名 /// 密码 public string UpLoadFile(string fileNamePath, string ur... 阅读全文
posted @ 2016-06-28 09:23 Akon.Ray 阅读(1497) 评论(0) 推荐(0) 编辑
摘要: /// /// 获取指定节点的值 /// /// 文件路径 /// 节点名称 /// 指定节点所在的节点目录 /// public static string GetNodeValue(string strFileName, string nodeN... 阅读全文
posted @ 2016-06-28 09:22 Akon.Ray 阅读(11749) 评论(0) 推荐(0) 编辑
摘要: /// /// Http上传Xml文件 /// /// 访问url /// 文件路径(本地的绝对路径) /// public string HttpUploadFile(string url, string path) { string result ... 阅读全文
posted @ 2016-06-28 09:21 Akon.Ray 阅读(692) 评论(0) 推荐(0) 编辑