Exemple #1
0
 public EmployeeInfo(int ID, string Name, string Gender, System.DateTime DOB, EmployeeWebClient.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;
 }
Exemple #2
0
 public EmployeeInfo(int Id, string Name, string Gender, System.DateTime DoB, EmployeeWebClient.EmployeeService.EmployeeType Type, int MonthlySalary, int HourlyPay, int HoursWorked)
 {
     this.Id            = Id;
     this.Name          = Name;
     this.Gender        = Gender;
     this.DoB           = DoB;
     this.Type          = Type;
     this.MonthlySalary = MonthlySalary;
     this.HourlyPay     = HourlyPay;
     this.HoursWorked   = HoursWorked;
 }
Exemple #3
0
 public System.Threading.Tasks.Task <EmployeeWebClient.EmployeeService.SaveEmployeeMessageContractResponse> SaveEmployeeMessageContractAsync(int ID, string Name, string Gender, System.DateTime DOB, EmployeeWebClient.EmployeeService.EmployeeType Type, int AnnualSalary, int HourlyPay, int HoursWorked)
 {
     EmployeeWebClient.EmployeeService.EmployeeInfo inValue = new EmployeeWebClient.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(((EmployeeWebClient.EmployeeService.IEmployeeService)(this)).SaveEmployeeMessageContractAsync(inValue));
 }
Exemple #4
0
 public int GetEmployeeMessageContract(string LicenseKey, int EmployeeID, out string Name, out string Gender, out System.DateTime DOB, out EmployeeWebClient.EmployeeService.EmployeeType Type, out int AnnualSalary, out int HourlyPay, out int HoursWorked)
 {
     EmployeeWebClient.EmployeeService.EmployeeRequest inValue = new EmployeeWebClient.EmployeeService.EmployeeRequest();
     inValue.LicenseKey = LicenseKey;
     inValue.EmployeeID = EmployeeID;
     EmployeeWebClient.EmployeeService.EmployeeInfo retVal = ((EmployeeWebClient.EmployeeService.IEmployeeService)(this)).GetEmployeeMessageContract(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);
 }
Exemple #5
0
 public System.Threading.Tasks.Task <EmployeeWebClient.EmployeeService.SaveEmployeeResponse> SaveEmployeeAsync(int Id, string Name, string Gender, System.DateTime DoB, EmployeeWebClient.EmployeeService.EmployeeType Type, int MonthlySalary, int HourlyPay, int HoursWorked)
 {
     EmployeeWebClient.EmployeeService.EmployeeInfo inValue = new EmployeeWebClient.EmployeeService.EmployeeInfo();
     inValue.Id            = Id;
     inValue.Name          = Name;
     inValue.Gender        = Gender;
     inValue.DoB           = DoB;
     inValue.Type          = Type;
     inValue.MonthlySalary = MonthlySalary;
     inValue.HourlyPay     = HourlyPay;
     inValue.HoursWorked   = HoursWorked;
     return(((EmployeeWebClient.EmployeeService.IEmployeeService)(this)).SaveEmployeeAsync(inValue));
 }
Exemple #6
0
 public void SaveEmployee(int Id, string Name, string Gender, System.DateTime DoB, EmployeeWebClient.EmployeeService.EmployeeType Type, int MonthlySalary, int HourlyPay, int HoursWorked)
 {
     EmployeeWebClient.EmployeeService.EmployeeInfo inValue = new EmployeeWebClient.EmployeeService.EmployeeInfo();
     inValue.Id            = Id;
     inValue.Name          = Name;
     inValue.Gender        = Gender;
     inValue.DoB           = DoB;
     inValue.Type          = Type;
     inValue.MonthlySalary = MonthlySalary;
     inValue.HourlyPay     = HourlyPay;
     inValue.HoursWorked   = HoursWorked;
     EmployeeWebClient.EmployeeService.SaveEmployeeResponse retVal = ((EmployeeWebClient.EmployeeService.IEmployeeService)(this)).SaveEmployee(inValue);
 }
Exemple #7
0
 public int GetEmployee(string LicenseKey, int EmployeeId, out string Name, out string Gender, out System.DateTime DoB, out EmployeeWebClient.EmployeeService.EmployeeType Type, out int MonthlySalary, out int HourlyPay, out int HoursWorked)
 {
     EmployeeWebClient.EmployeeService.EmployeeRequest inValue = new EmployeeWebClient.EmployeeService.EmployeeRequest();
     inValue.LicenseKey = LicenseKey;
     inValue.EmployeeId = EmployeeId;
     EmployeeWebClient.EmployeeService.EmployeeInfo retVal = ((EmployeeWebClient.EmployeeService.IEmployeeService)(this)).GetEmployee(inValue);
     Name          = retVal.Name;
     Gender        = retVal.Gender;
     DoB           = retVal.DoB;
     Type          = retVal.Type;
     MonthlySalary = retVal.MonthlySalary;
     HourlyPay     = retVal.HourlyPay;
     HoursWorked   = retVal.HoursWorked;
     return(retVal.Id);
 }