Beispiel #1
0
        public string GetFormatProgramCode(long?Cod_recep_sample_report)
        {
            CCorr_modulesFactory faCorr_module = new CCorr_modulesFactory();
            CCorr_modules        oModule       = faCorr_module.GetByPrimaryKey(new CCorr_modulesKeys("PP"));

            return(oModule.Prefix + oModule.Cod_serie + "-" + CompleteZeros(Convert.ToInt64(Cod_recep_sample_report), Convert.ToInt16(oModule.Num_digits)));
        }
        string GetFormatCorrelative(string type_correlative, long?code_value)
        {
            CCorr_modulesFactory faCorr_module = new CCorr_modulesFactory();
            CCorr_modules        oModule       = faCorr_module.GetByPrimaryKey(new CCorr_modulesKeys(type_correlative));

            return(oModule.Prefix + oModule.Cod_serie + "-" + CompleteZeros(Convert.ToInt64(code_value), Convert.ToInt16(oModule.Num_digits)));
        }
Beispiel #3
0
        public string GetFormatReportCode(short?type_report, long?Cod_recep_sample_report)
        {
            CCorr_modulesFactory faCorr_module = new CCorr_modulesFactory();
            CCorr_modules        oModuleRP     = new CCorr_modules();
            CCorr_modules        oModuleRF     = new CCorr_modules();

            oModuleRP = faCorr_module.GetByPrimaryKey(new CCorr_modulesKeys("RP"));
            oModuleRF = faCorr_module.GetByPrimaryKey(new CCorr_modulesKeys("RF"));

            if (type_report == 1)
            {
                return(oModuleRP.Prefix + oModuleRP.Cod_serie + "-" + CompleteZeros(Convert.ToInt64(Cod_recep_sample_report), Convert.ToInt16(oModuleRP.Num_digits)));
            }
            else
            {
                return(oModuleRF.Prefix + oModuleRF.Cod_serie + "-" + CompleteZeros(Convert.ToInt64(Cod_recep_sample_report), Convert.ToInt16(oModuleRF.Num_digits)));
            }
        }
Beispiel #4
0
        public long GetNewCodProgram()
        {
            CCorr_modulesFactory faCorr_module = new CCorr_modulesFactory();
            CCorr_modules        oModule       = faCorr_module.GetByPrimaryKey(new CCorr_modulesKeys("PP"));

            oModule.Correlative = oModule.Correlative + 1;
            faCorr_module.Update(oModule);
            return(Convert.ToInt16(oModule.Correlative));
        }
        long GetNewCorrelative(string type_correlative)
        {
            CCorr_modulesFactory faCorr_module = new CCorr_modulesFactory();
            CCorr_modules        oModule       = faCorr_module.GetByPrimaryKey(new CCorr_modulesKeys(type_correlative));

            oModule.Correlative = oModule.Correlative + 1;
            faCorr_module.Update(oModule);
            return(Convert.ToInt16(oModule.Correlative));
        }
Beispiel #6
0
        public long GetNewCodReport(short type_report)
        {
            CCorr_modulesFactory faCorr_module = new CCorr_modulesFactory();
            CCorr_modules        oModule       = new CCorr_modules();

            if (type_report == 1)
            {
                oModule             = faCorr_module.GetByPrimaryKey(new CCorr_modulesKeys("RP"));
                oModule.Correlative = oModule.Correlative + 1;
                faCorr_module.Update(oModule);
            }
            else
            {
                oModule             = faCorr_module.GetByPrimaryKey(new CCorr_modulesKeys("RF"));
                oModule.Correlative = oModule.Correlative + 1;
                faCorr_module.Update(oModule);
            }

            return(Convert.ToInt16(oModule.Correlative));
        }