From c60a7d7b29faba465969555e2a9c69acb8510f90 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 25 二月 2022 09:11:41 +0800
Subject: [PATCH] 如果客户资料中有“*”的内容,生产文书时自动填上,质疑单位默认填写客户名称,可修改

---
 zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Edit.cshtml |  182 +++++++++++++++++++++++++-------------------
 1 files changed, 103 insertions(+), 79 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Edit.cshtml
index 1b2af21..3537a18 100644
--- a/zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Edit.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Edit.cshtml
@@ -251,21 +251,21 @@
                                     {
                                     <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-2 col-md-2" style="width:4%;">
+                                        @*<div class="col-sm-2 col-md-2" style="width:4%;">
                                             <input class="form-control" style="text-align:left;border:none;" label="绛旀缂栧彿" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@expertTestTopicanwserDTOs[i].Anwserno" readonly="readonly">
-                                        </div>
-                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">銆�</label>
+                                        </div>*@
+                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:15px;margin-left:15px;" name="Anwser1">@expertTestTopicanwserDTOs[i].Anwserno銆�</label>
                                         <div class="col-sm-6 col-md-6" name="Anwser2">
                                             <input class="form-control" label="绛旀" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="@expertTestTopicanwserDTOs[i].Anwser">
-
+                                            <input type="hidden" name="anwserno" value="@expertTestTopicanwserDTOs[i].Anwserno" />
                                         </div>
 
-                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
-                                            鏄惁绛旀
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label"style="width:5%;">
+                                            鏄惁绛旀&nbsp;&nbsp;&nbsp;
                                         </label>
 
 
-                                        <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
+                                        <div class="text-left col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
                                             @if ("A" == expertTestTopicanwserDTOs[i].Shifouzhengqu)
                                         {
                                             <input type="checkbox" checked="checked" name="ShifouzhengquName" value="A" onclick="checkShifouzhengqu(this)" />
@@ -316,28 +316,28 @@
                                     @for (int i = 0; i < expertTestTopicanwserDTOs.Count; i++)
                                     {
 
-                                    <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:3%;text-align:left;padding-left:15px;">
-                                        @if ("A" == expertTestTopicanwserDTOs[i].Shifouzhengqu)
-                                        {
+                                <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:3%;text-align:left;padding-left:15px;">
+                                    @if ("A" == expertTestTopicanwserDTOs[i].Shifouzhengqu)
+                                    {
                                         <input type="checkbox" checked="checked" name="ShifouzhengquName" value="A" onclick="checkShifouzhengqu(this)" />
-                                        }
-                                        else
-                                        {
+                                    }
+                                    else
+                                    {
                                         <input type="checkbox" name="ShifouzhengquName" value="D" onclick="checkShifouzhengqu(this)" />
-                                        }
-                                        <input type="hidden" name="Shifouzhengqu" value="" />
+                                    }
+                                    <input type="hidden" name="Shifouzhengqu" value="" />
+                                    <input type="hidden" name="anwserno" value="@expertTestTopicanwserDTOs[i].Anwserno" />
 
+                                </div>
+                                        <label class="text-left col-sm-1 col-md-1 control-label">@expertTestTopicanwserDTOs[i].Anwserno</label>
+                                        @*<div class="col-sm-2 col-md-2" style="width:5%;">
+                                            <input class="form-control" style="border:none;" label="绛旀缂栧彿" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@expertTestTopicanwserDTOs[i].Anwserno" readonly="readonly">
+                                        </div>*@
 
-                                    </div>
+                                        <div class="col-sm-6 col-md-6" name="Anwser2" style="display:none;">
+                                            <input class="form-control" label="绛旀" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="@expertTestTopicanwserDTOs[i].Anwser">
 
-                                    <div class="col-sm-2 col-md-2" style="width:5%;">
-                                        <input class="form-control" style="border:none;" label="绛旀缂栧彿" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@expertTestTopicanwserDTOs[i].Anwserno" readonly="readonly">
-                                    </div>
-
-                                    <div class="col-sm-6 col-md-6" name="Anwser2" style="display:none;">
-                                        <input class="form-control" label="绛旀" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="@expertTestTopicanwserDTOs[i].Anwser">
-
-                                    </div>
+                                        </div>
 
 
 
@@ -349,7 +349,7 @@
 
 
 
-                                            }
+                                    }
 
                                 </div>
 
@@ -410,12 +410,12 @@
 
                                             </div>
 
-                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
+                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label"  style="width:5%;">
                                                 涓昏В鏋�
                                             </label>
 
 
-                                            <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
+                                            <div class="col-sm-2 col-md-2" grouptype="Vdata" style="width:5%;">
 
                                                 @if ("A" == expertTestTopicjiexiDTOs[i].Flag)
                                                 {
@@ -704,8 +704,8 @@
                     }
                 }
 
-                if (booll < 1) {
-                    toastr.warning("澶氬崟閫夎嚦灏戞湁涓�涓纭瓟妗�");
+                if (booll <= 1) {
+                    toastr.warning("澶氬崟閫夎嚦灏戞湁涓や釜姝g‘绛旀");
                     return;
                 }
             }
@@ -736,8 +736,25 @@
 
                     if (data.Result) {
                         //  parent._afterSave(true);
-                        parent.layer.msg('淇濆瓨鎴愬姛', { icon: 6 });
-                        _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+                        parent.layer.msg('鎴愬姛淇濆瓨', { icon: 6 });
+                        var Topictype = $("#Topictype").val();
+                        var Zhishitype = $("#Zhishitype").val();
+                        var Area = $("#Area").val();
+
+                        var falvs = document.getElementsByName("Falv");
+
+                        var Falv = "";
+                       
+                        for (var i = 0; i < falvs.length; i++) {
+                          
+                            Falv += falvs[i].value + ",";
+                        }
+
+
+                        window.location = "/ExpertTestTopic/Edit?Topictype=" + Topictype + "&Zhishitype=" + Zhishitype + "&Area=" + Area + "&Falv=" + Falv + ""
+                        if ($.isNumber(imgLoad)) {
+                            parent.layer.close(imgLoad);
+                        }
                     }
                     else {
                         if ($.isNumber(imgLoad)) {
@@ -831,8 +848,8 @@
                     }
                 }
 
-                if (booll < 1) {
-                    toastr.warning("澶氬崟閫夎嚦灏戞湁涓�涓纭瓟妗�");
+                if (booll <= 1) {
+                    toastr.warning("澶氬崟閫夎嚦灏戞湁涓や釜姝g‘绛旀");
                     return;
                 }
             }
@@ -870,7 +887,17 @@
                             var Zhishitype = $("#Zhishitype").val();
                             var Area = $("#Area").val();
 
-                            window.location = "/ExpertTestTopic/Edit?Topictype=" + Topictype + "&Zhishitype=" + Zhishitype + "&Area=" + Area +""
+                            var falvs = document.getElementsByName("Falv");
+
+                            var Falv = "";
+                            
+                            for (var i = 0; i < falvs.length; i++) {
+                                
+                                Falv += falvs[i].value + ",";
+                            }
+
+
+                            window.location = "/ExpertTestTopic/Edit?Topictype=" + Topictype + "&Zhishitype=" + Zhishitype + "&Area=" + Area + "&Falv=" + Falv + ""
 
                             //try {
                             //    _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
@@ -902,9 +929,14 @@
             var index = parent.layer.getFrameIndex(window.name);
             parent.layer.isRefresh = true;
             parent.layer.closeAll('loading');
-            parent.layer.close(index);
+            //parent.layer.close(index);
             return false;
         }
+
+        $(window).unload(function () {
+            _pageAutoClose();
+           
+        }); 
 
 
         function addBtn(obj) {
@@ -950,7 +982,7 @@
                                                         </div>`);
               } else  if (num == 2) {
                 $('#addlist_2').append(oTr);
-                  $(oTr).html(` <div class="fatiaomeirong" > 
+                  $(oTr).html(` <div class="fatiaomeirong" >
 <div class="clearfix layer-area" style="padding-bottom:15px;">
 
  <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
@@ -983,12 +1015,12 @@
 
                                         </div>
 
-                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label"  style="width:5%;">
                                             涓昏В鏋�
                                         </label>
 
 
-                                    <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
+                                    <div class="col-sm-2 col-md-2" grouptype="Vdata" style="width:5%;">
 
 
 
@@ -1053,13 +1085,12 @@
                                         <input type="checkbox" name="ShifouzhengquName" value="A" onclick="checkShifouzhengqu(this)" />
 
                                         <input type="hidden" name="Shifouzhengqu" value="" />
-
+ <input type="hidden" name="anwserno" value="鈭�" />
 
                                     </div>
+ <label class="text-left col-sm-1 col-md-1 control-label">鈭�</label>
 
-                                    <div class="col-sm-2 col-md-2" style="width:5%;">
-                                        <input class="form-control" style="border:none;" label="绛旀缂栧彿" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="鈭�" readonly="readonly">
-                                    </div>
+                                    
 
                                     <div class="col-sm-6 col-md-6" name="Anwser2" style="display:none;">
                                         <input class="form-control" label="绛旀" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="">
@@ -1073,11 +1104,12 @@
                                         <input type="hidden" name="Shifouzhengqu" value="" />
 
 
-                                    </div>
+                                   <input type="hidden" name="anwserno" value="x" />
 
-                                    <div class="col-sm-2 col-md-2" style="width:5%;">
-                                        <input class="form-control" style="border:none;" label="绛旀缂栧彿" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="脳" readonly="readonly">
                                     </div>
+ <label class="text-left col-sm-1 col-md-1 control-label">x</label>
+
+                                   
 
                                     <div class="col-sm-6 col-md-6" name="Anwser2" style="display:none;">
                                         <input class="form-control" label="绛旀" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="">
@@ -1104,21 +1136,19 @@
                 $('#addlist_3').html(`
 <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-2 col-md-2" style="width:4%;">
-                                            <input class="form-control" style="text-align:left;border:none;"  label="绛旀缂栧彿" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="A" readonly="readonly">
-                                        </div>
-                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">銆�</label>
+
+                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:15px;margin-left:15px;" name="Anwser1">A銆�</label>
                                         <div class="col-sm-6 col-md-6" name="Anwser2">
                                             <input class="form-control" label="绛旀" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="">
-
+                                             <input type="hidden" name="anwserno" value="A" />
                                         </div>
 
-                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
-                                            鏄惁绛旀
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label" style="width:5%;">
+                                            鏄惁绛旀&nbsp;&nbsp;&nbsp;
                                         </label>
 
 
-                                        <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
+                                        <div class="text-left  col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
 
                                             <input type="checkbox" name="ShifouzhengquName" value="D" onclick="checkShifouzhengqu(this)" />
 
@@ -1128,21 +1158,19 @@
 
 <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-2 col-md-2" style="width:4%;">
-                                            <input class="form-control" style="text-align:left;border:none;"  label="绛旀缂栧彿" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="B" readonly="readonly">
-                                        </div>
-                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">銆�</label>
+
+                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:15px;margin-left:15px;" name="Anwser1">B銆�</label>
                                         <div class="col-sm-6 col-md-6" name="Anwser2">
                                             <input class="form-control" label="绛旀" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="">
-
+                                            <input type="hidden" name="anwserno" value="B" />
                                         </div>
 
-                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
-                                            鏄惁绛旀
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label" style="width:5%;">
+                                            鏄惁绛旀&nbsp;&nbsp;&nbsp;
                                         </label>
 
 
-                                        <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
+                                        <div class=" text-left col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
 
                                             <input type="checkbox" name="ShifouzhengquName" value="D" onclick="checkShifouzhengqu(this)" />
 
@@ -1152,21 +1180,19 @@
 
 <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-2 col-md-2" style="width:4%;">
-                                            <input class="form-control" style="text-align:left;border:none;"  label="绛旀缂栧彿" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="C" readonly="readonly">
-                                        </div>
-                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">銆�</label>
+
+                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:15px;margin-left:15px;" name="Anwser1">C銆�</label>
                                         <div class="col-sm-6 col-md-6" name="Anwser2">
                                             <input class="form-control" label="绛旀" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="">
-
+                                            <input type="hidden" name="anwserno" value="C" />
                                         </div>
 
-                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
-                                            鏄惁绛旀
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label" style="width:5%;">
+                                            鏄惁绛旀&nbsp;&nbsp;&nbsp;
                                         </label>
 
 
-                                        <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
+                                        <div class=" text-left  col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
 
                                             <input type="checkbox" name="ShifouzhengquName" value="D" onclick="checkShifouzhengqu(this)" />
 
@@ -1176,21 +1202,19 @@
 
 <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-2 col-md-2" style="width:4%;">
-                                            <input class="form-control" style="text-align:left;border:none;"  label="绛旀缂栧彿" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="D" readonly="readonly">
-                                        </div>
-                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">銆�</label>
+
+                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:15px;margin-left:15px;" name="Anwser1">D銆�</label>
                                         <div class="col-sm-6 col-md-6" name="Anwser2">
                                             <input class="form-control" label="绛旀" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="">
-
+                                            <input type="hidden" name="anwserno" value="D" />
                                         </div>
 
-                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
-                                            鏄惁绛旀
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label" style="width:5%;">
+                                            鏄惁绛旀&nbsp;&nbsp;&nbsp;
                                         </label>
 
 
-                                        <div class="col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
+                                        <div class="text-left  col-sm-1 col-md-1" grouptype="Vdata" style="width:5%;">
 
                                             <input type="checkbox" name="ShifouzhengquName" value="D" onclick="checkShifouzhengqu(this)" />
 
@@ -1216,7 +1240,7 @@
             }
         }
         function checkFlag(vi) {
-            if ($("#Topictype").val() == "01" || $("#Topictype").val() == "03") {
+            //if ($("#Topictype").val() == "01" || $("#Topictype").val() == "03") {
                 if (vi.checked) {
                     var ssssss = document.getElementsByName("FlagName");
                     for (var i = 0; i < ssssss.length; i++) {
@@ -1224,7 +1248,7 @@
                     }
                     vi.checked = true;
                 }
-            }
+            //}
         }
 
     </script>

--
Gitblit v1.9.1