private void printToolStripMenuItem_Click(object sender, EventArgs e) { int frtID = (int)gridView1.GetFocusedRowCellValue(colFRTID); BaBsMtkbtFrmXR rpr = new BaBsMtkbtFrmXR(frtID, dateEdit1.DateTime, dateEdit2.DateTime); using (ReportPrintTool printTool = new ReportPrintTool(rpr)) { printTool.ShowPreviewDialog(); } }
private void eMailToolStripMenuItem_Click(object sender, EventArgs e) { int frtID = (int)gridView1.GetFocusedRowCellValue(colFRTID); BaBsMtkbtFrmXR rpr = new BaBsMtkbtFrmXR(frtID, dateEdit1.DateTime, dateEdit2.DateTime); if (string.IsNullOrWhiteSpace(rpr.eMails)) { XtraMessageBox.Show("eMail adresi bulunamadı", "eMail BaBs Mutabakat Formu", MessageBoxButtons.OK, MessageBoxIcon.Stop); return; } rpti.put("BABSMF", "FRT", frtID, Program.USR, "F", "eMail"); MailClass.MailReportTask(rpti, "eMail BaBs Mutabakat Formu", rpr, rpr.eMails, rpr.eMailSubject, rpr.eMailBody); }