Exemplo n.º 1
0
    //End Login

    //AUTHOR : KHIN MYO MYO SHWE
    //Start Employee Function Part
    public List <WCFEmployee> EmployeeList()
    {
        List <WCFEmployee> wlist = new List <WCFEmployee>();
        List <Employee>    elist = deptController.GetEmployeeList();

        foreach (Employee e in elist)
        {
            wlist.Add(WCFEmployee.Make(e.EmpID, e.DeptCode, e.EmpName, e.Role, e.Password, e.Email
                                       , e.IsTempHead, e.StartDate.GetValueOrDefault().ToShortDateString()
                                       , e.EndDate.GetValueOrDefault().ToShortDateString()));
        }
        return(wlist);
    }