示例#1
0
        private void Bind()
        {
            var id = Request.Params["action"] != null?Guid.Parse(Request.Params["action"]) : Guid.Empty;

            if (id == Guid.Empty)
            {
                Response.Write("<script>alert('数据丢失');location.href='Roles_List.aspx'<.script>");
            }
            var data = rolesSvc.GetRolesById(id);

            this.txtId.Text   = data.Id.ToString();
            this.txtName.Text = data.Roles_Title;
        }
示例#2
0
        public void Bind()
        {
            var gid = Request.Params["action"] == null?Guid.NewGuid() : Guid.Parse(Request.Params["action"]);

            var data = rolesSvc.GetRolesById(gid);

            if (data == null)
            {
                Response.Write("<script>alert('网络较差,请稍后再试');location.href='Roles_List.aspx'</script>");
            }
            else
            {
                this.txtId.Text   = data.Roles_Id.ToString();
                this.txtName.Text = data.Roles_Title;
            }
        }
示例#3
0
 public string GetRolesName(Guid id)
 {
     return(rolesSvc.GetRolesById(id).Roles_Title);
 }