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.
69 lines
2.0 KiB
69 lines
2.0 KiB
1 year ago
|
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
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 工厂
|
||
|
/// </summary>
|
||
|
///
|
||
|
public int DI_BATCHNO { get; set; }
|
||
|
public string purOrg { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 存储地点
|
||
|
/// </summary>
|
||
|
public string MTLNO { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 物料号
|
||
|
/// </summary>
|
||
|
|
||
|
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; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 批次
|
||
|
/// </summary>
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|