Beispiel #1
0
        private void MAWBprintAntetliToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int    OPMid = (int)opmGridView.GetFocusedRowCellValue(colOPMID);
            MawbXR rpr   = new MawbXR(OPMid, true);

            using (ReportPrintTool printTool = new ReportPrintTool(rpr))
            {
                printTool.ShowPreviewDialog();
                rpti.put("MAWB", "OPM", OPMid, Program.USR, "F", null);
                Program.MF.reportDone(rpti);
            }
        }
Beispiel #2
0
        private void MAWBeMailToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int OPMid = (int)opmGridView.GetFocusedRowCellValue(colOPMID);

            MawbXR rpr = new MawbXR(OPMid, true);

            if (string.IsNullOrWhiteSpace(rpr.eMails))
            {
                XtraMessageBox.Show("eMail adresi bulunamadı", "eMail HAWB", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return;
            }
            rpti.put("MAWB", "OPM", OPMid, Program.USR, "F", "eMail");
            MailClass.MailReportTask(rpti, "eMail MAWB", rpr, rpr.eMails, rpr.eMailSubject, rpr.eMailBody);
        }
Beispiel #3
0
        private void attMAWB(int mID)   // MasterAirwayBill
        {
            string       fn  = "MAWB" + mID + ".pdf";
            MawbXR       rpr = new MawbXR(mID, true);
            MemoryStream ms  = new MemoryStream();

            rpr.ExportToPdf(ms);
            ms.Seek(0, System.IO.SeekOrigin.Begin);

            RPT rpt = new RPT();

            rpt.rptKod     = "MAWB";
            rpt.refTO      = "OPM";
            rpt.refID      = mID;
            rpt.info       = string.Format("M:{0}", mID);
            rpt.attachment = new Attachment(ms, fn);
            attCheckedListBoxControl.Items.Add(rpt, string.Format("{0}", fn), CheckState.Checked, true);

            Application.DoEvents();
        }