| | |
| | | case "37": |
| | | $("#divInquiry").load("/Pages/front/WorkBook.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack); |
| | | break; |
| | | //试卷 |
| | | case "38": |
| | | $("#divInquiry").load("/Pages/front/Shijuan.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack); |
| | | break; |
| | | //公文纸 |
| | | case "39": |
| | | $("#divInquiry").load("/Pages/front/GongWenZhi.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack); |
| | | break; |
| | | //收据联单 |
| | | case "27": |
| | | $("#divInquiry").load("/Pages/front/ReceiptDocument.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack); |
| | |
| | | var minValue = $("#hidWorkBookPageNum").attr("minValue"); |
| | | var newValue = parseInt(hidValue) + 1; |
| | | if (newValue > maxValue) { |
| | | alertMsg("作业本新增不能超过30个!"); |
| | | alertMsg("新增不能超过30个!"); |
| | | return; |
| | | } |
| | | $("#WorkBooka" + newValue + "").show(); |
| | | $("#hidWorkBookPageNum").val(newValue); |
| | | if (newValue != maxValue) { |
| | | var value = newValue + 1; |
| | | $("#WorkBookAdd").val("作业本" + value); |
| | | $("#WorkBookAdd").val(" " + value +" " ); |
| | | } |
| | | $("#WorkBookNamea" + newValue + "").val((parseInt($("#WorkBookNamea" + hidValue + "").val())+1)); |
| | | $("#WorkBookSizea" + newValue + "").val($("#WorkBookSizea" + hidValue + "").val()); |
| | |
| | | if (dataJsonStr == null || dataJsonStr == "") |
| | | return; |
| | | var dataJson = eval('(' + dataJsonStr + ')'); |
| | | if (dataJson.PrintTypeId == "-1" || dataJson.PrintTypeId == -1) { |
| | | if (dataJson.PrintTypeId == "-1" || dataJson.PrintTypeId == -1 ) { |
| | | $("[name='printSizeName']").val(dataJson.PrintSizeName); |
| | | $("[name='printCount']").val(dataJson.PrintCount); |
| | | $("[name='ysUnit']").val(dataJson.Unit); |
| | |
| | | $("#thickness").val(dataJson.Thickness); |
| | | $("#pageNum").val(dataJson.PageNum); |
| | | } |
| | | |
| | | |
| | | |
| | | $("[name='printMode']").each( |
| | | function () { |
| | | if ($(this).val() == dataJson.PrintMode) { |
| | | $(this).attr("checked", true); |
| | | $(this).click(); |
| | | } |
| | | function () { |
| | | if ($(this).val() == dataJson.PrintMode) { |
| | | $(this).attr("checked", true); |
| | | $(this).click(); |
| | | } |
| | | ); |
| | | } |
| | | ); |
| | | |
| | | if (dataJson.IsDefinedSize == 1) { |
| | | $("[name='paperSize']").val("-1"); |
| | |
| | | $("[name='pNameMP']").val(dataJson.PaperMP); |
| | | $("[name='paper0']").val(dataJson.PaperId); |
| | | if (dataJson.PrintMode == 0) { |
| | | if (dataJson.PaperMP && dataJson.PaperMP != "" && $("#hidPrintTypeId").val() !="29") { |
| | | if (dataJson.PaperMP && dataJson.PaperMP != "" && $("#hidPrintTypeId").val() != "29") { |
| | | PaperSelect($("[name='pNameMP']").val(), $("#hidPrintTypeId").val(), 0); |
| | | } |
| | | else { |
| | |
| | | $("[name='sjType']").change(); |
| | | $("[name='RopeTypeId']").val(dataJson.RopeTypeId); |
| | | var afterWorkArry = dataJson.AfterWorkList; |
| | | if (printTypeId == 39) { |
| | | $("[name='works']").each( |
| | | function () { |
| | | $(this).attr("checked", false); |
| | | } |
| | | ); |
| | | } |
| | | |
| | | if (afterWorkArry.length > 0) { |
| | | for (var i = 0; i < afterWorkArry.length; i++) { |
| | | $("[name='works']").each( |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if (printTypeId == 39) { |
| | | |
| | | $("#pageNumsbs").val(dataJson.pageNumsbs); |
| | | |
| | | } |
| | | //台历 |
| | | if (printTypeId == 25) { |
| | |
| | | return; |
| | | } |
| | | |
| | | if (printTypeId == 32 || printTypeId == 31) { |
| | | if (printTypeId == 32 || printTypeId == 31 || printTypeId == 38 ) { |
| | | $("#printCount").attr("readonly", false); |
| | | return; |
| | | } |
| | |
| | | $("#printCount").attr("readonly", false); |
| | | return; |
| | | } |
| | | if (printTypeId == "39") { |
| | | $("#printCount").attr("readonly", false); |
| | | $("#paper0").attr("disabled", false); |
| | | return; |
| | | } |
| | | $("[id*='paper'][id!=paperSize]").val(3); |
| | | $("[id*='paper'][id!=paperSize]").attr("disabled", true); |
| | | $("[id*='brand']").attr("disabled", true); |