| | |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Threading.Tasks; |
| | | using System.Transactions; |
| | | using zhengcaioa.Models; |
| | | |
| | | namespace zhengcaioa.Controllers |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | [CheckLogin] |
| | | public IActionResult Indexfalv() |
| | | { |
| | | 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 GetListfalv(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 = "expert_test_topicjiexi"; |
| | | searchEntity.CodeField = "falv"; |
| | | return new JsonResult(_sysCodeService.SearchSysCodeDtlPaging(searchEntity)); |
| | | } |
| | | |
| | | |
| | | |
| | | public IActionResult Editfalv(string id) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | |
| | | |
| | | SysCodeDtlEntity sysCodeDtlEntity = new SysCodeDtlEntity(); |
| | | |
| | | |
| | | sysCodeDtlEntity = _sysCodeService.GetSysCodeDtlInfo(id, "expert_test_topicjiexi", "falv"); |
| | | |
| | | |
| | | ViewData.Model = sysCodeDtlEntity; |
| | | |
| | | |
| | | |
| | | |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | |
| | | [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(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //质疑请求 |
| | | |
| | | [CheckLogin] |
| | | public IActionResult Indexrequestinfo() |
| | | { |
| | | 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 GetListrequestinfo(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 = "t_challengeletter"; |
| | | searchEntity.CodeField = "request_info"; |
| | | searchEntity.Sort = "CodeSn"; |
| | | return new JsonResult(_sysCodeService.SearchSysCodeDtlPaging(searchEntity)); |
| | | } |
| | | |
| | | |
| | | |
| | | public IActionResult Editrequestinfo(string id) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | |
| | | |
| | | SysCodeDtlEntity sysCodeDtlEntity = new SysCodeDtlEntity(); |
| | | |
| | | |
| | | sysCodeDtlEntity = _sysCodeService.GetSysCodeDtlInfo(id, "t_challengeletter", "request_info"); |
| | | |
| | | |
| | | ViewData.Model = sysCodeDtlEntity; |
| | | |
| | | |
| | | |
| | | |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | |
| | | //质疑事项 |
| | | |
| | | [CheckLogin] |
| | | public IActionResult Indexquestion() |
| | | { |
| | | 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 GetListquestion(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 = "t_challenge_items"; |
| | | searchEntity.CodeField = "question"; |
| | | searchEntity.Sort = "CodeSn"; |
| | | return new JsonResult(_sysCodeService.SearchSysCodeDtlPaging(searchEntity)); |
| | | } |
| | | |
| | | |
| | | |
| | | public IActionResult Editquestion(string id) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | |
| | | |
| | | SysCodeDtlEntity sysCodeDtlEntity = new SysCodeDtlEntity(); |
| | | |
| | | |
| | | sysCodeDtlEntity = _sysCodeService.GetSysCodeDtlInfo(id, "t_challenge_items", "question"); |
| | | |
| | | |
| | | ViewData.Model = sysCodeDtlEntity; |
| | | |
| | | |
| | | |
| | | |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | |
| | | //法律依据 |
| | | |
| | | [CheckLogin] |
| | | public IActionResult Indexlaw() |
| | | { |
| | | 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 GetListlaw(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 = "t_complaint_items"; |
| | | searchEntity.CodeField = "law"; |
| | | searchEntity.Sort = "CodeSn"; |
| | | return new JsonResult(_sysCodeService.SearchSysCodeDtlPaging(searchEntity)); |
| | | } |
| | | |
| | | |
| | | |
| | | public IActionResult Editlaw(string id) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | |
| | | |
| | | SysCodeDtlEntity sysCodeDtlEntity = new SysCodeDtlEntity(); |
| | | |
| | | |
| | | sysCodeDtlEntity = _sysCodeService.GetSysCodeDtlInfo(id, "t_complaint_items", "law"); |
| | | |
| | | |
| | | ViewData.Model = sysCodeDtlEntity; |
| | | |
| | | |
| | | |
| | | |
| | | return View(); |
| | | } |
| | | |
| | | } |
| | | } |