From 4daa7f6a133d7c52fa94b22fb1a1767a136b3c5c Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 16 四月 2026 09:23:47 +0800
Subject: [PATCH] 员工出生日期可修改

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx |  103 ++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 72 insertions(+), 31 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx
index c5fa704..cfcfecc 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx
@@ -286,17 +286,21 @@
                         </div>
                                        </td>
                                  <td>
-                                      <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPCount" 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>
-                                      <select keepdefaultstyle="true" class="" name="PSF_Fabantaoshu" value_ppwaerid="<%#Container.ItemIndex + 1%>">
-                                        <option value=""></option>
-                                        <option value="2">2</option>
-                                        <option value="3">3</option>
-                                        <option value="4">4</option>
-                                        <option value="5">5</option>
-                                    </select>
+                                       <div class="xialap" >
+                                      <input type="text" class="  w40px  int "  name="PSF_Fabantaoshu" value_ppwaerid="<%#Container.ItemIndex + 1%>" value="<%#Eval("PSF_Fabantaoshu")%>"  />
+                                            <div class="xialapb" >
+                              
+                                <div class="xialapr">2</div>
+                                <div class="xialapr">3</div>
+                                <div class="xialapr">4</div>  
+                                <div class="xialapr">5</div> 
+                            </div>
+                               </div>         
+                                    
                                        </td>
                             </tr>
                             <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6; width: 100%" name="PSF_PrintedPaperTd"  value_selspec="<%#Container.ItemIndex + 1%>">
@@ -410,13 +414,13 @@
                                 <td colspan="7">
                                 </td>
                             </tr>
-                            <tr style="display:none;">
-                                <td style="display:none;">
+                            <tr style="display:none;" >
+                                <td >
                                     <select keepdefaultstyle="true" value_selwaerid="<%#Container.ItemIndex + 1%>" name="selPlateType" id="selPlateType">
                                         <option value="鏈巶CTP">鏈巶CTP</option>
                                         <option value="鑷甫CTP">鑷甫CTP</option>
-                                        <option value="鑷甫鑿叉灄">鑷甫鑿叉灄</option>
-                                        <option value="鏈巶鑿叉灄">鏈巶鑿叉灄</option>
+                                      <%--  <option value="鑷甫鑿叉灄">鑷甫鑿叉灄</option>
+                                        <option value="鏈巶鑿叉灄">鏈巶鑿叉灄</option>--%>
                                     </select>
                                     <label class="Btnb CangKubtn_o" style="margin-left: 10px;">
                                         <input type="button" value_waerid="<%#Container.ItemIndex + 1%>" class="Btn FromWarehouseByBanCai" value="杩炴帴浠撳簱" id="BtnStorePlate" /></label><input type="hidden" value_ppwaerid="<%#Container.ItemIndex + 1%>" name="PSF_PaperId2" />
@@ -495,19 +499,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>
                         
@@ -549,6 +556,9 @@
    
     </form>
      <script type="text/javascript">
+         var jsonStr = '<%=shebeilist%>'
+         var dataList = JSON.parse(jsonStr);
+/*         alert(dataList.length);*/
          var value_WaerId = 0;
          $(function () {
 
@@ -636,7 +646,7 @@
                  $("select[name='PSF_PressesDesk']").last().attr("value_selspec", value_id + 1);
                  $("select[name='PSF_PrintedColorPositive']").last().attr("value_selspec", value_id + 1);
                  $("select[name='PSF_Typesetting']").last().attr("value_ppwaerid", value_id + 1);
-                 $("select[name='PSF_Fabantaoshu']").last().attr("value_ppwaerid", value_id + 1);
+                 $("input[name='PSF_Fabantaoshu']").last().attr("value_ppwaerid", value_id + 1);
                  $("input[name='PSF_OpenWidth']").last().attr("value_ppwaerid", value_id + 1);
                  $("input[name='PSF_OpenWidthName']").last().attr("value_ppwaerid", value_id + 1);
                  $("input[name='PSF_OpenLength']").last().attr("value_ppwaerid", value_id + 1);
@@ -691,7 +701,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() == "灏侀潰") {
@@ -740,7 +750,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);
              });
 
 
@@ -748,9 +761,36 @@
                  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 () {
@@ -807,9 +847,9 @@
                 } else if ($(this).val() == "鑷甫CTP") {
 
                     $(".FromWarehouseByBanCai[value_WaerId='" + value_SelWaerId + "']").hide();
-                    $(".CTPSpecName[value_ppwaerid='" + value_SelWaerId + "']").hide();
-                    $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").hide();
-                    $(".tdCTPCount[value_ppwaerid='" + value_SelWaerId + "']").hide();
+                    $(".CTPSpecName[value_ppwaerid='" + value_SelWaerId + "']").show();
+                    $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
+                    $(".tdCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
                     $(".selCTPSpec[value_ppwaerid='" + value_SelWaerId + "']").show();
                     $(".selFilmSpec[value_ppwaerid='" + value_SelWaerId + "']").hide();
 
@@ -817,6 +857,7 @@
                     $(".tdPSSpec[value_ppwaerid='" + value_SelWaerId + "']").hide();
                     $(".lbPSCount[value_ppwaerid='" + value_SelWaerId + "']").hide();
                     $(".tdPsCount[value_ppwaerid='" + value_SelWaerId + "']").hide();
+                    $("input[name='PSF_PaperId2'][value_ppwaerid='" + value_WaerId + "']").val("");
                 }
                 else {
 
@@ -1030,7 +1071,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();
@@ -1072,7 +1113,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();
@@ -1110,7 +1151,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();
@@ -1149,7 +1190,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();
@@ -1188,7 +1229,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();
@@ -1263,7 +1304,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();
@@ -1303,7 +1344,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();
@@ -1450,7 +1491,7 @@
                     $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_PrintedColorRear']").val($(vv).attr("value_hide_psf_printedcolorrear"));
                     $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Typesetting']").val($(vv).attr("value_hide_psf_typesetting"));
                     $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Typesettinghide']").val($(vv).attr("value_hide_psf_typesetting"));
-                    $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Fabantaoshu']").val($(vv).attr("value_hide_psf_fabantaoshu"));
+                   // $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Fabantaoshu']").val($(vv).attr("value_hide_psf_fabantaoshu"));
                     $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_PaperSource']").val($(vv).attr("value_hide_psf_papersource"));
                     $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_OpenSpecifications']").val($(vv).attr("value_hide_psf_openspecifications"));
                     $(vv).parent().parent().parent().parent().parent().find("select[name='selPaperName']").val($(vv).attr("value_hide_psf_selPaperName"));
@@ -1924,7 +1965,7 @@
                  if (keyid != "") {
 
                  } else {
-                     $(vv).val("395*460");
+                     $(vv).val("460*395");
                     
                 }
             });

--
Gitblit v1.9.1