private void butSubmit_Click(object sender,EventArgs e) { if(gridMain.SelectedIndices.Length==0) { MessageBox.Show("Please select lab panels first."); return; } List<LabPanel> panels=new List<LabPanel>(); for(int i=0;i<gridMain.SelectedIndices.Length;i++) { panels.Add(listLP[gridMain.SelectedIndices[i]]); } OpenDentBusiness.HL7.EhrORU oru=new OpenDentBusiness.HL7.EhrORU(); Cursor=Cursors.WaitCursor; try { oru.Initialize(panels); } catch(ApplicationException ex) { Cursor=Cursors.Default; MessageBox.Show(ex.Message); return; } string outputStr=oru.GenerateMessage(); try { EmailMessages.SendTestUnsecure("Public Health","oru.txt",outputStr); } catch(Exception ex) { Cursor=Cursors.Default; MessageBox.Show(ex.Message); return; } Cursor=Cursors.Default; MessageBox.Show("Sent"); }
private void butShow_Click(object sender, EventArgs e) { if (gridMain.SelectedIndices.Length == 0) { MessageBox.Show("Please select lab panels first."); return; } List <LabPanel> panels = new List <LabPanel>(); for (int i = 0; i < gridMain.SelectedIndices.Length; i++) { panels.Add(listLP[gridMain.SelectedIndices[i]]); } OpenDentBusiness.HL7.EhrORU oru = new OpenDentBusiness.HL7.EhrORU(); Cursor = Cursors.WaitCursor; try { oru.Initialize(panels); } catch (ApplicationException ex) { Cursor = Cursors.Default; MessageBox.Show(ex.Message); return; } string outputStr = oru.GenerateMessage(); Cursor = Cursors.Default; MsgBoxCopyPaste msgbox = new MsgBoxCopyPaste(outputStr); msgbox.ShowDialog(); }
private void butSubmit_Click(object sender, EventArgs e) { if (gridMain.SelectedIndices.Length == 0) { MessageBox.Show("Please select lab panels first."); return; } List <LabPanel> panels = new List <LabPanel>(); for (int i = 0; i < gridMain.SelectedIndices.Length; i++) { panels.Add(listLP[gridMain.SelectedIndices[i]]); } OpenDentBusiness.HL7.EhrORU oru = new OpenDentBusiness.HL7.EhrORU(); Cursor = Cursors.WaitCursor; try { oru.Initialize(panels); } catch (ApplicationException ex) { Cursor = Cursors.Default; MessageBox.Show(ex.Message); return; } string outputStr = oru.GenerateMessage(); try { EmailMessages.SendTestUnsecure("Public Health", "oru.txt", outputStr); } catch (Exception ex) { Cursor = Cursors.Default; MessageBox.Show(ex.Message); return; } Cursor = Cursors.Default; MessageBox.Show("Sent"); }
private void butShow_Click(object sender,EventArgs e) { if(gridMain.SelectedIndices.Length==0) { MessageBox.Show("Please select lab panels first."); return; } List<LabPanel> panels=new List<LabPanel>(); for(int i=0;i<gridMain.SelectedIndices.Length;i++) { panels.Add(listLP[gridMain.SelectedIndices[i]]); } OpenDentBusiness.HL7.EhrORU oru=new OpenDentBusiness.HL7.EhrORU(); Cursor=Cursors.WaitCursor; try { oru.Initialize(panels); } catch(ApplicationException ex) { Cursor=Cursors.Default; MessageBox.Show(ex.Message); return; } string outputStr=oru.GenerateMessage(); Cursor=Cursors.Default; MsgBoxCopyPaste msgbox=new MsgBoxCopyPaste(outputStr); msgbox.ShowDialog(); }