Beispiel #1
0
        public override DataTable Clone()
        {
            SearchResultUserGroupsDataTable table = (SearchResultUserGroupsDataTable)base.Clone();

            table.InitVars();
            return(table);
        }
 public SearchResultUserGroupsDataTable SearchForUserGroups(WorkSpace WorkSpace, string UserGroupSearchPattern)
 {
     SearchResultUserGroupsDataTable table = new SearchResultUserGroupsDataTable();
     IRfcFunction function = this._des.Repository.CreateFunction("RSAQ_REMOTE_USERGROUP_CATALOG");
     function["WORKSPACE"].SetValue((WorkSpace == WorkSpace.GlobalArea) ? "X" : " ");
     function["GENERIC_USERGROUP"].SetValue(UserGroupSearchPattern);
     function.Invoke(_des);
     IRfcTable table2 = function.GetTable("USERGROUPCATALOG");
     foreach (IRfcStructure structure in table2.ToList())
     {
         string userGroup = structure["NUM"].GetValue().ToString().Trim();
         string descriptionText = structure["UTEXT"].GetValue().ToString().Trim();
         table.AddSearchResultUserGroupsRow(userGroup, descriptionText);
     }
     return table;
 }
Beispiel #3
0
        public SearchResultUserGroupsDataTable SearchForUserGroups(WorkSpace WorkSpace, string UserGroupSearchPattern)
        {
            SearchResultUserGroupsDataTable table = new SearchResultUserGroupsDataTable();
            IRfcFunction function = this._des.Repository.CreateFunction("RSAQ_REMOTE_USERGROUP_CATALOG");

            function["WORKSPACE"].SetValue((WorkSpace == WorkSpace.GlobalArea) ? "X" : " ");
            function["GENERIC_USERGROUP"].SetValue(UserGroupSearchPattern);
            function.Invoke(_des);
            IRfcTable table2 = function.GetTable("USERGROUPCATALOG");

            foreach (IRfcStructure structure in table2.ToList())
            {
                string userGroup       = structure["NUM"].GetValue().ToString().Trim();
                string descriptionText = structure["UTEXT"].GetValue().ToString().Trim();
                table.AddSearchResultUserGroupsRow(userGroup, descriptionText);
            }
            return(table);
        }
 // Methods
 internal SearchResultUserGroupsRow(DataRowBuilder rb)
     : base(rb)
 {
     this.tableSearchResultUserGroups = (SearchResultUserGroupsDataTable)base.Table;
 }
Beispiel #5
0
 // Methods
 internal SearchResultUserGroupsRow(DataRowBuilder rb)
     : base(rb)
 {
     this.tableSearchResultUserGroups = (SearchResultUserGroupsDataTable)base.Table;
 }