Exemplo n.º 1
0
        public DataSetETRoles GetAllGISRoles()
        {
            ETRoles = new DataSetETRoles();
            DataSetETRoles.ETTableRow GISRow = ETRoles.ETTable.NewETTableRow();
            string[]GISRoles;
            using (UserMaintenanceServiceProxy proxy = new UserMaintenanceServiceProxy())
            {
                GISRoles = proxy.GetAllGISRoles();

                for (int i = 0; i < GISRoles.Length; i++)
                {
                    GISRow = ETRoles.ETTable.NewETTableRow();
                    GISRow.BeginEdit();
                   // GISRow[ETRoles.ETTable.RoleIDColumn.ColumnName] = GISRoles[i].ToString();
                    GISRow[ETRoles.ETTable.RoleNameColumn.ColumnName] = GISRoles[i].ToString();
                    GISRow[ETRoles.ETTable.DescriptionColumn.ColumnName] = GISRoles[i].ToString();
                    GISRow[ETRoles.ETTable.UserNameColumn.ColumnName] = _userName;
                    GISRow[ETRoles.ETTable.RoleTypeColumn.ColumnName] = Framework.Security.UserManagement.Interface.Constants.EnablingTechnologies.GIS.ToString();
                    GISRow.EndEdit();
                    ETRoles.ETTable.AddETTableRow(GISRow);
                }
            }

            return ETRoles;
        }