username@email.com
2024-11-22 cf4b34c45f52ff8951d8eb1ff564c039593f4b31
CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
@@ -5,6 +5,7 @@
<head runat="server">
    <title>专版施工单</title>
    <uc:CMSHead ID="CMSHead1" runat="server" />
     <link rel="stylesheet" type="text/css" href="../../Styles/base.css?v=1" />
    <style type="text/css">
        body { font-family: 微软雅黑; }
        tr { line-height: 20px; }
@@ -229,27 +230,27 @@
                                    <input type="text" class="  w80px  int " msg="请填写数字" name="PSF_PNum" value="<%#Eval("PSF_PNum")%>" />
                                </td>
                                <td colspan="2">
                                    <select keepdefaultstyle="true" class="  w120px" name="PSF_PressesDesk">
                                    <select keepdefaultstyle="true" class="  w120px" name="PSF_PressesDesk"    value_selspec="<%#Container.ItemIndex + 1%>">
                                        <%--<option value="">请选择</option>--%>
                                        <%=PressesDeskHtml %>
                                    </select>
                                </td>
                                <td>
                                    <select keepdefaultstyle="true" class="" name="PSF_PrintedColorPositive">
                                        <option value="单色">单色</option>
                                    <select keepdefaultstyle="true" class="" name="PSF_PrintedColorPositive"  value_selspec="<%#Container.ItemIndex + 1%>" >
                                        <option value="单色" selected="selected">单色</option>
                                        <option value="双色">双色</option>
                                        <option value="三色">三色</option>
                                        <option value="四色" selected="selected">四色</option>
                                        <option value="四色" >四色</option>
                                        <option value="四+专">四+专</option>
                                    </select>
                                </td>
                                <td>
                                    <select keepdefaultstyle="true" class="" name="PSF_PrintedColorRear" value_ppwaerid="<%#Container.ItemIndex + 1%>">
                                        <option value="0色">0色</option>
                                        <option value="单色">单色</option>
                                        <option value="单色" selected="selected">单色</option>
                                        <option value="双色">双色</option>
                                        <option value="三色">三色</option>
                                        <option value="四色" selected="selected">四色</option>
                                        <option value="四色" >四色</option>
                                        <option value="四+专">四+专</option>
                                    </select>
                                </td>
@@ -290,13 +291,13 @@
                                    消耗
                                </td>
                                <td colspan="1">
                                    开数
                                <p name="PSF_OpenSpecificationsspan" value_selspecspan="<%#Container.ItemIndex + 1%>">开数</p>
                                </td>
                                <td>
                                    宽度(mm)
                                </td>
                                <td>
                                    长度(mm)
                                   <p name="PSF_OpenWidthspan" value_openwidthspan="<%#Container.ItemIndex + 1%>">长度(mm)</p>
                                </td>
                            </tr>
                            <tr>
@@ -332,19 +333,30 @@
                                </td>
                                <td colspan="1">
                                    <select keepdefaultstyle="true" class="  w80px" name="PSF_OpenSpecifications" value_selspec="<%#Container.ItemIndex + 1%>">
                                        <%--<option value="">请选择</option>--%>
                                        <option value="">请选择</option>
                                        <%=selCuttingPaperSpecHtml%>
                                    </select>
                                </td>
                                <td>
                                    <input type="text" class="  w80px  int " msg="请填写数字" name="PSF_OpenWidth" value="<%#(Eval("PSF_OpenWidth") == null || Eval("PSF_OpenWidth").ToString()=="0")?"":Eval("PSF_OpenWidth").ToString()%>" value_ppwaerid='<%#Container.ItemIndex + 1%>' />
                                    <div class="xialap"   value_ppwaerid='<%#Container.ItemIndex + 1%>' style="display:none;" >
                             <input type="text" class="  w80px  int " name="PSF_OpenWidthName"   value="<%#(Eval("PSF_OpenWidth") == null || Eval("PSF_OpenWidth").ToString()=="0")?"":Eval("PSF_OpenWidth").ToString()%>" value_ppwaerid='<%#Container.ItemIndex + 1%>'    />
                            <div class="xialapb" >
                                <div class="xialapr">755</div>
                                <div class="xialapr">760</div>
                                <div class="xialapr">765</div>
                                <div class="xialapr">770</div>
                            </div>
                        </div>
                                </td>
                                <td>
                                    <input type="text" class="  w80px  int " msg="请填写数字" name="PSF_OpenLength" value="<%#(Eval("PSF_OpenWidth") == null || Eval("PSF_OpenLength").ToString()=="0")?"":Eval("PSF_OpenLength").ToString()%>" value_ppwaerid='<%#Container.ItemIndex + 1%>' />
                                    <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%">
                                <td>
                                <td style="display:none;">
                                    版材类型
                                </td>
                                <td colspan="2">
@@ -359,11 +371,11 @@
                                <td id="lbPSCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' class="lb lbPSCount" colspan="4" style="display: none">
                                    PS版数量
                                </td>
                                <td colspan="6">
                                <td colspan="7">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                <td style="display:none;">
                                    <select keepdefaultstyle="true" value_selwaerid="<%#Container.ItemIndex + 1%>" name="selPlateType" id="selPlateType">
                                        <option value="本厂CTP">本厂CTP</option>
                                        <option value="自带CTP">自带CTP</option>
@@ -374,7 +386,18 @@
                                        <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">
                                      <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">
                                        <option value="">请选择</option>
                                        <%=selCTPSpecHtml %>
@@ -395,7 +418,7 @@
                                <td id="tdPsCount" style="display: none" runat="server" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="td tdPsCount" colspan="4">
                                    <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt PSCount" name="PSCount" style="width: 80px" id="PSCount" value="<%#Eval("PSF_PSCount")%>" />
                                </td>
                                <td colspan="6">
                                <td colspan="7">
                                </td>
                            </tr>
                            <tr>
@@ -511,6 +534,7 @@
                var value_id = parseInt($(".AddTab").last().attr("value_id"));
                $(".AddTab").last().after($(".AddTab").last().clone(true));
                $(".AddTab").last().attr("value_id", value_id + 1);
                $(".xialap").last().attr("value_ppwaerid", value_id + 1);
                $(".AddTab span").last().text(value_id + 1);
                $(".FromWarehouse").last().attr("value_WaerId", value_id + 1);
                $("input[name='PSF_PaperId']").last().attr("value_PpWaerId", value_id + 1);
@@ -532,9 +556,14 @@
                $("input[name='PSF_LastNum']").last().attr("value_lastNumid", value_id + 1);
                $("input[name='PSF_PrintedCount']").last().attr("value_ppwaerid", value_id + 1);
                $("select[name='PSF_OpenSpecifications']").last().attr("value_selSpec", value_id + 1);
                $("p[name='PSF_OpenSpecificationsspan']").last().attr("value_selspecspan", value_id + 1);
                $("p[name='PSF_OpenWidthspan']").last().attr("value_openwidthspan", value_id + 1);
                $("select[name='PSF_PrintedColorRear']").last().attr("value_ppwaerid", value_id + 1);
                $("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_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);
                $("select[name='selPlateType']").last().attr("value_selwaerid", value_id + 1);
@@ -553,6 +582,8 @@
                $("input[name='PSF_PaperId3']").last().attr("value_PpWaerId", value_id + 1);
                //                $("select[name='PSF_OpenSpecifications']").last().val("小全开");
                //$("p[name='PSF_OpenSpecificationsspan']").last().text("开数");
                //$("p[name='PSF_OpenWidthspan']").last().text("长度(mm)");
                $("select[name='PSF_OpenSpecifications']").last().change();
                $("select[name='PSF_PrintedColorRear']").last().change();
@@ -562,6 +593,10 @@
                $("select[name='selPlateType']").last().val("本厂CTP");
                $("select[name='selPlateType']").last().change();
                $("select[name='PSF_OpenSpecifications']").last().val("8开");
                $("select[name='PSF_OpenSpecifications']").last().change();
                $("input[name='CTPSpecName']").last().val("395*460");
                $("select[name='PSF_PressesDesk']").last().change();
                //                $("select[name='PSF_Component']").last().val("内页");
                $("input[name='PSF_PNum']").last().val("");
@@ -570,7 +605,7 @@
                $("input[name='PSF_PrintedCount']").last().val("");
                $("input[name='PSF_PrintedPositive']").last().val("");
                $("input[name='PSF_LastNum']").last().last().val("");
                $("input[name='CTPSpecName']").last().val("");
               // $("input[name='CTPSpecName']").last().val("");
                $("input[name='CTPCount']").last().last().val("");
            });
@@ -687,6 +722,84 @@
                }
            });
            $("select[name='PSF_PressesDesk']").live("change", function () {
                var value_SelWaerId = $(this).attr("value_selspec");
                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");
                    $("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();
                    $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
                }
                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");
                    $("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();
                    $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
                }
                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");
                    $("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();
                    $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
                }
                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");
                    $("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();
                    $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
                    $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
                    $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show();
                    $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
                }
                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");
                    $("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();
                    $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("755");
                    $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").hide();
                    $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                    $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                    $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").show();
                }
              });
            $("select[name='PSF_PrintedColorRear']").live("change", function () {
                var value_SelWaerId = $(this).attr("value_ppwaerid");
                if ($(this).val() == "0色") {
@@ -726,6 +839,17 @@
            $("select[name='selPlateType']").each(function (ii, vv) {
                $(vv).change();
            });
            $("select[name='PSF_OpenSpecifications']").each(function (ii, vv) {
                var keyid = "<%=keyid %>";
                 if (keyid != "") {
                 } else {
                     $(vv).val("8开");
                 }
             });
            $("select[name='PSF_OpenSpecifications']").each(function (ii, vv) {
                var keyid = "<%=keyid %>";
                if (keyid != "") {
@@ -734,6 +858,40 @@
                    $(vv).change();
                }
            });
            $("select[name='PSF_PressesDesk']").each(function (ii, vv) {
                var keyid = "<%=keyid %>";
                if (keyid != "") {
                    var value_SelWaerId = $(this).attr("value_selspec");
                     if ($(vv).val().indexOf('轮转') >= 0) {
                         $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").hide();
                         $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").hide();
                         $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                         $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                         $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                         $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").show();
                     }
                 }
             });
            $("input[name='CTPSpecName']").each(function (ii, vv) {
                var keyid = "<%=keyid %>";
                 if (keyid != "") {
                 } else {
                     $(vv).val("395*460");
                }
            });
            $(function () {
                $(".FromWarehouse").click(function () {
@@ -753,6 +911,49 @@
                });
            });
            $(".xialap").hover(function () {
                $(this).find(".xialapb").show();
            }, function () {
                $(this).find(".xialapb").hide();
            });
            $(".xialapr").hover(function () {
                $(this).find(".xialapb").show();
                $(this).removeClass("xialapr").addClass("xialaprh");
            }, function () {
                $(this).removeClass("xialaprh").addClass("xialapr");
                $(this).find(".xialapb").hide();
            });
            $(".xialapr").click(function () {
                $(this).parent().parent().find("input").val($(this).text());
                $(".xialapb").hide();
            });
            $(".xialapp").hover(function () {
                $(this).find(".xialapbp").show();
            }, function () {
                $(this).find(".xialapbp").hide();
            });
            $(".xialaprp").hover(function () {
                $(this).find(".xialapbp").show();
                $(this).removeClass("xialaprp").addClass("xialaprhp");
            }, function () {
                $(this).removeClass("xialaprhp").addClass("xialaprp");
                $(this).find(".xialapbp").hide();
            });
            $(".xialaprp").click(function () {
                $(this).parent().parent().find("input").val($(this).text());
                $(".xialapbp").hide();
            });
        });
        function CorrectText() {