摘要: 这个不是我写的,转载别人的,留着以后自己看 阅读全文
posted @ 2016-12-07 11:44 与我码农之路 阅读(3630) 评论(1) 推荐(0) 编辑
摘要: 首先要在Global.asax写个定时方法 protected void Application_Start() { //在应用程序启动时运行的代码 //定义定时器 System.Timers.Timer myTimer = new System.Timers.Timer(180000);//3分钟 阅读全文
posted @ 2016-11-30 09:59 与我码农之路 阅读(870) 评论(0) 推荐(0) 编辑
摘要: 生成单个二维码 public JsonResult Create() { var msg = new JsonMessage(false, "添加失败"); var qmodel = new Qrcode() { QrcodeURL = "" }; new QrcodeService().AddEn 阅读全文
posted @ 2016-11-30 09:42 与我码农之路 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 首先创建一个压缩类 public class ZipHelper { /// <summary> /// 压缩文件 /// </summary> /// <param name="sourceFilePath"></param> /// <param name="destinationZipFile 阅读全文
posted @ 2016-11-30 09:32 与我码农之路 阅读(393) 评论(0) 推荐(0) 编辑
摘要: Excel导入 public ActionResult Excel(HttpPostedFileBase file) { HttpPostedFileBase files = file;//接收客户端传递过来的数据. try { if (files == null) { return Content 阅读全文
posted @ 2016-11-30 09:27 与我码农之路 阅读(589) 评论(0) 推荐(1) 编辑