From 2b177eea6ca44785a6116e91dbadbf7cf5ed2e15 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 24 一月 2022 12:22:31 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/zhengcaioa/Views/CooperOrder/PrintZhiyihan.cshtml |  101 +++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 74 insertions(+), 27 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/PrintZhiyihan.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/PrintZhiyihan.cshtml
index 20e54ef..00a85bb 100644
--- a/zhengcaioa/zhengcaioa/Views/CooperOrder/PrintZhiyihan.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/PrintZhiyihan.cshtml
@@ -70,7 +70,7 @@
     <form id="formtest">
         <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
             <div class="row">
-                <div id="content" style="overflow-y:auto;height:100%;">
+                <div id="content" style="overflow-y:auto;height:100%;background: #fff;width:850px; margin: 0 auto;">
                     <div id="page1" style="page-break-after:always;">
                         <table border="0" align="center" cellpadding="3" cellspacing="0">
                             <tr>
@@ -128,18 +128,65 @@
                             @{
                                 @for (int i = 0; i < challengeItemDTOs.Count; i++)
                                 {
-                                    <tr>
-                                        <td colspan="2">
-                                            璐ㄧ枒浜嬮」@(i!=0?(i+""):"")锛�<span style="text-indent:10px">@challengeItemDTOs[i].QuestionName </span>
-                                            <br />
-                                            浜嬪疄渚濇嵁@(i!=0?(i+""):"")锛�<span>@challengeItemDTOs[i].Evidential</span>
-                                            <br />
-                                            娉曞緥渚濇嵁@(i!=0?(i+""):"")锛�<span>@challengeItemDTOs[i].LawName</span>
-                                            <br />
-                                            鍐呭@(i!=0?(i+""):"")锛�<span>@challengeItemDTOs[i].Lawcoment</span>
-                                            <br />
-                                        </td>
-                                    </tr>
+                                    if (challengeItemDTOs.Count == 1)
+                                    {
+                                        <tr>
+                                            <td colspan="2">
+                                                璐ㄧ枒浜嬮」锛�<span style="text-indent:10px">@challengeItemDTOs[i].QuestionName </span>
+                                                <br />
+                                                浜嬪疄渚濇嵁锛�<span>@challengeItemDTOs[i].Evidential</span>
+                                                <br />
+                                                @for (int j = 0; j < challengeItemDTOs[i].sysCodeDtls.Count; j++)
+                                                {
+                                                    if (challengeItemDTOs[i].sysCodeDtls.Count == 1)
+                                                    {
+                                                        @Html.Raw("娉曞緥渚濇嵁锛�<span>銆�" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "銆�" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + "锛�" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
+                                                        <br />
+                                                    }
+                                                    else
+                                                    {
+                                                        @Html.Raw("娉曞緥渚濇嵁" + (j + 1) + "锛�<span>銆�" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "銆�" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + "锛�" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
+                                                        <br />
+
+                                                    }
+
+
+                                                }
+
+
+                                            </td>
+                                        </tr>
+                                    }
+                                    else
+                                    {
+                                        <tr>
+                                            <td colspan="2">
+                                                璐ㄧ枒浜嬮」@((i + 1) + "")锛�<span style="text-indent:10px">@challengeItemDTOs[i].QuestionName </span>
+                                                <br />
+                                                浜嬪疄渚濇嵁@((i + 1) + "")锛�<span>@challengeItemDTOs[i].Evidential</span>
+                                                <br />
+                                                @for (int j = 0; j < challengeItemDTOs[i].sysCodeDtls.Count; j++)
+                                                {
+
+
+                                                    if (challengeItemDTOs[i].sysCodeDtls.Count == 1)
+                                                    {
+                                                        @Html.Raw("娉曞緥渚濇嵁锛�<span>銆�" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "銆�" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + "锛�" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
+                                                        <br />
+                                                    }
+                                                    else
+                                                    {
+                                                        @Html.Raw("娉曞緥渚濇嵁" + (j + 1) + "锛�<span>銆�" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "銆�" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + "锛�" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
+                                                        <br />
+
+                                                    }
+                                                }
+
+
+                                            </td>
+                                        </tr>
+                                    }
+
                                 }
                             }
                             <tr>
@@ -184,21 +231,21 @@
                             margin-top: -5px;
                             border-bottom: 1px dashed #111;
                         }
-                    </style>
-                </div>
-            </div>
-            
-        </div>
-        <div class="wrapper wrapper-content" style="margin-top:0px"></div>
-        <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px ">
-            <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="鍔熻兘鎸夐挳锛氣�滀繚瀛樷�濓紝鈥滃垹闄も��">
-               
+    </style>
+    </div>
+    </div>
 
-                <a class="btn btn-success" href="javascript:void(0)" onclick="printWin();" style="margin-left:4px; border-radius:4px;">
-                    <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">鎵撳嵃</span>
-                </a>
-            </div>
+    </div>
+    <div class="wrapper wrapper-content" style="margin-top:0px"></div>
+    <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px ">
+        <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="鍔熻兘鎸夐挳锛氣�滀繚瀛樷�濓紝鈥滃垹闄も��">
+
+
+            <a class="btn btn-success" href="javascript:void(0)" onclick="printWin();" style="margin-left:4px; border-radius:4px;">
+                <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">鎵撳嵃</span>
+            </a>
         </div>
+    </div>
 
 
 
@@ -235,5 +282,5 @@
 
 
     </script>
-</body>
+    </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1