You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.3 KiB

4 weeks ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using ICSSoft.FromERP;
  6. namespace ICSSoft.Test
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. //ICSVendor test = new ICSVendor();
  13. //test.Execute();
  14. // select DISTINCT a.MOCode,b.mintime FROM ICSMO a
  15. //left join (select a.MOCode,MIN(d.MTIME) mintime FROM ICSMO a
  16. //inner join ICSInventoryLotDetail e on e.TransCode =a.MOCode AND e.TransSequence=a.Sequence AND e.WorkPoint=a.WorkPoint
  17. //inner JOIN ICSInventoryLot d ON d.LotNo=e.LotNo and d.WorkPoint=e.WorkPoint and d.type='3' group by a.MOCode) b on a.MOCode=b.MOCode
  18. //where b.mintime is not null
  19. //select DISTINCT a.MOCode,b.mintime FROM ICSMO a
  20. //left join (select a.MOCode,MIN(d.MTIME) mintime FROM ICSMO a
  21. //inner join ICSInventoryLotDetail e on e.TransCode =a.MOCode AND e.TransSequence=a.Sequence AND e.WorkPoint=a.WorkPoint
  22. //inner JOIN ICSInventoryLot d ON d.LotNo=e.LotNo and d.WorkPoint=e.WorkPoint and RCVQuantity<>0 and d.type='3' group by a.MOCode) b on a.MOCode=b.MOCode
  23. //where b.mintime is not null
  24. VendorOAByYL test = new VendorOAByYL();
  25. test.Execute();
  26. }
  27. }
  28. }