ITPub博客

首页 > Linux操作系统 > Linux操作系统 > c#之tcbs struct(2)小记

c#之tcbs struct(2)小记

原创 Linux操作系统 作者:wisdomone1 时间:2011-08-30 18:26:47 0 删除 编辑
public struct DeductSchedViewItem //结构体加上public
    {
        //private long _deductSchedNbr;
        private string _deductSchedNbr; //结构体成员private
        private long _submitOrgNbr;
        private long _clearingAcctNbr;
        private long _importApplNbr;
        private string _deductSchedTypCd;
        private string _deductSchedTypDesc;
       
        private string _submitOrgName;
        private string _contractBankName;
      
        private DateTime _contractDate;
        private DateTime _dueDate;
        public string DeductSchedNbr //结构体的属性访问器
        {
            get
            {
                return this._deductSchedNbr;
            }
            set
            {
                this._deductSchedNbr = value;
            }
        }
        //public long DeductSchedNbr
        //{
        //    get
        //    {
        //        return this._deductSchedNbr;
        //    }
        //    set
        //    {
        //        this._deductSchedNbr = value;
        //    }
        //}
        public long SubmitOrgNbr
        {
            get
            {
                return this._submitOrgNbr;
            }
            set
            {
                this._submitOrgNbr = value;
            }
        }
       
        private long _contractAcctNbr;
        public long ContractAcctNbr
        {
            get
            {
                return this._contractAcctNbr;
            }
            set
            {
                this._contractAcctNbr = value;
            }
        }
        //增加签约账号bbp2011-04-16--end
        public long ClearingAcctNbr
        {
            get
            {
                return this._clearingAcctNbr;
            }
            set
            {
                this._clearingAcctNbr = value;
            }
        }
        public long ImportApplNbr
        {
            get
            {
                return this._importApplNbr;
            }
            set
            {
                this._importApplNbr = value;
            }
        }
        public string DeductSchedTypCd
        {
            get
            {
                return this._deductSchedTypCd;
            }
            set
            {
                this._deductSchedTypCd = value;
            }
        }
        public string DeductSchedTypDesc
        {
            get
            {
                return this._deductSchedTypDesc;
            }
            set
            {
                this._deductSchedTypDesc = value;
            }
        }
     
        public DateTime? ContractDate
        {
            get
            {
                if (this._contractDate == DateTime.MinValue) //属性访问器添加if判断
                {
                    return null;
                }
                return new DateTime?(this._contractDate);//结构体中的return
            }
            set
            {
                DateTime? CSS0S0000 = value;
                this._contractDate = CSS0S0000.HasValue ? CSS0S0000.GetValueOrDefault() : DateTime.MinValue;
            }
        }

     
        public DateTime? DueDate
        {
            get
            {
                if (this._dueDate == DateTime.MinValue)
                {
                    return null;
                }
                return new DateTime?(this._dueDate);
            }
            set
            {
                DateTime? CSS0S0000 = value;
                this._dueDate = CSS0S0000.HasValue ? CSS0S0000.GetValueOrDefault() : DateTime.MinValue;
            }
        }
       
        public string SubmitOrgName
        {
            get
            {
                return this._submitOrgName;
            }
            set
            {
                this._submitOrgName = value;
            }
        }
        public string ContractBankName
        {
            get
            {
                return this._contractBankName;
            }
            set
            {
                this._contractBankName = value;
            }
        }
    }
}

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9240380/viewspace-706271/,如需转载,请注明出处,否则将追究法律责任。

上一篇: c#之路漫漫长
请登录后发表评论 登录
全部评论
提供针对oracle初学者及进阶的数据库培训,欢迎大家咨询: 微信: wisdomone 微信公众号: lovedb 工作经历: 中国普天 北京科蓝 北京云和恩墨 北京神州新桥

注册时间:2008-04-04

  • 博文量
    2188
  • 访问量
    12184534