| | |
| | | function ExcuteCallBack() { |
| | | var printTypeId = $("#hidPrintTypeId").val(); |
| | | |
| | | |
| | | setTimeout(function () { |
| | | |
| | | var element = document.getElementById('txtKeyid'); |
| | | |
| | | if (element) { |
| | | var OldOrderId = document.getElementById('txtKeyid').value; |
| | | if (OldOrderId == "" || OldOrderId == "0") { |
| | | |
| | | if ($("[name='printMode']").length > 1) { |
| | | $("[name='printMode']").each( |
| | | function () { |
| | | if ($(this).val() == "0") { |
| | | $(this).click(); |
| | | } |
| | | } |
| | | ); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | | }, 1000); |
| | | |
| | | |
| | | $("#selDigitalPrintType").live("change", |
| | | function () { |
| | | var value = $(this).val(); |
| | |
| | | $("[name='pNameMP']").val(dataJson.PaperMP); |
| | | $("[name='paper0']").val(dataJson.PaperId); |
| | | if (dataJson.PrintMode == 0) { |
| | | if (dataJson.PaperMP && dataJson.PaperMP != "") { |
| | | if (dataJson.PaperMP && dataJson.PaperMP != "" && $("#hidPrintTypeId").val() !="29") { |
| | | PaperSelect($("[name='pNameMP']").val(), $("#hidPrintTypeId").val(), 0); |
| | | } |
| | | else { |
| | |
| | | } |
| | | if (afterWorkArry[i] == "13") { |
| | | $("#divJT0").show(); |
| | | } if (afterWorkArry[i] == "99") { |
| | | $("#divJTT0").show(); |
| | | } |
| | | } |
| | | } |
| | |
| | | else { |
| | | $("#divJT" + index + "").hide(); |
| | | } |
| | | } else if ($(obj).val() == "99") { |
| | | if ($("#divJTT" + index + "").is(":hidden")) { |
| | | $("#divJTT" + index + "").show(); |
| | | } |
| | | else { |
| | | $("#divJTT" + index + "").hide(); |
| | | } |
| | | } else if ($(obj).val() == "47") { |
| | | if ($("#divLY" + index + "").is(":hidden")) { |
| | | $("#divLY" + index + "").show(); |