2020年7月2日

winfrom 通过按钮选择文件

摘要: private void ExcelBtn_Click(object sender, EventArgs e) { using (OpenFileDialog ofd = new OpenFileDialog()) { ofd.Filter = " Excel文件|*.xls"; if (ofd.S 阅读全文

posted @ 2020-07-02 17:05 林深鹿 阅读(269) 评论(0) 推荐(0) 编辑

对象转换处理

摘要: #region 对象转换处理 /// <summary> /// 判断对象是否为Int32类型的数字 /// </summary> /// <param name="Expression"></param> /// <returns></returns> public static bool IsN 阅读全文

posted @ 2020-07-02 15:39 林深鹿 阅读(254) 评论(0) 推荐(0) 编辑

定时器

摘要: /// <summary> /// 定时器 /// </summary> public class WebTimer_AutoRepayment { static WebTimer_AutoRepayment() { _WebTimerTask = new WebTimer_AutoRepaymen 阅读全文

posted @ 2020-07-02 14:59 林深鹿 阅读(96) 评论(0) 推荐(0) 编辑

NPOI帮助类

摘要: /// <summary> /// Excel操作类 /// </summary> public static class ExcelOperation { #region//Public-Method /// <summary> /// 获取excel列名(列名为空也会返回一个空列名) /// < 阅读全文

posted @ 2020-07-02 14:56 林深鹿 阅读(204) 评论(0) 推荐(0) 编辑

Sqlite帮助类

摘要: public class SqliteHelp { // private readonly static string connectionString = ConfigurationManager.ConnectionStrings["connstrSqlite"].ConnectionStrin 阅读全文

posted @ 2020-07-02 14:55 林深鹿 阅读(348) 评论(0) 推荐(0) 编辑

ExcelHelp (Excel帮助类)

摘要: public class ExcelHelp { public static string fileName = @"本地路径 "; private static OleDbConnection connection; public static OleDbConnection Connection 阅读全文

posted @ 2020-07-02 14:53 林深鹿 阅读(348) 评论(0) 推荐(0) 编辑

前台form-data格式 上传文件

摘要: public HttpResponseMessage UpLoad() { // "请求内容不是表单形式"; if (!Request.Content.IsMimeMultipartContent("form-data")) { var json = PostModel("请求内容不是表单形式"); 阅读全文

posted @ 2020-07-02 14:52 林深鹿 阅读(876) 评论(0) 推荐(0) 编辑

修改datatable某列数据

摘要: DataRow[] tmpDrs = null; DataTable tmpDrss = null; tmpDrs = excelData.Select(string.Format("PNO = '{0}'", Convert.ToInt32(excelData.Rows[r]["PNO"]))); 阅读全文

posted @ 2020-07-02 14:49 林深鹿 阅读(671) 评论(0) 推荐(0) 编辑

datatable 排序

摘要: datatable excelData=new datatable (); excelData.Columns.Add("PNOSORT", typeof(int),"len(PNO)"); excelData.DefaultView.Sort = "PNOSORT,PNO ASC"; excelD 阅读全文

posted @ 2020-07-02 14:47 林深鹿 阅读(198) 评论(0) 推荐(0) 编辑

导航