From 0e6d0e8975e92a6395d2d9f692edd5a7d0984c5a Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 15 六月 2022 08:39:59 +0800
Subject: [PATCH] 爬虫

---
 zhengcaioa/zhengcaioa/Views/CooperOrder/EditZhiyihan.cshtml |  130 ++++++++++++++++++++++++++++--------------
 1 files changed, 86 insertions(+), 44 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/EditZhiyihan.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/EditZhiyihan.cshtml
index 4dbb8e6..c0c1d95 100644
--- a/zhengcaioa/zhengcaioa/Views/CooperOrder/EditZhiyihan.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/EditZhiyihan.cshtml
@@ -331,7 +331,7 @@
                                                         }
 
                                                     </select>
-
+                                                   <input type="hidden" name="challengeItemId" value="@challengeItemDTOs[i].Id" />
                                                 </div>
 
 
@@ -350,25 +350,31 @@
                                                 {
                                                     @if (challengeItemDTOs[i].sysCodeDtls.Count == 1)
                                                     {
-                                                        <div class="clearfix layer-area" style="padding-bottom:15px;">
-                                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁</label>
-                                                            <div class="col-sm-8 col-md-8">
-                                                                銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents
-                                                            </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">娉曞緥渚濇嵁</label>
+                                                    <div class="col-sm-8 col-md-8">
+                                                        銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents
+                                                    </div>
+                                                    <input type="hidden"  name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].Comments" />
+                                                    <input type="hidden"  name="challengeItemIdlaw" value="@challengeItemDTOs[i].Id" />
+                                                    <div class="col-sm-1 col-md-1" grouptype="Vdata">
+                                                        <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button>
+                                                    </div>
+                                                </div>
                                                     }
                                                     else
                                                     {
-                                                        <div class="clearfix layer-area" style="padding-bottom:15px;">
-                                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁@(j+1)</label>
-                                                            <div class="col-sm-8 col-md-8">
-                                                                銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents
-                                                            </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">娉曞緥渚濇嵁@(j+1)</label>
+                                                <div class="col-sm-8 col-md-8">
+                                                    銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents
+                                                </div>
+                                                <input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].Comments" />
+                                                <input type="hidden" name="challengeItemIdlaw" value="@challengeItemDTOs[i].Id" />
+                                                <div class="col-sm-1 col-md-1" grouptype="Vdata">
+                                                    <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button>
+                                                </div>
+                                            </div>
                                                     }
 
 
@@ -402,7 +408,7 @@
                                                         }
 
                                                     </select>
-
+                                                    <input type="hidden" name="challengeItemId" value="@challengeItemDTOs[i].Id" />
                                                 </div>
                                                 @if (i == 0)
                                                 {
@@ -427,25 +433,33 @@
                                                 {
                                                     @if (challengeItemDTOs[i].sysCodeDtls.Count == 1)
                                                     {
-                                                        <div class="clearfix layer-area" style="padding-bottom:15px;">
-                                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁</label>
-                                                            <div class="col-sm-8 col-md-8">
-                                                                銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents
-                                                            </div>
+                                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁</label>
+                                                    <div class="col-sm-8 col-md-8">
+                                                        銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents
+                                                    </div>
+                                                    <input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].Comments" />
+                                                    <input type="hidden" name="challengeItemIdlaw" value="@challengeItemDTOs[i].Id" />
+                                                    <div class="col-sm-1 col-md-1" grouptype="Vdata">
+                                                        <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button>
+                                                    </div>
 
-
-                                                        </div>
+                                                </div>
                                                     }
                                                     else
                                                     {
-                                                        <div class="clearfix layer-area" style="padding-bottom:15px;">
-                                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁@(j+1)</label>
-                                                            <div class="col-sm-8 col-md-8">
-                                                                銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents
-                                                            </div>
+                                            <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁@(j+1)</label>
+                                                <div class="col-sm-8 col-md-8">
+                                                    銆夽(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(challengeItemDTOs[i].sysCodeDtls[j].Classify2)锛欯challengeItemDTOs[i].sysCodeDtls[j].Contents
+                                                </div>
+                                                <input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].Comments" />
+                                                <input type="hidden" name="challengeItemIdlaw" value="@challengeItemDTOs[i].Id" />
+                                                <div class="col-sm-1 col-md-1" grouptype="Vdata">
+                                                    <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button>
+                                                </div>
 
-
-                                                        </div>
+                                            </div>
                                                     }
                                                 }
                                             </div>
@@ -531,12 +545,16 @@
                 @*<a class="btn btn-success" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;">
             <i class="glyphicon glyphicon-remove"></i>&nbsp;&nbsp;<span class="bold">鍒犻櫎</span>
         </a>*@
-                <a class="btn btn-success" href="javascript:void(0)" onclick="printPosition();" style="margin-left:4px; border-radius:4px;">
-                    <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">鎵撳嵃</span>
+                @*<a class="btn btn-success" href="javascript:void(0)" onclick="printPosition();" style="margin-left:4px; border-radius:4px;">
+            <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">鎵撳嵃</span>
+        </a>*@
+                <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition(1);" style="margin-left:4px; border-radius:4px;">
+                    <i class="glyphicon glyphicon-ok"></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" href="javascript:void(0)" onclick="savePosition(2);" style="margin-left:4px; border-radius:4px;">
                     <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">鎻愪氦</span>
                 </a>
+                <input type="hidden" id="Status" name="Status" value="0" />
             </div>
         </div>
 
@@ -601,7 +619,7 @@
 
 
         // 淇濆瓨宀椾綅淇℃伅
-        var savePosition = function () {
+        var savePosition = function (Status) {
 
             if ($.trim($("#GysName").val()) == '') {
                 toastr.warning("璐ㄧ枒渚涘簲鍟嗕笉鑳戒负绌�");
@@ -644,7 +662,7 @@
                 toastr.warning("鍓湰鏁伴噺涓嶈兘涓虹┖");
                 return;
             }
-
+            $("#Status").val(Status);
 
             //var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" }
             $.ajax({
@@ -716,9 +734,11 @@
         function Questionchangge(i) {
 
             var sss = document.getElementsByName("Question")[i].value;
+            
+            var challengeItemId = document.getElementsByName("challengeItemId")[i].value;
             $.ajax({
                 type: "GET",
-                url: "/CooperOrder/getQuestionLaw?id=" + sss + "&no=" + i,
+                url: "/CooperOrder/getQuestionLaw?id=" + sss + "&no=" + i + "&challengeItemId=" + challengeItemId,
                 dataType: "json",
                 global: false,
                 data: "",
@@ -739,7 +759,11 @@
                                                銆奰 + data.DataList[i].CodeSn + `銆媊 + data.DataList[i].Classify2 + `锛歚 + data.DataList[i].Contents + `
 
                                             </div>
-
+<input type="hidden"  name="Law" value="` + data.DataList[i].Comments + `" />
+  <input type="hidden"   name="challengeItemIdlaw" value="` + data.Remark + `" />
+                                                <div class="col-sm-1 col-md-1" grouptype="Vdata">
+                                                    <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button>
+                                                </div>
                                         </div>
 
                                            `;
@@ -752,7 +776,11 @@
                                                  銆奰 + data.DataList[i].CodeSn + `銆媊 + data.DataList[i].Classify2 + `锛歚 + data.DataList[i].Contents + `
 
                                             </div>
-
+<input type="hidden"  name="Law" value="` + data.DataList[i].Comments + `" />
+  <input type="hidden"  name="challengeItemIdlaw" value="` + data.Remark + `" />
+                                                <div class="col-sm-1 col-md-1" grouptype="Vdata">
+                                                    <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button>
+                                                </div>
                                         </div>
 
                                            `;
@@ -845,12 +873,12 @@
         function addzhiyishixiang(obj) {
             var sss = document.getElementsByName("Question").length;
             if (document.getElementsByName("Question").length == 1) {
-              
+
                 $('#Questionlabel').text("璐ㄧ枒浜嬮」1");
                 $('#Evidentiallabel').text("浜嬪疄渚濇嵁1");
             }
 
-            $('#zhiyishixiang').append(`   <div class="zhiyishixiangitem"> 
+            $('#zhiyishixiang').append(`   <div class="zhiyishixiangitem">
   <div class="clearfix layer-area" style="padding-bottom:15px;">
                                             <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">璐ㄧ枒浜嬮」`+ (sss+1) + `</label>
                                             <div class="col-sm-4 col-md-4" grouptype="Vdata">
@@ -867,7 +895,7 @@
                                                     }
 
                                                 </select>
-
+                               <input type="hidden"  name="challengeItemId" value="`+ (guid()) + `" />
                                             </div>
 
                                         </div>
@@ -936,8 +964,22 @@
                     $('#zhiyishixiang').find('.zhiyishixiangitem:last').remove();
                 }
 
-            }  
+            }
         }
+        function dellawBtn(obj) {
+
+            $(obj).parent().parent().remove();
+
+
+        }
+
+        function guid() {
+            function S4() {
+                return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
+            }
+            return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
+        }
+
 
     </script>
 </body>

--
Gitblit v1.9.1