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

        return(a);
    }
Esempio n. 2
0
    public void UpdateApprover(WCFApprover a)
    {
        Employee e = new Employee
        {
            EmployeeID     = a.EmployeeID,
            Name           = a.Name,
            DepartmentCode = a.DepartmentCode,
        };

        Data.UpdateApprover(e);
    }
Esempio n. 3
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>());
    }