using System; using HcUtility.Core; using Newtonsoft.Json; namespace DSWeb.MvcShipping.Models.MsCwVouchersGl { [JsonObject] public class MsCwVouchersGl : ModelObjectBillHead { #region 读写属性 private string _ordno = Guid.NewGuid().ToString(); /// /// 唯一编码 /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string ORDNO { get { return _ordno; } set { _ordno = value; } } private string _vouno = ""; /// /// 自动生成编号,月初清零 /// [ModelDB] public string VOUNO { get { return _vouno; } set { _vouno = value; } } private string _vkno = ""; /// /// 凭证字 /// [ModelDB] public string VKNO { get { return _vkno; } set { _vkno = value; } } //private DateTime _voudate = DateTime.Now; ///// ///// 凭证日期 ///// //[ModelDB] //public DateTime VOUDATE //{ // get { return _voudate; } // set { _voudate = value; } //} private string _voudate; /// /// 凭证日期 /// [ModelDB] public string VOUDATE { get { return _voudate; } set { _voudate = value; } } private string _accyear = DateTime.Now.Year.ToString(); /// /// 年 /// [ModelDB] public string ACCYEAR { get { return _accyear; } set { _accyear = value; } } private string _accmonth = DateTime.Now.Month.ToString(); /// /// 月 /// [ModelDB] public string ACCMONTH { get { return _accmonth; } set { _accmonth = value; } } private int _attachs = 0; /// /// 附件(单据)数 /// [ModelDB] public int ATTACHS { get { return _attachs; } set { _attachs = value; } } private decimal _amtdr = 0; /// /// 本位币借方 /// [ModelDB] public decimal AMTDR { get { return _amtdr; } set { _amtdr = value; } } private decimal _amtcr = 0; /// /// 本位币贷方 /// [ModelDB] public decimal AMTCR { get { return _amtcr; } set { _amtcr = value; } } private string _fcy = ""; /// /// 是否含有外币科目 /// [ModelDB] public string FCY { get { return _fcy; } set { _fcy = value; } } private string _qty = ""; /// /// 是否含有数量科目 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string QTY { get { return _qty; } set { _qty = value; } } private string _vouprop = ""; /// /// 凭证属性 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string VOUPROP { get { return _vouprop; } set { _vouprop = value; } } private string _prepared = ""; /// /// 制单人 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string PREPARED { get { return _prepared; } set { _prepared = value; } } private string _checked = ""; /// /// 审核人 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CHECKED { get { return _checked; } set { _checked = value; } } private string _entered = ""; /// /// 记账人 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string ENTERED { get { return _entered; } set { _entered = value; } } private string _errmsg = ""; /// /// 错误信息 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string ERRMSG { get { return _errmsg; } set { _errmsg = value; } } private bool _isdelete = false; /// /// 是否废除 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public bool ISDELETE { get { return _isdelete; } set { _isdelete = value; } } private string _deleteuser = ""; /// /// 废除操作人 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string DELETEUSER { get { return _deleteuser; } set { _deleteuser = value; } } private DateTime _deletetime = DateTime.Now; /// /// 废除时间 /// public DateTime DELETETIME { get { return _deletetime; } set { _deletetime = value; } } private string _vouallno = ""; /// /// 年+月+自动生成编号=凭证号 /// [ModelDB] public string VOUALLNO { get { return _vouallno; } set { _vouallno = value; } } private bool _isexport = false; /// /// 是否导出凭证 /// public bool ISEXPORT { get { return _isexport; } set { _isexport = value; } } private bool _ISCHECKED = false; /// /// 是否审核 /// public bool ISCHECKED { get { return _ISCHECKED; } set { _ISCHECKED = value; } } private DateTime _CHECKEDTIME = DateTime.Now; /// /// 审核时间 /// public DateTime CHECKEDTIME { get { return _CHECKEDTIME; } set { _CHECKEDTIME = value; } } private string _CHECKEDNAME = ""; /// /// 审核人名称 /// public string CHECKEDNAME { get { return _CHECKEDNAME; } set { _CHECKEDNAME = value; } } private string _CarryOverType = ""; /// /// CarryOverType /// public string CarryOverType { get { return _CarryOverType; } set { _CarryOverType = value; } } private string _CREATEUSER = ""; /// /// 制单人CREATEUSER_GID /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CREATEUSER { get { return _CREATEUSER; } set { _CREATEUSER = value; } } private string _CREATEUSERNAME = ""; /// /// 制单人CREATEUSER /// public string CREATEUSERNAME { get { return _CREATEUSERNAME; } set { _CREATEUSERNAME = value; } } private DateTime _CREATETIME = DateTime.Now; /// /// 制单时间 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public DateTime CREATETIME { get { return _CREATETIME; } set { _CREATETIME = value; } } private string _MODIFIEDUSER = ""; /// /// 改单人MODIFIEDUSER_GID /// [ModelDB] public string MODIFIEDUSER { get { return _MODIFIEDUSER; } set { _MODIFIEDUSER = value; } } private string _MODIFIEDUSERNAME = ""; /// /// 改单人MODIFIEDUSER /// public string MODIFIEDUSERNAME { get { return _MODIFIEDUSERNAME; } set { _MODIFIEDUSERNAME = value; } } private DateTime _MODIFIEDTIME = DateTime.Now; /// /// 最后一次修改时间 /// [ModelDB] public DateTime MODIFIEDTIME { get { return _MODIFIEDTIME; } set { _MODIFIEDTIME = value; } } private string _STARTGID = ""; /// /// 总账已启用已登录账套GID /// [ModelDB] public string STARTGID { get { return _STARTGID; } set { _STARTGID = value; } } private bool _ISCARRY = false; /// /// 是否已经结转 /// public bool ISCARRY { get { return _ISCARRY; } set { _ISCARRY = value; } } private string _COPYORDNO = ""; [ModelDB(MDBType = ModelDBOprationType.Insert)] public string COPYORDNO { get { return _COPYORDNO; } set { _COPYORDNO = value; } } private bool _ISCOPY = false; /// /// 是否已经复制 [ModelDB(MDBType = ModelDBOprationType.Insert)] /// public bool ISCOPY { get { return _ISCOPY; } set { _ISCOPY = value; } } private bool _ISAUTO = false; /// /// 是否已经复制 [ModelDB(MDBType = ModelDBOprationType.Insert)] /// public bool ISAUTO { get { return _ISAUTO; } set { _ISAUTO = value; } } public string ISAUTOSTR { get; set; } #endregion public MsCwVouchersGl() { TableName = "cw_vouchers_gl"; } override public string GetBillNoFieldName() { return "ORDNO"; } } // }