using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Domain.Entities.Financial
{
    /// 
    /// 日服申请单物品关联表
    /// 
    [SugarTable(tableName: "Fin_ApplicationLinkGoods", tableDescription: "日服申请单物品关联表")]
    public class Fin_ApplicationLinkGoods : EntityBase
    {
        /// 
        /// 日付申请Id(Fin_DailyFeePayment)
        /// 
        [SugarColumn(ColumnName = "DailyId", ColumnDescription = "日付申请Id(Fin_DailyFeePayment)", IsNullable = true, ColumnDataType = "int")]
        public int DailyId { get; private set; }
        /// 
        /// 物品Id(Pm_GoodsInfo)
        /// 
        [SugarColumn(ColumnName = "GoodsId", ColumnDescription = "物品Id(Pm_GoodsInfo)", IsNullable = true, ColumnDataType = "int")]
        public int GoodsId { get; private set; }
        /// 
        /// 物品入库Id(Pm_GoodsStorage)
        /// 
        [SugarColumn(ColumnName = "GoodsStorageId", ColumnDescription = "物品入库Id(Pm_GoodsStorage)", IsNullable = true, ColumnDataType = "int")]
        public int GoodsStorageId { get; private set; }
        public Fin_ApplicationLinkGoods() { }
        /// 
        /// info
        /// 构造函数
        /// 
        /// 
        /// 
        /// 
        /// 
        /// 
        /// 
        public Fin_ApplicationLinkGoods(int id, int dailyId, int goodsId, int goodsStorageId, string remark, int userId)
        {
            Id = id;
            DailyId = dailyId;
            GoodsId = goodsId;
            GoodsStorageId = goodsStorageId;
            Remark = remark;
            CreateUserId = userId;
            CreateTime = DateTime.Now;
        }
        /// 
        /// 删除赋值构造函数
        /// 
        /// 
        public Fin_ApplicationLinkGoods(int userId)
        {
            DeleteUserId = userId;
            DeleteTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        }
    }
}