@ -15,8 +15,8 @@ namespace Win.Sfs.SettleAccount.Entities.WMS_SparePart
public void SetValue ( Guid guid , Guid branchId , string year , string peroid , string version )
public void SetValue ( Guid guid , Guid branchId , string year , string peroid , string version )
{
{
Period = peroid ;
//Period = peroid;
Year = year ;
//Year = year;
Id = guid ;
Id = guid ;
Version = version ;
Version = version ;
BranchId = branchId ;
BranchId = branchId ;
@ -29,187 +29,280 @@ namespace Win.Sfs.SettleAccount.Entities.WMS_SparePart
) : base ( Id )
) : base ( Id )
{
{
Year = year ;
Period = period ;
Version = version ;
Version = version ;
LineNumber = lineNumber ;
PurchaseType = purchaseType ;
PurchaseOrderNo = purchaseOrderNo ;
PurchaseOrderNoItem = purchaseOrderNoItem ;
PurchaseOrderNoText = purchaseOrderNoText ;
ReceiptQty = receiptQty ;
ReceiptQty = receiptQty ;
InvoicedQty = invoicedQty ;
AmountNoTax = amountNoTax ;
PurchasePriceNoTax = purchasePriceNoTax ;
AccountNum = accountNum ;
MaterialCode = materialCode ;
MaterialCode = materialCode ;
MaterialDesc = materialDesc ;
MaterialDesc = materialDesc ;
SpareDate = spareDate ;
SpareDate = spareDate ;
DeliveryOrderNo = deliveryOrderNo ;
DeliveryLineNum = deliveryLineNum ;
BatchNo = batchNo ;
Unit = unit ;
TaxRate = taxRate ;
TaxCode = taxCode ;
Factory = factory ;
}
}
//行号 采购类型 采购订单号 采购订单行项目 采购订单文本 收货数量 开票数量 不含税金额 采购价格不含税
//科目号 物料代码 物料描述 日期 交货单号 交货行号 批次号 单位 税率 税码
//德国发票号 AP_REQUISITION_MIMRS.GERMANY_INVOCE_AMOUNT 借贷 PO币种 工厂 工厂名称 BM 单号
/// <summary>
///年
/// </summary>
[Display(Name = "年")]
public string Year { get ; set ; }
/// <summary>
/// 期间
/// </summary>
[Display(Name = "交货日期")]
public string Period { set ; get ; }
/// <summary>
/// <summary>
/// 版本号
/// 版本号
/// </summary>
/// </summary>
[Display(Name = "版本号")]
[Display(Name = "版本号")]
public string Version { set ; get ; }
public string Version { set ; get ; }
/// <summary>
/// 行号
/// </summary>
[Display(Name = "行号")]
public string LineNumber { set ; get ; }
/// <summary>
/// <summary>
/// 采购类型
/// SAP物料号
/// </summary>
/// </summary>
[Display(Name = "采购类型 ")]
[Display(Name = "SAP物料号")]
public string PurchaseTyp e { get ; set ; }
public string SapCode { get ; set ; }
/// <summary>
/// 采购订单号
/// </summary>
[Display(Name = "采购订单号")]
public string PurchaseOrderNo { get ; set ; }
/// <summary>
/// 采购订单行项目
/// </summary>
[Display(Name = "采购订单行项目")]
public string PurchaseOrderNoItem { get ; set ; }
/// <summary>
/// 采购订单文本
/// </summary>
[Display(Name = "采购订单文本")]
public string PurchaseOrderNoText { get ; set ; }
/// <summary>
/// 收货数量
/// </summary>
[Display(Name = "发货数量")]
public decimal ReceiptQty { get ; set ; }
/// <summary>
/// <summary>
/// 开票数量
/// 主机厂
/// </summary>
/// </summary>
[Display(Name = "开票数量")]
[Display(Name = "主机厂")]
public decimal InvoicedQty { get ; set ; }
public string MainFactory { get ; set ; }
/// <summary>
/// 不含税金额
/// </summary>
[Display(Name = "不含税金额")]
public decimal AmountNoTax { get ; set ; }
/// <summary>
/// 采购价格不含税
/// </summary>
[Display(Name = "采购价格不含税")]
public decimal PurchasePriceNoTax { get ; set ; }
/// <summary>
/// <summary>
/// 科目号
/// 车型
/// </summary>
/// </summary>
[Display(Name = "科目号")]
[Display(Name = "车型")]
public string AccountNum { get ; set ; }
public string MaterialGroup { get ; set ; }
/// <summary>
/// <summary>
/// 物料代码
/// 物料代码-零件号
/// </summary>
/// </summary>
[Display(Name = "物料代码")]
[Display(Name = "物料代码")]
public string MaterialCode { get ; set ; }
public string MaterialCode { get ; set ; }
/// <summary>
/// <summary>
/// 物料描述
/// 物料描述-存货名称
/// </summary>
/// </summary>
[Display(Name = "物料描述")]
[Display(Name = "物料描述")]
public string MaterialDesc { get ; set ; }
public string MaterialDesc { get ; set ; }
/// <summary>
/// <summary>
/// 日期
/// 发货数量
/// </summary>
[Display(Name = "订单日期")]
public DateTime SpareDate { get ; set ; }
/// <summary>
/// 交货单号
/// </summary>
[Display(Name = "交货单号")]
public string DeliveryOrderNo { get ; set ; }
/// <summary>
/// 交货行号
/// </summary>
[Display(Name = "交货行号")]
public string DeliveryLineNum { get ; set ; }
/// <summary>
/// 批次号
/// </summary>
[Display(Name = "批次号")]
public string BatchNo { get ; set ; }
/// <summary>
/// 单位
/// </summary>
[Display(Name = "单位")]
public string Unit { get ; set ; }
/// <summary>
/// 税率
/// </summary>
[Display(Name = "税率")]
public decimal TaxRate { get ; set ; }
/// <summary>
/// 税码
/// </summary>
[Display(Name = "税码")]
public string TaxCode { get ; set ; }
/// <summary>
/// 德国发票号
/// </summary>
[Display(Name = "德国发票号")]
public string GermanInvoiceNo { get ; set ; }
/// <summary>
/// 工厂
/// </summary>
[Display(Name = "工厂")]
public string Factory { get ; set ; }
/// <summary>
/// 工厂名称
/// </summary>
/// </summary>
[Display(Name = "工厂名称")]
[Display(Name = "发货数量")]
public string FactoryName { get ; set ; }
public decimal ReceiptQty { get ; set ; }
/// <summary>
/// <summary>
/// 备注
/// 订单号
/// </summary>
/// </summary>
[Display(Name = "备注 ")]
[Display(Name = "订单号")]
public string Extend { set ; g et; }
public string PurchaseOrderNo { get ; set ; }
/// <summary>
/// <summary>
/// WMS采购订 单号
/// 交货单号
/// </summary>
/// </summary>
[Display(Name = "交货单号")]
public string WMSDeliveryNote { set ; get ; }
public string WMSDeliveryNote { set ; get ; }
/// <summary>
/// <summary>
/// WMS发货状态
/// 交货日期
/// </summary>
/// </summary>
public string WMSDeliverGoodsState { set ; get ; }
[Display(Name = "交货日期")]
public DateTime SpareDate { get ; set ; }
/// <summary>
/// 看板结算状态
/// </summary>
public string WMSSparePartState { set ; get ; }
}
//public class WMSSparePart : FullAuditedAggregateRootBase<Guid>, ISettleAccountEntityBase
//{
// public WMSSparePart()
// { }
// public void SetValue(Guid guid, Guid branchId, string year, string peroid, string version)
// {
// Period = peroid;
// Year = year;
// Id = guid;
// Version = version;
// BranchId = branchId;
// }
// public WMSSparePart(Guid Id, string year, string period, string version, string lineNumber,
// string purchaseType, string purchaseOrderNo, string purchaseOrderNoItem, string purchaseOrderNoText,
// decimal receiptQty, decimal invoicedQty, decimal amountNoTax, decimal purchasePriceNoTax,
// string accountNum, string materialCode, string materialDesc, DateTime spareDate, string deliveryOrderNo,
// string deliveryLineNum, string batchNo, string unit, decimal taxRate, string taxCode, string factory
}
// ) : base(Id)
// {
// Year = year;
// Period = period;
// Version = version;
// LineNumber = lineNumber;
// PurchaseType = purchaseType;
// PurchaseOrderNo = purchaseOrderNo;
// PurchaseOrderNoItem = purchaseOrderNoItem;
// PurchaseOrderNoText = purchaseOrderNoText;
// ReceiptQty = receiptQty;
// InvoicedQty = invoicedQty;
// AmountNoTax = amountNoTax;
// PurchasePriceNoTax = purchasePriceNoTax;
// AccountNum = accountNum;
// MaterialCode = materialCode;
// MaterialDesc = materialDesc;
// SpareDate = spareDate;
// DeliveryOrderNo = deliveryOrderNo;
// DeliveryLineNum = deliveryLineNum;
// BatchNo = batchNo;
// Unit = unit;
// TaxRate = taxRate;
// TaxCode = taxCode;
// Factory = factory;
// }
// //行号 采购类型 采购订单号 采购订单行项目 采购订单文本 收货数量 开票数量 不含税金额 采购价格不含税
// //科目号 物料代码 物料描述 日期 交货单号 交货行号 批次号 单位 税率 税码
// //德国发票号 AP_REQUISITION_MIMRS.GERMANY_INVOCE_AMOUNT 借贷 PO币种 工厂 工厂名称 BM 单号
// /// <summary>
// ///年
// /// </summary>
// [Display(Name = "年")]
// public string Year { get; set; }
// /// <summary>
// /// 期间
// /// </summary>
// [Display(Name = "交货日期")]
// public string Period { set; get; }
// /// <summary>
// /// 版本号
// /// </summary>
// [Display(Name = "版本号")]
// public string Version { set; get; }
// /// <summary>
// /// 行号
// /// </summary>
// [Display(Name = "行号")]
// public string LineNumber { set; get; }
// /// <summary>
// /// 采购类型
// /// </summary>
// [Display(Name = "采购类型")]
// public string PurchaseType { get; set; }
// /// <summary>
// /// 采购订单号
// /// </summary>
// [Display(Name = "采购订单号")]
// public string PurchaseOrderNo { get; set; }
// /// <summary>
// /// 采购订单行项目
// /// </summary>
// [Display(Name = "采购订单行项目")]
// public string PurchaseOrderNoItem { get; set; }
// /// <summary>
// /// 采购订单文本
// /// </summary>
// [Display(Name = "采购订单文本")]
// public string PurchaseOrderNoText { get; set; }
// /// <summary>
// /// 收货数量
// /// </summary>
// [Display(Name = "发货数量")]
// public decimal ReceiptQty { get; set; }
// /// <summary>
// /// 开票数量
// /// </summary>
// [Display(Name = "开票数量")]
// public decimal InvoicedQty { get; set; }
// /// <summary>
// /// 不含税金额
// /// </summary>
// [Display(Name = "不含税金额")]
// public decimal AmountNoTax { get; set; }
// /// <summary>
// /// 采购价格不含税
// /// </summary>
// [Display(Name = "采购价格不含税")]
// public decimal PurchasePriceNoTax { get; set; }
// /// <summary>
// /// 科目号
// /// </summary>
// [Display(Name = "科目号")]
// public string AccountNum { get; set; }
// /// <summary>
// /// 物料代码
// /// </summary>
// [Display(Name = "物料代码")]
// public string MaterialCode { get; set; }
// /// <summary>
// /// 物料描述
// /// </summary>
// [Display(Name = "物料描述")]
// public string MaterialDesc { get; set; }
// /// <summary>
// /// 日期
// /// </summary>
// [Display(Name = "订单日期")]
// public DateTime SpareDate { get; set; }
// /// <summary>
// /// 交货单号
// /// </summary>
// [Display(Name = "交货单号")]
// public string DeliveryOrderNo { get; set; }
// /// <summary>
// /// 交货行号
// /// </summary>
// [Display(Name = "交货行号")]
// public string DeliveryLineNum { get; set; }
// /// <summary>
// /// 批次号
// /// </summary>
// [Display(Name = "批次号")]
// public string BatchNo { get; set; }
// /// <summary>
// /// 单位
// /// </summary>
// [Display(Name = "单位")]
// public string Unit { get; set; }
// /// <summary>
// /// 税率
// /// </summary>
// [Display(Name = "税率")]
// public decimal TaxRate { get; set; }
// /// <summary>
// /// 税码
// /// </summary>
// [Display(Name = "税码")]
// public string TaxCode { get; set; }
// /// <summary>
// /// 德国发票号
// /// </summary>
// [Display(Name = "德国发票号")]
// public string GermanInvoiceNo { get; set; }
// /// <summary>
// /// 工厂
// /// </summary>
// [Display(Name = "工厂")]
// public string Factory { get; set; }
// /// <summary>
// /// 工厂名称
// /// </summary>
// [Display(Name = "工厂名称")]
// public string FactoryName { get; set; }
// /// <summary>
// /// 备注
// /// </summary>
// [Display(Name = "备注")]
// public string Extend { set; get; }
// /// <summary>
// /// WMS采购订单号
// /// </summary>
// public string WMSDeliveryNote { set; get; }
// /// <summary>
// /// WMS发货状态
// /// </summary>
// public string WMSDeliverGoodsState { set; get; }
// /// <summary>
// /// 看板结算状态
// /// </summary>
// public string WMSSparePartState { set; get; }
//}
}
}