コード例 #1
0
        private void butOK_Click(object sender, EventArgs e)
        {
            EtransCur.Note = textNote.Text;
            bool isReceived = true;

            for (int i = 0; i < gridClaimDetails.ListGridRows.Count; i++)
            {
                if (gridClaimDetails.ListGridRows[i].Cells[0].Text == "")
                {
                    isReceived = false;
                    break;
                }
            }
            if (isReceived)
            {
                EtransCur.AckCode = "Recd";
            }
            else
            {
                EtransCur.AckCode = "";
            }
            Etranss.Update(EtransCur);
            DialogResult = DialogResult.OK;
            Close();
        }
コード例 #2
0
        //private void butDelete_Click(object sender,EventArgs e) {
        //if(!MsgBox.Show(this,true,"Permanently delete the data for this transaction?  This does not alter actual claims.")){
        //	return;
        //}
        //Etranss.Delete(
        //}

        private void butOK_Click(object sender, System.EventArgs e)
        {
            //EtransCur.AckCode=textAckCode.Text;
            EtransCur.Note = textNote.Text;
            Etranss.Update(EtransCur);
            DialogResult = DialogResult.OK;
        }
コード例 #3
0
 private void butPrint_Click(object sender, EventArgs e)
 {
     pd2            = new PrintDocument();
     pd2.PrintPage += new PrintPageEventHandler(this.pd2_PrintPage);
     pd2.DefaultPageSettings.Margins = new Margins(75, 75, 50, 100);
     if (pd2.DefaultPageSettings.PrintableArea.Height == 0)
     {
         pd2.DefaultPageSettings.PaperSize = new PaperSize("default", 850, 1100);
     }
     linesPrinted = 0;
     try {
                         #if DEBUG
         FormRpPrintPreview pView = new FormRpPrintPreview();
         pView.printPreviewControl2.Document = pd2;
         pView.ShowDialog();
                         #else
         if (PrinterL.SetPrinter(pd2, PrintSituation.Default, EtransCur.PatNum, "Etrans message text from " + EtransCur.DateTimeTrans.ToShortDateString() + " printed"))
         {
             pd2.Print();
         }
                         #endif
     }
     catch {
         MessageBox.Show(Lan.g(this, "Printer not available"));
     }
     EtransCur.Note = Lan.g(this, "Printed") + textNote.Text;
     Etranss.Update(EtransCur);
     DialogResult = DialogResult.OK;
 }
コード例 #4
0
        private void butPrint_Click(object sender, EventArgs e)
        {
            linesPrinted = 0;
            bool isPrinted = PrinterL.TryPrintOrDebugRpPreview(pd2_PrintPage,
                                                               Lan.g(this, "Etrans message text from") + " " + EtransCur.DateTimeTrans.ToShortDateString() + " " + Lan.g(this, "printed"),
                                                               auditPatNum: EtransCur.PatNum,
                                                               margins: new Margins(75, 75, 50, 100)
                                                               );

            if (!isPrinted)
            {
                return;
            }
            EtransCur.Note = Lan.g(this, "Printed") + textNote.Text;
            Etranss.Update(EtransCur);
            DialogResult = DialogResult.OK;
        }
コード例 #5
0
 private void butOK_Click(object sender, EventArgs e)
 {
     EtransCur.Note = textNote.Text;
     Etranss.Update(EtransCur);
     DialogResult = DialogResult.OK;
 }