CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx
@@ -77,6 +77,80 @@
                $(this).parent().parent().find("input").val($(this).text());
                $(".xialapb").hide();
            });
            var selmachine = document.getElementById('selPMS_Machine');
            if (selmachine.value.indexOf('轮转') >= 0) {
                //var select = document.getElementById("PSF_Typesetting");
                //var option = select.options[0]; // index是要修改的option的索引
                //option.text = "扣版";
                //option.value = "扣版";
                //var option1 = select.options[1]; // index是要修改的option的索引
                //option1.text = "单面";
                //option1.value = "单面";
                // 获取select元素
                var selectElement = document.getElementById('PSF_Typesetting');
                var sssssss = selectElement.value;
                // 清空现有的option
                selectElement.innerHTML = '';
                const newOptions = [
                    { value: '扣版', text: '扣版' },
                    { value: '单面', text: '单面' }
                ];
                // 4. 批量新增option到select中(2种方法,按需选择)
                // 方法1:循环创建Option对象(标准DOM操作,推荐,兼容性最好)
                newOptions.forEach(option => {
                    // 创建option元素:new Option(显示文本, 实际值)
                    const opt = new Option(option.text, option.value);
                    // 将option添加到select中
                    selectElement.add(opt);
                });
                selectElement.value = sssssss;
            } else {
                //var select = document.getElementById("PSF_Typesetting");
                //var option = select.options[0]; // index是要修改的option的索引
                //option.text = "扣版";
                //option.value = "扣版";
                //var option1 = select.options[1]; // index是要修改的option的索引
                //option1.text = "单面";
                //option1.value = "单面";
                // 获取select元素
                var selectElement = document.getElementById('PSF_Typesetting');
                var sssssss = selectElement.value;
                // 清空现有的option
                selectElement.innerHTML = '';
                const newOptions = [
                    { value: '自翻', text: '自翻' },
                    { value: '滚翻', text: '滚翻' },
                    { value: '扣版', text: '扣版' },
                    { value: '单面', text: '单面' }
                ];
                // 4. 批量新增option到select中(2种方法,按需选择)
                // 方法1:循环创建Option对象(标准DOM操作,推荐,兼容性最好)
                newOptions.forEach(option => {
                    // 创建option元素:new Option(显示文本, 实际值)
                    const opt = new Option(option.text, option.value);
                    // 将option添加到select中
                    selectElement.add(opt);
                });
                selectElement.value = sssssss;
            }
        });
    </script>
@@ -151,6 +225,56 @@
               document.getElementById('PrintSizeName').value = "";
           }   
        }
        $("#PSF_Typesetting").live("change", function () {
            if ($("#selPMS_Machine").val().indexOf('六开') >= 0 ) {
                if ($("#PSF_Typesetting").val() == "扣版" || $("#PMS_ChromaticNumber").val() == "2") {
                    $("#CTPCount").val("2");
                } else {
                    $("#CTPCount").val("1");
                }
            }
            if ( $("#selPMS_Machine").val().indexOf('黑白') >= 0) {
                if ($("#PSF_Typesetting").val() == "扣版") {
                    $("#CTPCount").val("2");
                } else {
                    $("#CTPCount").val("1");
                }
            }
            if ($("#selPMS_Machine").val().indexOf('四色') >= 0 || $("#selPMS_Machine").val().indexOf('八色') >= 0) {
                if ($("#PSF_Typesetting").val() == "扣版") {
                    $("#CTPCount").val("8");
                } else {
                    $("#CTPCount").val("4");
                }
            }
        });
        $("#PMS_ChromaticNumber").live("change", function () {
            if ($("#selPMS_Machine").val().indexOf('六开') >= 0 ) {
                if ($("#PSF_Typesetting").val() == "扣版" || $("#PMS_ChromaticNumber").val() == "2") {
                    $("#CTPCount").val("2");
                } else {
                    $("#CTPCount").val("1");
                }
            }
        });
        /*
交易客户选中值发生改变
*/
@@ -161,26 +285,106 @@
            if (sel.value.indexOf('六开') >= 0) {
                document.getElementById('PlateSpec').value = '395*460';
                document.getElementById('PMS_ChromaticNumber').value = '1';
                /*document.getElementById('CTPCount').value = '8';*/
                if ($("#PSF_Typesetting").val() == "扣版") {
                    $("#CTPCount").val("2");
                } else {
                    $("#CTPCount").val("1");
                }
            } else if (sel.value.indexOf('四色') >= 0 ) {
            } else if (sel.value.indexOf('四色') >= 0) {
                document.getElementById('PlateSpec').value = '770*1030';
                document.getElementById('PMS_ChromaticNumber').value = '4';
               /* document.getElementById('CTPCount').value = '2';*/
                if ($("#PSF_Typesetting").val() == "扣版") {
                    $("#CTPCount").val("8");
                } else {
                    $("#CTPCount").val("4");
                }
            } else if (sel.value.indexOf('八色') >= 0) {
                document.getElementById('PlateSpec').value = '790*1030';
                document.getElementById('PMS_ChromaticNumber').value = '4';
             /*   document.getElementById('CTPCount').value = '2';*/
            } else if (sel.value.indexOf('黑白') >= 0 ) {
                if ($("#PSF_Typesetting").val() == "扣版") {
                    $("#CTPCount").val("8");
                } else {
                    $("#CTPCount").val("4");
                }
            } else if (sel.value.indexOf('黑白') >= 0) {
                document.getElementById('PlateSpec').value = '760*920';
                document.getElementById('PMS_ChromaticNumber').value = '1';
              /*  document.getElementById('CTPCount').value = '2';*/
                if ($("#PSF_Typesetting").val() == "扣版") {
                    $("#CTPCount").val("2");
                } else {
                    $("#CTPCount").val("1");
                }
            } else if (sel.value.indexOf('轮转') >= 0) {
                document.getElementById('PlateSpec').value = '579*810';
                document.getElementById('PMS_ChromaticNumber').value = '1';
               /* document.getElementById('CTPCount').value = '';*/
                document.getElementById('CTPCount').value = '2';
            } else {
                document.getElementById('CTPCount').value = '';
            }
            if (sel.value.indexOf('轮转') >= 0) {
                //var select = document.getElementById("PSF_Typesetting");
                //var option = select.options[0]; // index是要修改的option的索引
                //option.text = "扣版";
                //option.value = "扣版";
                //var option1 = select.options[1]; // index是要修改的option的索引
                //option1.text = "单面";
                //option1.value = "单面";
                // 获取select元素
                var selectElement = document.getElementById('PSF_Typesetting');
                // 清空现有的option
                selectElement.innerHTML = '';
                const newOptions = [
                    { value: '扣版', text: '扣版' },
                    { value: '单面', text: '单面' }
                ];
                // 4. 批量新增option到select中(2种方法,按需选择)
                // 方法1:循环创建Option对象(标准DOM操作,推荐,兼容性最好)
                newOptions.forEach(option => {
                    // 创建option元素:new Option(显示文本, 实际值)
                    const opt = new Option(option.text, option.value);
                    // 将option添加到select中
                    selectElement.add(opt);
                });
            } else {
                //var select = document.getElementById("PSF_Typesetting");
                //var option = select.options[0]; // index是要修改的option的索引
                //option.text = "扣版";
                //option.value = "扣版";
                //var option1 = select.options[1]; // index是要修改的option的索引
                //option1.text = "单面";
                //option1.value = "单面";
                // 获取select元素
                var selectElement = document.getElementById('PSF_Typesetting');
                // 清空现有的option
                selectElement.innerHTML = '';
                const newOptions = [
                    { value: '自翻', text: '自翻' },
                    { value: '滚翻', text: '滚翻' },
                     { value: '扣版', text: '扣版' },
                    { value: '单面', text: '单面' }
                ];
                // 4. 批量新增option到select中(2种方法,按需选择)
                // 方法1:循环创建Option对象(标准DOM操作,推荐,兼容性最好)
                newOptions.forEach(option => {
                    // 创建option元素:new Option(显示文本, 实际值)
                    const opt = new Option(option.text, option.value);
                    // 将option添加到select中
                    selectElement.add(opt);
                });
            }
           
           
        }
@@ -295,7 +499,7 @@
                    </td>
                    <td>
                        <%--<input type="text" name="PO_Requirement" class=" noJ" style="width: 300px;" value="<%#Eval("PrintDemandAfterWorksDemand") %>" />--%>
                        <input type="text" name="PO_Requirement" class=" noJ" style="width: 405px;" />
                        <input type="text" name="PO_Requirement" class=" noJ" maxlength="500" style="width: 405px;" value="<%#Eval("PrintDemandAfterWorksDemand")%>" />
                        <%--<%#Eval("m_InquiryCommonModel.PrintDemand")%><%#Eval("m_InquiryCommonModel.AfterWorksDemand")%>--%>
                    </td>
                </tr>
@@ -401,7 +605,7 @@
                    <select keepDefaultStyle="true"   name="PSF_Typesetting" id="PSF_Typesetting" runat = "server" style="width:80px">
                        <option value="自翻">自翻</option>
                        <option value="滚翻">滚翻</option>
                        <option value="扣板">扣板</option>
                        <option value="扣版">扣版</option>
                        <option value="单面">单面</option>
                    </select>
                </td>