<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CorporateClientsPrint.aspx.cs" Inherits="CY.WebForm.Pages.business.CorporateClientsPrint" %>
|
|
<!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=1" type="text/javascript"></script>
|
<script src="../../js/business/Order.js" type="text/javascript"></script>
|
<!--前台页面end-->
|
<script type="text/javascript" language="javascript">
|
|
|
|
|
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 {
|
|
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" />
|
|
<table class="table2" id="tbBasic">
|
<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 align="left">
|
<input id='txtDocumentName' runat="server" maxlength='200' class='req' />
|
</td>
|
<td align="right">
|
订单单价:
|
</td>
|
<td align="left">
|
<input id='txtUnitPrice' runat="server" maxlength='9' class='float' />
|
</td>
|
<td align="right">
|
订单总价:
|
</td>
|
<td align="left">
|
<input id='txtSumPrice' runat="server" maxlength='9' value='0' class="req float" min="0" />
|
</td>
|
<td align="right">
|
|
</td>
|
<td align="left">
|
|
</td>
|
</tr>
|
|
<tr>
|
|
<td align="right">
|
联 系 人:
|
</td>
|
<td align="left">
|
<input id='txtBusinessManagers' runat="server" maxlength="20" />
|
</td>
|
<td align="right">
|
联系电话:
|
</td>
|
<td align="left">
|
<input id='txtManagersMobile' runat="server" class='' maxlength="20" />
|
</td>
|
<td align="right">
|
联系Q Q:
|
</td>
|
<td align="left">
|
<input id='txtManagersQQ' runat="server" maxlength="20" />
|
</td>
|
<td align="right">
|
人物性格
|
</td>
|
<td align="left">
|
<input id='txtXinge' runat="server" maxlength="200" />
|
</td>
|
</tr>
|
</table>
|
<div id='div_InquiryEdit' style='display: block;'>
|
<div id="divInquiry" style='display: block;'>
|
</div>
|
|
</div>
|
|
<table class="table2">
|
<tbody>
|
<tr>
|
<td style="width: 100px; text-align:right;">
|
印刷、打包、送货要求:
|
</td>
|
<td style=" text-align:left;">
|
<textarea id="txtDeliveryrequirements" name="txtDeliveryrequirements" runat="server" style="width: 692px; height: 30px;" maxlength="200"></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" id='txtCorporateClientsid' runat="server" value='' />
|
<input name='hidPrintTypeId' id='hidPrintTypeId' type="hidden" /><input type="button" id="btnSave" runat="server" value="保 存" /> <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">
|
|
$("#divInquiry").load("/Pages/front/Book.aspx", { "PrintTypeId": '6' }, ExcuteCallBack1)
|
|
function ExcuteCallBack1() {
|
var printTypeId = '6';//$("#hidPrintTypeId").val();
|
$("#hidOrderId").val(<%=Keyid%>);
|
$("#selDigitalPrintType").live("change",
|
function () {
|
var value = $(this).val();
|
if (value == "单张") {
|
$("#divInquiry").load("/Pages/front/DigitalSingle.aspx", { "PrintTypeId": printTypeId, "DigitalPrintType": "" + value + "" }, ExcuteCallBack);
|
}
|
else {
|
$("#divInquiry").load("/Pages/front/DigitalBook.aspx", { "PrintTypeId": printTypeId, "DigitalPrintType": "" + value + "" }, ExcuteCallBack);
|
}
|
}
|
);
|
|
$("#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();
|
//修改反绑数据
|
if (orderId != "" || orderId == "0") {
|
BindControl1(orderId);
|
}
|
$("[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);
|
}
|
}
|
);
|
}
|
|
|
//修改反绑数据
|
function BindControl1(orderId) {
|
|
if (parseInt(orderId) > 0) {
|
$.ajax({
|
url: '/Pages/front/InquiryOnLine.aspx?tmp' + (new Date()).valueOf(),
|
type: "POST",
|
data: "BindControl1=true&OrderId=" + orderId,
|
success: function (dataJsonStr) {
|
if (dataJsonStr == null || dataJsonStr == "")
|
return;
|
//console.info(dataJsonStr);
|
var dataJson = eval('(' + dataJsonStr + ')');
|
if (dataJson.PrintTypeId == "-1" || dataJson.PrintTypeId == -1) {
|
$("[name='printSizeName']").val(dataJson.PrintSizeName);
|
$("[name='printCount']").val(dataJson.PrintCount);
|
$("[name='txtPrintDemand']").val(dataJson.PrintDemand);
|
} else {
|
BindControlByPrintType(dataJson);
|
}
|
}
|
});
|
}
|
}
|
|
|
|
|
</script>
|
</html>
|