Beispiel #1
0
        public EmployeeWCF[] getallemployees(String deptcode)
        {
            List <Employee>    emp    = CollectionPointEFFacade.getallemployees(deptcode);
            List <EmployeeWCF> empwcf = new List <EmployeeWCF>();

            foreach (Employee e in emp)
            {
                EmployeeWCF empwcfnew = new EmployeeWCF();
                empwcfnew.EmployeeNumber = e.EmployeeNumber;
                empwcfnew.DepartmentCode = e.DepartmentCode;
                empwcfnew.Email          = e.Email;
                empwcfnew.DepartmentCode = e.DepartmentCode;
                empwcfnew.Delagate       = e.Delagate;
                empwcfnew.Name           = e.Name;
                empwcfnew.Role           = e.Role;
                empwcfnew.UserName       = e.UserName;
                empwcf.Add(empwcfnew);
            }
            return(empwcf.ToArray <EmployeeWCF>());
        }
Beispiel #2
0
        public static List <CollectionPoint> getAllCollectionPoints()
        {
            List <CollectionPoint> collectionPointList = CollectionPointEFFacade.getCollectionPoint();

            return(collectionPointList);
        }
Beispiel #3
0
        public static CollectionPoint getcollectionpoint(string g)
        {
            CollectionPoint cp = CollectionPointEFFacade.getcollectionpointfromname(g);

            return(cp);
        }