| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414 |
- 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
- {
- /// <summary>
- /// 交割提货查询
- /// </summary>
- public class TakaDeliveryGoodsQueryModel
- {
- #region SQL字段
- //<select id="SearchTakaDeliveryGoodsQuery" parameterType="java.util.Map"
- // resultType="HashMap">
- // SELECT
- // os.StoreOutId,
- // os.StoreOutCode,
- // os.WareHouseId,
- // os.remark,
- //os.RECEIVEPERSON,
- // os.RECEIVEADDRESS,
- // os.PHONENUM,
- // os.RequestTime,
- // os.AuditStatus,
- // os.AccountId,
- // hos.wrid,--仓单ID
- // nod.WRCodeGroup,
- // nod.BrandGroup,
- // nod.RankGroup,
- // nod.SpecGroup,
- // nod.WarehouseNameGroup,
- // nod.DeliveryGoodsNameGroup,
- // nod.StoreOutQtyGroup
- // from OutStoreRequest os
- // left join StoreOutRequestDetial srd on srd.storeoutid =os.storeoutid
- // left join WarehouseReciept hos on hos.wrid=srd.wrid
- // left join (select od.storeoutid,
- // listagg(to_char(od.wrcode),',') within group (order by od.wrcode) WRCodeGroup,
- // listagg(to_char(od.brand),',') within group (order by od.brand) BrandGroup,
- // listagg(to_char(od.rank),',') within group (order by od.rank) RankGroup,
- // listagg(to_char(od.Spec),',') within group (order by od.Spec) SpecGroup,
- // listagg(to_char(od.warehousename),',') within group (order by od.warehousename) WarehouseNameGroup,
- // listagg(to_char(od.deliverygoodsname),',') within group (order by od.deliverygoodsname) DeliveryGoodsNameGroup,
- // listagg(to_char(od.StoreOutQty),',') within group (order by od.StoreOutQty) StoreOutQtyGroup
- // from (select sor.storeoutqty,gs.deliverygoodsname,wh.warehousename,wr.Spec,wr.brand,wr.rank,wr.wrid,wr.wrcode,sor.storeoutid
- // from StoreOutRequestDetial sor
- // left join WarehouseReciept wr on wr.wrid=sor.wrid
- // left join WareHouse wh on wh.warehouseid=wr.warehouseid
- // left join DeliveryGoods gs on gs.DeliveryGoodsId=wr.DeliveryGoodsId) od
- // group by od.storeoutid) nod on nod.StoreOutId=os.StoreOutId
- // <where>
- // os.AccountId =#{accountId}
- // <if test="startDate != null">
- // AND os.RequestTime >=to_date(#{startDate},'yyyy-MM-dd hh24:mi:ss')
- // </if>
- // <if test="endDate != null">
- // AND os.RequestTime <=to_date(#{endDate},'yyyy-MM-dd hh24:mi:ss')
- // </if>
- // </where>
- // order by os.RequestTime desc
- //</select>
- #endregion
- #region 仓单变更流水表WRChangeFlow
- /// <summary>
- /// 提货流水
- /// </summary>
- [PropertyDisc("autoidFlowNum")]
- public string autoidFlowNum { get; set; }
- #endregion
- #region 出库单表OutStoreRequest
- /// <summary>
- /// 出库ID
- /// </summary>
- [PropertyDisc("StoreOutId")]
- public long StoreOutId { get; set; }
- /// <summary>
- /// 出库单号
- /// </summary>
- [PropertyDisc("StoreOutCode")]
- public long StoreOutCode { get; set; }
- /// <summary>
- /// 出库仓库ID
- /// </summary>
- [PropertyDisc("WareHouseId")]
- public long WareHouseId { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [PropertyDisc("Remark")]
- public string Remark { get; set; }
- /// <summary>
- /// 收货人
- /// </summary>
- [PropertyDisc("RECEIVEPERSON")]
- public string RecievePerson { get; set; }
- /// <summary>
- /// 收货地址
- /// </summary>
- [PropertyDisc("RECEIVEADDRESS")]
- public string RecieveAddress { get; set; }
- /// <summary>
- /// 联系电话
- /// </summary>
- [PropertyDisc("PHONENUM")]
- public string PhoneNum { get; set; }
-
- /// <summary>
- /// 申请时间
- /// </summary>
- [PropertyDisc("RequestTime")]
- public DateTime RequestTime { get; set; }
- /// <summary>
- /// 审核状态
- /// </summary>
- [PropertyDisc("AuditStatus")]
- public eAuditStatus AuditStatus { get; set; }
- /// <summary>
- /// 申请账户
- /// </summary>
- [PropertyDisc("AccountId")]
- public long AccountId { get; set; }
- #endregion
- #region 出库单明细表StoreOutRequestDetial
- /// <summary>
- /// 出库数量组
- /// </summary>
- [PropertyDisc("StoreOutQtyGroup")]
- public string StoreOutQtyGroup { get; set; }
- #endregion
- #region 仓库表WareHouse
- /// <summary>
- /// 仓库名称组
- /// </summary>
- [PropertyDisc("WarehouseNameGroup")]
- public string WarehouseNameGroup { get; set; }
- /// <summary>
- /// 仓库地址
- /// </summary>
- [PropertyDisc("WareHouseAddress")]
- public string WareHouseAddress { get; set; }
- /// <summary>
- /// 仓库地区
- /// </summary>
- [PropertyDisc("AreaAddress")]
- public string AreaAddress { get; set; }
- /// <summary>
- /// 仓库具体地址
- /// </summary>
- [PropertyDisc("detailAddress")]
- public string DetailAddress { get; set; }
- #endregion
- #region 仓单表WarehouseReciept
- /// <summary>
- /// 仓单ID
- /// </summary>
- [PropertyDisc("WRID")]
- public long WRID { get; set; }
- /// <summary>
- /// 仓单号组
- /// </summary>
- [PropertyDisc("WRCodeGroup")]
- public string WRCodeGroup { get; set; }
- /// <summary>
- /// 品牌组
- /// </summary>
- [PropertyDisc("BrandGroup")]
- public string BrandGroup { get; set; }
- /// <summary>
- /// 等级组
- /// </summary>
- [PropertyDisc("RankGroup")]
- public string RankGroup { get; set; }
- /// <summary>
- /// 规格组
- /// </summary>
- [PropertyDisc("SpecGroup")]
- public string SpecGroup { get; set; }
- /// <summary>
- /// 单位
- /// </summary>
- //[PropertyDisc("GoodsUnitId")]
- //public long GoodsUnitId { get; set; }
- #endregion
- #region 交割商品DeliveryGoods
- /// <summary>
- /// 交割商品名称组
- /// </summary>
- [PropertyDisc("DeliveryGoodsNameGroup")]
- public string DeliveryGoodsNameGroup { get; set; }
- /// <summary>
- /// 交割商品代碼
- /// </summary>
- [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();
- }
- }
- /// <summary>
- /// 身份证号
- /// </summary>
- [PropertyDisc("cardnum")]
- public string IdCardNum { get; set; }
- /// <summary>
- ///
- /// </summary>
- [PropertyDisc("taketype")]
- public TakeGoodsWay TakeGoodsWay { get; set; }
- public string TakeGoodsWayDisplay
- {
- get
- {
- if (TakeGoodsWay == 0)
- {
- return "--";
- }
- return TakeGoodsWay.Discription();
- }
- }
- /// <summary>
- /// 是否显示地址
- /// </summary>
- public bool IsShowAddress
- {
- get
- {
- return TakeGoodsWay == TakeGoodsWay.Express;
- }
- }
- /// <summary>
- /// 仓库名称组-转换显示
- /// </summary>
- public string WarehouseNameGroupDisplay
- {
- get
- {
- if (WarehouseNameGroup != null && WarehouseNameGroup != "")
- {
- string[] tempWarehouseName = WarehouseNameGroup.Split(',');
- if (tempWarehouseName.Length > 0)
- {
- return tempWarehouseName[0];
- }
- else
- {
- return WarehouseNameGroup;
- }
- }
- else
- {
- return "-";
- }
- }
- }
- /// <summary>
- /// 仓单号组-转换显示
- /// </summary>
- public string WRCodeGroupDisplay
- {
- get
- {
- if (WRCodeGroup != null && WRCodeGroup != "")
- {
- return WRCodeGroup;
- }
- else
- {
- return "-";
- }
-
- }
- }
- /// <summary>
- /// 品牌组-转换显示
- /// </summary>
- public string BrandGroupDisplay
- {
- get
- {
- if (BrandGroup != null && BrandGroup != "")
- {
- return BrandGroup;
- }
- else
- {
- return "-";
- }
- }
- }
- /// <summary>
- /// 等级组-转换显示
- /// </summary>
- public string RankGroupDisplay
- {
- get
- {
- if (RankGroup != null && RankGroup != "")
- {
- return RankGroup;
- }
- else
- {
- return "-";
- }
- }
- }
- /// <summary>
- /// 规格组-转换显示
- /// </summary>
- public string SpecGroupDisplay
- {
- get
- {
- if (SpecGroup != null && SpecGroup != "")
- {
- return SpecGroup;
- }
- else
- {
- return "-";
- }
- }
- }
- /// <summary>
- /// 交割商品名称组-转换显示
- /// </summary>
- public string DeliveryGoodsNameGroupDisplay
- {
- get
- {
- if (DeliveryGoodsNameGroup != null && DeliveryGoodsNameGroup != "")
- {
- return DisplayGoodsCodeName;
- }
- else
- {
- return "-";
- }
- }
- }
- /// <summary>
- /// 出库数量组-转换显示
- /// </summary>
- public string StoreOutQtyGroupDisplay
- {
- get
- {
- if (StoreOutQtyGroup != null && StoreOutQtyGroup != "")
- {
- return StoreOutQtyGroup;
- }
- else
- {
- return "-";
- }
- }
- }
- }
- }
|