| | |
| | | return View(); |
| | | } |
| | | |
| | | public IActionResult Editrequestinfozidingyi(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(); |
| | | } |
| | | |
| | | |
| | | |
| | | //质疑事项 |
| | |
| | | |
| | | |
| | | |
| | | public IActionResult Editlaw(string id) |
| | | public IActionResult Editlaw(string Classify1="") |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | |
| | | |
| | | SysCodeDtlEntity sysCodeDtlEntity = new SysCodeDtlEntity(); |
| | | |
| | | var sysCodeDtlEntities = _sysCodeService.GetSysCodeDtlInfoss(Classify1, "t_complaint_items", "law"); |
| | | sysCodeDtlEntity.Classify1 = Classify1; |
| | | sysCodeDtlEntity.CodeId = sysCodeDtlEntities[0].CodeId; |
| | | |
| | | ViewData.Model = sysCodeDtlEntity; |
| | | |
| | | ViewBag.falv = _liaotianService.GetSYScode("expert_test_topicjiexi", "falv"); |
| | | ViewBag.question = _liaotianService.GetSYScode("t_challenge_items", "question"); |
| | | ViewBag.sysCodeDtlEntities = sysCodeDtlEntities; |
| | | |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | public IActionResult Editlawzidingyi(string Classify1 = "") |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | |
| | | |
| | | SysCodeDtlEntity sysCodeDtlEntity = new SysCodeDtlEntity(); |
| | | |
| | | var sysCodeDtlEntities = _sysCodeService.GetSysCodeDtlInfoss(Classify1, "t_complaint_items", "law"); |
| | | sysCodeDtlEntity.Classify1 = Classify1; |
| | | sysCodeDtlEntity.CodeId = sysCodeDtlEntities[0].CodeId; |
| | | |
| | | ViewData.Model = sysCodeDtlEntity; |
| | | |
| | | ViewBag.falv = _liaotianService.GetSYScode("expert_test_topicjiexi", "falv"); |
| | | ViewBag.question = _liaotianService.GetSYScode("t_challenge_items", "question"); |
| | | ViewBag.sysCodeDtlEntities = sysCodeDtlEntities; |
| | | |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 保存 |
| | | /// </summary> |
| | | /// <param name="data">岗位实体类对象</param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | |
| | | public string addquestiontypes(SysCodeDtlEntity data) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | resultEntity.Result = false; |
| | | ViewData["curentuser"] = curentuser; |
| | | data.RecStatus = "A"; |
| | | if (String.IsNullOrEmpty(data.Id)) |
| | | { |
| | | data.Creater = curentuser.Id; |
| | | data.Createtime = DateTime.Now; |
| | | } |
| | | data.Modifier = curentuser.Id; |
| | | data.Modifytime = DateTime.Now; |
| | | if (data.CodeSns == null || data.CodeSns.Length == 0) |
| | | { |
| | | resultEntity.Result = false; |
| | | resultEntity.Message = "法律依据不能为空!"; |
| | | return JsonConvert.SerializeObject(resultEntity); |
| | | } |
| | | foreach (var CodeSn in data.CodeSns) |
| | | { |
| | | if (string.IsNullOrWhiteSpace(CodeSn)) |
| | | { |
| | | resultEntity.Result = false; |
| | | resultEntity.Message = "编码不能为空!"; |
| | | return JsonConvert.SerializeObject(resultEntity); |
| | | } |
| | | } |
| | | if (data.Commentss == null || data.Commentss.Length == 0) |
| | | { |
| | | resultEntity.Result = false; |
| | | resultEntity.Message = "法律名称不能为空!"; |
| | | return JsonConvert.SerializeObject(resultEntity); |
| | | } |
| | | foreach (var Comment in data.Commentss) |
| | | { |
| | | if (string.IsNullOrWhiteSpace(Comment)) |
| | | { |
| | | resultEntity.Result = false; |
| | | resultEntity.Message = "法律名称不能为空!"; |
| | | return JsonConvert.SerializeObject(resultEntity); |
| | | } |
| | | } |
| | | |
| | | |
| | | resultEntity = _sysCodeService.addSysCodeDtls(data); |
| | | |
| | | return JsonConvert.SerializeObject(resultEntity); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 保存 |
| | | /// </summary> |
| | | /// <param name="data">岗位实体类对象</param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | |
| | | public string Savequestiontypes(SysCodeDtlEntity data) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | resultEntity.Result = false; |
| | | ViewData["curentuser"] = curentuser; |
| | | data.RecStatus = "A"; |
| | | if (String.IsNullOrEmpty(data.Id)) |
| | | { |
| | | data.Creater = curentuser.Id; |
| | | data.Createtime = DateTime.Now; |
| | | } |
| | | data.Modifier = curentuser.Id; |
| | | data.Modifytime = DateTime.Now; |
| | | if(data.CodeSns==null || data.CodeSns.Length == 0) |
| | | { |
| | | resultEntity.Result = false; |
| | | resultEntity.Message = "法律依据不能为空!"; |
| | | return JsonConvert.SerializeObject(resultEntity); |
| | | } |
| | | foreach (var CodeSn in data.CodeSns) |
| | | { |
| | | if (string.IsNullOrWhiteSpace(CodeSn)) |
| | | { |
| | | resultEntity.Result = false; |
| | | resultEntity.Message = "编码不能为空!"; |
| | | return JsonConvert.SerializeObject(resultEntity); |
| | | } |
| | | } |
| | | if (data.Commentss == null || data.Commentss.Length == 0) |
| | | { |
| | | resultEntity.Result = false; |
| | | resultEntity.Message = "法律名称不能为空!"; |
| | | return JsonConvert.SerializeObject(resultEntity); |
| | | } |
| | | foreach (var Comment in data.Commentss) |
| | | { |
| | | if (string.IsNullOrWhiteSpace(Comment)) |
| | | { |
| | | resultEntity.Result = false; |
| | | resultEntity.Message = "法律名称不能为空!"; |
| | | return JsonConvert.SerializeObject(resultEntity); |
| | | } |
| | | } |
| | | |
| | | |
| | | resultEntity = _sysCodeService.SaveSysCodeDtls(data); |
| | | |
| | | return JsonConvert.SerializeObject(resultEntity); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | public IActionResult Editquestionzidingyi(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"); |
| | | sysCodeDtlEntity = _sysCodeService.GetSysCodeDtlInfo(id, "t_challenge_items", "question"); |
| | | |
| | | |
| | | ViewData.Model = sysCodeDtlEntity; |
| | | |
| | | ViewBag.falv = _liaotianService.GetSYScode("expert_test_topicjiexi", "falv"); |
| | | ViewBag.question = _liaotianService.GetSYScode("t_challenge_items", "question"); |
| | | |
| | | |
| | | |
| | | return View(); |
| | | } |