public EmployeeInfo(int ID, string Name, string Gender, System.DateTime DOB, Client.EmployeeService.EmployeeType Type, int AnnualSalary, int HourlyPay, int HoursWorked) { this.ID = ID; this.Name = Name; this.Gender = Gender; this.DOB = DOB; this.Type = Type; this.AnnualSalary = AnnualSalary; this.HourlyPay = HourlyPay; this.HoursWorked = HoursWorked; }
public System.Threading.Tasks.Task <Client.EmployeeService.SaveEmployeeResponse> SaveEmployeeAsync(int ID, string Name, string Gender, System.DateTime DOB, Client.EmployeeService.EmployeeType Type, int AnnualSalary, int HourlyPay, int HoursWorked) { Client.EmployeeService.EmployeeInfo inValue = new Client.EmployeeService.EmployeeInfo(); inValue.ID = ID; inValue.Name = Name; inValue.Gender = Gender; inValue.DOB = DOB; inValue.Type = Type; inValue.AnnualSalary = AnnualSalary; inValue.HourlyPay = HourlyPay; inValue.HoursWorked = HoursWorked; return(((Client.EmployeeService.IEmployeeService)(this)).SaveEmployeeAsync(inValue)); }
public void SaveEmployee(int ID, string Name, string Gender, System.DateTime DOB, Client.EmployeeService.EmployeeType Type, int AnnualSalary, int HourlyPay, int HoursWorked) { Client.EmployeeService.EmployeeInfo inValue = new Client.EmployeeService.EmployeeInfo(); inValue.ID = ID; inValue.Name = Name; inValue.Gender = Gender; inValue.DOB = DOB; inValue.Type = Type; inValue.AnnualSalary = AnnualSalary; inValue.HourlyPay = HourlyPay; inValue.HoursWorked = HoursWorked; Client.EmployeeService.SaveEmployeeResponse retVal = ((Client.EmployeeService.IEmployeeService)(this)).SaveEmployee(inValue); }
public int GetEmployee(string LicenseKey, int EmployeeId, out string Name, out string Gender, out System.DateTime DOB, out Client.EmployeeService.EmployeeType Type, out int AnnualSalary, out int HourlyPay, out int HoursWorked) { Client.EmployeeService.EmployeeRequest inValue = new Client.EmployeeService.EmployeeRequest(); inValue.LicenseKey = LicenseKey; inValue.EmployeeId = EmployeeId; Client.EmployeeService.EmployeeInfo retVal = ((Client.EmployeeService.IEmployeeService)(this)).GetEmployee(inValue); Name = retVal.Name; Gender = retVal.Gender; DOB = retVal.DOB; Type = retVal.Type; AnnualSalary = retVal.AnnualSalary; HourlyPay = retVal.HourlyPay; HoursWorked = retVal.HoursWorked; return(retVal.ID); }