private void TopluFaturaXF_Load(object sender, EventArgs e) { if (!string.IsNullOrEmpty(afbIDs)) { this.rprTopluFaturaTableAdapter.Fill(this.reportDataSet.RPR_TOPLUFATURA, afbIDs); } this.rptGetTableAdapter.Fill(this.reportDataSet.RPT_GET, 4); rptRow = this.reportDataSet.RPT_GET[0]; eMailSubjectTextEdit.Text = rptRow.EMAILSUBJECT; eMailBodyRichEditControl.Document.HtmlText = rptRow.EMAILBODY; ReportDataSetTableAdapters.SMTPTableAdapter smtpTableAdapter = new ReportDataSetTableAdapters.SMTPTableAdapter(); ReportDataSet.SMTPDataTable SMTPTable = (ReportDataSet.SMTPDataTable)smtpTableAdapter.GetData(); SMTP = (ReportDataSet.SMTPRow)SMTPTable.Rows[0]; }
private void fillSimpleButton_Click(object sender, EventArgs e) { try { this.rteTableAdapter.Fill(this.reportDataSet.RPR_TOPLUEXTRE, (DateTime?)dateEdit1.EditValue, (DateTime?)dateEdit2.EditValue, icDisRadioGroup.EditValue.ToString()); if (icDisRadioGroup.EditValue.ToString() == "D") { this.rptGetTableAdapter.Fill(this.reportDataSet.RPT_GET, 100); // Extre Dis } else { this.rptGetTableAdapter.Fill(this.reportDataSet.RPT_GET, 101); // Extre Ic } rptRow = this.reportDataSet.RPT_GET[0]; eMailSubjectTextEdit.Text = rptRow.EMAILSUBJECT; eMailBodyRichEditControl.Document.HtmlText = rptRow.EMAILBODY; } catch (System.Exception ex) { System.Windows.Forms.MessageBox.Show(ex.Message); } }