using System;
using System.Collections.Generic;
using System.Text;
namespace EmployeesList
{
class Program
{
static void Main(string[] args)
{
adabasEmployeesService emplService;
adabasEmployeeKeyType keys;
adabasEmployeesElementType result;
adabasEmployeeType[] empl;
keys = new adabasEmployeeKeyType();
keys.personnel_id = "300000*";
emplService = new adabasEmployeesService();
try
{
result = emplService.list(keys);
}
catch (SystemException ex)
{
Console.WriteLine("exception: " + ex.Message);
return;
}
empl = result.adabasEmployees;
if (empl.Length > 0)
{
Console.WriteLine("Number of Employees returned: " + empl.Length);
}
for (int i = 0; i < empl.Length; i++)
{
Console.WriteLine("Record [" + i + "], Personnel_Id=" + empl[i].personnel_id +
", Name=" + empl[i].name + ", First_Name=" + empl[i].first_name);
}
}
}
}