Esempio n. 1
0
        public int getsetAttendance(int EId, DateTime d)
        {
            ed = new EmpDalLayer();
            int j = ed.getsetAttendance(EId, d);

            return(j);
        }
Esempio n. 2
0
        public decimal getSalaryPerHour(int Eid)
        {
            ed = new EmpDalLayer();
            decimal sa = ed.getSalaryPerHour(Eid);

            return(sa);
        }
Esempio n. 3
0
 public List<EmpEntity.Employee> getEmp(string Name)
 {
     ed = new EmpDalLayer();
     List<Employee> eListB = new List<Employee>();
        return eListB= ed.getEmp(Name);
        // throw new NotImplementedException();
 }
Esempio n. 4
0
 public bool deleteEmp(int id)
 {
     ed = new EmpDalLayer();
     ed.deleteEmp(id);
     return true;
        // throw new NotImplementedException();
 }
Esempio n. 5
0
        public Employee getEmpOnId(int id)
        {
            ed = new EmpDalLayer();
            Employee ew = ed.getEmpOnId(id);

            return(ew);
        }
Esempio n. 6
0
 public bool updateEmp(EmpEntity.Employee e)
 {
     ed = new EmpDalLayer();
     ed.updateEmp(e);
     return(true);
     //throw new NotImplementedException();
 }
Esempio n. 7
0
 public bool deleteEmp(int id)
 {
     ed = new EmpDalLayer();
     ed.deleteEmp(id);
     return(true);
     // throw new NotImplementedException();
 }
Esempio n. 8
0
 public int getSalaryForDays(int Eid, int month)
 {
     ed = new EmpDalLayer();
     //int i = ed.getSalaryForDays(Eid,month);
     int i = ed.getSalaryForDays(Eid, month);
     return i;
 }
Esempio n. 9
0
        public List <EmpEntity.Employee> getEmp(string Name)
        {
            ed = new EmpDalLayer();
            List <Employee> eListB = new List <Employee>();

            return(eListB = ed.getEmp(Name));
            // throw new NotImplementedException();
        }
Esempio n. 10
0
        public int getSalaryForDays(int Eid, int month)
        {
            ed = new EmpDalLayer();
            //int i = ed.getSalaryForDays(Eid,month);
            int i = ed.getSalaryForDays(Eid, month);

            return(i);
        }
Esempio n. 11
0
        public int getEmpLeave(int id)
        {
            ed = new EmpDalLayer();
            List<EmpLeave> el = new List<EmpLeave>();
            el = ed.getLeavesTaken(id);
            int leaves = 0;
            foreach (var item in el)
            {
                DateTime d1 = item.FromDate;
                DateTime d2 = item.ToDate;
                TimeSpan d3 = d2 - d1;
                leaves += d3.Days;

            }
            return leaves;
        }
Esempio n. 12
0
        public int getEmpLeave(int id)
        {
            ed = new EmpDalLayer();
            List <EmpLeave> el = new List <EmpLeave>();

            el = ed.getLeavesTaken(id);
            int leaves = 0;

            foreach (var item in el)
            {
                DateTime d1 = item.FromDate;
                DateTime d2 = item.ToDate;
                TimeSpan d3 = d2 - d1;
                leaves += d3.Days;
            }
            return(leaves);
        }
Esempio n. 13
0
 public bool insertEmpLeave(EmpLeave ee)
 {
     ed = new EmpDalLayer();
     ed.insertLeave(ee);
     return true;
 }
Esempio n. 14
0
 public Employee getEmpOnId(int id)
 {
     ed = new EmpDalLayer();
       Employee  ew = ed.getEmpOnId(id);
       return ew;
 }
Esempio n. 15
0
 public bool insertEmpLeave(EmpLeave ee)
 {
     ed = new EmpDalLayer();
     ed.insertLeave(ee);
     return(true);
 }
Esempio n. 16
0
 public bool updateEmp(EmpEntity.Employee e)
 {
     ed = new EmpDalLayer();
     ed.updateEmp(e);
     return true;
     //throw new NotImplementedException();
 }
Esempio n. 17
0
 public bool insertNewEmployee(EmpEntity.Employee e)
 {
     ed = new EmpDalLayer();
     ed.insertNewEmployee(e);
     return true;
 }
Esempio n. 18
0
 public decimal getSalaryPerHour(int Eid)
 {
     ed = new EmpDalLayer();
     decimal sa=ed.getSalaryPerHour(Eid);
     return sa;
 }
Esempio n. 19
0
 public int getsetAttendance(int EId, DateTime d)
 {
     ed = new EmpDalLayer();
     int j=ed.getsetAttendance(EId, d);
     return j;
 }
Esempio n. 20
0
 public bool insertNewEmployee(EmpEntity.Employee e)
 {
     ed = new EmpDalLayer();
     ed.insertNewEmployee(e);
     return(true);
 }