From 0e5c4a8e17dcefcc10b2507da61b099be12451d8 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 12 一月 2024 12:52:52 +0800
Subject: [PATCH] 代理合作功能

---
 zhengcaioa/zhengcaioa/Controllers/LiaotianController.cs |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/LiaotianController.cs b/zhengcaioa/zhengcaioa/Controllers/LiaotianController.cs
index 2ca906d..258a5ae 100644
--- a/zhengcaioa/zhengcaioa/Controllers/LiaotianController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/LiaotianController.cs
@@ -283,7 +283,7 @@
 
         #region 缂栬緫
         [CheckLogin]
-        public ActionResult Edit(string id = null)
+        public ActionResult Edit(string id = null, string Questiontype = null, string Problemtype = null)
         {
             var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
             ViewData["curentuser"] = curentuser;
@@ -305,6 +305,18 @@
 
                 }
             }
+            else
+            {
+                if (!string.IsNullOrEmpty(Questiontype))
+                {
+                    liaotianDTO.Questiontype = Questiontype;
+                }
+
+                if (!string.IsNullOrEmpty(Problemtype))
+                {
+                    liaotianDTO.Problemtype = Problemtype;
+                }
+            }
             ViewData.Model = liaotianDTO;
 
 
@@ -315,6 +327,12 @@
             ViewData["problemtype"] = _liaotianService.GetSYScode("Liaotian", "problemtype").Where(x=>x.Contents == liaotianDTO.Questiontype).ToList();
 
 
+            //ViewData["Questiontypesel"] = Questiontype;
+
+
+            //ViewData["Problemtypesel"] = Problemtype;
+
+
             return View();
         }
 

--
Gitblit v1.9.1