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); }
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); }