示例#1
0
        public ORExcel(Stream data, ApplicationDbContext context, string fileName, string mes, string gestion, string segmentoOrigen, Dist_File file, int headerin = 3, int sheets = 1, string resultfileName = "Result")
            : base(cols, data, fileName, headerin, sheets, resultfileName)
        {
            this.segmentoOrigen = segmentoOrigen;
            this.gestion        = gestion;
            switch (mes)
            {
            case "13":
                this.mes = "01";
                break;

            case "14":
                this.mes = "02";
                break;

            case "15":
                this.mes = "03";
                break;

            case "16":
                this.mes = "04";
                break;

            default:
                this.mes = mes;
                break;
            }
            this.file = file;
            _context  = context;
            isFormatValid();
        }
        public PayrollExcel(Stream data, ApplicationDbContext context, string fileName, string mes, string gestion, string segmentoOrigen, Dist_File file, int headerin = 1, int sheets = 1, string resultfileName = "PayrollResult")
            : base(cols, data, fileName, headerin: headerin, resultfileName: resultfileName, sheets: sheets)
        {
            this.segmentoOrigen = segmentoOrigen;
            this.gestion        = gestion;
            //change month for validation purposes
            switch (mes)
            {
            case "13":
                this.mes = "01";
                break;

            case "14":
                this.mes = "02";
                break;

            case "15":
                this.mes = "03";
                break;

            case "16":
                this.mes = "04";
                break;

            default:
                this.mes = mes;
                break;
            }

            this.file = file;
            _context  = context;
            isFormatValid();
        }