Beispiel #1
0
        private void sendMessageToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SendHl7MessageView SendView = new SendHl7MessageView();

            SendView.Model = Model;
            SendView.ShowDialog();
        }
Beispiel #2
0
        private void updatePatientToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                PatientUpdateView PatientUpdateView = new PatientUpdateView();

                if (DialogResult.OK == PatientUpdateView.ShowDialog())
                {
                    Model.ADTA01MessagePatientUpdate(PatientUpdateView.ID, PatientUpdateView.Sex, PatientUpdateView.FirstName, PatientUpdateView.LastName);

                    SendHl7MessageView SendView = new SendHl7MessageView();
                    SendView.Model         = Model;
                    SendView.PreferredNode = "PatientUpdate";

                    if (DialogResult.OK == SendView.ShowDialog())
                    {
                        try
                        {
                            Cursor.Current = Cursors.WaitCursor;
                            //Model.SendMessage(SendView.IP, int.Parse(SendView.Port));
                            MessageBox.Show("HL7 Message was sent successfully");
                        }
                        finally
                        {
                            Cursor.Current = Cursors.Default;
                        }
                    }
                }
            }
            catch (System.Exception ex)
            {
                OnError(ex);
            }
        }