From 1243f9cdb1ce367af05caabbb71ce81e38d5a1af Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 16 四月 2025 16:16:43 +0800
Subject: [PATCH] 增加一种报名类型

---
 zhengcaioa/zhengcaioa/Views/Liaotian/Edit.cshtml |   96 +++++++++++++++++++++++++++++------------------
 1 files changed, 59 insertions(+), 37 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/Liaotian/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/Liaotian/Edit.cshtml
index dd4cfc8..c2dae5a 100644
--- a/zhengcaioa/zhengcaioa/Views/Liaotian/Edit.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/Liaotian/Edit.cshtml
@@ -1,4 +1,5 @@
 锘緻model DTO.LiaotianDTO
+@using DTO;
 @{
     Layout = null;
     List<SysCodeDtl> problemtype = ViewData["problemtype"] as List<SysCodeDtl>; //闂绫诲瀷
@@ -17,7 +18,10 @@
     {
         tijiaobingshenhe = tijiaobingshenhesto.PageName;
     }
+    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
 
+
+   
 
 }
 <!DOCTYPE html>
@@ -176,21 +180,21 @@
                                     </div>
 
                                     @*<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
-                                        鏀惰棌
-                                    </label>
-                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
-                                        @if ("A" == Model.ShouCangStatus)
-                                        {
-                                            <input type="checkbox" class="form-control" id="ShouCangStatusName" checked="checked" name="ShouCangStatusName" value="A" />
-                                        }
-                                        else
-                                        {
-                                            <input type="checkbox" class="form-control" id="ShouCangStatusName" name="ShouCangStatusName" value="A" />
-                                        }
-                                        <input type="hidden" id="ShouCangStatus" name="ShouCangStatus" value="" />
+                                            鏀惰棌
+                                        </label>
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            @if ("A" == Model.ShouCangStatus)
+                                            {
+                                                <input type="checkbox" class="form-control" id="ShouCangStatusName" checked="checked" name="ShouCangStatusName" value="A" />
+                                            }
+                                            else
+                                            {
+                                                <input type="checkbox" class="form-control" id="ShouCangStatusName" name="ShouCangStatusName" value="A" />
+                                            }
+                                            <input type="hidden" id="ShouCangStatus" name="ShouCangStatus" value="" />
 
-                                    </div>*@
-                                    
+                                        </div>*@
+
                                 </div>
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
                                     <label class="text-right col-sm-1 col-md-1 control-label">闂<i class="red">*</i></label>
@@ -200,18 +204,18 @@
 
                                     </div>
 
-                                   
+
 
                                 </div>
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
                                     <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">绛旀<i class="red">*</i></label>
                                     <div class="col-sm-11 col-md-11">
-                                        <textarea class="form-control bt" id="Anwser" name="Anwser" title="绛旀" isempty="" maxlength="4000"   length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'" >@Model.Anwser</textarea>
+                                        <textarea class="form-control bt" id="Anwser" name="Anwser" title="绛旀" isempty="" maxlength="4000" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@Model.Anwser</textarea>
                                     </div>
                                 </div>
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
                                     <label class="text-right col-sm-1 col-md-1 control-label">閫傜敤娉曟潯</label>
-                                    <div class="col-sm-11 col-md-11">    <textarea class="form-control bt" id="Shiyongfatiao" name="Shiyongfatiao" title="绛旀" isempty="" maxlength="450"   length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@Model.Shiyongfatiao</textarea>  </div>
+                                    <div class="col-sm-11 col-md-11">    <textarea class="form-control bt" id="Shiyongfatiao" name="Shiyongfatiao" title="绛旀" isempty="" maxlength="450" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@Model.Shiyongfatiao</textarea>  </div>
 
                                 </div>
                             </div>
@@ -228,10 +232,10 @@
                     <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">鎻愪氦骞跺鏍�</span>
                 </a>
 
-                <a class="btn btn-success" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;">
+                <a class="btn btn-success Delete" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;display:none;">
                     <i class="glyphicon glyphicon-remove"></i>&nbsp;&nbsp;<span class="bold">鍒犻櫎</span>
                 </a>
-                <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;">
+                <a class="btn btn-success Update" href="javascript:void(0)" onclick="savePosition();" style="margin-left: 4px; border-radius: 4px; display: none;">
                     <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">鎻愪氦</span>
                 </a>
 
@@ -260,6 +264,7 @@
 		$("#div_content").height(hh);
 
         var id = '@Model.Id';
+        var Questiontypeseeee = '@Model.Questiontype';
         var shenhe = '@shenhe';
         var tijiaobingshenhe = '@tijiaobingshenhe';
         var Clientid = '@Model.Clientid';
@@ -294,7 +299,7 @@
         };
 
 
-       
+
 
         var delPosition = function () {
             if (id == null || id=='') {
@@ -395,15 +400,15 @@
 				toastr.warning("绛旀涓嶈兘涓虹┖");
 				return;
             }
-            
+
             if ($("#ChushuStatusName").is(':checked')) {
                 $("#ChushuStatus").val("A");
             } else {
                 $("#ChushuStatus").val("D");
             }
 
-          
-            
+
+
 
 			imgLoad = parent.layer.load(2, { shade: [0.2, '#fff'] });
 			$.ajax({
@@ -461,13 +466,13 @@
                 toastr.warning("绛旀涓嶈兘涓虹┖");
                 return;
             }
-            
+
             if ($("#ChushuStatusName").is(':checked')) {
                 $("#ChushuStatus").val("A");
             } else {
                 $("#ChushuStatus").val("D");
             }
-         
+
 
             imgLoad = parent.layer.load(2, { shade: [0.2, '#fff'] });
             $.ajax({
@@ -482,7 +487,13 @@
                     if (data.Result) {
                         //  parent._afterSave(true);
                         parent.layer.msg('淇濆瓨鎴愬姛', { icon: 6 });
-                        _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+
+
+                        window.location = "/Liaotian/Edit?Questiontype=" + $("#Questiontype").val() + "&Problemtype=" + $("#Problemtype").val();
+                        parent.layer.closeAll('loading');
+
+
+
                     }
                     else {
                         if ($.isNumber(imgLoad)) {
@@ -504,8 +515,8 @@
             });
         }
 
-        
-        
+
+
         $("#ShouCangStatusName").change(function () {
 
             if ($("#ShouCangStatusName").is(':checked')) {
@@ -514,7 +525,7 @@
                 $("#ShouCangStatus").val("D");
             }
 
-           
+
             $.ajax({
                 type: "POST",
                 url: "/Liaotian/ShouCang",
@@ -526,10 +537,10 @@
                     if (data.Result) {
                         //  parent._afterSave(true);
                         parent.layer.msg('鎿嶄綔鎴愬姛', { icon: 6 });
-                      
+
                     }
                     else {
-                       
+
                         parent.layer.msg(data.Message, { icon: 5 });
                     }
                 },
@@ -552,7 +563,7 @@
                 global: false,
                 data: "",
                 success: function (data) {
-                  
+
                     var quxian = $("#Problemtype");
                     quxian.find('option').remove();
                     var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>';
@@ -563,7 +574,7 @@
                             if (i == 0) {
                                 o = '<option value="' + data[i].CodeSn + '" hassubinfo="true"  selected="selected" >' + data[i].Comments + '</option>';
                             }
-                           
+
                             quxian.append(o);
                         }
                     }
@@ -577,9 +588,9 @@
         });
 
 
-        if (id == null || id == '') {
-            $('#Questiontype option:eq(1)').attr('selected', 'selected');  
-            $('#Questiontype').trigger('change');  
+        if ((id == null || id == '') && (Questiontypeseeee == null || Questiontypeseeee == '' )  ) {
+            $('#Questiontype option:eq(1)').attr('selected', 'selected');
+            $('#Questiontype').trigger('change');
         }
 
 		function _pageAutoClose() {
@@ -589,7 +600,18 @@
 			parent.layer.closeAll('loading');
 			parent.layer.close(index);
 			return false;
-		}
+        }
+         var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
+
+
+
+        $(function () {
+            var data = JSON.parse(ActionInfo22);
+            for (var o in data) {
+                $("." + data[o].PageShortcut).show();
+
+            }
+        });
     </script>
 </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1