| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- //----------------------------------------------------------------
- //Module Name: $safeprojectname$
- //Purpose:
- //CopyRight: Muchinfo
- //History:
- //----------------------------------------------------------------
- //DateTime 2017/1/12 23:10:03
- //Author
- //Description Create
- //----------------------------------------------------------------
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Data.Helper;
- namespace Muchinfo.MTPClient.Data.Model
- {
- public class DepositApplyModel
- {
-
- //入库单id StoreInId ,
- //入库单号 StoreInCode ,
- //入库仓库 WareHouseId ,
- //总手续费 TotalCharge ,
- //审核状态 AuditStatus ,
- //申请时间 RequestTime ,
- //申请人Id RequestorId ,
-
- //备注 Remark ,
- //入库明细Id StoreInDetailId ,
- //交割商品ID DeliveryGoodsId ,
- // DeliveryGoodsName,
- // DeliveryGoodsCode,
- //单位 GoodsUnitId ,
- //申请数 Qty ,
- //GoodsUnitName,
- //入库估价 StoreInPrice,
- //入库数 StoreInQty,
- //手续费 StoreInCharge ,
- //状态 Status ,
- // t.listingrate,
- //t.DEPOSITREFERPRICE,
- /// <summary>
- /// 入库单id
- /// </summary>
- [PropertyDisc("StoreInId")]
- public long StoreInId { get; set; }
- /// <summary>
- /// 入库单号
- /// </summary>
- [PropertyDisc("StoreInCode")]
- public string StoreInCode { get; set; }
- /// <summary>
- /// 入库仓库id
- /// </summary>
- [PropertyDisc("WareHouseId")]
- public int WareHouseId { get; set; }
- /// <summary>
- /// //入库仓库
- /// </summary>
- [PropertyDisc("WareHouseName")]
- public string WareHouseName { get; set; }
- /// <summary>
- /// 审核状态
- /// </summary>
- [PropertyDisc("AuditStatus")]
- public eAuditStatus AuditStatus { get; set; }
- /// <summary>
- /// 申请时间
- /// </summary>
- [PropertyDisc("RequestTime")]
- public string RequestTime { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [PropertyDisc("Remark")]
- public string Remark { get; set; }
- /// <summary>
- /// 冻结手续费
- /// </summary>
- public decimal FreezeCharge
- {
- get
- {
- return Math.Round(ListingRate * DepositReferPrice * Qty, 2, MidpointRounding.AwayFromZero);
- }
- }
-
- /// <summary>
- /// 交割商品
- /// </summary>
- [PropertyDisc("DeliveryGoodsName")]
- public string DeliveryGoodsName { get; set; }
- /// <summary>
- /// 交割商品代码
- /// </summary>
- [PropertyDisc("DeliveryGoodsCode")]
- public string DeliveryGoodsCode { get; set; }
- /// <summary>
- /// /申请数
- /// </summary>
- [PropertyDisc("Qty")]
- public decimal Qty { get; set; }
- /// <summary>
- /// 单位
- /// </summary>
- [PropertyDisc("GoodsUnitName")]
- public string GoodsUnitName { get; set; }
- /// <summary>
- /// 入库估价
- /// </summary>
- [PropertyDisc("StoreInPrice")]
- public decimal StoreInPrice { get; set; }
- /// <summary>
- /// 入库数量
- /// </summary>
- [PropertyDisc("StoreInQty")]
- public decimal StoreInQty { get; set; }
- /// <summary>
- /// r手续费
- /// </summary>
- //[PropertyDisc("StoreInCharge")]
- public decimal StoreInCharge
- {
- get
- {
- return Math.Round(ListingRate*DepositReferPrice*StoreInQty, 2, MidpointRounding.AwayFromZero);
- }
- }
- /// <summary>
- /// 挂牌费率
- /// </summary>
- [PropertyDisc("ListingRate")]
- public decimal ListingRate { get; set; }
- /// <summary>
- /// 参考价
- /// </summary>
- [PropertyDisc("DEPOSITREFERPRICE")]
- public decimal DepositReferPrice { get; set; }
- /// <summary>
- /// 是否可取消
- /// </summary>
- public bool CanCancel
- {
- get
- {
- return AuditStatus == eAuditStatus.AUDITSTATUS_CHECKING;
- }
- }
- /// <summary>
- /// 状态描述
- /// </summary>
- public string DisplayAuditStatus
- {
- get
- {
- return AuditStatus.Discription();
- }
- }
- /// <summary>
- /// 显示入库数量
- /// </summary>
- public string DisplayStoreInQty
- {
- get
- {
- if (AuditStatus == eAuditStatus.AUDITSTATUS_SUCCESS)
- {
- return StoreInQty + string.Empty;
- }
- else
- {
- return "--";
- }
- }
- }
- /// <summary>
- /// 显示入库手续费
- /// </summary>
- public string DisplayStoreInCharge
- {
- get
- {
- if (AuditStatus == eAuditStatus.AUDITSTATUS_SUCCESS)
- {
- return StoreInCharge + string.Empty;
- }
- else
- {
- return "--";
- }
- }
- }
- }
- public class DepositWareHouse
- {
- [PropertyDisc("WareHouseName")]
- public string WareHouseName { get; set; }
- [PropertyDisc("WareHouseId")]
- public long WareHouseId { get; set; }
- }
- }
|