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.
 
 
 
 
 

67 lines
2.2 KiB

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
{
/// <summary>
/// 工厂
/// </summary>
public int DI_BATCHNO { get; set; }
/// <summary>
/// 存储地点
/// </summary>
public string VENDORNO { get; set; }
public string MTLNO { get; set; }
/// <summary>
/// 物料号
/// </summary>
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; }
public string RESPONSIBLESALESPERSON { get; set; }
}
}
}