From b3b54f994b5f17b850413c6398e63e25744635e9 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期五, 26 十一月 2021 08:51:37 +0800 Subject: [PATCH] 提交 --- zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs | 61 +++++++++++++++++++++++++++++- 1 files changed, 59 insertions(+), 2 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs b/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs index 31bf640..f1af035 100644 --- a/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs +++ b/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs @@ -460,11 +460,68 @@ } - + + [CheckLogin] + public IActionResult Indexzhuanjiaquyu() + { + var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); + ViewData["curentuser"] = curentuser; + List<ActionEntity> actionlist = new List<ActionEntity>(); + ActionEntity actionEntity = new ActionEntity(); + actionEntity.OpenType = 0; + actionEntity.ActionUrl = ""; + actionEntity.ActionFun = "Search"; + actionEntity.PageIco = "fa fa-search"; + actionEntity.ActionName = "鏌ヨ"; + actionlist.Add(actionEntity); + ActionEntity actionEntity1 = new ActionEntity(); + actionEntity1.OpenType = 0; + actionEntity1.ActionUrl = ""; + actionEntity1.ActionFun = "Add"; + actionEntity1.PageIco = "fa fa-plus"; + actionEntity1.ActionName = "鏂板"; + actionlist.Add(actionEntity1); + ViewData["ActionInfo"] = actionlist; + return View(); + } + + [CheckLogin] + public IActionResult GetListzhuanjiaquyu(SysCodeDtlSearchEntity searchEntity) + { + var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); + ViewData["curentuser"] = curentuser; + //JsonResult jsonResult = new JsonResult(_liaotianService.SearchByPaging(search), new Newtonsoft.Json.Serialization.DefaultContractResolver()); + searchEntity.CodeTable = "experts"; + searchEntity.CodeField = "City"; + searchEntity.Sort = "CodeSn"; + return new JsonResult(_sysCodeService.SearchSysCodeDtlPaging(searchEntity)); + } - + public IActionResult Editzhuanjiaquyu(string id) + { + var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); + ViewData["curentuser"] = curentuser; + + + SysCodeDtlEntity sysCodeDtlEntity = new SysCodeDtlEntity(); + + + sysCodeDtlEntity = _sysCodeService.GetSysCodeDtlInfo(id, "experts", "City"); + + + ViewData.Model = sysCodeDtlEntity; + + + + + return View(); + } + + + + } -- Gitblit v1.9.1