CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
@@ -173,6 +173,7 @@
                                <span id="spanOrderBillModeName" runat="server"></span>
                            </td>
                        </tr>
                        <tr>
                            <td class="ali03">
                                备注:
@@ -189,48 +190,65 @@
                            <thead>
                                <tr class="ForumName" style="display:none">
                                    <th colspan="12">
                                        <b>第<span class=" AddCount red"><%#Container.ItemIndex + 1%></span>版<input name="PSF_Forumsid" value="<%#Container.ItemIndex + 1%>" type="hidden" value_hide_psf_component="<%#Eval("PSF_Component")%>" value_hide_psf_pressesdesk="<%#Eval("PSF_PressesDesk")%>" value_hide_psf_printedcolorpositive="<%#Eval("PSF_PrintedColorPositive")%>" value_hide_psf_printedcolorrear="<%#Eval("PSF_PrintedColorRear")%>" value_hide_psf_typesetting="<%#Eval("PSF_Typesetting")%>" value_hide_psf_papersource="<%#Eval("PSF_PaperSource")%>" value_hide_psf_openspecifications="<%#Eval("PSF_OpenSpecifications")%>" value_hide_psf_selpapername="<%#Eval("PSF_PaperName")%>" value_hide_psf_selpaperspec="<%#Eval("PSF_MaterialSpecifications")%>" value_hide_psf_selplatetype="<%#Eval("PSF_PlateSource")%>" value_hide_psf_selctpspec="<%#Eval("PSF_CTPSpecType")%>" value_hide_psf_selfilmspec="<%#Eval("PSF_FilmType")%>" /></b>
                                        <b>第<span class=" AddCount red"><%#Container.ItemIndex + 1%></span>版<input name="PSF_Forumsid" value="<%#Container.ItemIndex + 1%>" type="hidden" value_hide_psf_component="<%#Eval("PSF_Component")%>" value_hide_psf_pressesdesk="<%#Eval("PSF_PressesDesk")%>" value_hide_psf_printedcolorpositive="<%#Eval("PSF_PrintedColorPositive")%>" value_hide_psf_printedcolorrear="<%#Eval("PSF_PrintedColorRear")%>" value_hide_psf_typesetting="<%#Eval("PSF_Typesetting")%>" value_hide_psf_fabantaoshu="<%#Eval("PSF_Fabantaoshu")%>"  value_hide_psf_papersource="<%#Eval("PSF_PaperSource")%>" value_hide_psf_openspecifications="<%#Eval("PSF_OpenSpecifications")%>" value_hide_psf_selpapername="<%#Eval("PSF_PaperName")%>" value_hide_psf_selpaperspec="<%#Eval("PSF_MaterialSpecifications")%>" value_hide_psf_selplatetype="<%#Eval("PSF_PlateSource")%>" value_hide_psf_selctpspec="<%#Eval("PSF_CTPSpecType")%>" value_hide_psf_selfilmspec="<%#Eval("PSF_FilmType")%>" /></b>
                                    </th>
                                </tr>
                            </thead>
                            <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6; width: 100%">
                                <td rowspan="2" style="width: 195px;">
                                    构件
                                 <%=PrintTypeId=="7"?"成品尺寸":"构件"  %>
                                </td>
                                <td rowspan="2" colspan="2" >
                                    P数
                                <td rowspan="2"  >
                                   <%=PrintTypeId=="7"?"版数":"页数"  %>
                                </td>
                                <td rowspan="2" colspan="2">
                                <td rowspan="2"  >
                                    印刷机台
                                </td>
                                <td colspan="2"   >
                                    <p name="PSF_yinse" value_openwidthspan="<%#Container.ItemIndex + 1%>">印色</p>
                                <td colspan="3"   >
                                    <p name="PSF_yinse" value_openwidthspan="<%#Container.ItemIndex + 1%>">印刷要求</p>
                                </td>
                                <td rowspan="2" colspan="2">
                              <%--  <td rowspan="2" colspan="2">
                                    <p name="PSF_yinshufangshi" value_openwidthspan="<%#Container.ItemIndex + 1%>">印刷方式</p>      
                                </td>--%>
                                 <td rowspan="2"   >
                                    <p   class="lb lbCTPCount lbCTPCountc" value_ppwaerid="<%#Container.ItemIndex + 1%>">板材规格</p>
                                </td>
                                <td  rowspan="2"  >
                                  <p   class="lb lbCTPCount lbCTPCounta" value_ppwaerid="<%#Container.ItemIndex + 1%>">数量(张)</p>
                                </td>
                                     <td rowspan="2" >
                                        发版套数
                                    </td>
                                 
                            </tr>
                            <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6;"   >
                                <td>
                                  <p name="PSF_yinsezheng" value_openwidthspan="<%#Container.ItemIndex + 1%>">正</p>
                                  <p name="PSF_yinsezheng" value_openwidthspan="<%#Container.ItemIndex + 1%>">正面色数</p>
                                </td>
                                <td>
                                 <p name="PSF_yinsebei" value_openwidthspan="<%#Container.ItemIndex + 1%>">背</p>
                                 <p name="PSF_yinsebei" value_openwidthspan="<%#Container.ItemIndex + 1%>">背面色数</p>
                                </td>
                                <td>
                                        <p name="PSF_yinshufangshi" value_openwidthspan="<%#Container.ItemIndex + 1%>">印刷方式</p>
                                    </td>
                            </tr>
                            <tr>
                                <td>
                                    <select keepdefaultstyle="true" class="" name="PSF_Component" value_ppwaerid="<%#Container.ItemIndex + 1%>">
                                        <option value="" selected="selected">-无-</option>
                                    <select keepdefaultstyle="true" class="" name="PSF_Component" value_ppwaerid="<%#Container.ItemIndex + 1%>" <%=PrintTypeId=="7"?"style=\"display:none;\"":""  %>    >
                                        <option value="">-无-</option>
                                        <option value="封面">封面</option>
                                        <option value="封内合拼">封内合拼</option>
                                        <option value="多单合拼">多单合拼</option>
                                        <option value="内页">内页</option>
                                    </select>
                                    <input type="text" class="  w120px " maxlength="50"   name="PSF_Chengpinchicun"  value_ppwaerid="<%#Container.ItemIndex + 1%>" value="<%#Eval("PSF_Component")%>" <%=PrintTypeId=="7"?"":"style=\"display:none;\""  %>  />
                                </td>
                                <td colspan="2">
                                <td  >
                                    <input type="text" class="  w80px  int " msg="请填写数字" name="PSF_PNum" value="<%#Eval("PSF_PNum")%>" value_ppwaerid="<%#Container.ItemIndex + 1%>" />
                                </td>
                                <td colspan="2">
                                <td  >
                                    <select keepdefaultstyle="true" class="  w120px" name="PSF_PressesDesk"    value_selspec="<%#Container.ItemIndex + 1%>">
                                        <%--<option value="">请选择</option>--%>
                                        <%=PressesDeskHtml %>
@@ -257,7 +275,7 @@
                                        <option value="四+专">四+专</option>
                                    </select>
                                </td>
                                <td colspan="2">
                                <td>
                                    <select keepdefaultstyle="true" class="" name="PSF_Typesetting" value_ppwaerid="<%#Container.ItemIndex + 1%>">
                                        <option value="自翻">自翻</option>
                                        <option value="滚翻">滚翻</option>
@@ -271,6 +289,30 @@
                                      
                                    </select>
                                </td>
                                 <td>
                                      <div class="xialapp" >
                                    <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPSpecName lbCTPCount lbCTPCountb" name="CTPSpecName" value="<%#Eval("PSF_CTPSpecType")%>" style=" width: 80px" />
                                          <div class="xialapbp" >
                                <%=xialapr %>
                            </div>
                        </div>
                                       </td>
                                 <td>
                                      <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPCount lbCTPCount int" name="CTPCount"  value="<%#Eval("PSF_CTPCount")%>" style=" width: 80px" />
                                       </td>
                                 <td>
                                       <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%>">
@@ -287,7 +329,7 @@
                                <p name="PSF_Zhizhangshuliang" value_selspecspan="<%#Container.ItemIndex + 1%>">纸张数量(张)</p>     
                                </td>
                                <td colspan="4">
                                  <p name="PSF_Kailiaoguige" value_selspecspan="<%#Container.ItemIndex + 1%>">开料规格</p>
                                  <p name="PSF_Kailiaoguige" value_selspecspan="<%#Container.ItemIndex + 1%>">开料规格(mm) </p>
                                </td>
                            </tr>
                            <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6;"  name="PSF_PrintedPaperTdtr"  value_selspec="<%#Container.ItemIndex + 1%>">
@@ -304,10 +346,10 @@
                                <p name="PSF_OpenSpecificationsspan" value_selspecspan="<%#Container.ItemIndex + 1%>">开数</p>    
                                </td>
                                <td>
                                 <p name="PSF_Kuandu" value_selspecspan="<%#Container.ItemIndex + 1%>">宽度(mm)  </p>
                                 <p name="PSF_Kuandu" value_selspecspan="<%#Container.ItemIndex + 1%>">宽度</p>
                                </td>
                                <td>
                                   <p name="PSF_OpenWidthspan" value_openwidthspan="<%#Container.ItemIndex + 1%>">长度(mm)</p>
                                   <p name="PSF_OpenWidthspan" value_openwidthspan="<%#Container.ItemIndex + 1%>">长度</p>
                                </td>
                            </tr>
                            <tr name="PSF_PrintedPaperTdtrtr"  value_selspec="<%#Container.ItemIndex + 1%>">
@@ -339,7 +381,7 @@
                                    <input type="text" class="  w80px  int " msg="请填写数字" name="PSF_PrintedPositive" value="<%#Eval("PSF_PrintedPositive")%>" value_positiveid="<%#Container.ItemIndex + 1%>" />
                                </td>
                                <td colspan="1">
                                    <input type="text" class="  w80px  int " msg="请填写数字" name="PSF_LastNum" value="<%#Eval("PSF_LastNum")%>" value_lastnumid="<%#Container.ItemIndex + 1%>" />
                                    <input type="text" class="  w60px  int " msg="请填写数字" name="PSF_LastNum" value="<%#Eval("PSF_LastNum")%>" value_lastnumid="<%#Container.ItemIndex + 1%>" />
                                </td>
                                <td colspan="1">
                                    <select keepdefaultstyle="true" class="  w80px" name="PSF_OpenSpecifications" value_selspec="<%#Container.ItemIndex + 1%>">
@@ -365,16 +407,16 @@
                                    <input type="text" class="  w80px  int " msg="请填写数字" name="PSF_OpenLength" value="<%#(Eval("PSF_OpenLength") == null || Eval("PSF_OpenLength").ToString()=="0")?"":Eval("PSF_OpenLength").ToString()%>" value_ppwaerid='<%#Container.ItemIndex + 1%>' />
                                </td>
                            </tr>
                            <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6; width: 100%">
                            <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6; width: 100%;display: none;">
                                <td style="display:none;">
                                    版材类型
                                </td>
                                <td colspan="2"  class="lb lbCTPCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' >
                                <%--<td colspan="2"  class="lb lbCTPCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' >
                                    规格
                                </td>
                                <td id="lbCTPCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' class="lb lbCTPCount" colspan="3">
                                    CTP数量(张)
                                </td>
                                </td>--%>
                                <td id="lbPSSpec" value_ppwaerid='<%#Container.ItemIndex + 1%>' class="lb lbPSSpec" colspan="2" style="display: none">
                                    PS版规格
                                </td>
@@ -384,28 +426,23 @@
                                <td colspan="7">
                                </td>
                            </tr>
                            <tr>
                                <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" />
                                </td>
                                <td colspan="2"  class="lb lbCTPCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' >
                                <%--<td colspan="2"  class="lb lbCTPCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' >
                                      <div class="xialapp" style="margin-left:32%;">
                                    <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPSpecName " name="CTPSpecName" id="PlateSpec" value="<%#Eval("PSF_CTPSpecType")%>" />
                                          <div class="xialapbp" >
                                <%=xialapr %>
                              <%--  <div class="xialapr">500</div>
                                <div class="xialapr">1000</div>
                                <div class="xialapr">2000</div>
                                <div class="xialapr">3000</div>
                                <div class="xialapr">5000</div>
                                <div class="xialapr">10000</div>--%>
                            </div>
                        </div>
                                    <select keepdefaultstyle="true" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="sel selCTPSpec" name="selCTPSpec" style="display: none; width: 80px" id="selCTPSpec">
@@ -419,7 +456,7 @@
                                </td>
                                <td id="tdCTPCount" runat="server" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="td tdCTPCount" colspan="3">
                                    <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPCount" name="CTPCount" id="CTPCount" value="<%#Eval("PSF_CTPCount")%>" />
                                </td>
                                </td>--%>
                                <td id="tdPSSpec" style="display: none" runat="server" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="td tdPSSpec" colspan="2">
                                    <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt PSF_PSBan" name="PSF_PSBan" style="width: 80px;" id="PSF_PSBan" value="<%#Eval("PSF_PSSpec")%>" />
                                    <label class="Btnb CangKubtn_o" style="margin-left: 10px;">
@@ -439,9 +476,9 @@
                                   <input type="text"   name="PSF_Qitadingdanhao"  style="width: 50%;"   value_ppwaerid="<%#Container.ItemIndex + 1%>"value="<%#Eval("PSF_PaperName")%>" maxlength="50" /> 
                                </td>
                            </tr>
                            <tr>
                            <tr style=" display:none;">
                                <td style="font-weight: bold; background-color: #E6E6E6;">
                                    注意事项:
                                    生产要求:
                                </td>
                                <td colspan="12">
                                    <textarea style="width: 96%; height: 40px; float: left;" name="PSF_Note"><%#Eval("PSF_Note")%></textarea>
@@ -459,18 +496,71 @@
                 <input type="button" class="Btn" value="纸张采购"  onclick="zhizhangcaigou();" />
            </td>
        </tr>
        <tr>
         <tr >
            <td colspan="2">
                <table class="tableStyle" style="width: 98%; margin: 5px auto;">
                    <thead>
                    <tbody>
                        <tr>
                             <td class="ali03 w70px " >
                后道工序:
                 </td>
                            <td>
                                 <table class="tableStyle" style="width: 98%; margin: 5px auto;">
                                     <tbody>
                                          <asp:Repeater ID="RepeaterHoudaoList" runat="server">
                    <ItemTemplate>
                                         <tr class="AddHoudao" value_id="<%#Container.ItemIndex + 1%>" >
                                             <td>
                        <select keepdefaultstyle="true"   class=" w70px" name="selHoudaogongxu" >
                            <%#Eval("PSF_Houdaogongxu")%>
                        </select>
                    </td>
                                              <td>
                        数量:<input type="text" name="txtShuliang" class=" w40px int" min="0" maxlength="50" value="<%#Eval("PSF_Shuliang")%>"/>
                    </td>
                                             <td>
                        倍数:<input type="text" name="txtBeishu" class=" w40px int" min="0" maxlength="50"  value="<%#Eval("PSF_Beishu")%>"/>
                    </td>
       <td>
                        机长:<input type="text" name="txtJichang" class=" w80px"  maxlength="50" value="<%#Eval("PSF_Jichang")%>"/>
                    </td>
                                              <td>
                       要求: <input type="text" name="txtYaoqiu" class=" noJ" maxlength="500" style="width: 405px;" value="<%#Eval("PSF_Yaoqiu")%>" />
                    </td>
                                               <td class="w70px " >
                                 <a class="Btn AddHoudaos" value_id="<%#Container.ItemIndex + 1%>"  style="font-size:20px;" >+</a>&nbsp;&nbsp;  <a class="Btn CutHoudaos" value_id="<%#Container.ItemIndex + 1%>"  style="font-size:20px;" >-</a>
                 </td>
                                              </tr>
                          </ItemTemplate>
                </asp:Repeater>
                                         </tbody>
                                     </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
        <tr  style="display:none;">
            <td colspan="2">
                <table class="tableStyle" style="width: 98%; margin: 5px auto;">
                    <%--<thead>
                        <tr>
                            <th>
                                <b>后道工序</b>
                            </th>
                        </tr>
                    </thead>
                    </thead>--%>
                    <tbody>
                        <tr>
                             <td class="ali03 w70px " >
                后道工序:
                 </td>
                            <td>
                                <textarea style="width: 96%; height: 40px;" name="PSO_Work" runat="server" id="txtPSO_Work"></textarea>
                            </td>
@@ -482,17 +572,27 @@
        <tr>
            <td colspan="2">
                <table class="tableStyle" style="width: 98%; margin: 5px auto;">
                    <thead>
                   <%-- <thead>
                        <tr>
                            <th>
                                <b>备注</b>
                            </th>
                        </tr>
                    </thead>
                    </thead>--%>
                    <tbody>
                        <tr>
                         <tr>
                            <td class="ali03 w70px">
                                印刷数量:
                            </td>
                            <td  class=" w40px">
                                 <input type="text" id="txtOrderNum" class=" w40px int" min="0"  runat="server" />
                            </td>
                            <td class="ali03 w70px " >
                生产要求:
                 </td>
                            <td>
                                <textarea style="width: 96%; height: 40px;" name="PSO_Remarks" runat="server" id="txtPSO_Remarks"></textarea>
                                <textarea style="width: 96%; height: 12px;" name="PSO_Remarks" runat="server" id="txtPSO_Remarks"></textarea>
                            </td>
                        </tr>
                    </tbody>
@@ -594,6 +694,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);
                $("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);
@@ -603,10 +704,14 @@
                $(".CTPSpecName").last().attr("value_ppwaerid", value_id + 1);
                $(".CTPCount").last().attr("value_ppwaerid", value_id + 1);
                $(".lbCTPCount").last().attr("value_ppwaerid", value_id + 1);
                $(".lbCTPCounta").last().attr("value_ppwaerid", value_id + 1);
                $(".lbCTPCountb").last().attr("value_ppwaerid", value_id + 1);
                $(".lbCTPCountc").last().attr("value_ppwaerid", value_id + 1);
                $(".PSF_Qitadingdanhao").last().attr("value_ppwaerid", value_id + 1);
                $("input[name='PSF_Qitadingdanhao']").last().attr("value_ppwaerid", value_id + 1);
                $("select[name='PSF_Component']").last().attr("value_ppwaerid", value_id + 1);
                $("input[name='PSF_PNum']").last().attr("value_ppwaerid", value_id + 1);
                $("input[name='PSF_Chengpinchicun']").last().attr("value_ppwaerid", value_id + 1);
                $(".tdCTPCount").last().attr("value_ppwaerid", value_id + 1);
                $(".selCTPSpec").last().attr("value_ppwaerid", value_id + 1);
                $(".selFilmSpec").last().attr("value_ppwaerid", value_id + 1);
@@ -644,10 +749,26 @@
                $("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() == "封面") {
                    const newOptions = [
                        { value: '多单合拼', text: '多单合拼' },
                        { value: '内页', text: '内页' }
                    ];
                    // 3. 批量新增option到select中
                    let optionHtml = '';
                    newOptions.forEach(item => {
                        // 拼接option标签,直接赋值即可
                        optionHtml += `<option value="${item.value}">${item.text}</option>`;
                    });
                    $("select[name='PSF_Component']").last().html(optionHtml); // 赋值到select,完成新增
                    $("select[name='PSF_Component']").last().val("内页");
                    if ("<%=shukuanhuace %>" == "true") {
@@ -686,6 +807,28 @@
                    $(".AddTab").last().remove();
                }
            });
            $(".AddHoudaos").click(function () {
                var value_id = parseInt($(".AddHoudao").last().attr("value_id"));
                $(".AddHoudao").last().after($(".AddHoudao").last().clone(true));
                $(".AddHoudao").last().attr("value_id", value_id + 1);
                $(".AddHoudaos").last().attr("value_id", value_id + 1);
                $(".CutHoudaos").last().attr("value_id", value_id + 1);
            });
            $(".CutHoudaos").click(function () {
                var value_id = parseInt($(this).attr("value_id"));
                var count = $('.AddHoudao').length;
                if (count == 1) {
                } else {
                    $(".AddHoudao[value_id='" + value_id + "']").remove();
                }
            });
            $("select[name='PSF_PaperSource']").live("change", function () {
                var value_SelWaerId = $(this).attr("value_SelWaerId");
@@ -741,9 +884,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();
@@ -751,6 +894,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 {
@@ -918,6 +1062,7 @@
                        { value: '单色', text: '单色' },
                        { value: '双色', text: '双色' },
                        { value: '三色', text: '三色' },
                        { value: '四色', text: '四色' },
                        { value: '四+专', text: '四+专' },
                    ];
@@ -963,7 +1108,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();
@@ -1005,7 +1150,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();
@@ -1043,7 +1188,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();
@@ -1082,7 +1227,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();
@@ -1121,7 +1266,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();
@@ -1196,7 +1341,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();
@@ -1285,12 +1430,17 @@
                    $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                    $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                    if ($(this).val().indexOf('补单') >= 0) {
                        $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val("");
                        $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val("");
                    }
                }
                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("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();
@@ -1436,11 +1586,13 @@
                }
                if (keyid != "") {
                    $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Component']").val($(vv).attr("value_hide_psf_component"));
                    //$(vv).parent().parent().parent().parent().parent().find("input[name='PSF_Chengpinchicun']").val($(vv).attr("value_hide_psf_component"));
                    $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_PressesDesk']").val($(vv).attr("value_hide_psf_pressesdesk"));
                    $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_PrintedColorPositive']").val($(vv).attr("value_hide_psf_printedcolorpositive"));
                    $(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_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"));
@@ -1449,6 +1601,16 @@
                    $(vv).parent().parent().parent().parent().parent().find("select[name='selCTPSpec']").val($(vv).attr("value_hide_psf_selCTPSpec"));
                    $(vv).parent().parent().parent().parent().parent().find("select[name='selFilmSpec']").val($(vv).attr("value_hide_psf_selFilmSpec"));
                } else {
                    if ("<%=shukuanhuace %>" == "true") {
                        $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Component']").val("封面");
                        $(vv).parent().parent().parent().parent().parent().find("input[name='PSF_PNum']").val("4");
                    } else {
                        $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Component']").val("");
                        $(vv).parent().parent().parent().parent().parent().find("input[name='PSF_PNum']").val("");
                    }
                    $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Component']").change();
                }
            });
@@ -1860,6 +2022,7 @@
                            { value: '单色', text: '单色' },
                            { value: '双色', text: '双色' },
                            { value: '三色', text: '三色' },
                            { value: '四色', text: '四色' },
                            { value: '四+专', text: '四+专' },
                        ];
@@ -1914,7 +2077,7 @@
                 } else {
                     if ("<%=PrintTypeId %>" != "7") {
                         $(vv).val("395*460");
                         $(vv).val("460*395");
                     }
                    
                }
@@ -1940,12 +2103,7 @@
                    top.Dialog.open({ URL: "/Pages/business/AgConWarehouse.aspx?CommidityType=版材&&value_pparid=" + value_pparid, Width: 1000, Height: 650, Title: "选择货品参数" });
                });
                if ("<%=shukuanhuace %>" == "true") {
                    $("select[name='PSF_Component']").first().val("封面");
                    $("input[name='PSF_PNum']").first().val("4");
                }
            });