Example #1
0
        private void getDetail()
        {
            try
            {
                SysRoleBLL rolebll = new SysRoleBLL();
                SysRole    role    = rolebll.getDetail(PrimaryKey);

                R_Code.Text   = role.R_Code;
                R_Name.Text   = role.R_Name;
                R_Remark.Text = role.R_Remark;

                R_CreateBy.Text = role.R_CreateBy;
                R_UpdateBy.Text = role.R_UpdateBy;

                if (role.R_CreateDate.HasValue)
                {
                    R_CreateDate.Value = role.R_CreateDate.Value;
                }
                else
                {
                    R_CreateDate.Value = DateTime.Now;
                }

                if (role.R_UpdateDate.HasValue)
                {
                    R_UpdateDate.Value = role.R_UpdateDate.Value;
                }
                else
                {
                    R_UpdateDate.Value = DateTime.Now;
                    ;
                }
            }
            catch (Exception ex)
            {
                untCommon.ErrorMsg("角色管理加载数据异常:" + ex.Message);
            }
        }