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