属性器,转换从数据库中读取的状态

 [DataMapping("Status", DbType.Int16)]
        public System.Int16 Status { get; set; }

        public string StatusValue
        {
            get
            {
                if (Status == 0)
                {
                    return "审核拒绝";
                }
                else if (Status == 2)
                {
                    return "已审通过";

                }
                else if (Status == 1)
                {
                    return "待审"; ;
                }
                else
                {
                    return string.Empty;
                }
            }
        }

posted @ 2014-04-29 16:20  小菜鸟飞飞  阅读(128)  评论(0编辑  收藏  举报