当前位置: 首页>>代码示例>>C#>>正文


C# Report.SetParameterValue方法代码示例

本文整理汇总了C#中Report.SetParameterValue方法的典型用法代码示例。如果您正苦于以下问题:C# Report.SetParameterValue方法的具体用法?C# Report.SetParameterValue怎么用?C# Report.SetParameterValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Report的用法示例。


在下文中一共展示了Report.SetParameterValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: btnListaUkupno_Click

        private void btnListaUkupno_Click(object sender, EventArgs e)
        {
            if (dgArtikli.Rows.Count > 0)
            {
                try
                {
                    DataTable artikli = new DataTable();
                    artikli = pregled_akcijskih_nabavnih_cijena.Tables["Table"].Copy();
                    string partner = glDobavljac.Text;
                    string datumOD = Convert.ToDateTime(dtpODkada.Text).ToString("dd-MM-yyyy");
                    string datumDO = Convert.ToDateTime(dtpDokada.Text).ToString("dd-MM-yyyy");

                    //pregled_akcijskih_nabavnih_cijena.PregledAkcNabCijena.Copy();
                    //pregled_akcijskih_nabavnih_cijena.PregledAkcNabCijena.CopyToDataTable(artikli,LoadOption.Upsert);

                    //veza.ExecuteQuery("select poslovnica.po_ID, poslovnica.po_sifra, poslovnica.po_naziv, mjesto.mj_naziv, poslovnica.po_asortiman, poslovnica.po_cjenik from poslovnica, mjesto where mjesto.mj_ID = poslovnica.mjesto_mj_ID and poslovnica.po_aktivna = 1 and poslovnica.po_datumZatvaranja is null and (poslovnica.vp_sifra = 300 or  poslovnica.vp_sifra =200) and (poslovnica.po_cjenik <> '' or poslovnica.po_asortiman <> '') order by poslovnica.po_sifra asc", ref artikli);

                    if (dgArtikli.Rows.Count > 0)
                    {
                        //create dataset
                        DataSet FDataSet = new DataSet();
                        artikli.TableName = "Artikli";
                        FDataSet.Tables.Add(artikli);

                        // create report instance
                        Report report = new Report();

                        // load the existing report
                        System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
                        string baseDir = System.IO.Path.GetDirectoryName(a.Location);

                        report.Load(baseDir + "/report/PregledAkcNabCijena.frx");

                        // register the dataset
                        report.RegisterData(FDataSet);
                        report.SetParameterValue("Partner", partner);
                        report.SetParameterValue("DatumOD", datumOD);
                        report.SetParameterValue("DatumDO", datumDO);

                        //dizajn
                        //report.Design();

                        // run the report
                        report.Show();

                        // free resources used by report
                        report.Dispose();
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
开发者ID:sokac237,项目名称:Komercijala,代码行数:55,代码来源:Pregled+akcijskih+nabavnih+cijena.cs

示例2: btnIzvjestaj_Click

        private void btnIzvjestaj_Click(object sender, EventArgs e)
        {
            if (gridView2.RowCount > 0)
            {
                try
                {
                    DataTable artikli = new DataTable();
                    artikli = dodatnePozicijeZaTrgovinu.DodatneTrgovina.CopyToDataTable();
                    string datOD =  Convert.ToDateTime(dtpDatumOD.Text).ToString("dd-MM-yyyy");
                    string datDO = Convert.ToDateTime(dtpDatumDO.Text).ToString("dd-MM-yyyy");
                    //string skladisteBroj = txtSkladiste.Text;
                    //string brojNarudzbe = txtBrojNarudzbe.Text;

                    //veza.ExecuteQuery("select poslovnica.po_ID, poslovnica.po_sifra, poslovnica.po_naziv, mjesto.mj_naziv, poslovnica.po_asortiman, poslovnica.po_cjenik from poslovnica, mjesto where mjesto.mj_ID = poslovnica.mjesto_mj_ID and poslovnica.po_aktivna = 1 and poslovnica.po_datumZatvaranja is null and (poslovnica.vp_sifra = 300 or  poslovnica.vp_sifra =200) and (poslovnica.po_cjenik <> '' or poslovnica.po_asortiman <> '') order by poslovnica.po_sifra asc", ref artikli);

                    if (gridView2.RowCount > 0)
                    {
                        //create dataset
                        DataSet FDataSet = new DataSet();
                        artikli.TableName = "Artikli";
                        FDataSet.Tables.Add(artikli);

                        // create report instance
                        Report report = new Report();

                        // load the existing report
                        System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
                        string baseDir = System.IO.Path.GetDirectoryName(a.Location);

                        report.Load(baseDir + "/report/DogovorenePozicijeTrgovina.frx");
                        report.SetParameterValue("datumod", datOD);
                        report.SetParameterValue("datumdo", datDO);

                        // register the dataset
                        report.RegisterData(FDataSet);

                        //dizajn
                        //report.Design();

                        // run the report
                        report.Show();

                        // free resources used by report
                        report.Dispose();
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
开发者ID:sokac237,项目名称:Komercijala,代码行数:52,代码来源:Pregled+pozicija+za+trgovinu.cs

示例3: DanfeFrNfce

        /// <summary>
        /// Construtor da classe reponsável pela impressão do DANFE da NFCe em Fast Reports
        /// </summary>
        /// <param name="proc">Objeto do tipo nfeProc</param>
        /// <param name="configuracaoDanfeNfce">Objeto do tipo ConfiguracaoDanfeNfce contendo as definições de impressão</param>
        public DanfeFrNfce(nfeProc proc, ConfiguracaoDanfeNfce configuracaoDanfeNfce)
        {
            #region Define as varíaveis que serão usadas no relatório (dúvidas a respeito do fast reports consulte a documentação em https://www.fast-report.com/pt/product/fast-report-net/documentation/)

            _relatorio = new Report();
            _relatorio.RegisterData(new[] { proc }, "NFCe", 20);
            _relatorio.GetDataSource("NFCe").Enabled = true;
            _relatorio.Load(new MemoryStream(Properties.Resources.NFCe));
            _relatorio.SetParameterValue("NfceDetalheVendaNormal", configuracaoDanfeNfce.DetalheVendaNormal);
            _relatorio.SetParameterValue("NfceDetalheVendaContigencia", configuracaoDanfeNfce.DetalheVendaContigencia);
            ((PictureObject) _relatorio.FindObject("poEmitLogo")).Image = configuracaoDanfeNfce.ObterLogo();
            ((TextObject)_relatorio.FindObject("txtUrl")).Text = EnderecadorDanfeNfce.ObterUrl(proc.NFe.infNFe.ide.tpAmb, proc.NFe.infNFe.ide.cUF, TipoUrlDanfeNfce.UrlConsulta);
            ((BarcodeObject)_relatorio.FindObject("bcoQrCode")).Text = EnderecadorDanfeNfce.ObterUrlQrCode(proc, configuracaoDanfeNfce);

            //Segundo o Manual de Padrões Padrões Técnicos do DANFE - NFC - e e QR Code, versão 3.2, página 9, nos casos de emissão em contigência deve ser impresso uma segunda cópia como via do estabelecimento
            _relatorio.PrintSettings.Copies = proc.NFe.infNFe.ide.tpEmis == TipoEmissao.teNormal ? 1 : 2;

            #endregion
        }
开发者ID:elyfran,项目名称:Zeus.Net.NFe.NFCe,代码行数:24,代码来源:DanfeFrNfce.cs

示例4: btnIspisi_Click

        private void btnIspisi_Click(object sender, EventArgs e)
        {
            try
            {
                if (dgPodaci.RowCount > 0)
                {
                    try
                    {
                        DataTable artikli = new DataTable();
                        artikli = slanje_na_knjizenje.SlanjeNaKnjizenje.CopyToDataTable();
                        string datumSlanja = Convert.ToDateTime(dtpPredaja.EditValue).ToString("dd.MM.yyyy");

                        //create dataset
                        DataSet FDataSet = new DataSet();
                        artikli.TableName = "Artikli";
                        FDataSet.Tables.Add(artikli);

                        // create report instance
                        Report report = new Report();

                        // load the existing report
                        System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
                        string baseDir = System.IO.Path.GetDirectoryName(a.Location);

                        report.Load(baseDir + "/report/Knjizenje3.frx");
                        report.SetParameterValue("datumSlanja", datumSlanja);

                        // register the dataset
                        report.RegisterData(FDataSet);

                        //dizajn
                        //report.Design();

                        // run the report
                        report.Show();

                        // free resources used by report
                        report.Dispose();
                    }

                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.Message);
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
开发者ID:sokac237,项目名称:Urudzbeni,代码行数:51,代码来源:Slanje+na+knjizenje+ispis.cs

示例5: DanfeFrNfce

        /// <summary>
        /// Construtor da classe reponsável pela impressão do DANFE da NFCe em Fast Reports
        /// </summary>
        /// <param name="proc">Objeto do tipo nfeProc</param>
        /// <param name="configuracaoDanfeNfce">Objeto do tipo ConfiguracaoDanfeNfce contendo as definições de impressão</param>
        /// <param name="cIdToken">Identificador do CSC – Código de Segurança do Contribuinte no Banco de Dados da SEFAZ</param>
        /// <param name="csc">Código de Segurança do Contribuinte(antigo Token)</param>
        public DanfeFrNfce(nfeProc proc, ConfiguracaoDanfeNfce configuracaoDanfeNfce, string cIdToken, string csc)
        {
            #region Define as varíaveis que serão usadas no relatório (dúvidas a respeito do fast reports consulte a documentação em https://www.fast-report.com/pt/product/fast-report-net/documentation/)

            Relatorio = new Report();
            Relatorio.RegisterData(new[] { proc }, "NFCe", 20);
            Relatorio.GetDataSource("NFCe").Enabled = true;
            Relatorio.Load(new MemoryStream(Properties.Resources.NFCe));
            Relatorio.SetParameterValue("NfceDetalheVendaNormal", configuracaoDanfeNfce.DetalheVendaNormal);
            Relatorio.SetParameterValue("NfceDetalheVendaContigencia", configuracaoDanfeNfce.DetalheVendaContigencia);
            Relatorio.SetParameterValue("NfceImprimeDescontoItem", configuracaoDanfeNfce.ImprimeDescontoItem);
            Relatorio.SetParameterValue("NfceModoImpressao", configuracaoDanfeNfce.ModoImpressao);
            ((ReportPage) Relatorio.FindObject("PgNfce")).LeftMargin = configuracaoDanfeNfce.MargemEsquerda;
            ((ReportPage)Relatorio.FindObject("PgNfce")).RightMargin = configuracaoDanfeNfce.MargemDireita;
            ((PictureObject) Relatorio.FindObject("poEmitLogo")).Image = configuracaoDanfeNfce.ObterLogo();
            ((TextObject)Relatorio.FindObject("txtUrl")).Text = proc.NFe.infNFeSupl.ObterUrl(proc.NFe.infNFe.ide.tpAmb, proc.NFe.infNFe.ide.cUF, TipoUrlConsultaPublica.UrlConsulta);
            ((BarcodeObject)Relatorio.FindObject("bcoQrCode")).Text = proc.NFe.infNFeSupl  == null ? proc.NFe.infNFeSupl.ObterUrlQrCode(proc.NFe, cIdToken, csc) : proc.NFe.infNFeSupl.qrCode;

            //Segundo o Manual de Padrões Padrões Técnicos do DANFE - NFC - e e QR Code, versão 3.2, página 9, nos casos de emissão em contigência deve ser impresso uma segunda cópia como via do estabelecimento
            Relatorio.PrintSettings.Copies = (proc.NFe.infNFe.ide.tpEmis == TipoEmissao.teNormal | (proc.protNFe != null && proc.protNFe.infProt != null && NfeSituacao.Autorizada(proc.protNFe.infProt.cStat))
                /*Se a NFe for autorizada, mesmo que seja em contingência, imprime somente uma via*/ ) ? 1 : 2;

            #endregion
        }
开发者ID:luispelin,项目名称:Zeus.Net.NFe.NFCe,代码行数:31,代码来源:DanfeFrNfce.cs

示例6: ispis

        public void ispis(string broj)
        {
            try
            {
                DataTable finacijsko = new DataTable();

                veza.ExecuteQuery("select partner.pa_sifra, partner.PA_NAZIV, gratis.gr_datum, gratis.akc_broj, gratis.gr_vrijednostsnizenja, gratis.gr_zapisnik, poslovnica.po_sifra, poslovnica.po_naziv from gratis left join poslovnica on poslovnica.po_id=gratis.poslovnica_PO_ID left join partner on partner.PA_ID=gratis.partneri_PA_ID where gratis.akc_broj ='"+broj+"'", ref finacijsko);

                if (finacijsko.Rows.Count > 0)
                {
                    //create dataset
                    DataSet FDataSet = new DataSet();
                    finacijsko.TableName = "Financijsko";
                    FDataSet.Tables.Add(finacijsko);

                    // create report instance
                    Report report = new Report();

                    // load the existing report
                    System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
                    string baseDir = System.IO.Path.GetDirectoryName(a.Location);

                    report.Load(baseDir + "/report/Financijsko_snizenja.frx");

                    // register the dataset
                    report.RegisterData(FDataSet);
                    report.SetParameterValue("Mjesec", "2");

                    //dizajn
                    //report.Design();

                    // run the report
                    report.Show();

                    // free resources used by report
                    report.Dispose();
                }
            }
            catch (Exception ex)
            {
            }
        }
开发者ID:sokac237,项目名称:Komercijala,代码行数:42,代码来源:Snizenja+obracun.cs

示例7: FeGuardarArchivosFacturaDevolucion

        private static Report FeGuardarArchivosFacturaDevolucion(ref FacturaElectronica oFacturaE, string sCfdiTimbrado, string sSerieFolio)
        {
            // Se obtienen las rutas a utilizar
            DateTime dAhora = DateTime.Now;
            string sRutaPdf = TheosProc.Config.Valor("Facturacion.Devolucion.RutaPdf");
            string sRutaXml = TheosProc.Config.Valor("Facturacion.Devolucion.RutaXml");
            string sAnioMes = (@"\" + dAhora.Year.ToString() + @"\" + dAhora.Month.ToString() + @"\");
            sRutaPdf += sAnioMes;
            Directory.CreateDirectory(sRutaPdf);
            sRutaXml += sAnioMes;
            Directory.CreateDirectory(sRutaXml);

            // Se guarda el xml
            string sArchivoXml = (sRutaXml + sSerieFolio + ".xml");
            File.WriteAllText(sArchivoXml, sCfdiTimbrado, Encoding.UTF8);

            // Se manda la salida de la factura
            string sArchivoPdf = (sRutaPdf + sSerieFolio + ".pdf");
            var oRep = new Report();
            oRep.Load(GlobalClass.ConfiguracionGlobal.pathReportes + "CfdiNotaDeCredito.frx");
            var ObjetoCbb = new { Imagen = oFacturaE.GenerarCbb() };
            oRep.RegisterData(new List<FacturaElectronica>() { oFacturaE }, "Factura");
            oRep.RegisterData(new List<object>() { ObjetoCbb }, "Cbb");
            oRep.SetParameterValue("Vendedor", oFacturaE.Adicionales["Vendedor"].ToUpper());
            oRep.SetParameterValue("TotalConLetra", Util.ImporteALetra(oFacturaE.Total).ToUpper());
            oRep.SetParameterValue("FacturaOrigen", oFacturaE.Adicionales["FacturaOrigen"]);

            UtilLocal.EnviarReporteASalida("Reportes.VentaFacturaDevolucion.Salida", oRep);

            // Se guarda el pdf
            var oRepPdf = new FastReport.Export.Pdf.PDFExport() { ShowProgress = true };
            oRep.Prepare();
            oRep.Export(oRepPdf, sArchivoPdf);

            return oRep;
        }
开发者ID:moisesiq,项目名称:aupaga,代码行数:36,代码来源:Ventas.cs

示例8: TicketAgregarLeyendas

 public static void TicketAgregarLeyendas(ref Report oReporte)
 {
     var oLeyendas = TheosProc.Config.ValoresVarios("Tickets.Leyenda");
     oReporte.SetParameterValue("Leyenda1", oLeyendas["Tickets.Leyenda1"]);
     oReporte.SetParameterValue("Leyenda2", oLeyendas["Tickets.Leyenda2"]);
     oReporte.SetParameterValue("Leyenda3", oLeyendas["Tickets.Leyenda3"]);
     oReporte.SetParameterValue("Leyenda4", oLeyendas["Tickets.Leyenda4"]);
     oReporte.SetParameterValue("Leyenda5", oLeyendas["Tickets.Leyenda5"]);
     oReporte.SetParameterValue("Leyenda6", oLeyendas["Tickets.Leyenda6"]);
     oReporte.SetParameterValue("Leyenda7", oLeyendas["Tickets.Leyenda7"]);
 }
开发者ID:moisesiq,项目名称:aupaga,代码行数:11,代码来源:Ventas.cs

示例9: btnImprimir_Click

 private void btnImprimir_Click(object sender, EventArgs e)
 {
     var oVendedor = (this.cmbVendedor.SelectedItem as Usuario);
     var oRep = new Report();
     oRep.Load(GlobalClass.ConfiguracionGlobal.pathReportes + "Comisiones.frx");
     oRep.RegisterData(this.dgvVentas.ADataTable(), "Ventas");
     oRep.RegisterData(this.dgvTotales.ADataTable(), "Totales");
     oRep.SetParameterValue("Vendedor", (oVendedor == null ? "" : oVendedor.NombrePersona));
     oRep.SetParameterValue("FechaDe", this.dtpDe.Value);
     oRep.SetParameterValue("FechaA", this.dtpA.Value);
     oRep.SetParameterValue("Fijo", Util.Decimal(this.lblFijo.Text.SoloNumeric()));
     oRep.SetParameterValue("Variable", Util.Decimal(this.lblVariable.Text.SoloNumeric()));
     oRep.SetParameterValue("Devolucion", Util.Decimal(this.lblDevoluciones.Text.SoloNumeric()));
     oRep.SetParameterValue("Total", Util.Decimal(this.lblTotal.Text.SoloNumeric()));
     oRep.Design();
 }
开发者ID:moisesiq,项目名称:aupaga,代码行数:16,代码来源:Comisiones.cs

示例10: btnIspis_Click

        private void btnIspis_Click(object sender, EventArgs e)
        {
            if (dgPodaci.RowCount > 0)
            {
                try
                {
                    DataTable artikli = new DataTable();
                    artikli = status_poste.statusPoste.CopyToDataTable();

                    //create dataset
                    DataSet FDataSet = new DataSet();
                    artikli.TableName = "Artikli";
                    FDataSet.Tables.Add(artikli);

                    // create report instance
                    Report report = new Report();

                    // load the existing report
                    System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
                    string baseDir = System.IO.Path.GetDirectoryName(a.Location);

                    report.Load(baseDir + "/report/Sve.frx");

                    if (dtpDO.Text != "" && dtpOD.Text != "")
                    {
                        string OD = Convert.ToDateTime(dtpOD.EditValue).ToString("dd.MM.yyyy");
                        string DO = Convert.ToDateTime(dtpDO.EditValue).ToString("dd.MM.yyyy");

                        report.SetParameterValue("datumod", OD);
                        report.SetParameterValue("datumdo", DO);
                    }

                    if (glPartner.Text != "")
                    {
                        report.SetParameterValue("partner", glPartner.Text);
                    }

                    if (glVrstaTroska.Text != "")
                    {
                        report.SetParameterValue("vrstaTroska", glVrstaTroska.Text);
                    }
                    report.SetParameterValue("evidBroj", txtEvidBroj.Text.Trim());

                    // register the dataset
                    report.RegisterData(FDataSet);

                    //dizajn
                    //report.Design();

                    // run the report
                    report.Show();

                    // free resources used by report
                    report.Dispose();
                }

                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
开发者ID:sokac237,项目名称:Urudzbeni,代码行数:62,代码来源:Status+poste.cs

示例11: reportOznaceni

        private void reportOznaceni()
        {
            if (dgPodaci.RowCount > 0)
            {
                try
                {
                    table = new DataTable();

                    napunipotvrdjeneZaPredajuUDataset();

                    string OD = Convert.ToDateTime(dtpOD.EditValue).ToString("dd.MM.yyyy");
                    string DO = Convert.ToDateTime(dtpDO.EditValue).ToString("dd.MM.yyyy");
                    //create dataset
                    DataSet FDataSet = new DataSet();
                    table.TableName = "Artikli";
                    FDataSet.Tables.Add(table);

                    // create report instance
                    Report report = new Report();

                    // load the existing report
                    System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
                    string baseDir = System.IO.Path.GetDirectoryName(a.Location);

                    report.Load(baseDir + "/report/Predaja.frx");
                    report.SetParameterValue("datumod", OD);
                    report.SetParameterValue("datumdo", DO);
                    report.SetParameterValue("datumPredaje", DateTime.Now.Date.ToString("dd.MM.yyyy"));

                    // register the dataset
                    report.RegisterData(FDataSet);

                    //dizajn
                    //report.Design();

                    // run the report
                    report.Show();

                    // free resources used by report
                    report.Dispose();
                }

                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
开发者ID:sokac237,项目名称:Urudzbeni,代码行数:48,代码来源:Predaja+poste+na+potpis.cs

示例12: GenerarTicketDevolucion

        public static void GenerarTicketDevolucion(int iDevolucionID)
        {
            var oDevolucionV = Datos.GetEntity<VentasDevolucionesView>(q => q.VentaDevolucionID == iDevolucionID);
            var oDevolucionDetalleV = Datos.GetListOf<VentasDevolucionesDetalleView>(q => q.VentaDevolucionID == iDevolucionID);
            var oVentaV = Datos.GetEntity<VentasView>(q => q.VentaID == oDevolucionV.VentaID);
            var oRep = new Report();
            oRep.Load(GlobalClass.ConfiguracionGlobal.pathReportes + "VentaDevolucionTicket.frx");
            VentasLoc.TicketAgregarLeyendas(ref oRep);
            oRep.RegisterData(new List<VentasDevolucionesView>() { oDevolucionV }, "Devolucion");
            oRep.RegisterData(oDevolucionDetalleV, "DevolucionDetalle");
            oRep.RegisterData(new List<VentasView>() { oVentaV }, "Venta");
            oRep.SetParameterValue("NC", (oDevolucionV.FormaDePagoID == Cat.FormasDePago.Vale));
            oRep.SetParameterValue("Accion", oDevolucionV.FormaDePago);
            oRep.SetParameterValue("FolioNC", oDevolucionV.NotaDeCreditoID.Valor());
            oRep.SetParameterValue("TotalConLetra", Util.ImporteALetra(oDevolucionV.Total.Valor()).ToUpper());

            UtilLocal.EnviarReporteASalida("Reportes.VentaDevolucionTicket.Salida", oRep);
        }
开发者ID:moisesiq,项目名称:aupaga,代码行数:18,代码来源:Ventas.cs

示例13: GenerarTicketDeCotizacion

        public static void GenerarTicketDeCotizacion(VentasView oVenta, List<VentasDetalleView> oVentaDetalle)
        {
            var oRep = new Report();
            oRep.Load(GlobalClass.ConfiguracionGlobal.pathReportes + "CotizacionTicket.frx");
            VentasLoc.TicketAgregarLeyendas(ref oRep);

            oRep.RegisterData(new List<VentasView>() { oVenta }, "Venta");
            oRep.RegisterData(oVentaDetalle, "VentaDetalle");
            oRep.SetParameterValue("TotalConLetra", Util.ImporteALetra(oVenta.Total).ToUpper());
            oRep.SetParameterValue("Precio1", false);

            UtilLocal.EnviarReporteASalida("Reportes.VentaCotizacion.Salida", oRep);
        }
开发者ID:moisesiq,项目名称:aupaga,代码行数:13,代码来源:Ventas.cs

示例14: ImprimirImanes

        private void ImprimirImanes()
        {
            var oDatos = new List<pauPartesBusqueda_Res>();
            foreach (DataGridViewRow oFila in this.dgvIman.Rows)
            {
                if (Util.Logico(oFila.Cells["ima_Sel"].Value))
                    oDatos.Add(oFila.Tag as pauPartesBusqueda_Res);
            }

            var oRep = new Report();
            oRep.Load(UtilLocal.RutaReportes("PartesImanes.frx"));
            oRep.RegisterData(oDatos, "Partes");
            oRep.SetParameterValue("Sucursal", this.cmbSucursal.Text);
            UtilLocal.EnviarReporteASalida("Reportes.Partes.Imanes.Salida", oRep);

            // Se guarda la fecha de impresión del imán, en cada parte
            Cargando.Mostrar();
            int iSucursalID = Util.Entero(this.dgvIman.Tag);
            DateTime dAhora = DateTime.Now;
            foreach (var oReg in oDatos)
            {
                var oParteMaxMin = Datos.GetEntity<ParteMaxMin>(c => c.SucursalID == iSucursalID && c.ParteID == oReg.ParteID);
                oParteMaxMin.FechaIman = dAhora;
                Datos.Guardar<ParteMaxMin>(oParteMaxMin);
            }
            Cargando.Cerrar();
        }
开发者ID:moisesiq,项目名称:aupaga,代码行数:27,代码来源:MaxMin.cs

示例15: btnIspis_Click

        private void btnIspis_Click(object sender, EventArgs e)
        {
            if (dgStavkeNarudzbe.RowCount > 0)
            {
                try
                {
                    DataTable artikli = new DataTable();
                    artikli = narudzbaStavke.narudzbaStavke.CopyToDataTable();
                    string skladisteBroj = txtSkladiste.Text;
                    string brojNarudzbe = txtBrojNarudzbe.Text;
                    string trgovina = txtNazivTrgovine.Text;
                    string trgovinasifra = txtSifraTrgovine.Text;

                    //veza.ExecuteQuery("select poslovnica.po_ID, poslovnica.po_sifra, poslovnica.po_naziv, mjesto.mj_naziv, poslovnica.po_asortiman, poslovnica.po_cjenik from poslovnica, mjesto where mjesto.mj_ID = poslovnica.mjesto_mj_ID and poslovnica.po_aktivna = 1 and poslovnica.po_datumZatvaranja is null and (poslovnica.vp_sifra = 300 or  poslovnica.vp_sifra =200) and (poslovnica.po_cjenik <> '' or poslovnica.po_asortiman <> '') order by poslovnica.po_sifra asc", ref artikli);

                    if (dgStavkeNarudzbe.RowCount > 0)
                    {
                        //create dataset
                        DataSet FDataSet = new DataSet();
                        artikli.TableName = "Artikli";
                        FDataSet.Tables.Add(artikli);

                        // create report instance
                        Report report = new Report();

                        // load the existing report
                        System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();
                        string baseDir = System.IO.Path.GetDirectoryName(a.Location);

                        report.Load(baseDir + "/report/StavkeNepotvrdjeneNarudzbe.frx");
                        report.SetParameterValue("skladiste", skladisteBroj);
                        report.SetParameterValue("narudzba", brojNarudzbe);
                        report.SetParameterValue("trgovina", trgovina);
                        report.SetParameterValue("sifratrgovina", trgovinasifra);

                        // register the dataset
                        report.RegisterData(FDataSet);

                        //dizajn
                        //report.Design();

                        // run the report
                        report.Show();

                        // free resources used by report
                        report.Dispose();
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
开发者ID:sokac237,项目名称:Komercijala,代码行数:54,代码来源:NarudzbaStavke.cs


注:本文中的Report.SetParameterValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。