Пример #1
0
        private void MoneyBind(string year)
        {
            this.MoneyView.Reset();
            this.MoneyView.LocalReport.Dispose();
            this.MoneyView.LocalReport.DataSources.Clear();

            ReportDataSource MoneyDataSource = new ReportDataSource();
            MoneyDataSource.Name = "DataSet1";
            ReportBll reportbll = new ReportBll();
            string filepath = Server.MapPath("~/Content/Report/Money/MoneyJson.txt");
            MoneyDataSource.Value = reportbll.GetMoneyBalList(filepath, year);

            this.MoneyView.LocalReport.ReportPath = Server.MapPath("~/Content/Report/Money/Money.rdlc");
            this.MoneyView.LocalReport.DataSources.Add(MoneyDataSource);
            this.MoneyView.LocalReport.Refresh();
        }
Пример #2
0
        private void BankAnalyzeBind()
        {
            this.BankAnalyzeView.Reset();
            this.BankAnalyzeView.LocalReport.Dispose();
            this.BankAnalyzeView.LocalReport.DataSources.Clear();

            ReportDataSource BankAnalyzeDataSource = new ReportDataSource();
            BankAnalyzeDataSource.Name = "DataSet1";
            ReportBll reportbll = new ReportBll();
            string filepath = Server.MapPath("~/Content/Report/BankAnalyze/BankAnalyzeJson.txt");
            BankAnalyzeDataSource.Value = reportbll.GetBankAnalyzeList(filepath, "");

            this.BankAnalyzeView.LocalReport.ReportPath = Server.MapPath("~/Content/Report/BankAnalyze/BankAnalyze.rdlc");
            this.BankAnalyzeView.LocalReport.DataSources.Add(BankAnalyzeDataSource);
            this.BankAnalyzeView.LocalReport.Refresh();
        }
Пример #3
0
        private void QuotationBind()
        {
            this.QuotationView.Reset();
            this.QuotationView.LocalReport.Dispose();
            this.QuotationView.LocalReport.DataSources.Clear();

            ReportDataSource QuotationDataSource = new ReportDataSource();
            QuotationDataSource.Name = "DataSet1";
            ReportBll reportbll = new ReportBll();
            string filepath = Server.MapPath("~/Content/Report/Quotation/QuotationJson.txt");
            QuotationDataSource.Value = reportbll.GetQuotationList(filepath, "");
            this.QuotationView.LocalReport.DisplayName = "报价单";
            this.QuotationView.LocalReport.ReportPath = Server.MapPath("~/Content/Report/Quotation/Quotation.rdlc");
            this.QuotationView.LocalReport.DataSources.Add(QuotationDataSource);
            this.QuotationView.LocalReport.Refresh();
        }