摘要: /// /// 将DataTable转成Model /// /// /// public class ModelConvertHelper where T : new() { public static List ConvertToModel(DataTable dt) { /... 阅读全文
posted @ 2016-11-29 10:14 云中的angel王 阅读(2606) 评论(1) 推荐(1) 编辑
摘要: 2. 传入Excel的路径即可 阅读全文
posted @ 2016-11-29 10:11 云中的angel王 阅读(268) 评论(0) 推荐(0) 编辑
摘要: if (System.IO.File.GetAttributes(filePath).ToString().IndexOf("ReadOnly") != -1)//去除文件只读属性 { File.SetAttributes(filePath, FileAttributes.Normal); } string[] folders = Directory.GetDire... 阅读全文
posted @ 2016-11-29 10:05 云中的angel王 阅读(640) 评论(0) 推荐(0) 编辑