Browse Source

调整接口

master
lilili 2 years ago
parent
commit
1fbec01e89
  1. 34
      WMS-BS/NFine.Application/WMS/PickMaterialApp.cs
  2. 7
      WMS-BS/NFine.Web/Areas/WMS/Views/PickMaterial/ICSMOPickMerge.cshtml

34
WMS-BS/NFine.Application/WMS/PickMaterialApp.cs

@ -167,12 +167,44 @@ where b.MOCode='{0}' and a.WorkPoint='{1}'";
{ {
sqlString.Append($@" and a.NeedDate like '%{queryParam["NeedDate"]}%' "); sqlString.Append($@" and a.NeedDate like '%{queryParam["NeedDate"]}%' ");
} }
if (!string.IsNullOrWhiteSpace(queryParam["Status"].ToString()))
{
if (queryParam["NeedDate"].ToString() == "3")
{
sqlString.Append($@" and sum(a.Quantity) = sum(IssueQuantity) and a.MUSERName != 'JOB ");
}
else if (queryParam["NeedDate"].ToString() == "2")
{
sqlString.Append($@" and sum(a.Quantity) =sum(IssueQuantity) and a.MUSERName = 'JOB' ");
}
else if(queryParam["NeedDate"].ToString() == "1")
{
sqlString.Append($@" and sum(a.Quantity) >= sum(IssueQuantity) ");
}
}
} }
sqlString.Append(@" group by a.ApplyCode, a.WorkPoint,a.IssueQuantity,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.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, 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,a.MUSERName) 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");
if (!string.IsNullOrWhiteSpace(queryParam["Status"].ToString()))
{
if (queryParam["Status"].ToString() == "3")
{
sqlString.Append($@" AND t.Status='已过帐' ");
}
else if (queryParam["Status"].ToString() == "2")
{
sqlString.Append($@" AND t.Status='已配料' ");
}
else if (queryParam["Status"].ToString() == "1")
{
sqlString.Append($@" AND t.Status='未配料' ");
}
}
#endregion #endregion
@ -2574,7 +2606,7 @@ b.InvUnit,
} }
else if (dts2 != null && dts2.Rows.Count > 0) else if (dts2 != null && dts2.Rows.Count > 0)
{ {
msg = "当前选择单据号存在已出库的单据号,合并拣料失败";
msg = "当前选择单据号存在已出库的单据号,合并 失败";
} }
else else
{ {

7
WMS-BS/NFine.Web/Areas/WMS/Views/PickMaterial/ICSMOPickMerge.cshtml

@ -229,6 +229,7 @@
WHCode: $("#txt_WHCode").val(), WHCode: $("#txt_WHCode").val(),
CusCode: $("#txt_CusCode").val(), CusCode: $("#txt_CusCode").val(),
CusName: $("#txt_CusName").val(), CusName: $("#txt_CusName").val(),
Status: $("#selShow2").val(),
Order: $("#txt_Order").val(), Order: $("#txt_Order").val(),
Container: $('input[name="container"]:checked').val(), Container: $('input[name="container"]:checked').val(),
CreateDate: $("#txt_CreateDate").val(), CreateDate: $("#txt_CreateDate").val(),
@ -804,11 +805,11 @@
<td id="status2"> <td id="status2">
<div class="input-group"> <div class="input-group">
<select id="selShow2" name="F_Target" class="form-control" style="width: 100px;"> <select id="selShow2" name="F_Target" class="form-control" style="width: 100px;">
<option value="1" selected="selected">未配料</option>
<option value="2" selected="selected">已配料</option> <option value="2" selected="selected">已配料</option>
<option value="3" selected="selected">已过账</option> <option value="3" selected="selected">已过账</option>
<option value="4" selected="selected">已取消</option>
<option value="5" selected="selected">全部</option>
@*<option value="4" selected="selected">已取消</option>*@
@*<option value="5" selected="selected">全部</option>*@
<option value="1" selected="selected">未配料</option>
</select> </select>
</div> </div>
</td> </td>

Loading…
Cancel
Save