using Muchinfo.MTPClient.Data.Enums; using Muchinfo.MTPClient.Data.Helper; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Muchinfo.MTPClient.Data.Model.Delivery { /// /// 交割提货查询 /// public class TakaDeliveryGoodsQueryModel { #region SQL字段 // #endregion #region 仓单变更流水表WRChangeFlow /// /// 提货流水 /// [PropertyDisc("autoidFlowNum")] public string autoidFlowNum { get; set; } #endregion #region 出库单表OutStoreRequest /// /// 出库ID /// [PropertyDisc("StoreOutId")] public long StoreOutId { get; set; } /// /// 出库单号 /// [PropertyDisc("StoreOutCode")] public long StoreOutCode { get; set; } /// /// 出库仓库ID /// [PropertyDisc("WareHouseId")] public long WareHouseId { get; set; } /// /// 备注 /// [PropertyDisc("Remark")] public string Remark { get; set; } /// /// 收货人 /// [PropertyDisc("RECEIVEPERSON")] public string RecievePerson { get; set; } /// /// 收货地址 /// [PropertyDisc("RECEIVEADDRESS")] public string RecieveAddress { get; set; } /// /// 联系电话 /// [PropertyDisc("PHONENUM")] public string PhoneNum { get; set; } /// /// 申请时间 /// [PropertyDisc("RequestTime")] public DateTime RequestTime { get; set; } /// /// 审核状态 /// [PropertyDisc("AuditStatus")] public eAuditStatus AuditStatus { get; set; } /// /// 申请账户 /// [PropertyDisc("AccountId")] public long AccountId { get; set; } #endregion #region 出库单明细表StoreOutRequestDetial /// /// 出库数量组 /// [PropertyDisc("StoreOutQtyGroup")] public string StoreOutQtyGroup { get; set; } #endregion #region 仓库表WareHouse /// /// 仓库名称组 /// [PropertyDisc("WarehouseNameGroup")] public string WarehouseNameGroup { get; set; } /// /// 仓库地址 /// [PropertyDisc("WareHouseAddress")] public string WareHouseAddress { get; set; } /// /// 仓库地区 /// [PropertyDisc("AreaAddress")] public string AreaAddress { get; set; } /// /// 仓库具体地址 /// [PropertyDisc("detailAddress")] public string DetailAddress { get; set; } #endregion #region 仓单表WarehouseReciept /// /// 仓单ID /// [PropertyDisc("WRID")] public long WRID { get; set; } /// /// 仓单号组 /// [PropertyDisc("WRCodeGroup")] public string WRCodeGroup { get; set; } /// /// 品牌组 /// [PropertyDisc("BrandGroup")] public string BrandGroup { get; set; } /// /// 等级组 /// [PropertyDisc("RankGroup")] public string RankGroup { get; set; } /// /// 规格组 /// [PropertyDisc("SpecGroup")] public string SpecGroup { get; set; } /// /// 单位 /// //[PropertyDisc("GoodsUnitId")] //public long GoodsUnitId { get; set; } #endregion #region 交割商品DeliveryGoods /// /// 交割商品名称组 /// [PropertyDisc("DeliveryGoodsNameGroup")] public string DeliveryGoodsNameGroup { get; set; } /// /// 交割商品代碼 /// [PropertyDisc("DeliveryGoodscode")] public string DeliveryGoodsCode { get; set; } public string DisplayGoodsCodeName { get { return string.Format("{0}/{1}", DeliveryGoodsCode, DeliveryGoodsNameGroup); } } #endregion //审核状态-转换显示 public string AuditStatusDisplay { get { return AuditStatus.Discription(); } } /// /// 身份证号 /// [PropertyDisc("cardnum")] public string IdCardNum { get; set; } /// /// /// [PropertyDisc("taketype")] public TakeGoodsWay TakeGoodsWay { get; set; } public string TakeGoodsWayDisplay { get { if (TakeGoodsWay == 0) { return "--"; } return TakeGoodsWay.Discription(); } } /// /// 是否显示地址 /// public bool IsShowAddress { get { return TakeGoodsWay == TakeGoodsWay.Express; } } /// /// 仓库名称组-转换显示 /// public string WarehouseNameGroupDisplay { get { if (WarehouseNameGroup != null && WarehouseNameGroup != "") { string[] tempWarehouseName = WarehouseNameGroup.Split(','); if (tempWarehouseName.Length > 0) { return tempWarehouseName[0]; } else { return WarehouseNameGroup; } } else { return "-"; } } } /// /// 仓单号组-转换显示 /// public string WRCodeGroupDisplay { get { if (WRCodeGroup != null && WRCodeGroup != "") { return WRCodeGroup; } else { return "-"; } } } /// /// 品牌组-转换显示 /// public string BrandGroupDisplay { get { if (BrandGroup != null && BrandGroup != "") { return BrandGroup; } else { return "-"; } } } /// /// 等级组-转换显示 /// public string RankGroupDisplay { get { if (RankGroup != null && RankGroup != "") { return RankGroup; } else { return "-"; } } } /// /// 规格组-转换显示 /// public string SpecGroupDisplay { get { if (SpecGroup != null && SpecGroup != "") { return SpecGroup; } else { return "-"; } } } /// /// 交割商品名称组-转换显示 /// public string DeliveryGoodsNameGroupDisplay { get { if (DeliveryGoodsNameGroup != null && DeliveryGoodsNameGroup != "") { return DisplayGoodsCodeName; } else { return "-"; } } } /// /// 出库数量组-转换显示 /// public string StoreOutQtyGroupDisplay { get { if (StoreOutQtyGroup != null && StoreOutQtyGroup != "") { return StoreOutQtyGroup; } else { return "-"; } } } } }