<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderEdit.aspx.cs" Inherits="CY.WebForm.Pages.business.OrderEdit" %>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head id="Head1" runat="server">
|
<title>订单编辑</title>
|
<uc:CMSHead ID="CMSHead1" runat="server" />
|
<!--前台页面start-->
|
<link rel="stylesheet" type="text/css" href="../../Styles/base.css" />
|
<link href="../../Styles/changes.css" rel="stylesheet" type="text/css" />
|
<link href="../../Styles/ParticularWQJ.css" rel="stylesheet" type="text/css" />
|
<script src="../../js/Inquiry/Inquiry.js?v=153" type="text/javascript"></script>
|
<script src="../../js/business/Order.js?v=43" 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",
|
type: "POST",
|
dataType: "html",
|
data: { Target: "ReBindClients"},
|
global: false,
|
cache: false,
|
async: false,
|
success: function (data) {
|
$("#selCustormer").html(data);
|
}
|
});
|
}
|
|
///新增客户
|
function showCustomer() {
|
top.Dialog.open({ URL: "/Pages/business/CorporateClientsEdit.aspx?src=order", Title: "新增客户", Width: 1200, Height: 780 });
|
}
|
|
function Saveyaoqiu() {
|
if (document.getElementById('txtSumPrice').value == "" || parseFloat(document.getElementById('txtSumPrice').value) <=0 ) {
|
if (!confirm("订单总价为0,是否继续保存?"))
|
return false;
|
}
|
|
|
if (document.getElementById('selPrintTypes').value != "6") {
|
alertMsg("目前只保存书刊要求!");
|
return false;
|
}
|
return ValidateForm();
|
}
|
|
//为Select新增过滤功能
|
function SelectAddSearch() {
|
$("select[SelInputHtml='True']").each(function (i, v) {
|
$(this).unbind("blur");
|
var old = $(this).html();
|
var oldObject = $(this).clone();
|
var sign = "selectS" + i;
|
$(v).attr("sign", sign);
|
|
var inputClass = "input_" + sign;
|
var html = "<span style='margin-left:10px'>过滤:</span><input type='text' class='" + inputClass + "' style='width:80px;height:18px;line-height:18px;'/><span onclick='showCustomer()' style=\"padding-left:10px;\" class=\"a_under\">新增客户</span>";
|
$(v).after(html);
|
$("." + inputClass).blur(function () {
|
var nowval = $(this).val().trim();
|
var output = "";
|
if (nowval == "" || nowval == null) {
|
output = old;
|
} else {
|
output += "<option value=''>请选择</option>";
|
var valueArr = new Array();
|
oldObject.find("option").each(function (ii, vv) {
|
|
var value = $.trim($(vv).attr("value"));
|
var text = $.trim($(vv).text());
|
|
if (text.indexOf(nowval) >= 0)
|
valueArr.push(value + "|||" + text);
|
});
|
for (var ss in valueArr) {
|
var s = valueArr[ss];
|
if (s.split("|||").length == 2) {
|
var value1 = s.split("|||")[0];
|
var text1 = s.split("|||")[1];
|
output += "<option value='" + value1 + "'>" + text1 + "</option>";
|
}
|
}
|
}
|
$(v).html(output);
|
});
|
});
|
}
|
|
window.FastKeyDistinctived = true; //例外快捷键(不使用通用快捷键)
|
var keyDownHook = new KeyBehaviorHook('keydown');
|
keyDownHook.Regist(window.Keys.S, "ClickElement('btnSave')", window.WithKey.Ctrl); //Ctrl+s 保存
|
keyDownHook.Regist(window.Keys.Enter, "ClickElement('btnSave')", window.WithKey.Ctrl); //Ctrl+Enter 保存
|
keyDownHook.Regist(window.Keys.R, "ClickElement('btnReset')", window.WithKey.Ctrl); //Ctrl+R 重置
|
keyDownHook.Regist(window.Keys.Q, "ClickElement('btnBackList')", window.WithKey.Ctrl); //Ctrl+Q 退出(Quit)
|
|
$(function () {
|
SelectAddSearch();
|
keyDownHook.Binding();
|
global.SetReqMsg();
|
try {
|
document.getElementById('spnCustormerControl').style.display = document.getElementById('txtCustormerName') ? 'none' : '';
|
if ('0' == document.getElementById('txtKeyid').value) {
|
document.getElementById('txtDeliveryTime').value = new Date().ToFuture({ day: 2 }).ToString('yyyy-MM-dd');
|
document.getElementById('selPrintTypes').value = "29";
|
printTypeChange(document.getElementById('selPrintTypes'));
|
ReceiptT('customer', '', 6, 120); return;
|
} else {
|
ReceiptT('order', '<%=Orderid %>', 6, 120);
|
}
|
document.getElementById('selPrintTypes').style.display = 'none';
|
document.getElementById('spnPrintType').innerHTML = document.getElementById('txtPrintTypes').value;
|
//document.getElementById('div_PrintParams').style.display = 'none'; //将展示的印刷参数显示出来
|
printTypeChange(document.getElementById('selPrintTypes'));
|
} catch (e) {
|
|
}
|
var orderTypeId = $("#hidOrderTypeId").val();
|
if (orderTypeId != "1") {
|
$("#tbBasic").attr("disabled", true);
|
$("#divInquiry").attr("disabled", true);
|
setTimeout(displayControl, 1000);
|
}
|
|
$("#div_InquiryEdit").render();
|
});
|
|
//window.custormers = {};
|
|
function displayControl() {
|
$("#InsideOpDiv").hide();
|
}
|
|
|
|
</script>
|
<style type="text/css">
|
.table2Left td { text-align: left; }
|
.table2Left .alignR { text-align: right; }
|
</style>
|
</head>
|
<body style='padding: 0; margin: 0;'>
|
<form id="form1" runat="server" style='padding: 0; margin: 0;' class='form2'>
|
<input type="hidden" id="hidOrderId" name="hidOrderId" />
|
<input name="Target" value='save' type="hidden" />
|
<input type="hidden" id="hidOrderTypeId" value="" runat="server" />
|
<%--<asp:Repeater ID='rptCustormer' runat="server">
|
<ItemTemplate>
|
<script type='text/javascript'>
|
window.custormers['<%#Eval("MemberId") %>'] = { id: '<%#Eval("MemberId") %>', level: '<%#Eval("DegreeImportanId") %>', bmid: '<%#Eval("BusinessManagerId") %>', cmid: '<%#Eval("AccountManagerId") %>' };
|
</script>
|
</ItemTemplate>
|
</asp:Repeater>--%>
|
<table class="table2" id="tbBasic" align="left" style=" width:1000px;">
|
<thead>
|
<tr>
|
<th colspan="8">
|
基本信息
|
</th>
|
</tr>
|
</thead>
|
<tr style=" height:1px;">
|
<td style="border:none;width: 100px;">
|
</td>
|
<td style="border:none; width:161px;">
|
</td>
|
<td style="border:none;width: 100px;">
|
</td>
|
<td style="border:none;">
|
</td>
|
<td style="border:none;width: 100px;">
|
</td>
|
<td style="border:none;">
|
</td>
|
<td style="border:none;width: 100px;">
|
</td>
|
<td style="border:none;">
|
</td>
|
</tr>
|
<tr>
|
<td align="right">
|
客户单位:
|
</td>
|
<td colspan="3" align="left">
|
<input type="hidden" id='txtCustormer' runat="server" />
|
<input id='txtCustormerName' runat="server" readonly="readonly" /><span id='spnCustormerControl'><select id='selCustormer' runat="server" keepdefaultstyle='true' datavaluefield='MemberId' datatextfield='CompanyName' onchange='custormerChange(this)' class='Sreq' selinputhtml="True" sign="" style=" width:123px;"></select>
|
<%--<input type="button" value='新增' keepdefaultstyle='true' onclick="top.Dialog.open({ URL: '/Pages/business/CorporateClientsEdit.aspx', Title: '新增客户', Width: 900, Height: 680});" />--%>
|
</span>
|
<input type='hidden' runat="server" id='txtCompanyName' />
|
</td>
|
<td align="right">
|
客户级别:
|
</td>
|
<td align="left">
|
<select id='selCustormerLevel' class='Sreq' runat="server" datatextfield="Name" datavaluefield="Keyid" keepdefaultstyle='true'>
|
</select>
|
<!--datavaluefield="MeanValue"-->
|
</td>
|
<td align="right">
|
订单类型:
|
</td>
|
<td align="left">
|
<span id='spnPrintType'></span>
|
<input type="hidden" id='txtPrintTypes' runat="server" />
|
<select id='selPrintTypes' runat="server" datatextfield="PrintName" datavaluefield="Keyid" keepdefaultstyle='true' onchange='printTypeChange(this)' class=' Sreq'>
|
</select>
|
</td>
|
|
</tr>
|
<tr>
|
<td align="right">
|
订单编号:
|
</td>
|
<td align="left">
|
<input id='txtOrderId' runat="server" onfocus='this.blur();' />
|
</td>
|
<td align="right">
|
紧急程度:
|
</td>
|
<td align="left">
|
<select id='selExigencyDegree' runat="server" datatextfield="Name" datavaluefield="MeanValue" keepdefaultstyle='true'>
|
</select>
|
</td>
|
<td align="right" id="selVerifyWay123">
|
交货时间:
|
</td>
|
<td align="left" id="selVerifyWay321">
|
<input id='txtDeliveryTime' class='date' runat="server" />
|
</td>
|
<td align="right">
|
已有印件:
|
</td>
|
<td align="left">
|
<select id='selprintask' runat="server" keepdefaultstyle='true' datavaluefield="Keyid" datatextfield='Name' style="width:150px;" onchange='printTypeChange1(this)' >
|
<option value="" >请选择</option>
|
</select>
|
</td>
|
</tr>
|
|
<tr>
|
<td align="right">
|
印件名称:
|
</td>
|
<td align="left">
|
<input id='txtDocumentName' runat="server" maxlength='200' class='req' style="width:200px;" />
|
<input type='hidden' id='txtDocumentNameHide' />
|
</td>
|
<td align="right" id="selVerifyWay1234">
|
订单单价:
|
</td>
|
<td align="left" id="selVerifyWay4321">
|
<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='16' value='0' class="req float" min="0" onchange="jsdjPrice(this.value)" />
|
</td>
|
<td align="right" id="selVerifyWay12">
|
校稿方式:
|
</td>
|
<td align="left" id="selVerifyWay21">
|
<select id='selVerifyWay' class=' Sreq' runat="server" datatextfield="Name" datavaluefield="MeanValue" keepdefaultstyle='true'>
|
</select>
|
</td>
|
|
</tr>
|
<tr>
|
<td align="right">
|
业务经理:
|
</td>
|
<td align="left">
|
<select id='selBusinessManagers' runat="server" keepdefaultstyle='true' datavaluefield="Keyid" datatextfield='Name'>
|
</select>
|
</td>
|
<td align="right">
|
客户经理:
|
</td>
|
<td align="left">
|
<select id='selCustormerManagers' runat="server" keepdefaultstyle='true' datavaluefield="Keyid" datatextfield='Name'>
|
</select>
|
</td>
|
<td align="right">
|
联 系 人:
|
</td>
|
<td align="left">
|
<input id='txtContact' runat="server" maxlength="20" />
|
</td>
|
<td align="right">
|
联系电话:
|
</td>
|
<td align="left">
|
<input id='txtPhone' runat="server" class='' />
|
</td>
|
|
</tr>
|
|
<tr>
|
<td align="right">
|
联系Q Q:
|
</td>
|
<td align="left">
|
<input id='txtQQ' runat="server" maxlength="50" />
|
</td>
|
<td align="right">
|
|
</td>
|
<td align="left">
|
|
</td>
|
<td align="right">
|
|
</td>
|
<td align="left">
|
|
</td>
|
<td align="right">
|
|
</td>
|
<td align="left">
|
|
</td>
|
</tr>
|
</table>
|
|
<div id='div_InquiryEdit' style='display: block;'>
|
<div id="divInquiry" style=' display: block;width:1010px;' >
|
</div>
|
<br />
|
<table class="table2 table2Left" id="Duiyinghetongbianhao" align="left" style=" width:1000px;">
|
<tr style=" height:11px;">
|
<td style="width:100px;text-align:right;">
|
对应合同序号:
|
</td>
|
<td style="text-align:left;" >
|
<input id='txtDuiyinghetongbianhao' runat="server" maxlength="100" style="width:300px;" />
|
</td>
|
</tr>
|
</table>
|
<br />
|
<table class="table2 table2Left" align="left" style=" width:1000px;">
|
<thead>
|
<tr>
|
<th colspan="6">
|
送货方式
|
</th>
|
</tr>
|
</thead>
|
<tr id='ReceiptT_Html' style=" height:11px;">
|
<td style="width: 100px;">
|
</td>
|
<td style="width:161px;">
|
</td>
|
<td style="width: 100px;">
|
</td>
|
<td style="width:156px;">
|
</td>
|
<td style="width: 100px;">
|
</td>
|
<td style="">
|
</td>
|
</tr>
|
</table>
|
</div>
|
<br />
|
<table class="table2" id="tbFacing" align="left" style=" width:1000px;">
|
<thead>
|
<tr>
|
<th colspan="4">
|
包装要求
|
</th>
|
</tr>
|
</thead>
|
<tr style=" height:1px;">
|
<td style="border:none;width: 100px;">
|
</td>
|
<td style="border:none; width:161px;">
|
</td>
|
<td style="border:none;width: 100px;">
|
</td>
|
<td style="border:none;">
|
</td>
|
<td style="border:none;width: 100px;">
|
</td>
|
<td style="border:none;">
|
</td>
|
<td style="border:none;width: 100px;">
|
</td>
|
<td style="border:none;">
|
</td>
|
</tr>
|
<tr id="trbook" style = "display:none">
|
<td align="right">
|
书号:
|
</td>
|
<td align="left">
|
<input id='txtBookNumber' runat="server" maxlength='200' />
|
</td>
|
<td align="right">
|
定价:
|
</td>
|
<td align="left">
|
<input id='txtBookPrice' runat="server" maxlength='9' class='float' />
|
</td>
|
</tr>
|
<tr id="trPerBag">
|
<td align="right">
|
每包数量:
|
</td>
|
<td align="left">
|
<input id='txtNumberPerBag' runat="server" maxlength='200' onblur="NumberPerBagBlur()"/>
|
</td>
|
<td align="right">
|
总包数:
|
</td>
|
<td align="left">
|
<input id='txtBagNum' runat="server" maxlength='9' onblur="bagNumBlur()"/>
|
</td>
|
</tr>
|
</table>
|
<br />
|
<table class="table2" align="left" style=" width:1000px;">
|
<tbody>
|
|
<tr>
|
<td style="width: 100px; text-align:right;">
|
印刷、打包、送货要求:
|
</td>
|
<td style=" text-align:left;">
|
<textarea id="txtPrintPackDeliveryRequir" name="txtPrintPackDeliveryRequir" runat="server" style="width: 692px; height: 30px;"></textarea>
|
</td>
|
</tr>
|
<tr>
|
<td style="width: 100px; text-align:right;">
|
备注:
|
</td>
|
<td style=" text-align:left;">
|
<textarea id="txtRemark" name="txtRemark" runat="server" style="width: 692px; height: 30px;"></textarea>
|
</td>
|
</tr>
|
<tr>
|
<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 type="button" value="返回列表" id='btnBackList' onclick="window.location='OrderList.aspx';" />
|
</td>
|
</tr>
|
<tr>
|
<td colspan="2">
|
|
</td>
|
</tr>
|
</tbody>
|
</table>
|
</form>
|
|
</body>
|
<script type="text/javascript" language="javascript">
|
function NumberPerBagBlur() {
|
var count = document.getElementById('printCount').value;
|
var numPerBag = parseInt($("#txtNumberPerBag").val());
|
|
if (isNaN(count)) {
|
|
$("#txtBagNum").val(0);
|
}
|
else {
|
|
var bagNum = parseInt(count / numPerBag);
|
$("#txtBagNum").val(bagNum);
|
}
|
|
}
|
function bagNumBlur() {
|
var count = document.getElementById('printCount').value;
|
var bagNum = parseInt($("#txtBagNum").val());
|
|
if (isNaN(count)) {
|
|
$("#txtNumberPerBag").val(0);
|
|
}
|
else {
|
var numPerBag = parseInt(count / bagNum);
|
$("#txtNumberPerBag").val(numPerBag);
|
}
|
}
|
|
/*
|
印刷类型选中值改变方法
|
*/
|
function printTypeChange1(sel) {
|
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
|
{
|
DelayLoadPrintType1(ssselPrintTypes, '1', OldOrderId, 'order');
|
}
|
document.getElementById('hidPrintTypeId').value = ssselPrintTypes;
|
if ($("#txtKeyid").val() == "0") {
|
//document.getElementById('txtDocumentName').value = sel.value ? sel.options[sel.selectedIndex].text : '';
|
}
|
if (ssselPrintTypes == 6) {
|
document.getElementById('trbook').style.display = '';
|
}
|
else {
|
document.getElementById('trbook').style.display = 'none';
|
}
|
|
if (ssselPrintTypes == 37) {
|
document.getElementById('tbFacing').style.display = 'none';
|
document.getElementById('selVerifyWay12').style.display = 'none';
|
document.getElementById('selVerifyWay21').style.display = 'none';
|
//document.getElementById('selVerifyWay123').style.display = 'none';
|
//document.getElementById('selVerifyWay321').style.display = 'none';
|
|
document.getElementById('txtDeliveryTime').value = "";
|
|
|
}
|
else {
|
document.getElementById('tbFacing').style.display = '';
|
document.getElementById('selVerifyWay12').style.display = '';
|
document.getElementById('selVerifyWay21').style.display = '';
|
}
|
}
|
|
|
|
//修改反绑数据
|
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);
|
}
|
}
|
});
|
|
|
$.ajax({
|
url: '/Pages/business/OrderEdit.aspx?tmp' + (new Date()).valueOf(),
|
type: "POST",
|
data: "Target=getPrintAsk2&OrderId=" + orderId,
|
success: function (dataJsonStr) {
|
|
if (dataJsonStr == null || dataJsonStr == "")
|
return;
|
var dataJson = $.parseJSON(dataJsonStr);
|
|
|
$("#txtContact").val(dataJson.BusinessManagers);
|
$("#txtPhone").val(dataJson.ManagersMobile);
|
$("#txtQQ").val(dataJson.ManagersQQ);
|
$("#txtPrintPackDeliveryRequir").val(dataJson.Deliveryrequirements);
|
|
|
$("#txtDocumentName").val(dataJson.DocumentName);
|
$("#txtUnitPrice").val(dataJson.UnitPrice.toFixed(2));
|
$("#txtSumPrice").val(dataJson.SumPrice.toFixed(2));
|
|
}
|
});
|
}
|
}
|
|
|
function DelayLoadPrintType1(printid, pvctype, orderkeyid) {
|
if (window.delaier) {
|
clearTimeout(window.delaier);
|
}
|
|
window.delaier = setTimeout(function () {
|
LoadPrintType1(printid, pvctype, orderkeyid);
|
}, '0' == orderkeyid ? 1000 : 0); //延迟两秒执行
|
}
|
|
|
function LoadPrintType1(printTypeId, pvcTypePar, OrderId) {
|
//alert(4);
|
$("#hidOrderId").val(OrderId);
|
switch (printTypeId) {
|
//名片
|
case "13":
|
$("#divInquiry").load("/Pages/front/BusinessCard.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//DM单
|
case "14":
|
$("#divInquiry").load("/Pages/front/DMInquiry.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//画册
|
case "15":
|
$("#divInquiry").load("/Pages/front/PictureAlbumNew.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//广告纸杯
|
case "31":
|
$("#divInquiry").load("/Pages/front/AdvertisingCup.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//广告扑克
|
case "32":
|
$("#divInquiry").load("/Pages/front/AdvertisingPoker.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//平面设计
|
case "34":
|
$("#divInquiry").load("/Pages/front/GraphicDesigner.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//房卡套
|
case "35":
|
$("#divInquiry").load("/Pages/front/RoomCard.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//喷绘
|
case "17":
|
$("#divInquiry").load("/Pages/front/Airbrush.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//黑白印件
|
case "29":
|
$("#divInquiry").load("/Pages/front/BlackAndWhite.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//便签
|
case "22":
|
$("#divInquiry").load("/Pages/front/Note.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//封套
|
case "26":
|
$("#divInquiry").load("/Pages/front/Packet.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//手提袋
|
case "16":
|
$("#divInquiry").load("/Pages/front/Reticule.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//信封
|
case "21":
|
$("#divInquiry").load("/Pages/front/Envelop.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//PVC卡
|
case "33":
|
if (pvcTypePar == "1") {
|
$("#divInquiry").load("/Pages/front/PVCCard.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
}
|
else {
|
$("#divInquiry").load("/Pages/front/PortraitCard.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
}
|
break;
|
//报纸
|
case "7":
|
$("#divInquiry").load("/Pages/front/NewsPaper.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//书刊
|
case "6":
|
$("#divInquiry").load("/Pages/front/Book.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//收据联单
|
case "27":
|
$("#divInquiry").load("/Pages/front/ReceiptDocument.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//挂历
|
case "23":
|
$("#divInquiry").load("/Pages/front/Calendary.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//LED显示屏
|
case "19":
|
$("#divInquiry").load("/Pages/front/LED.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//招牌字
|
case "18":
|
$("#divInquiry").load("/Pages/front/Signboard.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//台历
|
case "25":
|
$("#divInquiry").load("/Pages/front/DeskCalendar.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//数码快印
|
case "36":
|
$("#divInquiry").load("/Pages/front/DigitalSingle.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
//不干胶
|
case "20":
|
$("#divInquiry").load("/Pages/front/Adhesive.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack1);
|
break;
|
default:
|
window.hideWaitDiv = window.parent.parent.parent.parent.parent.parent.hideWaitDiv;
|
if (window.hideWaitDiv) window.hideWaitDiv();
|
return;
|
}
|
window.hideWaitDiv = window.parent.parent.parent.parent.parent.parent.hideWaitDiv;
|
if (window.hideWaitDiv) window.hideWaitDiv();
|
}
|
|
|
//动态加载页面后执行的语句
|
function ExcuteCallBack1() {
|
// alert(5);
|
var printTypeId = $("#hidPrintTypeId").val();
|
|
$("#selDigitalPrintType").live("change",
|
function () {
|
var value = $(this).val();
|
if (value == "单张") {
|
$("#divInquiry").load("/Pages/front/DigitalSingle.aspx", { "PrintTypeId": printTypeId, "DigitalPrintType": "" + value + "" }, ExcuteCallBack1);
|
}
|
else {
|
$("#divInquiry").load("/Pages/front/DigitalBook.aspx", { "PrintTypeId": printTypeId, "DigitalPrintType": "" + value + "" }, ExcuteCallBack1);
|
}
|
}
|
);
|
|
$("#signboardCharacter").live("change",
|
function () {
|
var characterName = $(this).val();
|
if (characterName != null && characterName != "") {
|
$.ajax({
|
url: '/Pages/front/InquiryOnLine.aspx?tmp' + (new Date()).valueOf(),
|
type: "POST",
|
async: false,
|
data: "CharacterSelect=true&CharacterName=" + characterName,
|
success: function (dataStr) {
|
var option = "";
|
var thicknesss = dataStr;
|
if (thicknesss != "") {
|
$(".thickness").show();
|
var thicknessArry = thicknesss.split('|');
|
for (var i = 0; i < thicknessArry.length; i++) {
|
option += "<option value=\"" + thicknessArry[i] + "\">" + thicknessArry[i] + "</option>";
|
}
|
$("#thickness").html("");
|
$("#thickness").html(option);
|
}
|
else {
|
$(".thickness").hide();
|
$("#thickness").html("");
|
}
|
}
|
});
|
}
|
}
|
);
|
Init();
|
var orderId = $("#hidOrderId").val();
|
|
var ssselprintask = $("#selprintask").val();
|
//修改反绑数据
|
//alert(3);
|
if (ssselprintask != "" || ssselprintask == "0") {
|
BindControl1(ssselprintask);
|
}
|
$("[name='pvcType']").change(
|
function () {
|
|
var pvcTypePar = "1";
|
var typeValue = $(this).val();
|
if (typeValue == "人像卡") {
|
pvcTypePar = "2";
|
if (window.ControlNum == 2 || window.ControlNum == 0) {
|
$("#hidOrderId").val("");
|
}
|
}
|
else {
|
$("#hidOrderId").val("");
|
}
|
LoadPrintType($("#hidPrintTypeId").val(), pvcTypePar, $("#hidOrderId").val());
|
}
|
);
|
|
$("[name='sjType']").change(
|
function () {
|
var value = $(this).val();
|
if (value == 53 || value == 54 || value == 55) {
|
$(".pmYM").show();
|
}
|
else {
|
$(".pmYM").hide();
|
}
|
}
|
);
|
|
$("#SelSize").change(
|
function () {
|
var printTypeId = $("#hidPrintTypeId").val();
|
var value = $(this).val();
|
var bindModel = $("#bindingMode").val();
|
if (bindModel == 17) {
|
if (value == 95 || value == 96 || value == 85 || value == 86) {
|
if (printTypeId == 15) {
|
$(this).val(100);
|
}
|
else {
|
$(this).val(90);
|
}
|
alertMsg("64开不能精装");
|
return;
|
}
|
}
|
if (value == "95" || value == "96" || value == "103" || value == "104") {
|
$(".lf[value='18']").attr("disabled", true);
|
$(".lf[value='18']").attr("checked", false);
|
}
|
else {
|
$(".lf[value='18']").attr("disabled", false);
|
}
|
if (value == "95" || value == "96" || value == "103" || value == "104" || value == "97" || value == "98" || value == "120" || value == "121" || value == "122" || value == "123") {
|
$(".lf[value='32']").attr("disabled", true);
|
$(".lf[value='32']").attr("checked", false);
|
$("[name='LaFeng']").hide();
|
$(".doubleCover").hide();
|
$(".doubleCover").find("input:checkbox").attr("checked", false);
|
}
|
else {
|
$(".lf[value='32']").attr("disabled", false);
|
}
|
}
|
);
|
|
$(".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();
|
});
|
|
// //正整数正则表达式
|
// var reg2 = /^[0-9]\d*$/;
|
|
$(".pageNum").blur(
|
function () {
|
var isSuccess = true;
|
var isOk = true;
|
var bindingMode = $("#bindingMode").val();
|
var i = 0;
|
var tempVal = 0;
|
var nameValue = $(this).attr("name");
|
var index = nameValue.substring(nameValue.length - 1);
|
var paperId = $("[name='paper" + index + "']").val();
|
|
if (bindingMode == 15) {
|
i = 2;
|
}
|
else {
|
i = 2;
|
}
|
var value = $(this).val();
|
|
if (paperId != 18) {
|
if (!reg2.test(value)) {
|
isSuccess = false;
|
}
|
else {
|
if (parseInt(value) % i != 0) {
|
isSuccess = false;
|
}
|
}
|
var msg = "";
|
if (!isSuccess) {
|
msg = "内页的页码必须为" + i + "的倍数的正整数";
|
tempVal = 4;
|
}
|
// if (bindingMode != 14) {
|
// if (!checkBookPageNum()) {
|
// isOk = false;
|
// tempVal = 36;
|
// }
|
// }
|
// if (!isOk) {
|
// msg = "无线,锁线胶装和精装内页页码不能小于36";
|
// }
|
|
if (!isOk) {
|
$(this).focus();
|
$(this).val(tempVal);
|
alertMsg(msg);
|
}
|
else if (!isSuccess) {
|
$(this).focus();
|
$(this).val(tempVal);
|
alertMsg(msg);
|
}
|
}
|
else {
|
if (!reg2.test(value)) {
|
alertMsg("页码必须是正整数");
|
$(this).val(1);
|
}
|
}
|
}
|
);
|
|
$(".newsPageNum").blur(
|
function () {
|
var isSuccess = true;
|
var value = $(this).val();
|
if (!reg2.test(value)) {
|
isSuccess = false;
|
}
|
else {
|
if (parseInt(value) % 4 != 0) {
|
isSuccess = false;
|
}
|
}
|
if (!isSuccess) {
|
var msg = "版数必须是4的倍数的正整数";
|
$(this).focus();
|
$(this).val(8);
|
alertMsg(msg);
|
}
|
}
|
);
|
|
$("#bindingMode").change(
|
function () {
|
var value = $(this).val();
|
var isSuccess = true;
|
var isOk = true;
|
var tempVal = 0;
|
var i = 0;
|
$("[id*=paper][id!=paperSize]").each(
|
function () {
|
var paperId = $(this).val();
|
if (paperId == 18) {
|
if (value == 14 || value == 17) {
|
isSuccess = false;
|
}
|
}
|
}
|
);
|
if (!isSuccess) {
|
alertMsg("硫酸纸不能用骑马钉和精装");
|
$(this).val(15);
|
return;
|
}
|
// if (value == 15) {
|
// i = 2;
|
// }
|
// else {
|
// i = 4;
|
// }
|
// $(".pageNum").each(
|
// function () {
|
// var pageNum = $(this).val();
|
// var index = $(this).attr("name").substring($(this).attr("name").length - 1);
|
// var paperId = $("[id='paper" + index + "'][id!=paperSize]").val();
|
// if (paperId != 18) {
|
// if (value != 14) {
|
// if (parseInt(pageNum) < 36) {
|
// isOk = false;
|
// $(this).focus();
|
// $(this).val(36);
|
// }
|
// }
|
// if (isOk) {
|
// if (parseInt(pageNum) % i != 0) {
|
// isSuccess = false;
|
// $(this).focus();
|
// $(this).val(4);
|
// }
|
// }
|
// }
|
// else {
|
// if (!reg1.test(pageNum)) {
|
// alertMsg("页码必须是正数字");
|
// $(this).val(1);
|
// }
|
// }
|
// }
|
// );
|
// var msg = "";
|
// if (!isSuccess) {
|
// msg += "内页的页码必须为" + i + "的倍数的正数字(除硫酸纸)";
|
// }
|
// if (!isOk) {
|
// msg = "无线,锁线胶装和精装内页页码不能小于36(除硫酸纸),";
|
// }
|
var msg = "";
|
var printTypeId = $("#hidPrintTypeId").val();
|
$("[name='works']").attr("disabled", false);
|
if (value == 17) {
|
var paperSize = $("#paperSize").val();
|
if (paperSize == 95 || paperSize == 96 || paperSize == 85 || paperSize == 86) {
|
isSuccess = false;
|
msg += "64开不能精装,";
|
if (printTypeId == 15) {
|
$("#paperSize").val(100)
|
}
|
else {
|
$("#paperSize").val(90);
|
}
|
}
|
if (isSuccess) {
|
var SelSize = $("#SelSize").val();
|
if (SelSize == 95 || SelSize == 96 || paperSize == 85 || paperSize == 86) {
|
isSuccess = false;
|
msg += "64开不能精装,";
|
if (printTypeId == 15) {
|
$("#SelSize").val(100)
|
}
|
else {
|
$("#SelSize").val(90)
|
}
|
}
|
}
|
|
$("[name='works']").each(
|
function () {
|
var workVal = $(this).val();
|
if (workVal == 5 || workVal == 3 || workVal == 32 || workVal == 18 || workVal == 2) {
|
$(this).attr("checked", false);
|
$("[name='LaFeng']").hide();
|
$(this).attr("disabled", true);
|
}
|
}
|
);
|
}
|
|
if (!isSuccess) {
|
msg = msg.substring(0, msg.length - 1);
|
alertMsg(msg);
|
}
|
}
|
);
|
|
$("[name='frontType']").change(
|
function () {
|
var value = $(this).val();
|
if (value == "无封面") {
|
$("#spPrintDemand").hide();
|
}
|
else {
|
$("#spPrintDemand").show();
|
}
|
}
|
);
|
|
$(".validateIntSpc").blur(
|
function () {
|
var isSuccess = true;
|
var value = $(this).val();
|
var defalutValue = $(this).attr("defaultValue");
|
if (!reg2.test(value)) {
|
isSuccess = false;
|
}
|
if (parseInt(value) < parseInt(defalutValue)) {
|
isSuccess = false;
|
}
|
if (!isSuccess) {
|
var msg = "印刷数量必须是大于等于" + defalutValue + "的正整数";
|
$(this).val(defalutValue);
|
alertMsg(msg);
|
}
|
}
|
);
|
|
$("[id*='brand']").live("change",
|
function () {
|
var brandId = $(this).val();
|
var id = $(this).attr("id");
|
var index = id.substring(id.length - 1);
|
// alert(index);
|
var paperId = $("[id*='paper" + index + "'][id!=paperSize]").val();
|
if (paperId == 0) {
|
return;
|
}
|
var printTypeId = $("#hidPrintTypeId").val();
|
$.ajax({
|
url: '/Pages/front/InquiryOnLine.aspx?tmp' + (new Date()).valueOf(),
|
type: "POST",
|
async: false,
|
data: "BrandSelect=true&PrinttypeId=" + printTypeId + "&PaperId=" + paperId + "&BrandId=" + brandId,
|
success: function (dataStr) {
|
var option = "";
|
var gramWeights = dataStr;
|
if (gramWeights.length != undefined) {
|
var gramWeightArry = gramWeights.split('|');
|
for (var i = 0; i < gramWeightArry.length; i++) {
|
option += "<option value=\"" + gramWeightArry[i] + "\">" + gramWeightArry[i] + "</option>";
|
}
|
$("[id*='gramWeight" + index + "']").html("");
|
$("[id*='gramWeight" + index + "']").html(option);
|
}
|
}
|
});
|
}
|
);
|
|
|
|
$(":radio[name='printMode']").click(
|
function () {
|
var printTypeId = $("#hidPrintTypeId").val();
|
if ($(this).val() == 0) {
|
$("[class*='Brand']").show();
|
$("[id*='brand']").show();
|
if (printTypeId == "20") {
|
$(".divShow").show();
|
}
|
if (printTypeId == "15") {
|
$.ajax({
|
url: '/Pages/front/InquiryOnLine.aspx?tmp' + (new Date()).valueOf(),
|
type: "POST",
|
async: false,
|
data: "PaperInit=true&PrinttypeId=" + printTypeId,
|
success: function (dataJsonStr) {
|
var dataJson = eval('(' + dataJsonStr + ')');
|
var paperInfo = dataJson.paperInfo;
|
var sizeInfo = dataJson.sizeInfo;
|
var option = "";
|
for (var i = 0; i < sizeInfo.length; i++) {
|
option += "<option value=\"" + sizeInfo[i].sizeId + "\">" + sizeInfo[i].sizeName + "</option>";
|
}
|
option += "<option value=\"-1\">自定义尺寸</option>";
|
$("#paperSize").html("");
|
$("#paperSize").html(option);
|
}
|
});
|
$(".pageNum").val("");
|
$("#paperSize").val(100);
|
$("#InsidePageDiv").show();
|
$(".trHide").show();
|
$(".insidePageAfterWork1").show();
|
$("#InsideOpDiv").show();
|
$(".singleOrdouble").show();
|
$("#InsidePage2").hide();
|
$("#InsidePage3").hide();
|
$("#InsidePage4").hide();
|
$("#InsidePage5").hide();
|
$("#hidInsidePageNum").val("1");
|
$("#InsidePageAdd").val("内页2");
|
$("[name*='printColor']").attr("disabled", false);
|
$("#bindingMode").attr("disabled", false);
|
$("[name*='pageNum']").attr("readonly", false);
|
}
|
if (printTypeId == "22") {
|
$.ajax({
|
url: '/Pages/front/InquiryOnLine.aspx?tmp' + (new Date()).valueOf(),
|
type: "POST",
|
async: false,
|
data: "PaperInit=true&PrinttypeId=" + printTypeId,
|
success: function (dataJsonStr) {
|
var dataJson = eval('(' + dataJsonStr + ')');
|
var paperInfo = dataJson.paperInfo;
|
var sizeInfo = dataJson.sizeInfo;
|
var option = "";
|
for (var i = 0; i < paperInfo.length; i++) {
|
option += "<option value=\"" + paperInfo[i].paperId + "\">" + paperInfo[i].paperName + "</option>";
|
}
|
$("[id*='paper'][id!=paperSize]").html("");
|
$("[id*='paper'][id!=paperSize]").html(option);
|
option = "";
|
for (var i = 0; i < sizeInfo.length; i++) {
|
option += "<option value=\"" + sizeInfo[i].sizeId + "\">" + sizeInfo[i].sizeName + "</option>";
|
}
|
$("#paperSize").html("");
|
$("#paperSize").html(option);
|
}
|
});
|
$("#printCount").attr("readonly", false);
|
$("[id*='brand']").attr("disabled", false);
|
$("[id*='paper'][id!=paperSize]").bind("change", OnPaperSelect);
|
PaperSelect(0, $("#hidPrintTypeId").val(), 0);
|
|
}
|
else if (printTypeId == "27") {
|
$(".fsByre").show();
|
$.ajax({
|
url: '/Pages/front/InquiryOnLine.aspx?tmp' + (new Date()).valueOf(),
|
type: "POST",
|
async: false,
|
data: "PaperInit=true&PrinttypeId=" + printTypeId,
|
success: function (dataJsonStr) {
|
var dataJson = eval('(' + dataJsonStr + ')');
|
var paperInfo = dataJson.paperInfo;
|
var sizeInfo = dataJson.sizeInfo;
|
var option = "";
|
for (var i = 0; i < paperInfo.length; i++) {
|
option += "<option value=\"" + paperInfo[i].paperId + "\">" + paperInfo[i].paperName + "</option>";
|
}
|
$("[id*='paper'][id!=paperSize]").html("");
|
$("[id*='paper'][id!=paperSize]").html(option);
|
option = "";
|
for (var i = 0; i < sizeInfo.length; i++) {
|
option += "<option value=\"" + sizeInfo[i].sizeId + "\">" + sizeInfo[i].sizeName + "</option>";
|
}
|
$("#paperSize").html("");
|
$("#paperSize").html(option);
|
}
|
});
|
$("#printCount").attr("readonly", false);
|
$("[id*='brand']").attr("disabled", false);
|
$("[id*='paper'][id!=paperSize]").bind("change", OnPaperSelect);
|
PaperSelect($("[id*='paper'][id!=paperSize]").val(), $("#hidPrintTypeId").val(), 0);
|
}
|
else if (printTypeId == "26") {
|
$.ajax({
|
url: '/Pages/front/InquiryOnLine.aspx?tmp' + (new Date()).valueOf(),
|
type: "POST",
|
async: false,
|
data: "PaperInit=true&PrinttypeId=" + printTypeId,
|
success: function (dataJsonStr) {
|
var dataJson = eval('(' + dataJsonStr + ')');
|
var paperInfo = dataJson.paperInfo;
|
var sizeInfo = dataJson.sizeInfo;
|
var option = "";
|
for (var i = 0; i < paperInfo.length; i++) {
|
option += "<option value=\"" + paperInfo[i].paperId + "\">" + paperInfo[i].paperName + "</option>";
|
}
|
$("[id*='paper'][id!=paperSize]").html("");
|
$("[id*='paper'][id!=paperSize]").html(option);
|
}
|
});
|
$("#printCount").attr("readonly", false);
|
$("[id*='brand']").attr("disabled", false);
|
PaperSelect(0, $("#hidPrintTypeId").val(), 0);
|
} else if (printTypeId == "16") {
|
$.ajax({
|
url: '/Pages/front/InquiryOnLine.aspx?tmp' + (new Date()).valueOf(),
|
type: "POST",
|
async: false,
|
data: "PaperInit=true&PrinttypeId=" + printTypeId,
|
success: function (dataJsonStr) {
|
var dataJson = eval('(' + dataJsonStr + ')');
|
var paperInfo = dataJson.paperInfo;
|
var sizeInfo = dataJson.sizeInfo;
|
var option = "";
|
for (var i = 0; i < paperInfo.length; i++) {
|
option += "<option value=\"" + paperInfo[i].paperId + "\">" + paperInfo[i].paperName + "</option>";
|
}
|
$("[id*='paper'][id!=paperSize]").html("");
|
$("[id*='paper'][id!=paperSize]").html(option);
|
}
|
});
|
$("#printCount").attr("readonly", false);
|
$("[id*='brand']").attr("disabled", false);
|
$("[id*='paper'][id!=paperSize]").bind("change", OnPaperSelect);
|
PaperSelect(0, $("#hidPrintTypeId").val(), 0);
|
}
|
else if (printTypeId == "21") {
|
$.ajax({
|
url: '/Pages/front/InquiryOnLine.aspx?tmp' + (new Date()).valueOf(),
|
type: "POST",
|
async: false,
|
data: "PaperInit=true&PrinttypeId=" + printTypeId,
|
success: function (dataJsonStr) {
|
var dataJson = eval('(' + dataJsonStr + ')');
|
var paperInfo = dataJson.paperInfo;
|
var sizeInfo = dataJson.sizeInfo;
|
var option = "";
|
for (var i = 0; i < paperInfo.length; i++) {
|
option += "<option value=\"" + paperInfo[i].paperId + "\">" + paperInfo[i].paperName + "</option>";
|
}
|
$("[id*='paper'][id!=paperSize]").html("");
|
$("[id*='paper'][id!=paperSize]").html(option);
|
}
|
});
|
$("#printCount").attr("readonly", false);
|
$("[id*='brand']").attr("disabled", false);
|
$("[name='printColor']").attr("disabled", false);
|
$("#tbAfterWork").show();
|
$("[id*='paper'][id!=paperSize]").bind("change", OnPaperSelect);
|
PaperSelect(0, $("#hidPrintTypeId").val(), 0);
|
}
|
else {
|
$("#printCount").attr("readonly", false);
|
$("[id*='paper'][id!=paperSize]").attr("disabled", false);
|
$("[id*='brand']").attr("disabled", false);
|
$("[id*='paper'][id!=paperSize]").bind("change", OnPaperSelect);
|
$("[id*='paper'][id!=paperSize]").each(
|
function () {
|
var id = $(this).attr("id");
|
var index = id.substring(id.length - 1);
|
PaperSelect($(this).val(), $("#hidPrintTypeId").val(), index);
|
}
|
);
|
}
|
OrderPageSizeContronl();
|
}
|
else {
|
Init();
|
}
|
$("#printCount").val("500");
|
$("#divInquiryResult").hide();
|
}
|
);
|
|
$("#InsidePageAdd").click(
|
function () {
|
var hidValue = $("#hidInsidePageNum").val();
|
var maxValue = $("#hidInsidePageNum").attr("maxValue");
|
var minValue = $("#hidInsidePageNum").attr("minValue");
|
var newValue = parseInt(hidValue) + 1;
|
if (newValue > maxValue) {
|
alertMsg("内页新增不能超过5个!");
|
return;
|
}
|
$("#InsidePage" + newValue + "").show();
|
$("#hidInsidePageNum").val(newValue);
|
if (newValue != maxValue) {
|
var value = newValue + 1;
|
$("#InsidePageAdd").val("内页" + value);
|
}
|
}
|
);
|
|
$("#InsidePageDel").click(
|
function () {
|
var hidValue = $("#hidInsidePageNum").val();
|
var maxValue = $("#hidInsidePageNum").attr("maxValue");
|
var minValue = $("#hidInsidePageNum").attr("minValue");
|
var newValue = parseInt(hidValue) - 1;
|
if (newValue < minValue) {
|
alertMsg("内页不能少于1!");
|
return;
|
}
|
$("#InsidePage" + hidValue + "").hide();
|
$("[name='pageNum" + hidValue + "']").val("");
|
$("#hidInsidePageNum").val(newValue);
|
if (parseInt(hidValue) != minValue) {
|
var value = parseInt(hidValue);
|
$("#InsidePageAdd").val("内页" + value);
|
}
|
}
|
);
|
|
$(".ClickControl").click(
|
function () {
|
var checked = $(this).attr("checked");
|
var id = $(this).attr("id");
|
if (!checked) {
|
$(".ClickControl[id!='" + id + "']").attr("checked", false);
|
$(".ClickControl[id!='" + id + "']").attr("disabled", false);
|
}
|
else {
|
$(".ClickControl[id!='" + id + "']").attr("disabled", true);
|
}
|
}
|
);
|
}
|
</script>
|
</html>
|
<div id='div_PrintParams' style='display: none;'>
|
<%-- <asp:Repeater ID='rptInquiryCommon' runat="server">
|
<ItemTemplate>
|
<table class="table2">
|
<thead>
|
<tr>
|
<th colspan='4'>
|
印刷详情
|
</th>
|
</tr>
|
</thead>
|
<tbody>
|
<tr>
|
<td class='col_half'>
|
印刷数量: <strong>
|
<%#Eval("PrintCountName")%></strong>
|
</td>
|
<td class='col_half'>
|
印刷方式: <strong>
|
<%#Eval("PrintModeName")%></strong>
|
</td>
|
</tr>
|
<tr>
|
<td colspan='2' align="left">
|
印刷要求: <strong>
|
<%#Eval("PrintDemand")%></strong>
|
</td>
|
</tr>
|
<tr>
|
<td colspan='2' align="left">
|
后道工序: <strong>
|
<%#Eval("AfterWorksDemand") %></strong>
|
</td>
|
</tr>
|
<tr>
|
<td class='col_half'>
|
交货方式: <strong>
|
<%#Eval("DeliveryModeName")%></strong>
|
</td>
|
<td class='col_half'>
|
票  据: <strong>
|
<%#Eval("BillModeName")%></strong>
|
</td>
|
</tr>
|
<tr>
|
<td colspan='2' align="left">
|
备  注: <strong>
|
<%#Eval("Remarks")%></strong>
|
</td>
|
</tr>
|
</tbody>
|
</table>
|
</ItemTemplate>
|
</asp:Repeater>--%>
|
</div>
|