From 7df23c739201c4413e3e64affae1707a694a2e1b Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 16 六月 2022 12:56:47 +0800
Subject: [PATCH] 打印合同

---
 zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml |  223 ++++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 153 insertions(+), 70 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
index 39bd473..683dbee 100644
--- a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
@@ -145,17 +145,17 @@
                                             <option value="" hassubinfo="true">璇烽�夋嫨</option>
                                             @foreach (var item in customer)
                                             {
-                                            @if (!item.Id.Equals(Model.Khdw))
+                                                @if (!item.Id.Equals(Model.Khdw))
                                                 {
-                                            <option value="@item.Id" hassubinfo="true">
-                                                @item.Name
-                                            </option>
+                                                    <option value="@item.Id" hassubinfo="true">
+                                                        @item.Name
+                                                    </option>
                                                 }
                                                 else
                                                 {
-                                            <option value="@item.Id" hassubinfo="true" selected="selected">
-                                                @item.Name
-                                            </option>
+                                                    <option value="@item.Id" hassubinfo="true" selected="selected">
+                                                        @item.Name
+                                                    </option>
                                                 }
 
                                             }
@@ -218,36 +218,36 @@
 
                                     <label class="text-right col-sm-1 col-md-1 control-label" id="dingdanleixing4">璁㈠崟绫诲瀷2</label>
                                     <div class="col-sm-2 col-md-2" id="dingdanleixing5">
-                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="OrderType3" id="OrderType3" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.OrderType2"  maxlength="50">
+                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="OrderType3" id="OrderType3" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.OrderType2" maxlength="50">
 
                                     </div>
 
 
                                     @*<label class="text-right col-sm-1 col-md-1 control-label">椤圭洰<i class="red">*</i></label>
-        <div class="col-sm-2 col-md-2">
-            <select id="OrderPro" class="form-control" name="OrderPro" data-placeholder="閫夋嫨 搴忓垪 ...">
-                <option value="" hassubinfo="true">璇烽�夋嫨</option>
-                @foreach (var item in project)
-                {
-                    @if (!item.Id.Equals(Model.OrderPro))
+            <div class="col-sm-2 col-md-2">
+                <select id="OrderPro" class="form-control" name="OrderPro" data-placeholder="閫夋嫨 搴忓垪 ...">
+                    <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                    @foreach (var item in project)
                     {
-                        <option value="@item.Id" hassubinfo="true">
-                            @item.Name
-                        </option>
+                        @if (!item.Id.Equals(Model.OrderPro))
+                        {
+                            <option value="@item.Id" hassubinfo="true">
+                                @item.Name
+                            </option>
+                        }
+                        else
+                        {
+                            <option value="@item.Id" hassubinfo="true" selected="selected">
+                                @item.Name
+                            </option>
+                        }
+
                     }
-                    else
-                    {
-                        <option value="@item.Id" hassubinfo="true" selected="selected">
-                            @item.Name
-                        </option>
                     }
 
-                }
-                }
+                </select>
 
-            </select>
-
-        </div>*@
+            </div>*@
 
 
 
@@ -261,19 +261,19 @@
 
                                     <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">璁㈠崟鏁伴噺<i class="red">*</i></label>
                                     <div class="col-sm-2 col-md-2" grouptype="Vdata">
-                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="OrderNum" id="OrderNum" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.OrderNum" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')">
+                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="OrderNum" id="OrderNum" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.OrderNum" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')">
 
                                     </div>
 
                                     <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍗曚环<i class="red">*</i></label>
                                     <div class="col-sm-2 col-md-2" grouptype="Vdata">
-                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="Price" id="Price" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Price"  oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
+                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="Price" id="Price" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Price" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
 
                                     </div>
 
                                     <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">閲戦<i class="red">*</i></label>
                                     <div class="col-sm-2 col-md-2" grouptype="Vdata">
-                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="Money" id="Money" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Money" oninput="if(value.length>8)value=value.slice(0,18)" readonly="readonly">
+                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="Money" id="Money" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Money" oninput="if(value.length>8)value=value.slice(0,18)" readonly="readonly">
 
                                     </div>
 
@@ -308,6 +308,44 @@
 
                                 </div>
 
+                                <div id="xiangmuxinxi">
+                                    <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-2 col-md-2" grouptype="Vdata">
+                                            <input class="form-control" label="椤圭洰鍚嶇О" name="Xmname" id="Xmname" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Xmname">
+
+                                        </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">
+                                            <input class="form-control" label="椤圭洰缂栧彿" name="Xmcode" id="Xmcode" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Xmcode">
+
+                                        </div>
+
+                                        
+
+
+                                    </div>
+
+                                </div>
+
+                                <div id="jichujine">
+                                    <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-2 col-md-2" grouptype="Vdata">
+                                            <input class="form-control" label="鍩虹閲戦" name="Jichumoney" id="Jichumoney" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@(Model.Jichumoney.HasValue?Model.Jichumoney.Value.ToString():"")" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
+                                        </div>
+
+
+                                    </div>
+
+                                </div>
+
                                 <div id="zhiyi">
                                     <div class="clearfix layer-area" style="padding-bottom:15px;">
 
@@ -320,7 +358,7 @@
 
                                         </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>
@@ -374,7 +412,7 @@
                                                     <input class="form-control" label="鑱旂郴鐢佃瘽" id="zhiyiLianxidianhua" name="zhiyiLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Lianxidianhua">
 
                                                 </div>
-                                                
+
 
 
                                             </div>
@@ -417,7 +455,7 @@
 
                                         <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">
-                                           
+
                                             <div class="input-group">
                                                 <input type="text" name="zhiyiXmPackage" id="zhiyiXmPackage" class="form-control" value="@challengeletterDTO.XmPackage">
                                                 <div class="input-group-btn">
@@ -471,29 +509,29 @@
                                         </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">
-                <select id="TsrId" class="form-control" name="TsrId" data-placeholder="閫夋嫨 搴忓垪 ..." onchange="TsrIdchangge();">
-                    <option value="" hassubinfo="true">璇烽�夋嫨</option>
-                    @foreach (var item in ChallengeletterChosen)
-                    {
-                        @if (!item.Id.Equals(complaintletterDTO.TsrId))
+                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                    <select id="TsrId" class="form-control" name="TsrId" data-placeholder="閫夋嫨 搴忓垪 ..." onchange="TsrIdchangge();">
+                        <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                        @foreach (var item in ChallengeletterChosen)
                         {
-                            <option value="@item.Id" hassubinfo="true">
-                                @item.OrderId
-                            </option>
-                        }
-                        else
-                        {
-                            <option value="@item.Id" hassubinfo="true" selected="selected">
-                                @item.OrderId
-                            </option>
+                            @if (!item.Id.Equals(complaintletterDTO.TsrId))
+                            {
+                                <option value="@item.Id" hassubinfo="true">
+                                    @item.OrderId
+                                </option>
+                            }
+                            else
+                            {
+                                <option value="@item.Id" hassubinfo="true" selected="selected">
+                                    @item.OrderId
+                                </option>
+                            }
+
                         }
 
-                    }
 
-
-                </select>
-            </div>*@
+                    </select>
+                </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>
@@ -875,7 +913,7 @@
                                         </div>
 
                                         <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label" id="tousuNoticeDatelabel">鍏憡鏈熼檺</label>
-                                        <div class="col-sm-2 col-md-2" grouptype="Vdata"  id="tousuNoticeDatediv">
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata" id="tousuNoticeDatediv">
                                             <input class="form-control" label="鍏憡鏈熼檺" name="tousuNoticeDate" id="tousuNoticeDate" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.NoticeDateName" readonly="readonly">
 
                                         </div>
@@ -923,26 +961,26 @@
                                 </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">
-                                            <textarea class="form-control bt" id="Remark" name="Remark" title="澶囨敞" isempty="" maxlength="4000" length="long">@Model.Remark</textarea>
-                                        </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">
+                                        <textarea class="form-control bt" id="Remark" name="Remark" title="澶囨敞" isempty="" maxlength="4000" length="long">@Model.Remark</textarea>
                                     </div>
-
-                                    <div class="clearfix layer-area" style="padding-bottom:15px;">
-                                        <div class="col-sm-1 col-md-1">
-
-                                        </div>
-                                        <div class="col-sm-8 col-md-8" style="color:red;">
-                                            绯荤粺鑷姩鏍规嵁8澶╁唴鐢宠鐨勪紭鎯犻」鐩绠椾紭鎯犻噾棰�
-                                        </div>
-
-                                    </div>
-
 
                                 </div>
+
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                    <div class="col-sm-1 col-md-1">
+
+                                    </div>
+                                    <div class="col-sm-8 col-md-8" style="color:red;">
+                                        绯荤粺鑷姩鏍规嵁8澶╁唴鐢宠鐨勪紭鎯犻」鐩绠椾紭鎯犻噾棰�
+                                    </div>
+
+                                </div>
+
+
+                            </div>
                         </div>
                     </div>
                 </div>
@@ -1373,6 +1411,18 @@
             $("#putong").show();
             $("#zhiyi").hide();
             $("#tousu").hide();
+
+            if (sheng == '03' || sheng == '08') {
+                $("#xiangmuxinxi").show();
+            } else {
+                $("#xiangmuxinxi").hide();
+            }
+
+            if (sheng == '08') {
+                $("#jichujine").show();
+            } else {
+                $("#jichujine").hide();
+            }
         });
 
 
@@ -1447,6 +1497,17 @@
                         $("#putong").show();
                         $("#zhiyi").hide();
                         $("#tousu").hide();
+                        if (OrderType == '03' || OrderType == '08') {
+                            $("#xiangmuxinxi").show();
+                        } else {
+                            $("#xiangmuxinxi").hide();
+                        }
+
+                        if (OrderType == '08') {
+                            $("#jichujine").show();
+                        } else {
+                            $("#jichujine").hide();
+                        }
                     }
 
 
@@ -1610,11 +1671,33 @@
                     $("#putong").show();
                     $("#zhiyi").hide();
                     $("#tousu").hide();
+                    if ($("#OrderType").val() == '03' || $("#OrderType").val() == '08') {
+                        $("#xiangmuxinxi").show();
+                    } else {
+                        $("#xiangmuxinxi").hide();
+                    }
+
+                    if (sheng == '08') {
+                        $("#jichujine").show();
+                    } else {
+                        $("#jichujine").hide();
+                    }
                 }
             } else {
                 $("#putong").show();
                 $("#zhiyi").hide();
                 $("#tousu").hide();
+                if ($("#OrderType").val() == '03' || $("#OrderType").val() == '08') {
+                    $("#xiangmuxinxi").show();
+                } else {
+                    $("#xiangmuxinxi").hide();
+                }
+
+                if ($("#OrderType").val() == '08') {
+                    $("#jichujine").show();
+                } else {
+                    $("#jichujine").hide();
+                }
             }
 
             if ($("#zhiyiShouquandaibiao").val() != "") {

--
Gitblit v1.9.1