Esempio n. 1
0
        public static List <List <string> > GetCronusData(CronusServiceSoapClient cronusClient, int index)
        {
            List <List <string> > stringValues = new List <List <string> >();

            switch (index)
            {
            case 0:
                CronusReference.DataTuple[] values = new CronusReference.DataTuple[] { cronusClient.GetIllestPerson() };
                return(ExtractData(values));

            case 1:
                values = cronusClient.GetIllPersonsByYear(2004, 2005);     //statiskt anrop för 2004 och 2005 som efterfrågas
                return(ExtractData(values));

            case 2:
                values = cronusClient.GetEmployeeAndRelatives();
                return(ExtractData(values));

            case 3:
                values = cronusClient.GetEmployeeData();
                return(ExtractData(values));

            case 4:
                values = cronusClient.GetEmployeeAbsenceData();
                return(ExtractData(values));

            case 5:
                values = cronusClient.GetEmployeeRelativeData();
                return(ExtractData(values));

            case 6:
                values = cronusClient.GetEmployeeQualificationData();
                return(ExtractData(values));

            case 7:
                values = cronusClient.GetEmployeePortalSetupData();
                return(ExtractData(values));

            case 8:
                values = cronusClient.GetEmployeeStatisticsGroupData();
                return(ExtractData(values));
            }
            return(null);
        }
 public void GetEmployeePortalSetupData()
 {
     Console.WriteLine("Employee Portal Setup Data är följande: ");
     GetOutput(cronusClient.GetEmployeePortalSetupData());
     ExitQuestion();
 }