Files
U8-Import/NX.ERP.Model/Response/Base/Materiel.cs

136 lines
3.2 KiB
C#
Raw Normal View History

2021-01-05 11:11:28 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model
{
2021-01-28 10:10:32 +08:00
public class Material: BaseModel
2021-01-05 11:11:28 +08:00
{
2021-01-15 10:22:35 +08:00
private string _code;
private string _name;
2021-01-05 11:11:28 +08:00
private decimal length;
private decimal wide;
private decimal height;
private int volume;
private int weight;
2021-01-09 16:36:17 +08:00
private double unitPrice;
2021-01-05 11:11:28 +08:00
private string unitCode;
2021-05-15 10:46:37 +08:00
2021-01-05 11:11:28 +08:00
private int maxStock;
private int minStock;
private int aql;
2021-01-09 16:36:17 +08:00
private int invccode;
2021-01-28 10:10:32 +08:00
public string MaterialCode { get => _code; set => _code = value; }
public string MaterialName { get => _name; set => _name = value; }
2021-01-19 10:19:10 +08:00
2021-01-28 10:10:32 +08:00
public string MaterialTypeCode { get; set; }
2021-01-19 10:19:10 +08:00
public string SpecsModel { get; set; }
public string UnitCode { get => unitCode; set => unitCode = value; }
public int MinPackageQty { get; set; }
public int TaxRate { get; set; }
2021-01-05 11:11:28 +08:00
public decimal Length { get => length; set => length = value; }
public decimal Wide { get => wide; set => wide = value; }
public decimal Height { get => height; set => height = value; }
public int Volume { get => volume; set => volume = value; }
public int Weight { get => weight; set => weight = value; }
2021-01-09 16:36:17 +08:00
public double UnitPrice { get => unitPrice; set => unitPrice = value; }
2021-01-19 10:19:10 +08:00
2021-01-05 11:11:28 +08:00
public int MaxStock { get => maxStock; set => maxStock = value; }
public int MinStock { get => minStock; set => minStock = value; }
2021-01-19 10:19:10 +08:00
2021-01-22 11:51:48 +08:00
public int SafeStock { get; set; }
2021-01-19 10:19:10 +08:00
2021-01-05 11:11:28 +08:00
public int Aql { get => aql; set => aql = value; }
2021-01-19 10:19:10 +08:00
2021-01-18 11:38:02 +08:00
public double InvNCost { get; set; }
/// <summary>
/// 参考成本
/// </summary>
public double InvSPrice { get; set; }
/// <summary>
/// 计划单价
/// </summary>
public double InvRCost { get; set; }
public double ImpTaxRate { get; set; }
2021-05-15 10:46:37 +08:00
/// <summary>
/// 启用时间
/// </summary>
public DateTime? Sdate { get; set; }
/// <summary>
/// 结束时间
/// </summary>
public DateTime? Edate { get; set; }
public bool UsedFlag
{
get
{
return !Edate.HasValue;
}
}
2021-05-21 13:55:05 +08:00
2021-05-15 10:46:37 +08:00
public DateTime? ModifyDate { get; set; }
2021-05-21 13:34:51 +08:00
/// <summary>
/// 是否采购
/// </summary>
2021-05-21 13:06:45 +08:00
public bool IsPurchase { get; set; }
2021-05-21 13:34:51 +08:00
[Newtonsoft.Json.JsonIgnore]
2021-05-21 13:06:45 +08:00
public bool IsSelf { get; set; }
2021-05-21 13:34:51 +08:00
[Newtonsoft.Json.JsonIgnore]
public bool ProxyForeign { get; set; }
2021-05-21 13:06:45 +08:00
//bPurchase,bSelf,IsSub
2021-05-21 13:34:51 +08:00
/// <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; }
2021-05-15 10:46:37 +08:00
2021-01-18 11:38:02 +08:00
2021-01-19 10:19:10 +08:00
2021-01-05 11:11:28 +08:00
}
}