Example #1
0
        public ActionResult feesStatement(DateTime fromDt, DateTime toDt, string mode, string detailed, string format)
        {
            if (format == "PDF")
            {
                repDaily_report aa = new repDaily_report();

                if (detailed == "Detailed")
                {
                    aa.pdfdetailed(fromDt, toDt, mode);
                }
                else
                {
                    aa.pdfCansolidated(fromDt, toDt, mode);
                }
            }
            else
            {
                ExcelDaily_reportMain excel = new ExcelDaily_reportMain();

                if (detailed == "Detailed")
                {
                    excel.ExcelDetailed(fromDt, toDt, mode);
                }
                else
                {
                    excel.ExcelCansolidated(fromDt, toDt, mode);
                }
            }



            repFeesStatement main = new repFeesStatement();

            main.fromDt = fromDt;
            main.toDt   = toDt;

            return(View(main));
        }
Example #2
0
        public ActionResult head_wise_fees_statement(DateTime fromDt, DateTime toDt, string mode, string session, int acc_id, string format)
        {
            if (format == "PDF")
            {
                repDaily_report aa = new repDaily_report();
                aa.pdfHeadWiseStatement(fromDt, toDt, mode, session, acc_id);
            }
            else
            {
                ExcelDaily_reportMain excel = new ExcelDaily_reportMain();
                excel.ExcelHeadWiseStatement(fromDt, toDt, mode, session, acc_id);
            }


            repFeesStatement main = new repFeesStatement();

            main.fromDt = fromDt;

            main.toDt = toDt;

            DDsession_name();

            return(View(main));
        }