コード例 #1
0
 protected void DeluxeGridGroup_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     //删除群组;
     if (e.CommandName == "DeleteGroup")
     {
         WfGroupCollection groupCollection = WfGroupAdapter.Instance.Load(builder => builder.AppendItem("GROUP_ID", e.CommandArgument.ToString()));
         if (groupCollection.Count > 0)
         {
             WfGroupAdapter.Instance.Delete(groupCollection[0]);
             RefreshButton_Click(sender, new EventArgs());
         }
     }
 }
コード例 #2
0
 protected void EditGroupRequest(string groupId)
 {
     if (string.IsNullOrEmpty(groupId))
     {
         NewGroupRequest();
     }
     else
     {
         WfGroupCollection groups = WfGroupAdapter.Instance.Load(builder => builder.AppendItem("GROUP_ID", groupId));
         ExceptionHelper.FalseThrow(groups.Count > 0, "没有找到对应的群组定义");
         Data = groups[0];
         this.OuUserInputControlManager.SelectedSingleData = Data.Manager;
         ExecQuery();
     }
 }