Exemplo n.º 1
0
    public object Pull(Temp Data)
    {
        object Result = new object();

        if (Data.Type.Equals("ER"))
        {
            Result = AttendanceBLL.GetExceptionByName(Data.EMP);
        }
        if (Data.Type.Equals("LA"))
        {
            Result = AttendanceBLL.GetLeaveRequest(Data.LA);
        }
        if (Data.Type.Equals("LR"))
        {
            Result = AttendanceBLL.GetEmployeeByName(Data.EMP);
        }
        if (Data.Type.Equals("Rep"))
        {
            Result = AttendanceBLL.GetMonthlyReport(Data.DeptID, Data.Month, Data.Year, Data.Zone);
        }


        if (Data.Type.Equals("ATSHEET"))
        {
            Result = AttendanceBLL.GetTimeSheet(Data.UserID, Data.SDate, Data.EDate);
        }
        if (Data.Type.Equals("ET"))
        {
            DateTime Date = ToolkitBLL.PersianStringDatetoDate(Data.SDate);
            Result = AttendanceBLL.GetEmployeeTicketByDate(Date);
        }

        if (Data.Type.Equals("EXC"))
        {
            Result = AttendanceBLL.GetEmployeesExceptions(Data.EXC);
        }
        if (Data.Type.Equals("EXCEP"))
        {
            Result = AttendanceBLL.GetEmployeesExceptions(Data.EXCEP);
        }

        if (Data.Type.Equals("UT"))
        {
            Result = AttendanceBLL.GetEmployeesTickets(Data.UT);
        }

        if (Data.Type.Equals("OP"))
        {
            Result = AttendanceBLL.GetOrganizationPolicy(Data.OP);
        }

        if (Data.Type.Equals("OPID"))
        {
            Result = AttendanceBLL.GetOrganizationPolicyByID(Data.ID);
        }

        if (Data.Type.Equals("HDID"))
        {
            Result = AttendanceBLL.GetGeneralHolidaysByID(Data.ID);
        }

        if (Data.Type.Equals("HD"))
        {
            Result = AttendanceBLL.GetGeneralHolidays(Data.HD);
        }


        return(Result);
    }