public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { BoletinCBMS rpt = new BoletinCBMS(); rpt.Site = this.Site; return(rpt); }
public void Initialize(IZeusWin Isg) { ZeusWin = Isg; #if USBKEY // verificar llave USBKey usb = new USBKey(); if (!usb.IniciarConexion("00")) { return; } #endif // menu if (ZeusWin.TipoOperadora == TipoOperadora.Administrador) { ts = new ToolStripMenuItem("Configurar Boletín...", null, new EventHandler(MenuClick)) { Name = "boletinConfig" }; ZeusWin.AgregarConfig(ts); } // boton tb = new ToolStripButton("Boletín", null, ButtonClick) { Name = "BoletinBtn", TextImageRelation = TextImageRelation.ImageAboveText, ImageAlign = ContentAlignment.TopCenter, Image = Resources.boletin_informativo_32, AutoSize = false, Width = 90, Height = 50 }; //tb.ImageTransparentColor = System.Drawing.Color.Magenta; ZeusWin.AgregarBoton(tb); // precargar assemblies //DateTime date = new DateTime(); DateTime ts1 = new DateTime(); DateTime ts2 = new DateTime(); #if CBMS BoletinCBMS bc = new BoletinCBMS(); bc.Load(); #elif CBQN //date = DateTime.Now; //BoletinCBQN bc = new BoletinCBQN(); //ts1 = DateTime.Now; //bc.Load(); //ts2 = DateTime.Now; //MessageBox.Show("Tiempo new:"+(ts1-date).ToString()+" tiempo load:"+(ts2-ts1).ToString()); #endif }