using iWareSAP.PARAM.Entity;
|
namespace iWareSAP.IDOC.Entity
|
{
|
public class GRMaterial
|
{
|
/// <summary>
|
/// 1采购单号
|
/// </summary>
|
|
public string EBELN { get; set; }
|
|
/// <summary>
|
/// 2行号
|
/// </summary>
|
public string EBELP { get; set; }
|
|
|
/// <summary>
|
/// 3物料号
|
/// </summary>
|
|
public string MATNR { get; set; }
|
|
|
/// <summary>
|
/// 4移动类型
|
/// </summary>
|
public string BWART { get; set; }
|
|
|
/// <summary>
|
/// 5工厂
|
/// </summary>
|
public string WERKS { get; set; }
|
|
|
/// <summary>
|
/// 6存储位置
|
/// </summary>
|
|
public string LGORT { get; set; }
|
|
|
/// <summary>
|
/// 7数量
|
/// </summary>
|
|
public decimal MENGE { get; set; }
|
|
|
/// <summary>
|
/// 构造函数
|
/// </summary>
|
public GRMaterial() { }
|
|
/// <summary>
|
/// 构造函数
|
/// </summary>
|
public GRMaterial(GRMaterialEntity grMaterial)
|
{
|
EBELN = grMaterial.PoNumber;
|
EBELP = grMaterial.PoItem;
|
MATNR = grMaterial.MaterialCode;
|
BWART = grMaterial.MoveType;
|
WERKS = grMaterial.Plant;
|
LGORT = grMaterial.StorageLocation;
|
MENGE = grMaterial.Quantity;
|
|
MATNR = "";
|
MENGE = (int)MENGE < MENGE ? MENGE : (int)MENGE;
|
|
|
}
|
|
public override string ToString()
|
{
|
return string.Format("EBELN(采购单号)={0},EBELP(行号)={1},MATNR(物料号)={2},BWART(移动类型)={3},WERKS(工厂)={4},LGORT(存储位置)={5},MENGE(数量)={6}", EBELN, EBELP, MATNR, BWART, WERKS, LGORT, MENGE);
|
}
|
}
|
}
|