示例#1
0
        protected void BindTreeView(Guid roleID)
        {
            Dictionary <string, int> selectedIDs = new Dictionary <string, int>();

            if (!string.IsNullOrEmpty(this.PrimaryValue))
            {
                selectedIDs = SPhone_RoleBLL.GetSelectedIDs(roleID);
            }
            this.hdTree.Value = SPhone_RoleBLL.GetTreeValue(selectedIDs);
        }
示例#2
0
        protected override void InitView(SPhone_Role model)
        {
            Dictionary <string, int> selectedIDs = new Dictionary <string, int>();

            if (model != null)
            {
                this.txtRoleName.Text = model.RoleName;
                selectedIDs           = SPhone_RoleBLL.GetSelectedIDs(model.RoleID);
            }
            this.hdTree.Value = SPhone_RoleBLL.GetTreeValue(selectedIDs);
        }