예제 #1
0
        public ActionResult ExportExcelForBondIm(DateTime start, DateTime end, string category, string itemList, int useSubType, string subType, string unit, string reportName)
        {
            var table  = BondReportRepository.GetBondDepositoryBalanceNew(category, start, end, unit, itemList, useSubType, subType);
            var jtable = BuildBondIssuMaturesTopTable(table);
            var jP     = new JsonExcelParameter {
                Table = jtable, TableName = reportName, Source = Resources.Global.Source
            };

            return(new JsonTableExcelResult(jP));
        }
예제 #2
0
        public JsonResult GetBondIssuMatures(DateTime start, DateTime end, string category, string itemList, int useSubType, string subType, string unit, int id, string rate, string chartType, string columnType)
        {
            var topTable = BondReportRepository.GetBondDepositoryBalanceNew(category, start, end, unit, itemList, useSubType, subType);
            var chart    = GetIssuMaturesTopChart(rate, chartType, columnType, start, end, category, itemList, unit);
            var SumData  =
                new
            {
                TopTable = BuildBondIssuMaturesTopTable(topTable),
                Chart    = chart
            };

            return(Json(SumData, JsonRequestBehavior.AllowGet));
        }