using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Domain.Entities.Resource
{
    /// 
    /// 物料供应商
    /// 
    [SugarTable("Res_ItemVendor")]
    public class Res_ItemVendor : EntityBase
    {
        /// 
        /// 供应商公司经营范围,SetDataId拼接,请注意拼接格式统一为英文逗号
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
        public string BusRange { get; set; }
        /// 
        /// 供应商名称(公司全称)
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(100)")]
        public string FullName { get; set; }
        /// 
        /// 供应商简称
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
        public string ShortName { get; set; }
        /// 
        /// 供应商联系地址
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(100)")]
        public string Address { get; set; }
        /// 
        /// 供应商联系人
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
        public string Linker { get; set; }
        /// 
        /// 供应商联系人职位
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
        public string Job { get; set; }
        /// 
        /// 供应商联系方式
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
        public string Mobile { get; set; }
    }
    [SugarTable("Res_ItemType")]
    public class Res_ItemTypeInfo : EntityBase
    {
        [SugarColumn(IsNullable = true, ColumnDataType = "int")]
        public int SdId { get; set; }
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
        public string TypeName { get; set; }
    }
    /// 
    /// 物料供应详细信息表
    /// 
    [SugarTable("Res_ItemDetail")]
    public class Res_ItemDetailInfo : EntityBase
    {
        /// 
        /// 物料供应商
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "int")]
        public int VendorId { get; set; }
        /// 
        /// 物料名称
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
        public string ItemName { get; set; }
        /// 
        /// 物料类型Id
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "int")]
        public int ItemTypeId { get; set; }
        /// 
        /// 最低单价
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(9,2)")]
        public decimal MinRate { get; set; }
        /// 
        /// 最低价格维护时间
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
        public DateTime MinDt { get; set; }
        /// 
        /// 最高单价
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(9,2)")]
        public decimal MaxRate { get; set; }
        /// 
        /// 最高价格维护时间
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
        public DateTime MaxDt { get; set; }
        /// 
        /// 当前单价
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "decimal(9,2)")]
        public decimal CurrRate { get; set; }
        /// 
        /// 当前价格维护时间
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
        public DateTime CurrDt { get; set; }
    }
}