| | |
| | | <script src="../../js/business/Order.js?v=25" type="text/javascript"></script> |
| | | <!--前台页面end--> |
| | | <script type="text/javascript" language="javascript"> |
| | | |
| | | function jsPrice(dj) { |
| | | var num = $("#printCount").val(); |
| | | |
| | | $("#txtSumPrice").val(dj * num); |
| | | } |
| | | |
| | | function jsdjPrice(zj) { |
| | | var num = $("#printCount").val(); |
| | | |
| | | $("#txtUnitPrice").val( (zj/num).toFixed(4) ); |
| | | } |
| | | |
| | | function ReBindClients() { |
| | | $.ajax({ |
| | | url: "/Pages/business/OrderEdit.aspx", |
| | |
| | | 订单单价: |
| | | </td> |
| | | <td align="left"> |
| | | <input id='txtUnitPrice' runat="server" maxlength='9' class='float' /> |
| | | <input id='txtUnitPrice' runat="server" maxlength='9' class='float' onchange="jsPrice(this.value)" /> |
| | | </td> |
| | | <td align="right"> |
| | | 订单总价: |
| | | </td> |
| | | <td align="left"> |
| | | <input id='txtSumPrice' runat="server" maxlength='9' value='0' class="req float" min="0" /> |
| | | <input id='txtSumPrice' runat="server" maxlength='9' value='0' class="req float" min="0" onchange="jsdjPrice(this.value)" /> |
| | | </td> |
| | | <td align="right"> |
| | | 校稿方式: |
| | |
| | | <td class="contentLeft" colspan="2" style=" padding-left:300px;"> |
| | | <input type="hidden" id='txtKeyid' runat="server" value='0' /><input type="hidden" value='0' id='txtBillMode' runat="server" /> |
| | | <input type="hidden" name='Target' value='default' /> |
| | | <input name='hidPrintTypeId' id='hidPrintTypeId' type="hidden" /><input type="button" id="btnSaveask" runat="server" value="保存订单和要求" onclick="if(!Saveyaoqiu())return false;" /> <input type="button" id="btnSave" runat="server" value="保存订单" onclick="if(!Save())return false;" /> <input type="button" value="重 置" id='btnReset' onclick="ReLoad()" /> |
| | | <input name='hidPrintTypeId' id='hidPrintTypeId' type="hidden" /> |
| | | <input type="button" id="btnSaveask" runat="server" value="保存订单和要求" onclick="if(!Saveyaoqiu())return false;" /> <input type="button" id="btnSave" runat="server" value="保存订单" onclick="if(!Save())return false;" /> <input type="button" value="重 置" id='btnReset' onclick="ReLoad()" /> |
| | | |
| | | |
| | | |
| | |
| | | showWait(); |
| | | var OldOrderId = document.getElementById('txtKeyid').value; |
| | | var ssselPrintTypes = document.getElementById('selPrintTypes').value; |
| | | alert(7); |
| | | if (ssselPrintTypes == -1 || ssselPrintTypes == "-1") {//其他类型 |
| | | $("#hidOrderId").val(OldOrderId); |
| | | $("#divInquiry").load("/Pages/front/OtherType.aspx", { "PrintTypeId": "-1" }); |
| | | setTimeout(function () { |
| | | alert(8); |
| | | if (sel.value != "" || sel.value == "0") { |
| | | BindControl1(sel.value); |
| | | } |
| | | }, 1000); |
| | | |
| | | window.hideWaitDiv = window.parent.parent.parent.parent.parent.parent.hideWaitDiv; |
| | | if (window.hideWaitDiv) window.hideWaitDiv(); |
| | | } else { |
| | | if (window.hideWaitDiv) |
| | | window.hideWaitDiv(); |
| | | } |
| | | else |
| | | { |
| | | DelayLoadPrintType1(ssselPrintTypes, '1', OldOrderId, 'order'); |
| | | } |
| | | document.getElementById('hidPrintTypeId').value = ssselPrintTypes; |
| | |
| | | |
| | | //修改反绑数据 |
| | | function BindControl1(orderId) { |
| | | alert(1); |
| | | if (parseInt(orderId) > 0) { |
| | | $.ajax({ |
| | | url: '/Pages/front/InquiryOnLine.aspx?tmp' + (new Date()).valueOf(), |
| | | type: "POST", |
| | | data: "BindControl1=true&OrderId=" + orderId, |
| | | success: function (dataJsonStr) { |
| | | alert(2); |
| | | if (dataJsonStr == null || dataJsonStr == "") |
| | | return; |
| | | var dataJson = eval('(' + dataJsonStr + ')'); |
| | | alert(dataJson.PrintTypeId); |
| | | if (dataJson.PrintTypeId == "-1" || dataJson.PrintTypeId == -1) { |
| | | $("[name='printSizeName']").val(dataJson.PrintSizeName); |
| | | $("[name='printCount']").val(dataJson.PrintCount); |
| | | $("#ysUnit").attr("value", dataJson.Unit); |
| | | $("[name='txtPrintDemand']").val(dataJson.PrintDemand); |
| | | } else { |
| | | BindControlByPrintType(dataJson); |
| | |
| | | |
| | | |
| | | function LoadPrintType1(printTypeId, pvcTypePar, OrderId) { |
| | | alert(4); |
| | | $("#hidOrderId").val(OrderId); |
| | | switch (printTypeId) { |
| | | //名片 |
| | |
| | | |
| | | //动态加载页面后执行的语句 |
| | | function ExcuteCallBack1() { |
| | | alert(5); |
| | | var printTypeId = $("#hidPrintTypeId").val(); |
| | | |
| | | $("#selDigitalPrintType").live("change", |
| | |
| | | |
| | | var ssselprintask = $("#selprintask").val(); |
| | | //修改反绑数据 |
| | | alert(3); |
| | | if (ssselprintask != "" || ssselprintask == "0") { |
| | | BindControl1(ssselprintask); |
| | | } |