Ejemplo n.º 1
0
        /// <summary>
        /// Init report from type
        /// </summary>
        /// <returns></returns>
        private XtraReport InitReport()
        {
            var typeReport = Request.QueryString["type"];

            if (!string.IsNullOrEmpty(typeReport) && typeReport == ReportKindType.HJM.ToString())
            {
                if (Enum.TryParse(Request.QueryString["rp"], true, out ReportTypeHJM rpType))
                {
                    // init report
                    XtraReport report;
                    switch (rpType)
                    {
                        #region Regulation
                    case ReportTypeHJM.QuantityDistrictCivilServants:
                        report = new rpHJM_QuantityDistrictCivilServants();
                        break;

                    case ReportTypeHJM.QuantityCommuneCivilServants:
                        report = new rpHJM_QuantityCommuneCivilServants();
                        break;

                    case ReportTypeHJM.SalaryDistrictCivilServants:
                        report = new rpHJM_QuantityCommuneCivilServants();
                        break;

                    case ReportTypeHJM.SalaryCommuneCivilServants:
                        report = new rpHJM_SalaryCommuneCivilServants();
                        break;

                    case ReportTypeHJM.QuantityOfEmployee:
                        report = new rpHJM_QuantityOfEmployee();
                        break;

                    case ReportTypeHJM.QuantityFemaleEmployee:
                        report = new rpHJM_QuantityFemaleEmployee();
                        break;

                    case ReportTypeHJM.QuantityEthnicMinority:
                        report = new rpHJM_QuantityEthnicMinority();
                        break;

                    case ReportTypeHJM.QuantityStaff:
                        report = new rpHJM_QuantityStaff();
                        break;

                    case ReportTypeHJM.QuantityDistrictCivilServantsDetail:
                        report = new rpHJM_QuantityDistrictCivilServantsDetail();
                        break;

                    case ReportTypeHJM.ListEmployeeByPosition:
                        report = new rpHJM_ListEmployeeByPosition();
                        break;
                        #endregion

                        #region Business
                    case ReportTypeHJM.EmployeeList:
                        report = new rpHJM_EmployeeList();
                        break;

                    case ReportTypeHJM.EmployeeMoveTo:
                        report = new rpHJM_EmployeeMoveTo();
                        break;

                    case ReportTypeHJM.EmployeeMoveFrom:
                        report = new rpHJM_EmployeeMoveFrom();
                        break;

                    case ReportTypeHJM.EmployeeTurnoverTo:
                        report = new rpHJM_EmployeeTurnoverTo();
                        break;

                    case ReportTypeHJM.EmployeeTurnoverFrom:
                        report = new rpHJM_EmployeeTurnoverFrom();
                        break;

                    case ReportTypeHJM.EmployeeSecondmentFrom:
                        report = new rpHJM_EmployeeSecondmentFrom();
                        break;

                    case ReportTypeHJM.EmployeeSecondmentTo:
                        report = new rpHJM_EmployeeSecondmentTo();
                        break;

                    case ReportTypeHJM.EmployeePlurality:
                        report = new rpHJM_EmployeePlurality();
                        break;

                    case ReportTypeHJM.EmployeeDismissment:
                        report = new rpHJM_EmployeeDismissment();
                        break;

                    case ReportTypeHJM.EmployeeTranfer:
                        report = new rpHJM_EmployeeTranfer();
                        break;

                    case ReportTypeHJM.EmployeeSeniority:
                        report = new rpHJM_EmployeeSeniority();
                        break;

                    case ReportTypeHJM.EmployeeCompensation:
                        report = new rpHJM_EmployeeCompensation();
                        break;

                    case ReportTypeHJM.EmployeeRetirement:
                        report = new rpHJM_EmployeeRetirement();
                        break;

                    case ReportTypeHJM.PartyMember:
                        report = new rpHJM_PartyMember();
                        break;

                    case ReportTypeHJM.ContractsOfEmployee:
                        report = new rpHJM_ContractsOfEmployee();
                        break;

                    case ReportTypeHJM.EmployeeExpired:
                        report = new rpHJM_EmployeeExpired();
                        break;

                    case ReportTypeHJM.EmployeeAssigned:
                        report = new rpHJM_EmployeeAssigned();
                        break;

                    case ReportTypeHJM.BornInMonth:
                        report = new rpHJM_BornInMonth();
                        break;

                    case ReportTypeHJM.UnionMember:
                        report = new rpHJM_UnionMember();
                        break;

                    case ReportTypeHJM.MilitaryList:
                        report = new rpHJM_MilitaryList();
                        break;

                    case ReportTypeHJM.EmployeeByDepartment:
                        report = new rpHJM_EmployeeByDepartment();
                        break;

                    case ReportTypeHJM.EmployeeFostering:
                        report = new rpHJM_EmployeeFostering();
                        break;

                        #endregion

                        #region Salary
                    case ReportTypeHJM.SalaryIncreaseProcess:
                        report = new rpHJM_SalaryIncreaseProcess();
                        break;

                    case ReportTypeHJM.SalaryIncrease:
                        report = new rpHJM_SalaryIncrease();
                        break;

                    case ReportTypeHJM.SalaryOutOfFrame:
                        report = new rpHJM_SalaryOutOfFrame();
                        break;

                        #endregion

                        #region Training - Onsite
                    case ReportTypeHJM.EmployeeTraining:
                        report = new rpHJM_EmployeeTraining();
                        break;

                    case ReportTypeHJM.EmployeeOnsite:
                        report = new rpHJM_EmployeeOnsite();
                        break;

                        #endregion

                        #region Rewared - Disciplined
                    case ReportTypeHJM.EmployeeReceivedAward:
                        report = new rpHJM_EmployeeReceivedAward();
                        break;

                    case ReportTypeHJM.EmployeeRewarded:
                        report = new rpHJM_EmployeeRewarded();
                        break;

                    case ReportTypeHJM.EmployeeDisciplined:
                        report = new rpHJM_EmployeeDisciplined();
                        break;


                        #endregion

                    default:
                        // invalid report type
                        return(null);
                    }

                    // return
                    return(report);
                }
            }
            else
            {
                if (Enum.TryParse(Request.QueryString["rp"], true, out ReportTypeHRM rpType))
                {
                    // init report
                    XtraReport report;
                    switch (rpType)
                    {
                    // Regulation
                    case ReportTypeHRM.LabourList:
                        report = new rpHRM_LabourList();
                        break;

                    case ReportTypeHRM.LabourIncrease:
                        report = new rpHRM_LabourIncrease();
                        break;

                    case ReportTypeHRM.LabourDecrease:
                        report = new rpHRM_LabourDecrease();
                        break;

                    case ReportTypeHRM.EmployeeList:
                        report = new rpHRM_EmployeeList();
                        break;

                    case ReportTypeHRM.EmployeeIncrease:
                        report = new rpHRM_EmployeeIncrease();
                        break;

                    case ReportTypeHRM.EmployeeDecrease:
                        report = new rpHRM_EmployeeDecrease();
                        break;

                    case ReportTypeHRM.EmployeeTransferred:
                        report = new rpHRM_EmployeeTransferred();
                        break;

                    case ReportTypeHRM.EmployeeSent:
                        report = new rpHRM_EmployeeSent();
                        break;

                    case ReportTypeHRM.EmployeeAssigned:
                        report = new rpHRM_EmployeeAssigned();
                        break;

                    case ReportTypeHRM.EmployeeSeniority:
                        report = new rpHRM_EmployeeSeniority();
                        break;

                    case ReportTypeHRM.EmployeeRetired:
                        report = new rpHRM_EmployeeRetired();
                        break;

                    // Business
                    case ReportTypeHRM.PartyMember:
                        report = new rpHRM_PartyMember();
                        break;

                    case ReportTypeHRM.UnionMember:
                        report = new rpHRM_UnionMember();
                        break;

                    case ReportTypeHRM.MilitaryList:
                        report = new rpHRM_MilitaryList();
                        break;

                    case ReportTypeHRM.ContractsOfEmployee:
                        report = new rpHRM_ContractsOfEmployee();
                        break;

                    case ReportTypeHRM.EmployeeExpired:
                        report = new rpHRM_EmployeeExpired();
                        break;

                    case ReportTypeHRM.EmployeeTrainee:
                        report = new rpHRM_EmployeeTrainee();
                        break;

                    case ReportTypeHRM.InsuranceList:
                        report = new rpHRM_InsuranceList();
                        break;

                    case ReportTypeHRM.InsurancIncrease:
                        report = new rpHRM_InsuranceIncrease();
                        break;

                    case ReportTypeHRM.InsuranceDecrease:
                        report = new rpHRM_DecreaseInsurance();
                        break;

                    case ReportTypeHRM.OccupationStatistics:
                        report = new rpHRM_OccupationStatistics();
                        break;

                    case ReportTypeHRM.BornInMonth:
                        report = new rpHRM_BornInMonth();
                        break;

                    case ReportTypeHRM.ChildernDayGift:
                        report = new rpHRM_ChildernDayGift();
                        break;

                    case ReportTypeHRM.EmployeeFemale:
                        report = new rpHRM_EmployeeFemale();
                        break;

                    // Salary
                    case ReportTypeHRM.EmployeeSalary:
                        report = new rpHRM_EmployeeSalary();
                        break;

                    case ReportTypeHRM.SalaryOutOfFrame:
                        report = new rpHRM_SalaryOutOfFrame();
                        break;

                    case ReportTypeHRM.SalaryIncreaseProcess:
                        report = new rpHRM_SalaryIncreaseProcess();
                        break;

                    case ReportTypeHRM.SalaryIncrease:
                        report = new rpHRM_SalaryIncrease();
                        break;

                    case ReportTypeHRM.EmployeeBank:
                        report = new rpHRM_EmployeeBank();
                        break;

                    case ReportTypeHRM.EmployeeTaxCode:
                        report = new rpHRM_EmployeeTaxCode();
                        break;

                    case ReportTypeHRM.DependentPerson:
                        report = new rpHRM_DependentPerson();
                        break;

                    // Training - On-site
                    case ReportTypeHRM.EmployeeTraining:
                        report = new rpHRM_EmployeeTraining();
                        break;

                    case ReportTypeHRM.EmployeeOnsite:
                        report = new rpHRM_EmployeeOnsite();
                        break;

                    // Rewarded - Disciplined
                    case ReportTypeHRM.EmployeeReceivedAward:
                        report = new rpHRM_EmployeeReceivedAward();
                        break;

                    case ReportTypeHRM.EmployeeRewarded:
                        report = new rpHRM_EmployeeRewarded();
                        break;

                    case ReportTypeHRM.EmployeeDisciplined:
                        report = new rpHRM_EmployeeDisciplined();
                        break;

                    // TimeKeeping
                    case ReportTypeHRM.TotalTimeKeeping:
                        report = new rpHRM_TimeKeepingOffice();
                        break;

                    case ReportTypeHRM.TimeKeepingDetail:
                        report = new rpHRM_TimeKeepingOfficeDetail();
                        break;

                    case ReportTypeHRM.TimeKeepingOverTimeDetail:
                        report = new rpHRM_OvertimeDetail();
                        break;

                    default:
                        // invalid report type
                        return(null);
                    }
                    // return
                    return(report);
                }
            }
            // invalid report type
            return(null);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Init report from type
        /// </summary>
        /// <returns></returns>
        private XtraReport InitReport()
        {
            if (Enum.TryParse(Request.QueryString["rp"], true, out ReportTypeHJM rpType))
            {
                // init report
                XtraReport report;
                switch (rpType)
                {
                //Regulation
                case ReportTypeHJM.QuantityDistrictCivilServants:
                    report = new rpHJM_QuantityDistrictCivilServants();
                    break;

                case ReportTypeHJM.QuantityCommuneCivilServants:
                    report = new rpHJM_QuantityCommuneCivilServants();
                    break;

                case ReportTypeHJM.SalaryDistrictCivilServants:
                    report = new rpHJM_SalaryDistrictCivilServants();
                    break;

                case ReportTypeHJM.SalaryCommuneCivilServants:
                    report = new rpHJM_SalaryCommuneCivilServants();
                    break;

                case ReportTypeHJM.QuantityDistrictCivilServantsDetail:
                    report = new rpHJM_QuantityDistrictCivilServantsDetail();
                    break;

                case ReportTypeHJM.QuantityOfEmployee:
                    report = new rpHJM_QuantityOfEmployee();
                    break;

                case ReportTypeHJM.QuantityFemaleEmployee:
                    report = new rpHJM_QuantityFemaleEmployee();
                    break;

                case ReportTypeHJM.QuantityEthnicMinority:
                    report = new rpHJM_QuantityEthnicMinority();
                    break;

                case ReportTypeHJM.QuantityStaff:
                    report = new rpHJM_QuantityStaff();
                    break;

                case ReportTypeHJM.ListEmployeeByPosition:
                    report = new rpHJM_ListEmployeeByPosition();
                    break;

                //Business
                case ReportTypeHJM.EmployeeList:
                    report = new rpHJM_EmployeeList();
                    break;

                case ReportTypeHJM.PartyMember:
                    report = new rpHJM_PartyMember();
                    break;

                case ReportTypeHJM.ContractsOfEmployee:
                    report = new rpHJM_ContractsOfEmployee();
                    break;

                case ReportTypeHJM.EmployeeExpried:
                    report = new rpHJM_EmployeeExpired();
                    break;

                case ReportTypeHJM.EmployeeAssigned:
                    report = new rpHJM_EmployeeAssigned();
                    break;

                case ReportTypeHJM.BornInMonth:
                    report = new rpHJM_BornInMonth();
                    break;

                case ReportTypeHJM.UnionMember:
                    report = new rpHJM_UnionMember();
                    break;

                case ReportTypeHJM.MilitaryList:
                    report = new rpHJM_MilitaryList();
                    break;

                case ReportTypeHJM.EmployeeByDepartment:
                    report = new rpHJM_EmployeeByDepartment();
                    break;

                case ReportTypeHJM.EmployeeMoveTo:
                    report = new rpHJM_EmployeeMoveTo();
                    break;

                case ReportTypeHJM.EmployeeMoveFrom:
                    report = new rpHJM_EmployeeMoveFrom();
                    break;

                case ReportTypeHJM.EmployeeTurnoverTo:
                    report = new rpHJM_EmployeeTurnoverTo();
                    break;

                case ReportTypeHJM.EmployeeTurnoverFrom:
                    report = new rpHJM_EmployeeTurnoverFrom();
                    break;

                case ReportTypeHJM.EmployeeSecondmentTo:
                    report = new rpHJM_EmployeeSecondmentTo();
                    break;

                case ReportTypeHJM.EmployeeSecondmentFrom:
                    report = new rpHJM_EmployeeSecondmentFrom();
                    break;

                case ReportTypeHJM.EmployeePlurality:
                    report = new rpHJM_EmployeePlurality();
                    break;

                case ReportTypeHJM.EmployeeDismissment:
                    report = new rpHJM_EmployeeDismissment();
                    break;

                case ReportTypeHJM.EmployeeTranfer:
                    report = new rpHJM_EmployeeTranfer();
                    break;

                case ReportTypeHJM.EmployeeSeniority:
                    report = new rpHJM_EmployeeSeniority();
                    break;

                case ReportTypeHJM.EmployeeCompensation:
                    report = new rpHJM_EmployeeCompensation();
                    break;

                case ReportTypeHJM.EmployeeRetirement:
                    report = new rpHJM_EmployeeRetirement();
                    break;

                case ReportTypeHJM.EmployeeFostering:
                    report = new rpHJM_EmployeeFostering();
                    break;

                //Salary
                case ReportTypeHJM.SalaryIncrease:
                    report = new rpHJM_SalaryIncrease();
                    break;

                case ReportTypeHJM.SalaryIncreaseProcess:
                    report = new rpHJM_SalaryIncreaseProcess();
                    break;

                case ReportTypeHJM.SalaryOutOfFrame:
                    report = new rpHJM_SalaryOutOfFrame();
                    break;

                //Training - Onsite
                case ReportTypeHJM.EmployeeTraining:
                    report = new rpHJM_EmployeeTraining();
                    break;

                case ReportTypeHJM.EmployeeOnsite:
                    report = new rpHJM_EmployeeOnsite();
                    break;

                //Rewared - Disciplined
                case ReportTypeHJM.EmployeeReceivedAward:
                    report = new rpHJM_EmployeeReceivedAward();
                    break;

                case ReportTypeHJM.EmployeeRewarded:
                    report = new rpHJM_EmployeeRewarded();
                    break;

                case ReportTypeHJM.EmployeeDisciplined:
                    report = new rpHJM_EmployeeDisciplined();
                    break;

                //Curriculum
                case ReportTypeHJM.CurriculumVitae:
                    report = new rp_PrintCurriculumVitae();
                    break;

                default:
                    // invalid report type
                    return(null);
                }
                // return
                return(report);
            }
            // invalid report type
            return(null);
        }