using ChangKeTec.Wms.Controller.Report; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CK.SCP.UniApi.Controller { public static class Vendercontroller { public static DataTable GetInvBatchStock(int rownum, int di_vend,string site) { //var StartRow = rownum; //var snycCount = 100; //string Sql = $"select * from ( select rownum myrn ,PURVendorMid.* from PURVendorMid order by di_batchNO,VENDORNO ) tt where tt.myrn >={StartRow + 1} and tt.myrn <={StartRow + snycCount} order by myrn "; //string Sql = $"Select * from PURVendorMid"; //Sql += $" where DI_BATCHNO >101"; string Sql = ""; if (site == "W21") { Sql = $"select* from PURVendorMid"; Sql += $" Where PURORG='W21' and di_batchNO>{di_vend}"; } else { Sql = $"select* from PURVendorMidFW"; Sql += $" Where PURORG='U32' and di_batchNO>{di_vend}"; } var dt_Part = DBControllerByOracle.GetDataTable(Sql); return dt_Part; } public class PURVendorMid { /// /// 工厂 /// public int DI_BATCHNO { get; set; } /// /// 存储地点 /// public string VENDORNO { get; set; } public string MTLNO { get; set; } /// /// 物料号 /// public string PLANT { get; set; } public string NAME1 { get; set; } public string NAME2 { get; set; } public string COMMUADDRESS { get; set; } public string country { get; set; } public string firstTelNO { get; set; } public string providerType { get; set; } public string FAXNUMBER { get; set; } public string PURORG { get; set; } } } }