using RB_MES_API.Context;
using System.ComponentModel.DataAnnotations;
namespace RB_MES_API.Models.Cloud
{
public class PUR_PurchaseOrder
{
///
/// 实体主键(无需填写,保存时自动添加)
///
public int FID { get; set; }
///
/// 单据类型 (必填项)
///
[StringLength(36)]
public Dictionary FBillTypeID { get; set; } = new Dictionary() {
{ "FNumber","CGDD01_SYS"}
};
///
/// 单据编号
///
[StringLength(36)]
public string FBillNo { get; set; } = string.Empty;
///
/// 日期 (必填项)
///
[DataType(DataType.Date)]
public string FDate { get; set; } = "1900-01-01";
///
/// 供应商 (必填项)
///
public Dictionary FSupplierId { get; set; } = new Dictionary() {
{ "FNumber",""}
};
///
/// 采购组织 (必填项)
///
public Dictionary FPurchaseOrgId { get; set; } = new Dictionary() {
{ "FNumber",LocalStaticRequest.DefaultOrg}
};
///
/// 采购部门
///
public Dictionary FPurchaseDeptId { get; set; } = new Dictionary() {
{ "FNumber",LocalStaticRequest.DefaultOrg}
};
public POOrderEntry FPOOrderFinance { get; set; }
public class POOrderFinance
{
public int FEntryId { get; set; }
///
/// 结算币别 (必填项)
///
public Dictionary FSettleCurrId { get; set; } = new Dictionary() {
{ "FNumber",""}
};
}
public POOrderClause FPOOrderClause { get; set; }
public class POOrderClause
{
public int FEntryID { get;set; }
}
public List FPOOrderEntry { get; set; }
public class POOrderEntry
{
public int FEntryID { get; set; }
///
/// 物料编码 (必填项)
///
public Dictionary FMaterialId { get; set; } = new Dictionary() {
{ "FNumber",""}
};
///
/// 采购单位 (必填项)
///
public Dictionary FUnitID { get; set; } = new Dictionary() {
{ "FNumber",""}
};
///
/// 计价单位 (必填项)
///
public Dictionary FPriceUnitID { get; set; } = new Dictionary() {
{ "FNumber",""}
};
///
/// 库存单位 (必填项)
///
public Dictionary FStockUnitID { get; set; } = new Dictionary() {
{ "FNumber",""}
};
///
/// 累计入库数量
///
public decimal FStockInQty { get; set; }
///
/// 剩余入库数量
///
public decimal FRemainStockINQty { get; set; }
public List FEntryDeliveryPlan { get; set; }
///
/// 交货明细
///
public class EntryDeliveryPlan
{
public int FDetailId { get; set; }
///
/// 已交货数量
///
public decimal FDeliCommitQty { get; set; }
///
/// 剩余数量
///
public decimal FDeliRemainQty { get; set; }
///
/// 已交货数量(基本单位)
///
public decimal FBaseDeliCommitQty { get;set; }
///
/// 剩余数量(基本单位)
///
public decimal FBaseDeliRemainQty { get; set; }
}
}
}
}