Exemplo n.º 1
0
        public List <CurrentDelegateWCF> getCurrentDelegate(string empNum)
        {
            List <Employee> emplist = DelegateAuthorityController.getCurrentDelegate(empNum);

            List <CurrentDelegateWCF> cuWCF = new List <CurrentDelegateWCF>();

            foreach (Employee e in emplist)
            {
                CurrentDelegateWCF dele = new CurrentDelegateWCF();
                dele.Name = e.Name;
                dele.Id   = e.EmployeeNumber;
                cuWCF.Add(dele);
            }
            return(cuWCF);
        }
Exemplo n.º 2
0
        public List <DeEmployeeListWCF> getEmployeeList(string empNum)
        {
            //List<Object> emplist = EmployeeDAO.getEmployeeList(empNum);
            //List<DeEmployeeListWCF> empli = new List<DeEmployeeListWCF>();
            //foreach (Employee e in emplist)
            //{
            //    DeEmployeeListWCF emname = new DeEmployeeListWCF();
            //    emname.Name = e.Name;
            //    emname.Id = e.EmployeeNumber;
            //    empli.Add(emname);
            //}
            //return empli;
            List <Employee>          emplist = DelegateAuthorityController.getEmployee(empNum);
            List <DeEmployeeListWCF> empli   = new List <DeEmployeeListWCF>();

            foreach (Employee e in emplist)
            {
                DeEmployeeListWCF emname = new DeEmployeeListWCF();
                emname.Name = e.Name;
                emname.Id   = e.EmployeeNumber;
                empli.Add(emname);
            }
            return(empli);
        }
Exemplo n.º 3
0
 public void CreateDelegate(string empno)
 {
     DelegateAuthorityController.createDelegate(empno);
 }
Exemplo n.º 4
0
 public void CancelDelegate(string empno)
 {
     DelegateAuthorityController.RemoveDelegate(empno);
 }