From 3b3804a451ff7cb7eaa9cc6c3af62d7092caa6ce Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 16 四月 2026 08:48:30 +0800
Subject: [PATCH] 设备增加    印刷设备  把厚道对应的机台都放到印刷设备     完成

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx |   69 ++++++++++++++++++++++++++--------
 1 files changed, 53 insertions(+), 16 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
index 0940640..02b23c0 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
@@ -298,7 +298,7 @@
                         </div>
                                        </td>
                                  <td>
-                                      <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPCount lbCTPCount" name="CTPCount"  value="<%#Eval("PSF_CTPCount")%>" style=" width: 80px" />
+                                      <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPCount lbCTPCount int" name="CTPCount"  value="<%#Eval("PSF_CTPCount")%>" style=" width: 80px" />
 
                                        </td>
                                  <td>
@@ -426,7 +426,7 @@
                                 <td colspan="7">
                                 </td>
                             </tr>
-                            <tr >
+                            <tr style="display:none;" >
                                 <td >
                                     <select keepdefaultstyle="true" value_selwaerid="<%#Container.ItemIndex + 1%>" name="selPlateType" id="selPlateType">
                                         <option value="鏈巶CTP">鏈巶CTP</option>
@@ -511,19 +511,22 @@
                     <ItemTemplate>
                                          <tr class="AddHoudao" value_id="<%#Container.ItemIndex + 1%>" >
                                              <td>
-                        <select keepdefaultstyle="true"   class=" w70px" name="selHoudaogongxu" >
+                        <select keepdefaultstyle="true"   class=" w70px" name="selHoudaogongxu"  value_id="<%#Container.ItemIndex + 1%>"  >
                             <%#Eval("PSF_Houdaogongxu")%>
                         </select>
                     </td>
 
                                               <td>
-                        鏁伴噺:<input type="text" name="txtShuliang" class=" w40px int" min="0" maxlength="50" value="<%#Eval("PSF_Shuliang")%>"/>
+                        鏁伴噺:<input type="text" name="txtShuliang" class=" w40px int" min="0" maxlength="50" value="<%#Eval("PSF_Shuliang")%>" value_id="<%#Container.ItemIndex + 1%>"  />
                     </td>
                                              <td>
-                        鍊嶆暟:<input type="text" name="txtBeishu" class=" w40px int" min="0" maxlength="50"  value="<%#Eval("PSF_Beishu")%>"/>
+                        鍊嶆暟:<input type="text" name="txtBeishu" class=" w40px float" min="0" maxlength="50"  value="<%#Eval("PSF_Beishu")%>" value_id="<%#Container.ItemIndex + 1%>"  />
                     </td>
        <td>
-                        鏈洪暱:<input type="text" name="txtJichang" class=" w80px"  maxlength="50" value="<%#Eval("PSF_Jichang")%>"/>
+                        鏈洪暱:<%--<input type="text" name="txtJichang" class=" w80px"  maxlength="50" value="<%#Eval("PSF_Jichang")%>"/>--%>
+             <select keepdefaultstyle="true"   class=" w70px" name="selJichang" value_id="<%#Container.ItemIndex + 1%>" >
+                            <%#Eval("PSF_Jichang")%>
+                        </select>
                     </td>
                                               <td>
                         
@@ -607,6 +610,9 @@
     </table>
     </form>
     <script type="text/javascript">
+        var jsonStr = '<%=shebeilist%>'
+        var dataList = JSON.parse(jsonStr);
+/*        alert(dataList[19].Name);*/
         var value_WaerId = 0;
         $(function () {
 
@@ -749,7 +755,7 @@
 
                 $("select[name='PSF_OpenSpecifications']").last().val("8寮�");
                 $("select[name='PSF_OpenSpecifications']").last().change();
-                $("input[name='CTPSpecName']").last().val("395*460");
+                $("input[name='CTPSpecName']").last().val("460*395");
                 $("input[name='PSF_PNum']").last().val("");
 
                 if ($("select[name='PSF_Component']").first().val() == "灏侀潰") {
@@ -815,7 +821,10 @@
                 $(".AddHoudao").last().attr("value_id", value_id + 1);
                 $(".AddHoudaos").last().attr("value_id", value_id + 1);
                 $(".CutHoudaos").last().attr("value_id", value_id + 1);
-                
+                $("select[name='selHoudaogongxu']").last().attr("value_id", value_id + 1);
+                $("select[name='selJichang']").last().attr("value_id", value_id + 1);
+                $("input[name='txtShuliang']").last().attr("value_id", value_id + 1);
+                $("input[name='txtBeishu']").last().attr("value_id", value_id + 1);
             });
 
 
@@ -823,11 +832,39 @@
                 var value_id = parseInt($(this).attr("value_id"));
                 var count = $('.AddHoudao').length;
                 if (count == 1) {
+                    $("select[name='selHoudaogongxu'][value_id='" + value_id + "']").val("");
+                    $("select[name='selJichang'][value_id='" + value_id + "']").val("");
+                    $("input[name='txtShuliang'][value_id='" + value_id + "']").val("");
+                    $("input[name='txtBeishu'][value_id='" + value_id + "']").val("");
                 } else {
                     $(".AddHoudao[value_id='" + value_id + "']").remove();
                 }
             });
 
+
+
+
+            $("select[name='selHoudaogongxu']").live("change", function () {
+               
+                var value_id = $(this).attr("value_id");
+                var selectId = $(this).val(); // 鑾峰彇閫変腑鐨勫��
+                // 娓呯┖绗簩涓笅鎷夋
+                $("select[name='selJichang'][value_id='" + value_id + "']").empty().append("<option value='0'>璇烽�夋嫨</option>");
+                if (!selectId) return;
+                // ======================
+                // 鍏抽敭锛氫粠闆嗗悎閲岀瓫閫夋暟鎹紒
+                // ======================
+                var filterData = dataList.filter(item =>
+                    item.Name.includes(selectId)
+                );
+
+                // 濉厖鍒扮浜屼釜涓嬫媺妗�
+                $.each(filterData, function (i, item) {
+                    
+                    $("select[name='selJichang'][value_id='" + value_id + "']").append("<option value='" + item.Zerenren + "'>" + item.ZerenrenName + "</option>");
+                });
+
+            });
 
 
             $("select[name='PSF_PaperSource']").live("change", function () {
@@ -1108,7 +1145,7 @@
                 if ($(this).val().indexOf('鍏紑') >= 0) {
                     $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍗曡壊");
                     $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍗曡壊");
-                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("395*460");
+                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("460*395");
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("8寮�");
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change();
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
@@ -1150,7 +1187,7 @@
                 else if ($(this).val().indexOf('鍥涜壊') >= 0) {
                     $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍥涜壊");
                     $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍥涜壊");
-                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("770*1030");
+                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("1030*770");
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("2寮�");
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change();
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
@@ -1188,7 +1225,7 @@
                 else if ($(this).val().indexOf('鍏壊') >= 0) {
                     $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍥涜壊");
                     $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍥涜壊");
-                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("790*1030");
+                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("1030*790");
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("2寮�");
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change();
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
@@ -1227,7 +1264,7 @@
                 else if ($(this).val().indexOf('榛戠櫧') >= 0) {
                     $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍗曡壊");
                     $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍗曡壊");
-                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("760*920");
+                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("920*760");
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("2寮�");
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change();
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
@@ -1266,7 +1303,7 @@
                 else if ($(this).val().indexOf('杞浆') >= 0) {
                     $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍗曡壊");
                     $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍗曡壊");
-                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("578*810");
+                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("810*579");
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("");
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change();
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").hide();
@@ -1341,7 +1378,7 @@
                     
                     $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍗曡壊");
                     $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍗曡壊");
-                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("395*460");
+                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("460*395");
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("");
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change();
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
@@ -1440,7 +1477,7 @@
 
                     $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍗曡壊");
                     $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍗曡壊");
-                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("395*460");
+                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("460*395");
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("");
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change();
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
@@ -2077,7 +2114,7 @@
 
                  } else {
                      if ("<%=PrintTypeId %>" != "7") {
-                         $(vv).val("395*460");
+                         $(vv).val("460*395");
                      }
                     
                 }

--
Gitblit v1.9.1