摘要: 使用 NPOI 插件 //不带样式 public static string ToExcle(List<DataTable> datas, string fileName = "report", string exportpath = "", int from = 1) { //获取文件物理路径 s 阅读全文
posted @ 2021-09-11 11:22 旧夏潜入梦 阅读(33) 评论(0) 推荐(0) 编辑
摘要: public static List<T> DatatTable_ToList<T>(DataTable dt) where T : class, new() { int a = 0; int b = 0; try { List<T> ts = new List<T>(); if (dt != nu 阅读全文
posted @ 2021-09-11 11:01 旧夏潜入梦 阅读(97) 评论(0) 推荐(0) 编辑