Ejemplo n.º 1
0
 void toolStripButton_Print_Click(object sender, EventArgs e)
 {
     BMS_DAL.DS.BMSDS ds = new BMS_DAL.DS.BMSDS();
     ds.Merge(new DataRow[] { FixDataRow });
     ds.Merge(new DataRow[] { DataRowItem });
     ds.Merge(DataRowItem.GetTInvoiceDetailsRows());
     ds.Merge(new DataRow[] { ((BMS_DAL.DS.BMSDS)InvoiceDetailDV.Table.DataSet).TVessels.FindByID(FixDataRow.VSL_ID) });
     RPT.XtraReport1 xr = new RPT.XtraReport1(ds, DataRowItem.ID);
     xr.ShowPreviewDialog();
 }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
        private bool plInvoice_ValidatingItem(DataRowItem item)
        {
            if (item.Id == (long)0)
            {
                return(true);
            }
            INVOICE nVOICE = (new INVOICE_BL()).Load(item.Guid);

            if (this.pluginBox1.RowItem.Id == (long)0)
            {
                this.pluginBox1.SetId(nVOICE.ID_STORE);
                return(true);
            }
            if (nVOICE.ID_STORE == this.pluginBox1.Id)
            {
                return(true);
            }
            ePlus.MetaData.Core.Logger.ShowInfo("Накладная принадлежит другому складу!");
            return(false);
        }