摘要: protected void exportAward(DataSet dsResult) { if (dsResult != null) { string fileName = System.Web.HttpUtility.UrlEncode("任务列表", System.Text.Encoding.UTF8) + ".xls... 阅读全文
posted @ 2017-03-03 11:44 llightsnow 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 记录json转换的几种方式: Newtonsoft.Json.dll 插件 在项目中引用dll文件。 json 序列化: string Jsonreslut= JsonConvert.SerializeObject(Entity); 如: json 反序列化: string str=“jsonstr 阅读全文
posted @ 2017-02-24 18:58 llightsnow 阅读(687) 评论(0) 推荐(0) 编辑
摘要: //excel转换 Workbook workbook = new Workbook(HttpContext.Current.Server.MapPath(docpath + "/" + newFileName + sExtension));//找到转换文件 string newFilePath = 阅读全文
posted @ 2017-02-24 18:41 llightsnow 阅读(737) 评论(0) 推荐(0) 编辑