Beispiel #1
0
        public WCFApprover GetApprover(string depCode)
        {
            Employee    i = Data.GetApprover(depCode);
            WCFApprover a = WCFApprover.Make(i.EmployeeID, i.Name, i.DepartmentCode);

            return(a);
        }
Beispiel #2
0
        public static WCFApprover Make(int employeeID, string name, string departmentCode)
        {
            WCFApprover c = new WCFApprover();

            c.employeeID     = employeeID;
            c.name           = name;
            c.departmentCode = departmentCode;
            return(c);
        }
Beispiel #3
0
        public void UpdateApprover(WCFApprover a)
        {
            Employee e = new Employee
            {
                EmployeeID     = a.EmployeeID,
                Name           = a.Name,
                DepartmentCode = a.DepartmentCode,
            };

            Data.UpdateApprover(e);
        }
Beispiel #4
0
        ///////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>());
        }