2019年5月31日

导入导出

摘要: //导入1111 public ActionResult lead(HttpPostedFileBase fname) { if (fname!=null) { Stream steam = fname.InputStream; var table = ExcelHelper.ImportToDat 阅读全文

posted @ 2019-05-31 20:21 宇大大 阅读(166) 评论(0) 推荐(0) 编辑

三级联动

摘要: public ActionResult sanji() { var list = bl.sanji(0); var linq = from i in list select new SelectListItem { Text=i.name, Value=i.id.ToString() }; View 阅读全文

posted @ 2019-05-31 20:20 宇大大 阅读(111) 评论(0) 推荐(0) 编辑

下载

摘要: public ActionResult xiazai() { var path = Server.MapPath("~/shangchuan/屏幕截图(1).png"); FileStream fa = new FileStream(path,FileMode.Open); return File( 阅读全文

posted @ 2019-05-31 20:19 宇大大 阅读(59) 评论(0) 推荐(0) 编辑

文件上传

摘要: public ActionResult shangchuan(HttpPostedFileBase files) { if (files != null) { var name = files.FileName; var luji = "shangchuan"; if (Directory.Exis 阅读全文

posted @ 2019-05-31 20:18 宇大大 阅读(63) 评论(0) 推荐(0) 编辑

摘要: public JsonResult Tree() { var i = bl.info(); var linq = from s in i select new { id = s.id, name = s.name, pId = s.pid, open = true }; return Json(li 阅读全文

posted @ 2019-05-31 20:17 宇大大 阅读(83) 评论(0) 推荐(0) 编辑

分页

摘要: //DAL层 public List<studentModel> show(string name = "",int index=1,int size=2) { int start = (index - 1) * size + 1; int end = start + size - 1; strin 阅读全文

posted @ 2019-05-31 20:16 宇大大 阅读(58) 评论(0) 推荐(0) 编辑

全选和反选

摘要: <body> <input id="ckAll" type="checkbox" />全选 <input id="ckFan" type="checkbox" />反选</body> <script> //全选 $("#ckAll").click(function () { $("[name=hob 阅读全文

posted @ 2019-05-31 20:13 宇大大 阅读(86) 评论(0) 推荐(0) 编辑

导航