public WCFApprover GetApprover(string depCode) { Employee i = Data.GetApprover(depCode); WCFApprover a = WCFApprover.Make(i.EmployeeID, i.Name, i.DepartmentCode); return(a); }
public void UpdateApprover(WCFApprover a) { Employee e = new Employee { EmployeeID = a.EmployeeID, Name = a.Name, DepartmentCode = a.DepartmentCode, }; Data.UpdateApprover(e); }
///////Approver & Rep public WCFApprover[] ListApprover(string depCode) { List <WCFApprover> l = new List <WCFApprover>(); foreach (Employee c in Data.A_EmployeeList(depCode)) { WCFApprover w = WCFApprover.Make(c.EmployeeID, c.Name, c.DepartmentCode); l.Add(w); } return(l.ToArray <WCFApprover>()); }