修改
This commit is contained in:
@@ -90,20 +90,44 @@ namespace NX.ERP.Model
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
public DateTime? ModifyDate { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 是否采购
|
||||
/// </summary>
|
||||
public bool IsPurchase { get; set; }
|
||||
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
public bool IsSelf { get; set; }
|
||||
|
||||
public bool IsSub { get; set; }
|
||||
|
||||
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
public bool ProxyForeign { get; set; }
|
||||
|
||||
//bPurchase,bSelf,IsSub
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 供应类型
|
||||
/// 0-自制 1-外购 2-虚拟件 3-委外
|
||||
/// </summary>
|
||||
public int PlanProperty
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.IsPurchase && this.ProxyForeign) return 3;
|
||||
if (this.IsSelf) return 0;
|
||||
if (this.IsPurchase) return 1;
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public bool IsSale { get; set; }
|
||||
|
||||
public bool IsProducing { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user