Beispiel #1
0
        private void Export(ExportFormatType pvtExportFormatType)
        {
            if (string.IsNullOrEmpty(lblReferrer.ToolTip))
            {
                return;
            }

            ReportDocument rpt = getReportDocument();

            string strUnparsedTask = lblReferrer.ToolTip;
            string task            = strUnparsedTask;

            if (strUnparsedTask.ToLower() != "transaction")
            {
                task = Common.Decrypt(strUnparsedTask, Session.SessionID);
            }

            SetDataSource(rpt, task);

            if (pvtExportFormatType == ExportFormatType.WordForWindows || pvtExportFormatType == ExportFormatType.Excel || pvtExportFormatType == ExportFormatType.PortableDocFormat)
            {
                string strFileName = Session["UserName"].ToString() + "_products";
                CRSHelper.GenerateReport(strFileName, rpt, this.updPrint, pvtExportFormatType);
            }
            else
            {
                CRViewer.ReportSource     = rpt;
                Session["ReportDocument"] = rpt;
            }
        }
Beispiel #2
0
        private void Export(ExportFormatType pvtExportFormatType)
        {
            ReportDocument rpt = getReportDocument();

            SetDataSource(rpt);

            if (pvtExportFormatType == ExportFormatType.WordForWindows || pvtExportFormatType == ExportFormatType.Excel || pvtExportFormatType == ExportFormatType.PortableDocFormat)
            {
                string strFileName = Session["UserName"].ToString() + "poreturn";
                CRSHelper.GenerateReport(strFileName, rpt, this.updPrint, pvtExportFormatType);
            }
            else
            {
                CRViewer.ReportSource     = rpt;
                Session["ReportDocument"] = rpt;
            }
        }
Beispiel #3
0
        private void Export(ExportFormatType pvtExportFormatType)
        {
            ReportDocument rpt = getReportDocument();

            SetDataSource(rpt);

            if (pvtExportFormatType == ExportFormatType.WordForWindows || pvtExportFormatType == ExportFormatType.Excel || pvtExportFormatType == ExportFormatType.PortableDocFormat)
            {
                string strFileName = Session["UserName"].ToString() + "_credit";

                switch (cboReportType.SelectedItem.Value)
                {
                case ReportTypes.CREDITS_Purchases:
                    strFileName += "purchases";
                    break;

                case ReportTypes.CREDITS_Payments:
                    strFileName += "payments";
                    break;

                case ReportTypes.CREDITS_CreditorsLedgerSummary:
                    strFileName += "ledger";
                    break;

                case ReportTypes.CustomerCreditSummarizedStatistics:
                    strFileName += "stat";
                    break;

                default:
                    break;
                }

                CRSHelper.GenerateReport(strFileName, rpt, this.updPrint, pvtExportFormatType);
            }
            else
            {
                CRViewer.ReportSource     = rpt;
                Session["ReportDocument"] = rpt;
            }
        }
Beispiel #4
0
        private void Export(ExportFormatType pvtExportFormatType)
        {
            if (string.IsNullOrEmpty(txtTransactionNo.Text))
            {
                return;
            }

            ReportDocument rpt = getReportDocument();

            SetDataSource(rpt);

            if (pvtExportFormatType == ExportFormatType.WordForWindows || pvtExportFormatType == ExportFormatType.Excel || pvtExportFormatType == ExportFormatType.PortableDocFormat)
            {
                string strFileName = Session["UserName"].ToString() + "_salesrcvbles";
                CRSHelper.GenerateReport(strFileName, rpt, this.updPrint, pvtExportFormatType);
            }
            else
            {
                CRViewer.ReportSource     = rpt;
                Session["ReportDocument"] = rpt;
            }
        }