Browse Source

调整接口

master
lilili 2 years ago
parent
commit
2b3f6159b2
  1. 4
      WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs
  2. 5
      WMS-BS/NFine.Web/Areas/WMS/Views/WMSCreateItemLot/CreateItemLot.cshtml

4
WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs

@ -1610,7 +1610,7 @@ WHERE
string MUSER = NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode;
string MUSERNAME = NFine.Code.OperatorProvider.Provider.GetCurrent().UserName;
DateTime MTime = DateTime.Now;
string sql = $@"SELECT * FROM ICSDeliveryNotice WHERE ID in({ids}) AND DNCode NOT IN(SELECT TransCode From ICSInventoryLotDetail) ";
string sql = $@"SELECT * FROM ICSDeliveryNotice a WHERE ID in({ids}) AND DNCode NOT IN(SELECT TransCode From ICSInventoryLotDetail b where a.Sequence=b.TransSequence) ";
var dataset = Repository().FindDataSetBySql(sql);
if (dataset.Tables.Count <= 0)
return 0;
@ -1821,7 +1821,7 @@ insert into ICSInventoryLot
string MUSER = NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode;
string MUSERNAME = NFine.Code.OperatorProvider.Provider.GetCurrent().UserName;
DateTime MTime = DateTime.Now;
string sql = $@"SELECT * FROM ICSManufactureReceive WHERE ID in({ids}) AND RCVCode NOT IN(SELECT TransCode From ICSInventoryLotDetail) ";
string sql = $@"SELECT * FROM ICSManufactureReceive a WHERE ID in({ids}) AND RCVCode NOT IN(SELECT TransCode From ICSInventoryLotDetail b where a.Sequence=b.TransSequence) ";
var dataset = Repository().FindDataSetBySql(sql);
if (dataset.Tables.Count == 0)
return 0;

5
WMS-BS/NFine.Web/Areas/WMS/Views/WMSCreateItemLot/CreateItemLot.cshtml

@ -3206,6 +3206,11 @@
return;
}
for (var i = 0; i < objList.length; i++) {
var AreaType = $("#gridList").jqGrid('getRowData', objList[i]).AreaType;
if (AreaType == "货柜") {
$.modalAlertNew("WMS00112");
return;
}
/*var rowData = $("#gridList").jqGrid('getRowData', rowId);获取数据*/
if (objList[i] != undefined) {
objID += "'" + objList[i] + "',";

Loading…
Cancel
Save