摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApp4 { public class Program { public static voi 阅读全文
posted @ 2022-07-13 18:26 三醉 阅读(146) 评论(0) 推荐(0) 编辑
摘要: public Form1() { InitializeComponent(); RegControl();//注册控件 axFramerControl1.Menubar = false;//file栏 axFramerControl1.Titlebar = false;//标题栏 ... 阅读全文
posted @ 2018-09-03 22:00 三醉 阅读(483) 评论(0) 推荐(0) 编辑
摘要: public const string connString = "Data Source=.;Initial Catalog=test;User ID=sa;Password='qq'"; private void dapperTest_Click(object sender, EventArgs 阅读全文
posted @ 2018-08-03 23:36 三醉 阅读(219) 评论(0) 推荐(0) 编辑
摘要: //1.0连接字符串 string conStr = "Data Source=.;Initial Catalog=test;User ID=sa;Password='qwertyu'"; //2.0返回第行第一列结果 using (SqlConnection conn = new SqlConnec... 阅读全文
posted @ 2018-08-02 23:02 三醉 阅读(101) 评论(0) 推荐(0) 编辑
摘要: iis 勾上net4.5或以上(或者打补丁http://download.microsoft.com/download/A/0/2/A02C37E0-77F7-448A-BD5C-F66AB1F78DBC/VS11-KB3002339.exe) 阅读全文
posted @ 2018-03-13 22:12 三醉 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "<script>closeWin();</script>"); 阅读全文
posted @ 2017-05-22 15:51 三醉 阅读(447) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// list转datatable /// </summary> /// <typeparam name="T"></typeparam> /// <param name="collection"></param> /// <returns></returns> pub 阅读全文
posted @ 2017-02-27 11:09 三醉 阅读(6277) 评论(0) 推荐(1) 编辑
摘要: public static class ExcelHelper { #region 查询Excel /// <summary> /// 将Excel文件导出至DataTable(第一行作为表头) /// </summary> /// <param name="ExcelFilePath">Excel 阅读全文
posted @ 2017-02-24 13:55 三醉 阅读(272) 评论(0) 推荐(1) 编辑
摘要: public class ZipHerlper { #region 压缩zip public static bool CreateZipDirectory(string dirPath, string zipFilePath) { bool success = false; FileInfo zip 阅读全文
posted @ 2017-02-24 11:49 三醉 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1 public static class voiceHelper 2 { 3 public static System.Speech.Synthesis.SpeechSynthesizer synth; 4 /// 5 /// 语音提示 6 /// 7 /// 提示内容 8 ... 阅读全文
posted @ 2017-02-06 09:43 三醉 阅读(1483) 评论(0) 推荐(0) 编辑