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
{
class NetPriceController
{
public static DataTable GetInvBatchNetPrice(int rownum,string site)
{
//var StartRow = rownum;
//var snycCount = 100;
//string Sql = $"select * from ( select rownum myrn ,PURSubcontractorInfoRecMid.* from PURSubcontractorInfoRecMid where plant='W21' order by i,mtlNO ) tt where tt.myrn >={StartRow + 1} and tt.myrn <={StartRow + snycCount} order by myrn ";
//Sql += $" Where di_batchNO>{ls}";
string Sql = "";
if (site == "W21")
{
Sql = $"select* from PURSubcontractorInfoRecMid";
Sql += $" Where di_batchNO>{rownum} and plant='W21'";
}
else
{
Sql = $"select* from PURSubcontractorInfoRecMidFW";
Sql += $" Where di_batchNO>{rownum} and plant='U32'";
}
var dt_Part = DBControllerByOracle.GetDataTable(Sql);
return dt_Part;
}
public class PURSubcontractorInfoRecMid
{
///
/// 工厂
///
///
public int DI_BATCHNO { get; set; }
public string purOrg { get; set; }
///
/// 存储地点
///
public string MTLNO { get; set; }
///
/// 物料号
///
public string plant { get; set; }
public DateTime validityStartPeriod { get; set; }
public DateTime validityEndPeriod { get; set; }
public decimal netPrice { get; set; }
public string vendorNO { get; set; }
///
/// 批次
///
}
}
}