diff --git a/NX.ERP.Model/Response/Base/Materiel.cs b/NX.ERP.Model/Response/Base/Materiel.cs
index 094fe0b..a6bfb8d 100644
--- a/NX.ERP.Model/Response/Base/Materiel.cs
+++ b/NX.ERP.Model/Response/Base/Materiel.cs
@@ -90,20 +90,44 @@ namespace NX.ERP.Model
}
}
-
+ [Newtonsoft.Json.JsonIgnore]
public DateTime? ModifyDate { get; set; }
-
+ ///
+ /// 是否采购
+ ///
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
+ ///
+ /// 供应类型
+ /// 0-自制 1-外购 2-虚拟件 3-委外
+ ///
+ 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; }
diff --git a/NX.ERP.U8/Base/MaterielDAL.cs b/NX.ERP.U8/Base/MaterielDAL.cs
index a7dbc7b..2a16e2e 100644
--- a/NX.ERP.U8/Base/MaterielDAL.cs
+++ b/NX.ERP.U8/Base/MaterielDAL.cs
@@ -53,11 +53,11 @@ namespace NX.ERP.U8
cInvCCode AS MaterialTypeCode,
cReplaceItem AS 替换件,
cPosition AS 货位编码,
- bSale AS 是否销售,
+ bSale AS IsSale,
bPurchase AS IsPurchase,
bSelf AS IsSelf,
bComsume AS 是否生产耗用,
- bProducing AS 是否在制,
+ bProducing AS IsProducing,
bService AS 是否应税劳务,
bAccessary AS 是否成套件,
iTaxRate AS TaxRate,
@@ -176,7 +176,7 @@ namespace NX.ERP.U8
iQTMethod AS 质量检验方案,
PictureGUID AS 图片GUID,
bPlanInv AS 是否计划品,
- bProxyForeign AS 是否委外,
+ bProxyForeign AS ProxyForeign,
bATOModel AS 是否ATO模型,
bCheckItem AS 是否选项类,
bPTOModel AS 是否PTO模型,