| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- using Business.Core.Attributes;
- using Microsoft.EntityFrameworkCore;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- namespace Business.Domain
- {
- /// <summary>
- /// 物料采购报价单
- /// </summary>
- [CollectionName("dopbase", "srm_purchase")]
- [Comment("物料采购报价单")]
- [Index(nameof(number), nameof(supplier_number), nameof(tenant_id), nameof(factory_id), IsUnique = true)]
- public class srm_purchase : BaseEntity
- {
- public srm_purchase(long Id) : base(Id)
- {
- }
- /// <summary>
- /// 物料id
- /// </summary>
- [Required]
- [Comment("物料id")]
- public long icitem_id { get; set; }
- /// <summary>
- /// 物料编码
- /// </summary>]
- [StringLength(20)]
- [Comment("物料编码")]
- public string number { get; set; }
- /// <summary>
- /// 物料名称
- /// </summary>
- [StringLength(80)]
- [Comment("物料名称")]
- public string icitem_name { get; set; }
- /// <summary>
- /// 货源清单编号
- /// </summary>
- [Comment("货源清单编号")]
- [StringLength(80)]
- public string sourcelist_number { get; set; }
- /// <summary>
- /// 供应商id
- /// </summary>
- [Comment("供应商id")]
- public long? supplier_id { get; set; }
- /// <summary>
- /// 供应商编码
- /// </summary>
- [StringLength(80)]
- [Comment("供应商编码")]
- public string supplier_number { get; set; }
- /// <summary>
- /// 供应商名称
- /// </summary>
- [StringLength(80)]
- [Comment("供应商名称")]
- public string supplier_name { get; set; }
- /// <summary>
- /// 采购组
- /// </summary>
- [StringLength(80)]
- [Comment("采购组")]
- public string purchgroup { get; set; }
- /// <summary>
- /// 采购员
- /// </summary>
- [StringLength(80)]
- [Comment("采购员")]
- public string purcher { get; set; }
- /// <summary>
- /// 采购计量单位
- /// </summary>
- [StringLength(80)]
- [Comment("采购计量单位")]
- public string purchase_unit { get; set; }
- /// <summary>
- /// 采购净价(不含税)
- /// </summary>
- [Precision(23, 10)]
- [Comment("采购净价(不含税)")]
- public decimal? netpurchase_price { get; set; }
- /// <summary>
- /// 税率
- /// </summary>
- [Precision(23, 10)]
- [Comment("税率")]
- public decimal? taxrate { get; set; }
- /// <summary>
- /// 币种
- /// </summary>
- [Comment("币种")]
- public long? currency_type { get; set; }
- /// <summary>
- /// 采购负责人
- /// </summary>
- [StringLength(80)]
- [Comment("采购负责人")]
- public string order_rector_name { get; set; }
- /// <summary>
- /// 采购负责人_工号
- /// </summary>
- [StringLength(80)]
- [Comment("采购负责人_工号")]
- public string order_rector_num { get; set; }
- /// <summary>
- /// 工厂编码
- /// </summary>
- [StringLength(80)]
- [Comment("工厂编码")]
- public string factory_code { get; set; }
- /// <summary>
- /// 采购部门
- /// </summary>
- [StringLength(80)]
- [Comment("采购部门")]
- public string order_dept { get; set; }
- /// <summary>
- /// 采购单价
- /// </summary>
- [Precision(23, 10)]
- [Comment("采购单价")]
- public decimal? order_price { get; set; }
- /// <summary>
- /// 销售单价
- /// </summary>
- [Precision(23, 10)]
- [Comment("销售单价")]
- public decimal? sale_price { get; set; }
- /// <summary>
- /// 最小订货量
- /// </summary>
- [Precision(23, 10)]
- [Comment("最小订货量")]
- public decimal? qty_min { get; set; }
- /// <summary>
- /// 批量增量
- /// </summary>
- [Precision(23, 10)]
- [Comment("批量增量")]
- public decimal? batch_append_qty { get; set; }
- /*/// <summary>
- /// 是否周期送货
- /// </summary>
- [Comment("是否周期送货")]
- public bool is_week { get; set; }
- /// <summary>
- /// 每周几送货
- /// </summary>
- [StringLength(80)]
- [Comment("每周几送货")]
- public string is_days { get; set; }*/
- /// <summary>
- /// 计算ID
- /// </summary>
- [Comment("计算id")]
- [NotMapped]
- public long? bang_id { get; set; }
- /// <summary>
- /// 供应类别
- /// </summary>
- [StringLength(80)]
- [Comment("供应类别")]
- public string supplier_type { get; set; }
- }
- }
|