Beispiel #1
0
        private static void GetFormsInQueue(int?companyId, int productionUnitId, int?functionalAreaId)
        {
            // Get forms by user Functional Area
            IQueryable <Form> forms     = CxForm.GetFormsByFunctionalAreaId(functionalAreaId);
            List <Form>       formsList = forms.ToList();


            // for each record in forms
            // check is exists Foms in the period defined by form Periodicity.Code
            foreach (Form currentForm in formsList)
            {
                switch (currentForm.FormType.FormTypeID)
                {
                case 1: GetFinancialExportFormInQueue(currentForm, productionUnitId);
                    break;

                case 2: GetFinancialFormInQueue(currentForm, productionUnitId);
                    break;

                case 5: GetHumanResourceFormInQueue(currentForm, productionUnitId);
                    break;

                case 6: GetHumanResourceQualificationFormInQueue(currentForm, productionUnitId);
                    break;

                default: break;
                }
            }
        }
Beispiel #2
0
        internal static void ProcessLateSubmissions()
        {
            // Get forms by user Functional Area
            IQueryable <Form> forms     = CxForm.GetFormsByFunctionalAreaId(null);
            List <Form>       formsList = forms.ToList();


            // for each record in forms
            // check is exists Foms in the period defined by form Periodicity.Code
            foreach (Form currentForm in formsList)
            {
                switch (currentForm.FormType.FormTypeID)
                {
                case 1: ProcessLateFinancialExportForm(currentForm);
                    break;

                case 2: ProcessLateFinancialForm(currentForm);
                    break;

                case 5: ProcessLateHumanResourceForm(currentForm);
                    break;

                case 6: ProcessLateHumanResourceQualificationForm(currentForm);
                    break;

                default: break;
                }
            }
        }
Beispiel #3
0
        private void GetZEEFormsInQueue(int?functionalAreaId)
        {
            // for each record in forms
            // get forms by Functional Area
            IQueryable <Form> forms     = CxForm.GetFormsByFunctionalAreaId(functionalAreaId);
            List <Form>       formsList = forms.ToList();


            foreach (Form currentForm in formsList)
            {
                switch (currentForm.FormType.FormTypeID)
                {
                case 3: GetOperationalLicensesFormInQueue(currentForm);
                    break;

                case 4: GetOperationalFormInQueue(currentForm);
                    break;

                case 7: GetZEEFinancialFormInQueue(currentForm);
                    break;

                case 8: GetZEEHumanResourceFormInQueue(currentForm);
                    break;

                default: break;
                }
            }
        }