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
40 lines
1.3 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using ICSSoft.FromERP;
|
|
|
|
namespace ICSSoft.Test
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
//ICSVendor test = new ICSVendor();
|
|
//test.Execute();
|
|
|
|
|
|
// select DISTINCT a.MOCode,b.mintime FROM ICSMO a
|
|
//left join (select a.MOCode,MIN(d.MTIME) mintime FROM ICSMO a
|
|
//inner join ICSInventoryLotDetail e on e.TransCode =a.MOCode AND e.TransSequence=a.Sequence AND e.WorkPoint=a.WorkPoint
|
|
//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
|
|
//where b.mintime is not null
|
|
|
|
|
|
//select DISTINCT a.MOCode,b.mintime FROM ICSMO a
|
|
//left join (select a.MOCode,MIN(d.MTIME) mintime FROM ICSMO a
|
|
//inner join ICSInventoryLotDetail e on e.TransCode =a.MOCode AND e.TransSequence=a.Sequence AND e.WorkPoint=a.WorkPoint
|
|
//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
|
|
//where b.mintime is not null
|
|
|
|
|
|
|
|
|
|
|
|
|
|
VendorOAByYL test = new VendorOAByYL();
|
|
test.Execute();
|
|
|
|
}
|
|
}
|
|
}
|