Exemplo n.º 1
0
        public static IBookResult CreateMonthlyAmountPaymentsResult(IPayrollConcept concept, IBookIndex element, IPayrollArticle article, ITargetValues targets,
                                                                    decimal factorValue, decimal amountValue, Int32 recordHours)
        {
            IResultValues results = ResultValueBuilder.BuildMonthlyAmountPaymentsResult(targets, factorValue, amountValue, recordHours);

            return(new BookResult(element, article, results, concept.TargetValues(), concept.ResultValues()));
        }
Exemplo n.º 2
0
        public BookResult(IBookIndex element, IPayrollArticle article, IResultValues values, string[] targetValues, string[] resultValues)
        {
            __element = element;

            __article = article;

            __values = values;

            __targetValues = targetValues;

            __resultValues = resultValues;
        }
Exemplo n.º 3
0
        public static IBookResult CreateRecordTimeResult(IPayrollConcept concept, IBookIndex element, IPayrollArticle article, ITargetValues targets, Int32 timeValue)
        {
            IResultValues results = ResultValueBuilder.BuildRecordTimeResult(targets, timeValue);

            return(new BookResult(element, article, results, concept.TargetValues(), concept.ResultValues()));
        }
Exemplo n.º 4
0
        public static IBookResult CreateTimesheetScheduleResult(IPayrollConcept concept, IBookIndex element, IPayrollArticle article, ITargetValues targets, Int32[] timeTable)
        {
            IResultValues results = ResultValueBuilder.BuildTimesheetScheduleResult(targets, timeTable);

            return(new BookResult(element, article, results, concept.TargetValues(), concept.ResultValues()));
        }
Exemplo n.º 5
0
        public static IBookResult CreatePositionEmplTermResult(IPayrollConcept concept, IBookIndex element, IPayrollArticle article, ITargetValues targets, uint dayFromOrdinal, uint dayEndsOrdinal)
        {
            IResultValues results = ResultValueBuilder.BuildPositionEmplTermResult(targets, dayFromOrdinal, dayEndsOrdinal);

            return(new BookResult(element, article, results, concept.TargetValues(), concept.ResultValues()));
        }
Exemplo n.º 6
0
        public static IBookResult CreateCloneResult(IPayrollConcept concept, IBookIndex element, IPayrollArticle article, ITargetValues targets)
        {
            IResultValues results = ResultValueBuilder.BuildTargetResult(targets);

            return(new BookResult(element, article, results, concept.TargetValues(), concept.ResultValues()));
        }
Exemplo n.º 7
0
        public static IBookResult CreateAmountDeductedResult(IPayrollConcept concept, IBookIndex element, IPayrollArticle article, ITargetValues targets, decimal amountValue)
        {
            IResultValues results = ResultValueBuilder.BuildAmountDeductedResult(targets, amountValue);

            return(new BookResult(element, article, results, concept.TargetValues(), concept.ResultValues()));
        }
Exemplo n.º 8
0
        public static IBookResult CreateEmptyResult(IBookIndex element, IPayrollArticle article)
        {
            IResultValues results = ResultValueBuilder.BuildEmptyResult();

            return(new BookResult(element, article, results, EMPTY_VALUES_LIST, EMPTY_VALUES_LIST));
        }
Exemplo n.º 9
0
            public static string LogValueInfo(string value, IResultValues result)
            {
                switch (value)
                {
                case "contract_type":
                    return(LogObjectString(result.ContractType()));

                case "health_work":
                    return(LogObjectString(result.HealthWorkType()));

                case "social_work":
                    return(LogObjectString(result.SocialWorkType()));

                case "date_from":
                    return(LogObjectString(result.DateFrom()));

                case "date_ends":
                    return(LogObjectString(result.DateEnds()));

                case "timesheet_weekly":
                    return(LogObjectString(result.TimesheetWeekly()));

                case "workdays_weekly":
                    return(LogObjectString(result.WorkdaysWeekly()));

                case "timesheet_worked":
                    return(LogObjectString(result.TimesheetWorked()));

                case "timesheet_absent":
                    return(LogObjectString(result.TimesheetAbsent()));

                case "amount_monthly":
                    return(LogObjectString(result.AmountMonthly()));

                case "code_interests":
                    return(LogObjectString(result.CodeInterests()));

                case "code_residency":
                    return(LogObjectString(result.CodeResidency()));

                case "code_mandatory":
                    return(LogObjectString(result.CodeMandatory()));

                case "code_statement":
                    return(LogObjectString(result.CodeStatement()));

                case "code_handicaps":
                    return(LogObjectString(result.CodeHandicaps()));

                case "code_cardinals":
                    return(LogObjectString(result.CodeCardinals()));

                // RESULTS
                case "day_ordinal_from":
                    return(LogObjectString(result.PeriodDayFromOrdinal()));

                case "day_ordinal_ends":
                    return(LogObjectString(result.PeriodDayEndsOrdinal()));

                case "shift_timetable":
                    return(LogInt32String(result.ShiftTimetable()));

                case "work_timetable":
                    return(LogInt32String(result.WorkTimetable()));

                case "over_timetable":
                    return(LogInt32String(result.OverTimetable()));

                case "absence_timetable":
                    return(LogInt32String(result.AbsenceTimetable()));

                case "worktime_counts":
                    return(LogObjectString(result.WorktimeCount()));

                case "overtime_counts":
                    return(LogObjectString(result.OvertimeCount()));

                case "absence_counts":
                    return(LogObjectString(result.AbsenceCount()));

                case "record_time":
                    return(LogObjectString(result.RecordTime()));

                case "record_amount":
                    return(LogObjectString(result.RecordAmount()));

                case "record_income":
                    return(LogObjectString(result.RecordIncome()));

                case "amount_income":
                    return(LogObjectString(result.AmountIncome()));

                case "amount_payments":
                    return(LogObjectString(result.AmountPayments()));

                case "amount_deducted":
                    return(LogObjectString(result.AmountDeducted()));

                default:
                    return("NULL");
                }
            }