Browse Source

1.不同时间的LAB需求,在生成VDA时进行合并

master
hao.jin 2 years ago
parent
commit
d6b3b4a6b0
  1. 13
      Stone.WinForm/Stone.WinModule/Standard/frmJISVDA.cs

13
Stone.WinForm/Stone.WinModule/Standard/frmJISVDA.cs

@ -231,7 +231,18 @@ namespace Stone.WinModule.Standard
if (ids.Length > 0) ids = ids.Substring(0, ids.Length - 1);
Entity_v_JIS_Lab_List v_JIS_Lab = new Entity_v_JIS_Lab_List();
DataTable dtData = v_JIS_Lab.GetData("*, quantity as quantity_new", $"[ID] in({ids})", "[PartNumber] asc").Tables[0];
//DataTable dtData = v_JIS_Lab.GetData("*, quantity as quantity_new", $"[ID] in({ids})", "[PartNumber] asc").Tables[0];
var strsql = "select IsStandard,fileType,partNumber,sum(quantity) as quantity,sum(quantity) as quantity_new,sum(quantity_transit) as quantity_transit,PackNumer," +
"Location,OrderNumber,LocationCode,releaseId" +
" from v_JIS_Lab_List" +
" where 1 =1 " +
" and ID in (" + ids + ")" +
" group by IsStandard,fileType, partNumber, PackNumer,Location, OrderNumber, LocationCode, releaseId";
var db = new LocalDBService();
DataTable dtData = db.Exec_DataSet(strsql).Tables[0];
if (dtData.Rows.Count == 0) throw new Exception("记录不存在");

Loading…
Cancel
Save