摘要: 1.引入log4net.dll 2.创建log4net.config <?xml version="1.0" encoding="utf-8" ?> <configuration> <!--Log4Net--> <!-- Level的级别,由高到低 --> <!-- None > Fatal > E 阅读全文
posted @ 2022-05-30 17:26 highlightyys 阅读(50) 评论(0) 推荐(0)
摘要: public static object CloneObject(object o) { Type t = o.GetType(); PropertyInfo[] properties = t.GetProperties(); Object p = t.InvokeMember("", System 阅读全文
posted @ 2022-05-30 17:20 highlightyys 阅读(30) 评论(0) 推荐(0)
摘要: public static int GetMaxCode(Takeda_Regional_CN_TEEntities entities) { int maxCode = (int)entities.Takeda_VR_Division.ToList().Max(e => Convert.ToInt6 阅读全文
posted @ 2022-05-30 17:18 highlightyys 阅读(10) 评论(0) 推荐(0)
摘要: OpenFileDialog dialog = new OpenFileDialog(); dialog.Multiselect = false; dialog.Title = "请选择需要导入的Excel文件"; dialog.Filter = "文件|*.xls;*.xlsx;*.csv"; i 阅读全文
posted @ 2022-05-30 17:14 highlightyys 阅读(27) 评论(0) 推荐(0)