From f83fb19d3f31c2c48390da94740c68ffd07a6f12 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 07 一月 2022 10:09:14 +0800
Subject: [PATCH] 订单收款改造

---
 zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs |   35 +++++++++++++++++++++++++++++++----
 1 files changed, 31 insertions(+), 4 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs b/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs
index ec2426d..07d97cb 100644
--- a/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs
@@ -708,7 +708,7 @@
 
 
 
-        public IActionResult Editlaw(string id)
+        public IActionResult Editlaw(string Classify1="")
         {
             var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
             ViewData["curentuser"] = curentuser;
@@ -716,17 +716,44 @@
 
             SysCodeDtlEntity sysCodeDtlEntity = new SysCodeDtlEntity();
 
-
-            sysCodeDtlEntity = _sysCodeService.GetSysCodeDtlInfo(id, "t_complaint_items", "law");
-
+            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 Savequestiontypes(SysCodeDtlEntity data)
+        {
+            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+            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;
+
+            ResultEntity resultEntity = _sysCodeService.SaveSysCodeDtls(data);
+
+            return JsonConvert.SerializeObject(resultEntity);
+        }
+
     }
 }

--
Gitblit v1.9.1