diff --git a/WMS-BS/NFine.Application/WMS/PickMaterialApp.cs b/WMS-BS/NFine.Application/WMS/PickMaterialApp.cs index cdf4e69..5924f6c 100644 --- a/WMS-BS/NFine.Application/WMS/PickMaterialApp.cs +++ b/WMS-BS/NFine.Application/WMS/PickMaterialApp.cs @@ -121,6 +121,8 @@ where b.MOCode='{0}' and a.WorkPoint='{1}'"; a.EATTRIBUTE,a.Sets,a.OrderInvCode,a.OrderInvDescribe,a.BillType,a.Remarks,a.Desks,a.DispatchNumber,a.DispatcherName, a.ReceiverNumber,a.ReceiverName,a.Urgency,a.NeedDate,a.NeedTime,a.RemarksTerm,a.TextNumber,a.InvDescribe,a.Unit,a.StockIndicator, case when max(e.SourceID) is null then '未合并' else '已合并' end as IsNew,f.Colspan , + case when sum(a.Quantity) =sum(IssueQuantity) and a.MUSERName != 'JOB' then '已过帐' + else (case when sum(a.Quantity) =sum(IssueQuantity) and a.MUSERName = 'JOB' then '已配料' else '未配料' end) end as Status, f.ProjectCode ,f.BatchCode ,f.Version ,f.Brand ,f.cFree1 ,f.cFree2 ,f.cFree3 , f.cFree4 ,f.cFree5 ,f.cFree6 ,f.cFree7 ,f.cFree8 ,f.cFree9 ,f.cFree10,a.ID from ICSMOApply a @@ -149,10 +151,10 @@ where b.MOCode='{0}' and a.WorkPoint='{1}'"; } } - sqlString.Append(@" group by a.ApplyCode, a.WorkPoint,a.CreateDateTime,a.createperson, + sqlString.Append(@" group by a.ApplyCode, a.WorkPoint,a.IssueQuantity,a.CreateDateTime,a.createperson, f.Colspan,f.ProjectCode,f.BatchCode,f.Version,f.Brand,f.cFree1,f.cFree2, f.cFree3,f.cFree4,f.cFree5,f.cFree6,f.cFree7,f.cFree8,f.cFree9,f.cFree10,a.WHCode,detail.LocationCode,a.ID,a.EATTRIBUTE,a.Sets,a.OrderInvCode,a.OrderInvDescribe,a.BillType,a.Remarks,a.Desks,a.DispatchNumber,a.DispatcherName, - a.ReceiverNumber,a.ReceiverName,a.Urgency,a.NeedDate,a.NeedTime,a.RemarksTerm,a.TextNumber,a.InvDescribe,a.Unit,a.StockIndicator) as t where t.row=1"); + a.ReceiverNumber,a.ReceiverName,a.Urgency,a.NeedDate,a.NeedTime,a.RemarksTerm,a.TextNumber,a.InvDescribe,a.Unit,a.StockIndicator,a.MUSERName) as t where t.row=1"); #endregion diff --git a/WMS-BS/NFine.Web/Areas/WMS/Views/PickMaterial/ICSMOPickMerge.cshtml b/WMS-BS/NFine.Web/Areas/WMS/Views/PickMaterial/ICSMOPickMerge.cshtml index 12b4443..fa95072 100644 --- a/WMS-BS/NFine.Web/Areas/WMS/Views/PickMaterial/ICSMOPickMerge.cshtml +++ b/WMS-BS/NFine.Web/Areas/WMS/Views/PickMaterial/ICSMOPickMerge.cshtml @@ -85,6 +85,8 @@ function SetCols() { var Type = $("#selShow").val(); + var ct = document.getElementsByClassName("type7"); + var cols = new Array(); var collast = { label: "主键", name: "ID", hidden: true, key: true }; @@ -129,15 +131,25 @@ cols.push(collast); var collast = { label: '销售凭证项号', name: 'Brand', width: 100, align: 'left' }; cols.push(collast); + /* ct.style.display = "none";*/ + //ct1.style.display = "none"; + //ct2.style.display = "none"; + //ct3.style.display = "none"; } else { + var collast = { label: '客户编码', name: 'CusCode', width: 150, align: 'left' }; cols.push(collast); var collast = { label: '客户名称', name: 'CusName', width: 150, align: 'left' }; cols.push(collast); } + if (Type = 2) + { + var collast = { label: '状态', name: 'Status', width: 150, align: 'left' }; + cols.push(collast); + } $.ajax({ @@ -178,6 +190,8 @@ InvCode: $("#txt_InvCode").val(), Area: $("#txt_Area").val(), WHCode: $("#txt_WHCode").val(), + CusCode: $("#txt_CusCode").val(), + CusName: $("#txt_CusName").val() } $gridList.dataGrid({ @@ -404,6 +418,8 @@ InvCode: $("#txt_InvCode").val(), Area: $("#txt_Area").val(), WHCode: $("#txt_WHCode").val(), + CusCode: $("#txt_CusCode").val(), + CusName: $("#txt_CusName").val() } $gridList.jqGrid('setGridParam', { postData: { queryJson: JSON.stringify(queryJson) }, @@ -691,7 +707,7 @@ -