private void btnBazar_Click(object sender, EventArgs e) { ReportForm.label1.Text = dtpFrom.Text; ReportForm.label2.Text = dtpTo.Text; ReportForm.label4.Text = "bazar"; ReportForm.ShowDialog(); }
private void btn_report_Click(object sender, EventArgs e) { ReportForm reportform = new ReportForm(); reportform.sprintboard = sprintBoard; reportform.ShowDialog(); }
private void ShowReport() { try { if (OnShowReport != null) { using (WaitCursor wc = new WaitCursor()) { SelectReportEventArgs ev = new SelectReportEventArgs(SelectedReport); if (ev.Report != null) { OnShowReport(this, ev); if (ev.ReportBuilder != null) { ReportForm form = new ReportForm(ev.Report, ev.ReportBuilder); if (form.ShowDialog() == DialogResult.OK) { } } } } } } catch (Exception ex) { Log.Exception(ex); } }
private void sumbitReportMenuItem_Click(object sender, EventArgs e) { ReportForm form = new ReportForm(); form.Report = computer.GetReport(); form.ShowDialog(); }
private void analizujButton_Click(object sender, EventArgs e) { var login = Enova.Business.Old.DB.Web.User.LoginedUser.LoginedEnova; if (login == null) { MessageBox.Show("Nie jesteś zalogowany do bazy Enova. Skontaktuj się z Administratorem"); return; } if (DataGrid.CurrentRow != null && DataGrid.CurrentRow.DataBoundItem != null) { this.Cursor = Cursors.WaitCursor; this.Enabled = false; using (Session session = login.CreateSession(true, false, "Zwrot.Analiza")) { Zwrot zwrot = (Zwrot)DataGrid.CurrentRow.DataBoundItem; ZwrotAnaliza analiza = zwrot.AnalizujZwrot(session); ReportForm form = new ReportForm(); form.ReportPath = "ZwrotAnalizaSimpleReport.rdlc"; form.Title = "Analiza zwrotu"; form.LocalReport.SetParameters(new ReportParameter[] { new ReportParameter("numer", zwrot.ID.ToString()), new ReportParameter("dataDodania", zwrot.DataDodania.ToShortDateString()), new ReportParameter("dataModyfikacji", zwrot.DataModyfikacji.ToShortDateString()), new ReportParameter("kontrahent", zwrot.Kontrahent.ToString()), new ReportParameter("opis", zwrot.OpisLine) }); int idx = 0; foreach (ZwrotAnalizaDokHandlowyOld dh in analiza.Dokumenty) { if (idx <= 9) { form.LocalReport.SetParameters(new ReportParameter("dokument" + idx.ToString(), dh.NumerPelny)); } idx++; } if (idx < 9) { for (int i = idx; i <= 9; i++) { form.LocalReport.SetParameters(new ReportParameter("dokument" + i.ToString(), string.Empty)); } } form.AddDataSource("Pozycje", analiza.Pozycje); form.ShowDialog(); } this.Enabled = true; this.Cursor = Cursors.Default; } }
private async void btnGenerate_Click(object sender, RoutedEventArgs e) { //List<PurchaseOrders> lstA = await getPurchaseOrderReports(); ReportForm rf = new ReportForm(await getPurchaseOrderReports()); rf.ShowDialog(); }
private void RozrachunkiPrzeterminowaneForm_PrintItemClick(object sender, EventArgs e) { DialogResult result = MessageBox.Show("Czy wydrukować tylko zaznaczone pozycje ?", "EnovaTools", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question); List <Enova.Business.Old.Types.RozrachunekRow> reportSource = null; if (result == DialogResult.Yes) { reportSource = new List <Enova.Business.Old.Types.RozrachunekRow>(); foreach (DataGridViewRow row in DataGrid.SelectedRows) { reportSource.Add((Enova.Business.Old.Types.RozrachunekRow)row.DataBoundItem); } } else if (result == DialogResult.No) { reportSource = new List <Enova.Business.Old.Types.RozrachunekRow>(); foreach (DataGridViewRow row in DataGrid.Rows) { reportSource.Add((Enova.Business.Old.Types.RozrachunekRow)row.DataBoundItem); } } if (reportSource != null) { ReportForm form = new ReportForm(); form.ReportViewer.LocalReport.ReportPath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Reports\\RozrachunkiPrzeterminowaneReport.rdlc"); form.ReportViewer.LocalReport.DataSources.Clear(); form.ReportViewer.LocalReport.DataSources.Add(new ReportDataSource("RozrachunekRow", reportSource)); form.ShowDialog(); } }
private void btnGenerate_Click(object sender, RoutedEventArgs e) { if (cmbCashBank.SelectedItem != null && cmbReportDate.SelectedItem != null) { ReportDate repDate = cmbReportDate.SelectedItem as ReportDate; BankModel bnk = cmbCashBank.SelectedItem as BankModel; repDate.ReportType = cmbChartType.SelectedValue.ToString(); if (repDate.DateReport.Equals("BY MONTH")) { DateTime searchDate = DateTime.Parse(dateFrom.Text); repDate.MonthFrom = searchDate.Year + "-" + searchDate.Month + "-" + searchDate.Day; searchDate = DateTime.Parse(dateTo.Text); repDate.MonthTo = searchDate.Year + "-" + searchDate.Month + "-" + searchDate.Day; ReportForm report = new ReportForm(bnk, repDate, "FHBOTTLES"); report.ShowDialog(); } else { repDate.YearFrom = txtYearFrom.Text + "-01-01"; repDate.YearTo = txtYearTo.Text + "-12-31"; ReportForm report = new ReportForm(bnk, repDate, "FHBOTTLES"); report.ShowDialog(); } } }
private void btnPrint_Click(object sender, EventArgs e) { if (_order.Items.Any()) { ReportForm reportForm = new ReportForm(_order); reportForm.ShowDialog(); } }
private void btnGenerate_Click(object sender, RoutedEventArgs e) { getDR(); ReportForm report = new ReportForm(filteredNetworkingSales, lstDrNoPayments, lstDrWithPayments); report.ShowDialog(); }
private void ShowReport(ILogReader reader) { if (reader != this) { return; } UpdateReport(); report.ShowDialog(); }
private void BtnPrint_Click(object sender, EventArgs e) { ReportForm reportForm = new ReportForm(); reportForm.StaffScore.SetDataSource(listStaff); reportForm.StaffScore.SetParameterValue(0, "បញ្ជីឈ្មោះបុគ្កលិកឆ្នើមទាំង ១០ រូប"); reportForm.StaffScore.SetParameterValue(1, "នៃការិយាល័យ ព័ត៌មានវិទ្យា នៃស្ថាប័នជីជី"); reportForm.ShowDialog(); }
/// <summary> /// Asks the user if the exception should be reported. If so, collects some data and send it to the server. /// </summary> /// <remarks>It does nothing at all if ServerURL is empty or ExceptionFilter( ex ) returns false</remarks> /// <param name="ex">exception to report</param> public static void ReportException(Exception ex) { if (!string.IsNullOrWhiteSpace(ServerURL) && ((ExceptionFilter == null) || ExceptionFilter(ex))) { try { ReportForm form = new ReportForm(GetReportInformation?.Invoke()); List <string> additionalInfo = new List <string>(); if (UseShortVersion) { additionalInfo.Add("Full version: " + GetAppVersion(false)); } additionalInfo.Add(GetOpenForms()); additionalInfo.Add(GetStackTrace(ex)); additionalInfo.RemoveAll(string.IsNullOrWhiteSpace); Trace.WriteLine(string.Join("\n\n", additionalInfo)); if (form.ShowDialog() == DialogResult.OK) { ReportInformation info = form.Info; WebClient webClient = new WebClient(); NameValueCollection values = new NameValueCollection { { "email", "\"" + info.UserName + "\" <" + info.EMail + ">" }, { "comment", info.Comments }, { "version", GetAppVersion(UseShortVersion) }, { "summary", ex.ToString() }, { "crashes", string.Join("\n\n---\n\n", additionalInfo) }, { "system", GetSystemData() }, { "shell", GetShellData(ex) }, { "preferences", GetAppConfig() }, }; SaveReportInformation?.Invoke(info); if (CollectEventLog) { values["eventlog"] = GetEventLog(); } if (Proxy != null) { webClient.Proxy = Proxy; } webClient.Headers[HttpRequestHeader.UserAgent] = Application.ProductName + "/" + Application.ProductVersion; webClient.UploadValuesAsync(new Uri(ServerURL), values); } } catch { } } }
protected override void Execute(CodeActivityContext context) { //prvo pitam da li je potrebna izmena komisije pa ako nije, tek onda ova druga dva (setujem na "" i 0) ActContext = context; form = new ReportForm(); form.button1.Click += new EventHandler(ClickBtnYes); form.button2.Click += new EventHandler(ClickBtnNo); form.button3.Click += new EventHandler(Submit); SetVisibility(false); form.ShowDialog(); }
private void Printbutton_Click(object sender, EventArgs e) { var f = new ReportForm(); f.ReportColumns = this.dataGridView1.Columns.Cast <DataGridViewColumn>() .Select(x => new ReportColumn(x.DataPropertyName) { Title = x.HeaderText, Width = x.Width }).ToList(); f.ReportData = this.dataGridView1.DataSource; f.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { ReportForm reportForm = new ReportForm(); ReportDto reportDto = GetReportDto(); reportForm.ReportDto = reportDto; reportForm.ShowDialog(); }
private async void btnGenerate_Click(object sender, RoutedEventArgs e) { if ((!string.IsNullOrEmpty(dateFrom.Text) && !string.IsNullOrEmpty(dateTo.Text)) && cmbCashBank.SelectedItem != null && cmbProducts.SelectedItem != null) { BankModel bnk = cmbCashBank.SelectedItem as BankModel; ReportForm rf = new ReportForm(await lstFHBoxesSoldDS()); rf.ShowDialog(); } else { await this.ShowMessageAsync("ERROR", " Please select values"); } }
private void ZwrotyForm_PrintItemClick(object sender, EventArgs e) { if (DataGrid.CurrentRow != null && DataGrid.CurrentRow.DataBoundItem != null) { Zwrot zwrot = (Zwrot)DataGrid.CurrentRow.DataBoundItem; ReportForm form = new ReportForm(); form.ReportPath = "Reports\\ZwrotReport.rdlc"; form.LocalReport.SetParameters(new ReportParameter("kontrahent", zwrot.Kontrahent.Kod + " - " + zwrot.Kontrahent.Nazwa)); form.AddDataSource("Zwrot", new object[] { zwrot }); form.AddDataSource("PozycjeZwrotu", zwrot.Pozycje.OrderBy(p => p.Ident).ToList()); form.ShowDialog(); } }
private void StartOnlineReport() { try { LoadingForm.Start("Obtaining computer configuration...", Bounds); ReportForm form = new ReportForm(History); LoadingForm.Stop(); form.ShowDialog(); } catch (Exception exc) { LoadingForm.Stop(); Logger.Error("Online report exception occured ...", exc); } }
private void CreateReportFrom() { Report report = new Report(); report.ReportPages.Capacity = imageListView.Items.Count; for (int i = 0; i < imageListView.Items.Count; i++) { ReportPage reportPage = new ReportPage(); ReportPictureItem reportItem = new ReportPictureItem(); string fileName = imageListView.Items[i].FileName; reportItem.Picture = new Bitmap(fileName); reportItem.OldImageSize = reportItem.Picture.Size; reportItem.Bounds = new Rectangle(new Point(0, 0), reportItem.Picture.Size); reportPage.ReportItems.Add(reportItem); report.ReportPages.Add(reportPage); } reportFrom = new ReportForm(report); reportFrom.ShowDialog(); }
private void DoRunReport(string path) { ReportDefinition report; try { report = ReportDefinition.Load(_api, path); } catch { TaskDialogEx.Show(this, "Unable to load report", Text, TaskDialogCommonButtons.OK, TaskDialogIcon.Error); return; } using (var form = new ReportForm(_api, Path.GetDirectoryName(path), Path.GetFileName(path), report)) { form.ShowDialog(this); } }
private void CreateReportFrom() { if (imageListView.SelectedItems != null && imageListView.SelectedItems.Count == 0) { DialogResult result = MsgBox.Show(Properties.Resources.StrCannotPrintEmpty, Properties.Resources.StrWarning, MsgBox.Buttons.OK, MsgBox.Icon.Warning); } else { if (CanPrint()) { if (imageListView.SelectedItems != null && imageListView.SelectedItems.Count > 0) { Report report = new Report(); report.ReportPages.Capacity = imageListView.SelectedItems.Count; for (int i = 0; i < imageListView.SelectedItems.Count; i++) { var fileExtension = Path.GetExtension(imageListView.SelectedItems[i].FileName); if (fileExtension == ".png") { ReportPage reportPage = new ReportPage(); ReportPictureItem reportItem = new ReportPictureItem(); string fileName = imageListView.SelectedItems[i].FileName; reportItem.Picture = new Bitmap(fileName); reportItem.OldImageSize = reportItem.Picture.Size; reportItem.Bounds = new Rectangle(new Point(0, 0), reportItem.Picture.Size); reportPage.ReportItems.Add(reportItem); report.ReportPages.Add(reportPage); } } reportFrom = new ReportForm(report); reportFrom.ShowDialog(); } } else { DialogResult result = MsgBox.Show(Properties.Resources.StrCannotPrint, Properties.Resources.StrWarning, MsgBox.Buttons.OK, MsgBox.Icon.Warning); } } }
private void DoAddReport() { EntitySchema entity; using (var form = new SelectEntityForm(_api)) { if (form.ShowDialog(this) != DialogResult.OK) { return; } entity = form.SelectedEntity; } var report = new ReportDefinition { Entity = entity }; using (var form = new ReportForm(_api, _fileBrowser.Directory, null, report)) { form.ShowDialog(this); } }
private void reportToolStripMenuItem_Click(object sender, EventArgs e) { ReportForm reportForm = new ReportForm(); reportForm.ShowDialog(); }
private void buttonReports_Click(object sender, EventArgs e) { ReportForm rf = new ReportForm(); rf.ShowDialog(); }
private void showReportBtn_Click(object sender, EventArgs e) { ReportForm form = new ReportForm(database, Table, collectionName); form.ShowDialog(); }
private void btnOpen_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Title = "Open OBD-II Diagnostic Report"; openFileDialog.Filter = "ProScan Report Files (*.obd)|*.obd"; openFileDialog.FilterIndex = 0; openFileDialog.RestoreDirectory = true; int num1 = (int)openFileDialog.ShowDialog(); if (openFileDialog.FileName.Length <= 0) return; FileStream fileStream = File.OpenRead(openFileDialog.FileName); BinaryReader binaryReader = new BinaryReader((Stream)fileStream); m_bReportForm = new ReportForm(); m_bReportForm.ReportPage1.ShopName = binaryReader.ReadString(); m_bReportForm.ReportPage1.ShopAddress1 = binaryReader.ReadString(); m_bReportForm.ReportPage1.ShopAddress2 = binaryReader.ReadString(); m_bReportForm.ReportPage1.ShopTelephone = binaryReader.ReadString(); m_bReportForm.ReportPage1.ClientName = binaryReader.ReadString(); m_bReportForm.ReportPage1.ClientAddress1 = binaryReader.ReadString(); m_bReportForm.ReportPage1.ClientAddress2 = binaryReader.ReadString(); m_bReportForm.ReportPage1.ClientTelephone = binaryReader.ReadString(); m_bReportForm.ReportPage1.Vehicle = binaryReader.ReadString(); m_bReportForm.ReportPage1.GenerationDate = binaryReader.ReadString(); m_bReportForm.ReportPage1.MilStatus = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.TotalCodes = binaryReader.ReadInt32(); m_bReportForm.ReportPage1.FreezeFrameDTC = binaryReader.ReadString(); StringCollection stringCollection1 = new StringCollection(); uint num2 = 25U; do { string str = binaryReader.ReadString(); if (str.Length > 0) stringCollection1.Add(str); --num2; } while (num2 > 0U); m_bReportForm.ReportPage1.DTCList = stringCollection1; StringCollection stringCollection2 = new StringCollection(); uint num3 = 25U; do { string str = binaryReader.ReadString(); if (str.Length > 0) stringCollection2.Add(str); --num3; } while (num3 > 0U); m_bReportForm.ReportPage1.DTCDefinitionList = stringCollection2; StringCollection stringCollection3 = new StringCollection(); uint num4 = 25U; do { string str = binaryReader.ReadString(); if (str.Length > 0) stringCollection3.Add(str); --num4; } while (num4 > 0U); m_bReportForm.ReportPage1.PendingList = stringCollection3; StringCollection stringCollection4 = new StringCollection(); uint num5 = 25U; do { string str = binaryReader.ReadString(); if (str.Length > 0) stringCollection4.Add(str); --num5; } while (num5 > 0U); m_bReportForm.ReportPage1.PendingDefinitionList = stringCollection4; m_bReportForm.ReportPage1.FuelSystem1Status = binaryReader.ReadString(); m_bReportForm.ReportPage1.FuelSystem2Status = binaryReader.ReadString(); m_bReportForm.ReportPage1.CalculatedLoad = binaryReader.ReadDouble(); m_bReportForm.ReportPage1.EngineCoolantTemp = binaryReader.ReadDouble(); m_bReportForm.ReportPage1.STFT1 = binaryReader.ReadDouble(); m_bReportForm.ReportPage1.STFT2 = binaryReader.ReadDouble(); m_bReportForm.ReportPage1.STFT3 = binaryReader.ReadDouble(); m_bReportForm.ReportPage1.STFT4 = binaryReader.ReadDouble(); m_bReportForm.ReportPage1.LTFT1 = binaryReader.ReadDouble(); m_bReportForm.ReportPage1.LTFT2 = binaryReader.ReadDouble(); m_bReportForm.ReportPage1.LTFT3 = binaryReader.ReadDouble(); m_bReportForm.ReportPage1.LTFT4 = binaryReader.ReadDouble(); m_bReportForm.ReportPage1.IntakePressure = binaryReader.ReadDouble(); m_bReportForm.ReportPage1.EngineRPM = binaryReader.ReadDouble(); m_bReportForm.ReportPage1.VehicleSpeed = binaryReader.ReadDouble(); m_bReportForm.ReportPage1.SparkAdvance = binaryReader.ReadDouble(); m_bReportForm.ReportPage1.ShowFuelSystemStatus = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.ShowCalculatedLoad = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.ShowEngineCoolantTemp = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.ShowSTFT13 = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.ShowSTFT24 = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.ShowLTFT13 = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.ShowLTFT24 = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.ShowIntakePressure = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.ShowEngineRPM = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.ShowVehicleSpeed = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.ShowSparkAdvance = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.MisfireMonitorSupported = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.MisfireMonitorCompleted = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.FuelSystemMonitorSupported = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.FuelSystemMonitorCompleted = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.ComprehensiveMonitorSupported = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.ComprehensiveMonitorCompleted = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.CatalystMonitorSupported = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.CatalystMonitorCompleted = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.HeatedCatalystMonitorSupported = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.HeatedCatalystMonitorCompleted = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.EvapSystemMonitorSupported = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.EvapSystemMonitorCompleted = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.SecondaryAirMonitorSupported = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.SecondaryAirMonitorCompleted = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.RefrigerantMonitorSupported = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.RefrigerantMonitorCompleted = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.OxygenSensorMonitorSupported = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.OxygenSensorMonitorCompleted = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.OxygenSensorHeaterMonitorSupported = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.OxygenSensorHeaterMonitorCompleted = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.EGRSystemMonitorSupported = binaryReader.ReadBoolean(); m_bReportForm.ReportPage1.EGRSystemMonitorCompleted = binaryReader.ReadBoolean(); binaryReader.Close(); fileStream.Close(); int num6 = (int)m_bReportForm.ShowDialog(); }
private async void btnGenerate_Click(object sender, RoutedEventArgs e) { ReportForm rForm = new ReportForm(await GenerateReport()); rForm.ShowDialog(); }
private void ReportsLabel_Click(object sender, EventArgs e) { ReportForm reports = new ReportForm(); reports.ShowDialog(); }
private void ReportButton_Click(object sender, EventArgs e) { using ReportForm report = new ReportForm(); report.ShowDialog(); }