using System;
using HcUtility.Core;
using Newtonsoft.Json;

namespace DSWeb.MvcShipping.Models.MsCwCarryOver
{
    [JsonObject]
    public class MsCwCarryAccitems : ModelObjectBillHead
    {
        #region 读写属性
        private string _gid = Guid.NewGuid().ToString();
        /// <summary>
        /// GID
        /// </summary>
        [ModelDB]
        public string GID
        {
            get { return _gid; }
            set { _gid = value; }
        }

        private string _exchangegains = "";
        /// <summary>
        /// 汇兑收益科目
        /// </summary>
        [ModelDB]
        public string ExchangeGains
        {
            get { return _exchangegains; }
            set { _exchangegains = value; }
        }

        private string _exchangeloss = "";
        /// <summary>
        /// 汇兑损失科目
        /// </summary>
        [ModelDB]
        public string ExchangeLoss
        {
            get { return _exchangeloss; }
            set { _exchangeloss = value; }
        }

        private string _currentyearprofits = "";
        /// <summary>
        /// 本年利润科目
        /// </summary>
        [ModelDB]
        public string CurrentYearProfits
        {
            get { return _currentyearprofits; }
            set { _currentyearprofits = value; }
        }

        private string _corpid = "";
        /// <summary>
        /// 分公司代码
        /// </summary>
        [ModelDB]
        public string CORPID
        {
            get { return _corpid; }
            set { _corpid = value; }
        }

        private string _modifieduser = "";
        /// <summary>
        /// 更改操作人gid
        /// </summary>
        [ModelDB]
        public string MODIFIEDUSER
        {
            get { return _modifieduser; }
            set { _modifieduser = value; }
        }

        private DateTime _modifiedtime = DateTime.Now;
        /// <summary>
        /// 更改操作时间
        /// </summary>
        [ModelDB]
        public DateTime MODIFIEDTIME
        {
            get { return _modifiedtime; }
            set { _modifiedtime = value; }
        }

        private string _MODIFIEDUSERNAME = "";
        /// <summary>
        /// 更改操作人
        /// </summary>
        public string MODIFIEDUSERNAME
        {
            get { return _MODIFIEDUSERNAME; }
            set { _MODIFIEDUSERNAME = value; }
        }

        private string _STARTGID = "";
        /// <summary>
        /// 总账已启用已登录账套GID
        /// </summary>
        [ModelDB]
        public string STARTGID
        {
            get { return _STARTGID; }
            set { _STARTGID = value; }
        }
	    #endregion

        public MsCwCarryAccitems()
        {
            TableName = "cw_carry_accitems";
        }

        override public string GetBillNoFieldName()
        {
            return "GID";
        }
    }

    [JsonObject]
    public class MsCwVouitemsGl2 : ModelObjectBillHead
    {
        #region 读写属性
        private string _gid = Guid.NewGuid().ToString();
        /// <summary>
        /// 唯一编码
        /// </summary>
        [ModelDB]
        public string GID
        {
            get { return _gid; }
            set { _gid = value; }
        }

        private string _FCYNO = "";
        /// <summary>
        /// 币别
        /// </summary>
        [ModelDB]
        public string FCYNO
        {
            get { return _FCYNO; }
            set { _FCYNO = value; }
        }

        private string _FCYNAME = "";
        /// <summary>
        /// 币别名称
        /// </summary>
        [ModelDB]
        public string FCYNAME
        {
            get { return _FCYNAME; }
            set { _FCYNAME = value; }
        }

        private Decimal _FCYEXRATE = 0;
        /// <summary>
        /// 当前汇率
        /// </summary>
        [ModelDB]
        public Decimal FCYEXRATE
        {
            get { return _FCYEXRATE; }
            set { _FCYEXRATE = value; }
        }

        private Decimal _FCYEXRATE2 = 0;
        /// <summary>
        /// 调整汇率(当前)
        /// </summary>
        [ModelDB]
        public Decimal FCYEXRATE2
        {
            get { return _FCYEXRATE2; }
            set { _FCYEXRATE2 = value; }
        }
        #endregion
        
        public MsCwVouitemsGl2()
        {
            TableName = "cw_vouitems_gl";
        }

        override public string GetBillNoFieldName()
        {
            return "GID";
        }
    }

    [JsonObject]
    public class MsCwVouchersGl2 : ModelObjectBillHead
    {
        #region 读写属性
        private string _gid = Guid.NewGuid().ToString();
        /// <summary>
        /// GID
        /// </summary>
        public string GID
        {
            get { return _gid; }
            set { _gid = value; }
        }

        private string _exchangegains = "";
        /// <summary>
        /// 汇兑收益科目
        /// </summary>
        public string ExchangeGains
        {
            get { return _exchangegains; }
            set { _exchangegains = value; }
        }

        private string _exchangeloss = "";
        /// <summary>
        /// 汇兑损失科目
        /// </summary>
        public string ExchangeLoss
        {
            get { return _exchangeloss; }
            set { _exchangeloss = value; }
        }

        private string _currentyearprofits = "";
        /// <summary>
        /// 本年利润科目
        /// </summary>
        public string CurrentYearProfits
        {
            get { return _currentyearprofits; }
            set { _currentyearprofits = value; }
        }

        private string _UndistributedProfit = "";
        /// <summary>
        /// 以前年度损益调整科目的结转科目
        /// </summary>
        public string UndistributedProfit
        {
            get { return _UndistributedProfit; }
            set { _UndistributedProfit = value; }
        }

        private string _cbJZFS = "";
        /// <summary>
        /// 结转方式_按科目余额反向结转
        /// </summary>
        public string cbJZFS
        {
            get { return _cbJZFS; }
            set { _cbJZFS = value; }
        }

        private string _corpid = "";
        /// <summary>
        /// 分公司代码
        /// </summary>
        public string CORPID
        {
            get { return _corpid; }
            set { _corpid = value; }
        }

        private string _modifieduser = "";
        /// <summary>
        /// 更改操作人gid
        /// </summary>
        public string MODIFIEDUSER
        {
            get { return _modifieduser; }
            set { _modifieduser = value; }
        }

        private DateTime _modifiedtime = DateTime.Now;
        /// <summary>
        /// 更改操作时间
        /// </summary>
        public DateTime MODIFIEDTIME
        {
            get { return _modifiedtime; }
            set { _modifiedtime = value; }
        }

        private string _MODIFIEDUSERNAME = "";
        /// <summary>
        /// 更改操作人
        /// </summary>
        public string MODIFIEDUSERNAME
        {
            get { return _MODIFIEDUSERNAME; }
            set { _MODIFIEDUSERNAME = value; }
        }

        private string _ACCDATE = "";
        /// <summary>
        /// 会计期间
        /// </summary>
        public string ACCDATE
        {
            get { return _ACCDATE; }
            set { _ACCDATE = value; }
        }

        private string _YEAR = "";
        /// <summary>
        /// 年
        /// </summary>
        public string YEAR
        {
            get { return _YEAR; }
            set { _YEAR = value; }
        }

        private string _MONTH = "";
        /// <summary>
        /// 月(01、02、03...)
        /// </summary>
        public string MONTH
        {
            get { return _MONTH; }
            set { _MONTH = value; }
        }

        private string _MONTH2 = "";
        /// <summary>
        /// 月(1、2、3...)
        /// </summary>
        public string MONTH2
        {
            get { return _MONTH2; }
            set { _MONTH2 = value; }
        }

        private string _VOUNUM = "";
        /// <summary>
        /// 凭证合计数
        /// </summary>
        public string VOUNUM
        {
            get { return _VOUNUM; }
            set { _VOUNUM = value; }
        }

        private string _VOUNUM_ISCHECKED = "";
        /// <summary>
        /// 未审核凭证合计数
        /// </summary>
        public string VOUNUM_ISCHECKED
        {
            get { return _VOUNUM_ISCHECKED; }
            set { _VOUNUM_ISCHECKED = value; }
        }

        private string _VOUNUM_ISCARRY = "";
        /// <summary>
        /// 未包含在月末结转中的凭证合计数
        /// </summary>
        public string VOUNUM_ISCARRY
        {
            get { return _VOUNUM_ISCARRY; }
            set { _VOUNUM_ISCARRY = value; }
        }

        private string _vouno = "";
        /// <summary>
        /// 自动生成编号,月初清零
        /// </summary>
        public string VOUNO
        {
            get { return _vouno; }
            set { _vouno = value; }
        }

        private string _vkno = "";
        /// <summary>
        /// 凭证字
        /// </summary>
        public string VKNO
        {
            get { return _vkno; }
            set { _vkno = value; }
        }
        
        private string _voudate;
        /// <summary>
        /// 凭证日期
        /// </summary>
        public string VOUDATE
        {
            get { return _voudate; }
            set { _voudate = value; }
        }
        private string _vouno2 = "";
        /// <summary>
        /// 自动生成编号,月初清零
        /// </summary>
        public string VOUNO2
        {
            get { return _vouno2; }
            set { _vouno2 = value; }
        }

        private string _vkno2 = "";
        /// <summary>
        /// 凭证字
        /// </summary>
        public string VKNO2
        {
            get { return _vkno2; }
            set { _vkno2 = value; }
        }

        private string _voudate2;
        /// <summary>
        /// 凭证日期
        /// </summary>
        public string VOUDATE2
        {
            get { return _voudate2; }
            set { _voudate2 = value; }
        }

        private string _lbTitle = "";
        /// <summary>
        /// 标题
        /// </summary>
        public string lbTitle
        {
            get { return _lbTitle; }
            set { _lbTitle = value; }
        }

        private string _isCarryOverType = "False";
        /// <summary>
        /// 是否已经生成结转凭证
        /// </summary>
        public string isCarryOverType
        {
            get { return _isCarryOverType; }
            set { _isCarryOverType = value; }
        }

        private string _cType = "2";
        /// <summary>
        /// 凭证分类
        /// </summary>
        public string cType
        {
            get { return _cType; }
            set { _cType = value; }
        }

        private string _EXPLAN = "结转汇兑收益";
        /// <summary>
        /// 凭证摘要_结转汇兑收益
        /// </summary>
        public string EXPLAN
        {
            get { return _EXPLAN; }
            set { _EXPLAN = value; }
        }

        private string _EXPLAN2 = "结转本期损益";
        /// <summary>
        /// 凭证摘要2_结转本期损益
        /// </summary>
        public string EXPLAN2
        {
            get { return _EXPLAN2; }
            set { _EXPLAN2 = value; }
        }

        private string _cbHLTZB = "";
        /// <summary>
        /// 是否需要生成汇率调整
        /// </summary>
        public string cbHLTZB
        {
            get { return _cbHLTZB; }
            set { _cbHLTZB = value; }
        }

        private string _STARTGID = "";
        /// <summary>
        /// 总账已启用已登录账套GID
        /// </summary>
        public string STARTGID
        {
            get { return _STARTGID; }
            set { _STARTGID = value; }
        }
        #endregion

        public MsCwVouchersGl2()
        {
            TableName = "cw_vouchers_gl";
        }

        override public string GetBillNoFieldName()
        {
            return "GID";
        }
    }
    //
}