| | |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | } |
| | | }); |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation(); |
| | | if (HSouceBillType == 3722) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation2(); |
| | | } else if (HSouceBillType == 3791) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation(); |
| | | } else { |
| | | layer.alert("æºåç±»åæ æï¼", { icon: 5 }); |
| | | } |
| | | } |
| | | else if (OperationType == 3) { |
| | | RoadBillMain(linterid); |
| | |
| | | set_InitGrid(); |
| | | |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | function LoadingInformation2() { |
| | | var wait = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/QC_ProcessCheckBill/get_ICMOBillStatus_Tmp", |
| | | type: "GET", |
| | | data: { "HInterID": linterid, "HEntryID": 0, "HBillType": HSouceBillType }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | | if (result.count == 1) { |
| | | $("#HProcExchBillNo").val(data.HProcExchBillNo); |
| | | $("#HProcExchInterID").val(data.HProcExchInterID); |
| | | $("#HProcExchEntryID").val(data.HProcExchEntryID); |
| | | $("#HProcExchQty").val(data.HProcExchQty); |
| | | $("#HICMOBillNo").val(data.HICMOBillNo); |
| | | $("#HICMOInterID").val(data.HICMOInterID); |
| | | $("#HICMOQty").val(data.HICMOQty); |
| | | $("#HSourceName").val(data.HSourceName); |
| | | $("#HSourceID").val(data.HSourceID); |
| | | $("#HMaterID").val(data.HMaterID); |
| | | $("#HMainSourceBillNo").val(""); |
| | | $("#HMainSourceBillType").val(data.HBillType); |
| | | $("#HMainSourceInterID").val(data.HInterID); |
| | | } else { |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | } |
| | | layer.close(wait); |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | function LoadingInformation() { |
| | | var wait = layer.load(); |
| | | $.ajax({ |