Exemplo n.º 1
0
        public static List <List <string> > GetCronusMetadata(CronusServiceSoapClient cronusClient, int index)
        {
            List <List <string> > result = new List <List <string> >();

            switch (index)
            {
            case 0:
                result = NormalizeStructure(cronusClient.GetIndexes());
                return(result);

            case 1:
                result = NormalizeStructure(cronusClient.GetKeys());
                return(result);

            case 2:
                result = NormalizeStructure(cronusClient.GetColumnsForEmployeeTable());
                return(result);

            case 3:
                result = NormalizeStructure(cronusClient.GetTableConstraints());
                return(result);

            case 4:
                result = NormalizeStructure(cronusClient.GetTables());
                return(result);

            case 5:
                result = ExtractData(cronusClient.GetEmployeeMetadata());
                return(result);

            case 6:
                result = ExtractData(cronusClient.GetEmployeeAbsenceMetadata());
                return(result);

            case 7:
                result = ExtractData(cronusClient.GetEmployeeRelativeMetadata());
                return(result);

            case 8:
                result = ExtractData(cronusClient.GetEmployeeQualificationMetadata());
                return(result);

            case 9:
                result = ExtractData(cronusClient.GetEmployeePortalSetupMetadata());
                return(result);

            case 10:
                result = ExtractData(cronusClient.GetEmployeeStatisticsGroupMetadata());
                return(result);
            }
            // Down here we are in undefined behavior land...
            return(null);
        }
 public void GetEmployeeQualificationMetadata()
 {
     Console.WriteLine("Employee Qualification Metadata är följande: ");
     GetOutput(cronusClient.GetEmployeeQualificationMetadata());
     ExitQuestion();
 }