예제 #1
0
        public override IReportForm GetReportForm(DataRowItem dataRowItem)
        {
            XmlDocument xmlDocument = new XmlDocument();

            Utils.AddNode(Utils.AddNode(xmlDocument, "XML"), "ID_GLOBAL", dataRowItem.Guid);
            ReportFormNew reportFormNew = new ReportFormNew();

            reportFormNew.ReportFormName = this.ReportName;
            reportFormNew.ReportPath     = Path.Combine(Path.Combine(this.folderPath, "Cache"), "F77YInvoiceProtocolZNVLS2019.rdlc");
            reportFormNew.LoadData("REPEX_INVOICE_PROTOCOL_ZNVLS", xmlDocument.InnerXml);
            reportFormNew.BindDataSource("InvoiceProtocolZNVLS_DS_Table0", 1);
            reportFormNew.BindDataSource("InvoiceProtocolZNVLS_DS_Table1", 0);
            return(reportFormNew);
        }
예제 #2
0
        public override IReportForm GetReportForm(DataRowItem dataRowItem)
        {
            XmlDocument xmlDocument = new XmlDocument();

            Utils.AddNode(Utils.AddNode((XmlNode)xmlDocument, "XML"), "ID_GLOBAL", dataRowItem.Guid);
            ReportFormNew reportFormNew = new ReportFormNew();

            reportFormNew.Text       = reportFormNew.ReportFormName = this.ReportName;
            reportFormNew.ReportPath = Path.Combine(Path.Combine(this.folderPath, "Cache"), "F14KInvoiceProtocolZNVLSKF.rdlc");
            reportFormNew.LoadData("REPEX_INVOICE_PROTOCOL_ZNVLS_KF", xmlDocument.InnerXml);
            reportFormNew.BindDataSource("InvoiceProtocolZNVLS_DS_Table0", 1);
            reportFormNew.BindDataSource("InvoiceProtocolZNVLS_DS_Table1", 0);
            reportFormNew.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            reportFormNew.Width        = 29;
            return((IReportForm)reportFormNew);
        }
예제 #3
0
        public void Print(string[] reportFiles)
        {
            XmlDocument doc  = new XmlDocument();
            XmlNode     root = Utils.AddNode(doc, "XML", null);

            Utils.AddNode(root, "DATE_FR", ucPeriod.DateFrom.Date);
            Utils.AddNode(root, "DATE_TO", ucPeriod.DateTo.Date.AddDays(1).AddSeconds(-1));
            Utils.AddNode(root, "USE_ACTS", Convert.ToInt16(checkBoxUseActs.Checked));

            contractorsMulti.AddItems(root, "CONTRACTOR");

            ReportFormNew rep = new ReportFormNew();

            rep.LoadData("MARGIN_BONUS_OPTIMA", doc.InnerXml);

            rep.BindDataSource("Cash_DS_Table0", 0);

            rep.ReportPath = Path.Combine(Path.GetDirectoryName(reportFiles[0]), "Bonus.rdlc");

            rep.AddParameter("date_fr", ucPeriod.DateFrText);
            rep.AddParameter("date_to", ucPeriod.DateToText);
            rep.AddParameter("VER_DLL", Assembly.GetExecutingAssembly().ManifestModule.ScopeName);
            rep.ExecuteReport(this);
        }