source: Scheduling/branches/GUI1.2/DCheckIn.cs@ 1154

Last change on this file since 1154 was 804, checked in by Sam Habiel, 15 years ago

Support for Routing Slip printing.
Version change from 1.1 to 1.2 in preparation for release.
Printing.cs: Addition of PrintRoutingSlip method.
CGView.cs: Handling of printing of routing slip if chosen in DCheckIn.cs
CGView.cs: New context option to re-print routing slip
DCheckIn.cs: toolTip1 to explain that routing slip will print on the default printer.

File size: 30.1 KB
Line 
1using System;
2using System.Drawing;
3using System.Collections;
4using System.ComponentModel;
5using System.Windows.Forms;
6using System.Data;
7using System.Diagnostics;
8using IndianHealthService.BMXNet;
9
10namespace IndianHealthService.ClinicalScheduling
11{
12 /// <summary>
13 /// Summary description for DCheckIn.
14 /// </summary>
15 public class DCheckIn : System.Windows.Forms.Form
16 {
17 private IContainer components;
18
19 public DCheckIn()
20 {
21 //
22 // Required for Windows Form Designer support
23 //
24 InitializeComponent();
25
26 //
27 // TODO: Add any constructor code after InitializeComponent call
28 //
29 }
30
31
32 #region Fields
33 private System.Windows.Forms.Panel pnlPageBottom;
34 private System.Windows.Forms.Button cmdCancel;
35 private System.Windows.Forms.Button cmdOK;
36 private System.Windows.Forms.Panel pnlDescription;
37 private System.Windows.Forms.GroupBox grpDescriptionResourceGroup;
38 private System.Windows.Forms.Label lblDescriptionResourceGroup;
39 private System.Windows.Forms.Label label1;
40 private System.Windows.Forms.DateTimePicker dtpCheckIn;
41 private System.Windows.Forms.Label lblAlready;
42 private System.Windows.Forms.Label label3;
43 private System.Windows.Forms.Label lblPatientName;
44 private System.Windows.Forms.Label label2;
45 private System.Windows.Forms.ComboBox cboProvider;
46 private System.Windows.Forms.ComboBox cboStopCode;
47 private System.Windows.Forms.Label lblStopCode;
48 private System.Windows.Forms.CheckBox chkRoutingSlip;
49 private System.Windows.Forms.GroupBox grpPCCPlus;
50 private System.Windows.Forms.ComboBox cboPCCPlusClinic;
51 private System.Windows.Forms.Label label4;
52 private System.Windows.Forms.ComboBox cboPCCPlusForm;
53 private System.Windows.Forms.Label label5;
54 private System.Windows.Forms.CheckBox chkPCCOutGuide;
55
56 private string m_sPatientName;
57 private DateTime m_dCheckIn;
58 private string m_sProvider;
59 private string m_sProviderIEN;
60 private string m_sStopCode;
61 private string m_sStopCodeIEN;
62 private CGDocumentManager m_DocManager;
63 private DataSet m_dsGlobal;
64 private DataTable m_dtProvider;
65 private DataView m_dvCS;
66 private bool m_bProviderRequired;
67 private DataTable m_dtClinic;
68 private DataTable m_dtForm;
69 private DataView m_dvClinic;
70 private DataView m_dvForm;
71 private bool m_bInit;
72 public bool m_bPrintRouteSlip;
73 private DateTime m_dAuxTime;
74
75 /*
76 * PCC Variables
77 */
78 private bool m_bPCC;
79 private string m_sPCCClinicIEN;
80 private string m_sPCCFormIEN;
81 private ToolTip toolTip1;
82 private bool m_bPCCOutGuide;
83
84 #endregion Fields
85
86 #region Properties
87
88 /// <summary>
89 /// Returns string representation of internal entry number of Provider in PROVIDER File
90 /// </summary>
91 public string ProviderIEN
92 {
93 get
94 {
95 return this.m_sProviderIEN;
96 }
97 }
98
99 /// <summary>
100 /// Returns string representation of IEN of Clinic in VEN EHP CLINIC file
101 /// </summary>
102 public string PCCClinicIEN
103 {
104 get
105 {
106 return this.m_sPCCClinicIEN;
107 }
108 }
109
110 /// <summary>
111 /// Returns string representation of IEN of template entry in VEN PCC TEMPLATE
112 /// </summary>
113 public string PCCFormIEN
114 {
115 get
116 {
117 return m_sPCCFormIEN;
118 }
119 }
120
121 /// <summary>
122 /// Returns 'true' if outguide to be printed; otherwise returns 'false'
123 /// </summary>
124 public string PCCOutGuide
125 {
126 get
127 {
128 string sRet = (this.m_bPCCOutGuide == true) ? "true" : "false";
129 return sRet;
130 }
131 }
132
133 /// <summary>
134 /// Returns string representation of IEN of CLINIC STOP
135 /// </summary>
136 public string ClinicStopIEN
137 {
138 get
139 {
140 return this.m_sStopCodeIEN;
141 }
142 }
143
144 /// <summary>
145 /// Returns 'true' if routing slip to be printed; otherwise 'false'
146 /// </summary>
147 public string PrintRouteSlip
148 {
149 get
150 {
151 string sRet = (this.m_bPrintRouteSlip == true) ? "true" : "false";
152 return sRet;
153 }
154 }
155
156 /// <summary>
157 /// Appointment checkin time
158 /// </summary>
159 public DateTime CheckInTime
160 {
161 get
162 {
163 return m_dCheckIn;
164 }
165 set
166 {
167 m_dCheckIn = value;
168 }
169 }
170
171 /// <summary>
172 /// Appointment end time
173 /// </summary>
174 public DateTime AuxTime
175 {
176 get
177 {
178 return m_dAuxTime;
179 }
180 set
181 {
182 m_dAuxTime = value;
183 }
184 }
185 #endregion Properties
186
187 #region Methods
188
189 /// <summary>
190 /// Fill memeber variables before showing dialog
191 /// </summary>
192 /// <param name="a">Appointment</param>
193 /// <param name="docManager">Document Manager</param>
194 /// <param name="sDefaultProvider">Default provider</param>
195 /// <param name="bProviderRequired">not used</param>
196 /// <param name="bGeneratePCCPlus">not used</param>
197 /// <param name="bMultCodes">not used</param>
198 /// <param name="sStopCode">Stop Code</param>
199 public void InitializePage(CGAppointment a, CGDocumentManager docManager,
200 string sDefaultProvider, bool bProviderRequired, bool bGeneratePCCPlus,
201 bool bMultCodes, string sStopCode, int nHospLoc)
202 {
203 m_bInit = true;
204 m_DocManager = docManager;
205 m_dsGlobal = m_DocManager.GlobalDataSet;
206 int nFind = 0;
207
208 //Provider processing
209 m_bProviderRequired = bProviderRequired; //not used in VISTA --remove
210
211 //smh new code
212 //if the resource is linked to a valid hospital location, grab this locations providers
213 //from the provider multiple and put them in the combo box.
214 if (nHospLoc != 0)
215 {
216 //RPC BSDX HOSP LOC PROVIDERS returns Table w/ Columns:
217 //HOSPITAL_LOCATION_ID^BMXIEN (ie Prov IEN)^NAME^DEFALUT
218 string sCommandText = "BSDX HOSP LOC PROVIDERS^" + nHospLoc;
219 m_dtProvider = docManager.RPMSDataTable(sCommandText, "ClinicProviders");
220 m_dtProvider.DefaultView.Sort = "NAME ASC";
221
222 cboProvider.DataSource = m_dtProvider;
223 cboProvider.DisplayMember = "NAME";
224 cboProvider.ValueMember = "BMXIEN";
225
226 //Add None to the top of the list
227 DataRow drProv = m_dtProvider.NewRow();
228 drProv.BeginEdit();
229 drProv["HOSPITAL_LOCATION_ID"] = 0;
230 drProv["NAME"] = "<None>";
231 drProv["BMXIEN"] = 0;
232 drProv.EndEdit();
233 m_dtProvider.Rows.InsertAt(drProv, 0);
234 cboProvider.SelectedIndex = 0;
235
236 //Find default provider--search for Yes in Field DEFAULT
237 DataRow[] nRow = m_dtProvider.Select("DEFAULT='YES'", "NAME ASC");
238 if (nRow.Length > 0) nFind = m_dtProvider.Rows.IndexOf(nRow[0]);
239 cboProvider.SelectedIndex = nFind;
240 }
241 //otherwise, just use the default provider table
242 else
243 {
244 m_dtProvider = m_dsGlobal.Tables["Provider"];
245 m_dtProvider.DefaultView.Sort = "NAME ASC";
246
247 cboProvider.DataSource = m_dtProvider;
248 cboProvider.DisplayMember = "NAME";
249 cboProvider.ValueMember = "BMXIEN";
250
251 //Add None to the top of the list
252 DataRow drProv = m_dtProvider.NewRow();
253 drProv.BeginEdit();
254 drProv["NAME"] = "<None>";
255 drProv["BMXIEN"] = 0;
256 drProv.EndEdit();
257 m_dtProvider.Rows.InsertAt(drProv, 0);
258 cboProvider.SelectedIndex = 0;
259 }
260
261
262 //Stop code processing
263 //TODO: Remove... not in VISTA.
264 this.lblStopCode.Visible = false;
265 this.cboStopCode.Visible = false;
266 m_dvCS = new DataView(m_dsGlobal.Tables["ClinicStop"]);
267 m_dvCS.Sort = "NAME ASC";
268 m_sStopCode = sStopCode;
269 m_sStopCodeIEN = "";
270 if (m_sStopCode != "")
271 {
272 //Get the IEN of the clinic stop code
273 nFind = m_dvCS.Find((string)m_sStopCode);
274 Debug.Assert(nFind > -1);
275 if (nFind > -1)
276 {
277 m_sStopCodeIEN = m_dvCS[nFind].Row["BMXIEN"].ToString();
278 }
279 }
280
281 if (bMultCodes == true)
282 {
283 this.lblStopCode.Visible = true;
284 this.cboStopCode.Visible = true;
285 cboStopCode.DataSource = m_dvCS;
286 cboStopCode.DisplayMember = "NAME";
287 cboStopCode.ValueMember = "BMXIEN";
288 if (m_sStopCode != "")
289 {
290 nFind = m_dvCS.Find((string)m_sStopCode);
291 cboStopCode.SelectedIndex = nFind;
292 }
293 }
294
295 m_bPCC = bGeneratePCCPlus;
296 PCCPlus();
297
298 m_sPatientName = a.PatientName;
299 if (a.CheckInTime.Ticks != 0)
300 {
301 m_dCheckIn = a.CheckInTime;
302 dtpCheckIn.Enabled = false;
303 this.cboProvider.Enabled = false;
304 lblAlready.Visible = true;
305 }
306 else
307 {
308 m_dCheckIn = DateTime.Now;
309 }
310 UpdateDialogData(true);
311 m_bInit = false;
312
313 //Synchronize PCCForm with Clinic
314 if (m_bPCC == true)
315 {
316 cboPCCPlusClinic_SelectedIndexChanged(this, new System.EventArgs());
317 }
318 }
319
320 /// <summary>
321 /// Not used in VISTA. Needs to be removed
322 /// <remarks>Not used in VISTA.</remarks>
323 /// </summary>
324 private void PCCPlus()
325 {
326 //PCCPlus processing
327 /*Can't do PCCPlus if no stop code
328 * or if PRINT PCC PLUS FORM field in CLINIC SETUP PARAMETERS is false
329 */
330 if ((m_bPCC == false) || (m_sStopCode == ""))
331 {
332 grpPCCPlus.Enabled = false;
333 return;
334 }
335 else
336 {
337 grpPCCPlus.Enabled = true;
338 //Populate combo box with recordset of clinics based on m_sStopCode
339 string sCmd = "SELECT BMXIEN, NAME, DEPARTMENT, DEFAULT_ENCOUNTER_FORM, NEVER_PRINT_OUTGUIDE FROM VEN_EHP_CLINIC WHERE DEPARTMENT = '" + m_sStopCode + "'";
340 m_dtClinic = m_DocManager.ConnectInfo.RPMSDataTable(sCmd, "CLINIC");
341 m_dvClinic = new DataView(m_dtClinic);
342 m_dvClinic.Sort = "NAME ASC";
343
344 cboPCCPlusClinic.DataSource = m_dvClinic;
345 cboPCCPlusClinic.DisplayMember = "NAME";
346 cboPCCPlusClinic.ValueMember = "BMXIEN";
347
348
349 //Populate combo box with recordset of all forms
350 sCmd = "SELECT BMXIEN, TEMPLATE FROM VEN_EHP_EF_TEMPLATES";
351 m_dtForm = m_DocManager.ConnectInfo.RPMSDataTable(sCmd, "FORM");
352 m_dvForm = new DataView(m_dtForm);
353 m_dvForm.Sort = "TEMPLATE ASC";
354
355 cboPCCPlusForm.DataSource = m_dvForm;
356 cboPCCPlusForm.DisplayMember = "TEMPLATE";
357 cboPCCPlusForm.ValueMember = "BMXIEN";
358
359 if ((m_dtClinic.Rows.Count == 0) || (m_dtForm.Rows.Count == 0))
360 {
361 //No PCCPlus clinics for current stop code
362 //or no forms available
363 grpPCCPlus.Enabled = false;
364 return;
365 }
366
367 cboPCCPlusClinic.SelectedIndex = 0;
368 cboPCCPlusClinic_SelectedIndexChanged(this, new System.EventArgs());
369
370 }
371 }
372
373 /// <summary>
374 /// If b is true, moves member vars into control data
375 /// otherwise, moves control data into member vars
376 /// </summary>
377 /// <param name="b"></param>
378 private void UpdateDialogData(bool b)
379 {
380 if (b == true) //Move data to dialog controls from member variables
381 {
382 this.lblPatientName.Text = m_sPatientName;
383 this.dtpCheckIn.Value = m_dCheckIn;
384 }
385 else //Move data to member variables from dialog controls
386 {
387
388 /*
389 * Need to return Provider, ClinicStop, PrintRouteSlip,
390 * PCC Clinic, PCC Form, Print OutGuide
391 */
392
393 m_dCheckIn = this.dtpCheckIn.Value;
394 m_sProviderIEN = this.cboProvider.SelectedValue.ToString();
395 m_bPrintRouteSlip = chkRoutingSlip.Checked;
396
397 /*
398 * Don't get value from CLINIC STOP combo since
399 * it may not be enabled, and
400 * it updates the member variable whenever the selection changes
401 */
402
403 /*
404 * PCCPlus
405 */
406
407 if (grpPCCPlus.Enabled == false)
408 {
409 m_bPCC = false;
410 m_sPCCClinicIEN = "";
411 m_sPCCFormIEN = "";
412 m_bPCCOutGuide = false;
413 }
414 else
415 {
416 m_bPCC = true;
417 m_sPCCClinicIEN = this.cboPCCPlusClinic.SelectedValue.ToString();
418 m_sPCCFormIEN = this.cboPCCPlusForm.SelectedValue.ToString();
419 if (chkPCCOutGuide.Enabled == false)
420 {
421 m_bPCCOutGuide = false;
422 }
423 else
424 {
425 m_bPCCOutGuide = this.chkPCCOutGuide.Checked;
426 }
427 }
428
429 }
430 }
431
432 /// <summary>
433 /// Clean up any resources being used.
434 /// </summary>
435 protected override void Dispose(bool disposing)
436 {
437 if (disposing)
438 {
439 if (components != null)
440 {
441 components.Dispose();
442 }
443 }
444 base.Dispose(disposing);
445 }
446 #endregion Methods
447
448 #region Windows Form Designer generated code
449 /// <summary>
450 /// Required method for Designer support - do not modify
451 /// the contents of this method with the code editor.
452 /// </summary>
453 private void InitializeComponent()
454 {
455 this.components = new System.ComponentModel.Container();
456 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DCheckIn));
457 this.pnlPageBottom = new System.Windows.Forms.Panel();
458 this.cmdCancel = new System.Windows.Forms.Button();
459 this.cmdOK = new System.Windows.Forms.Button();
460 this.pnlDescription = new System.Windows.Forms.Panel();
461 this.grpDescriptionResourceGroup = new System.Windows.Forms.GroupBox();
462 this.lblDescriptionResourceGroup = new System.Windows.Forms.Label();
463 this.label1 = new System.Windows.Forms.Label();
464 this.dtpCheckIn = new System.Windows.Forms.DateTimePicker();
465 this.lblAlready = new System.Windows.Forms.Label();
466 this.label3 = new System.Windows.Forms.Label();
467 this.lblPatientName = new System.Windows.Forms.Label();
468 this.cboProvider = new System.Windows.Forms.ComboBox();
469 this.label2 = new System.Windows.Forms.Label();
470 this.cboStopCode = new System.Windows.Forms.ComboBox();
471 this.lblStopCode = new System.Windows.Forms.Label();
472 this.chkRoutingSlip = new System.Windows.Forms.CheckBox();
473 this.grpPCCPlus = new System.Windows.Forms.GroupBox();
474 this.chkPCCOutGuide = new System.Windows.Forms.CheckBox();
475 this.label4 = new System.Windows.Forms.Label();
476 this.cboPCCPlusClinic = new System.Windows.Forms.ComboBox();
477 this.cboPCCPlusForm = new System.Windows.Forms.ComboBox();
478 this.label5 = new System.Windows.Forms.Label();
479 this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
480 this.pnlPageBottom.SuspendLayout();
481 this.pnlDescription.SuspendLayout();
482 this.grpDescriptionResourceGroup.SuspendLayout();
483 this.grpPCCPlus.SuspendLayout();
484 this.SuspendLayout();
485 //
486 // pnlPageBottom
487 //
488 this.pnlPageBottom.Controls.Add(this.cmdCancel);
489 this.pnlPageBottom.Controls.Add(this.cmdOK);
490 this.pnlPageBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
491 this.pnlPageBottom.Location = new System.Drawing.Point(0, 360);
492 this.pnlPageBottom.Name = "pnlPageBottom";
493 this.pnlPageBottom.Size = new System.Drawing.Size(520, 40);
494 this.pnlPageBottom.TabIndex = 5;
495 //
496 // cmdCancel
497 //
498 this.cmdCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
499 this.cmdCancel.Location = new System.Drawing.Point(440, 8);
500 this.cmdCancel.Name = "cmdCancel";
501 this.cmdCancel.Size = new System.Drawing.Size(56, 24);
502 this.cmdCancel.TabIndex = 2;
503 this.cmdCancel.Text = "Cancel";
504 //
505 // cmdOK
506 //
507 this.cmdOK.DialogResult = System.Windows.Forms.DialogResult.OK;
508 this.cmdOK.Location = new System.Drawing.Point(360, 8);
509 this.cmdOK.Name = "cmdOK";
510 this.cmdOK.Size = new System.Drawing.Size(64, 24);
511 this.cmdOK.TabIndex = 1;
512 this.cmdOK.Text = "OK";
513 this.cmdOK.Click += new System.EventHandler(this.cmdOK_Click);
514 //
515 // pnlDescription
516 //
517 this.pnlDescription.Controls.Add(this.grpDescriptionResourceGroup);
518 this.pnlDescription.Dock = System.Windows.Forms.DockStyle.Bottom;
519 this.pnlDescription.Location = new System.Drawing.Point(0, 288);
520 this.pnlDescription.Name = "pnlDescription";
521 this.pnlDescription.Size = new System.Drawing.Size(520, 72);
522 this.pnlDescription.TabIndex = 6;
523 //
524 // grpDescriptionResourceGroup
525 //
526 this.grpDescriptionResourceGroup.Controls.Add(this.lblDescriptionResourceGroup);
527 this.grpDescriptionResourceGroup.Dock = System.Windows.Forms.DockStyle.Fill;
528 this.grpDescriptionResourceGroup.Location = new System.Drawing.Point(0, 0);
529 this.grpDescriptionResourceGroup.Name = "grpDescriptionResourceGroup";
530 this.grpDescriptionResourceGroup.Size = new System.Drawing.Size(520, 72);
531 this.grpDescriptionResourceGroup.TabIndex = 1;
532 this.grpDescriptionResourceGroup.TabStop = false;
533 this.grpDescriptionResourceGroup.Text = "Description";
534 //
535 // lblDescriptionResourceGroup
536 //
537 this.lblDescriptionResourceGroup.Dock = System.Windows.Forms.DockStyle.Fill;
538 this.lblDescriptionResourceGroup.Location = new System.Drawing.Point(3, 16);
539 this.lblDescriptionResourceGroup.Name = "lblDescriptionResourceGroup";
540 this.lblDescriptionResourceGroup.Size = new System.Drawing.Size(514, 53);
541 this.lblDescriptionResourceGroup.TabIndex = 0;
542 this.lblDescriptionResourceGroup.Text = resources.GetString("lblDescriptionResourceGroup.Text");
543 //
544 // label1
545 //
546 this.label1.Location = new System.Drawing.Point(16, 16);
547 this.label1.Name = "label1";
548 this.label1.Size = new System.Drawing.Size(80, 16);
549 this.label1.TabIndex = 7;
550 this.label1.Text = "Patient Name:";
551 //
552 // dtpCheckIn
553 //
554 this.dtpCheckIn.AllowDrop = true;
555 this.dtpCheckIn.CustomFormat = "MMMM dd yyyy H:mm";
556 this.dtpCheckIn.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
557 this.dtpCheckIn.Location = new System.Drawing.Point(96, 48);
558 this.dtpCheckIn.Name = "dtpCheckIn";
559 this.dtpCheckIn.ShowUpDown = true;
560 this.dtpCheckIn.Size = new System.Drawing.Size(176, 20);
561 this.dtpCheckIn.TabIndex = 9;
562 //
563 // lblAlready
564 //
565 this.lblAlready.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
566 this.lblAlready.ForeColor = System.Drawing.Color.Green;
567 this.lblAlready.Location = new System.Drawing.Point(288, 40);
568 this.lblAlready.Name = "lblAlready";
569 this.lblAlready.Size = new System.Drawing.Size(192, 32);
570 this.lblAlready.TabIndex = 10;
571 this.lblAlready.Text = "This Patient is already checked in.";
572 this.lblAlready.Visible = false;
573 //
574 // label3
575 //
576 this.label3.Location = new System.Drawing.Point(16, 48);
577 this.label3.Name = "label3";
578 this.label3.Size = new System.Drawing.Size(80, 16);
579 this.label3.TabIndex = 7;
580 this.label3.Text = "CheckIn Time:";
581 //
582 // lblPatientName
583 //
584 this.lblPatientName.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
585 this.lblPatientName.Location = new System.Drawing.Point(96, 16);
586 this.lblPatientName.Name = "lblPatientName";
587 this.lblPatientName.Size = new System.Drawing.Size(256, 16);
588 this.lblPatientName.TabIndex = 11;
589 //
590 // cboProvider
591 //
592 this.cboProvider.Location = new System.Drawing.Point(96, 88);
593 this.cboProvider.Name = "cboProvider";
594 this.cboProvider.Size = new System.Drawing.Size(240, 21);
595 this.cboProvider.TabIndex = 12;
596 //
597 // label2
598 //
599 this.label2.Location = new System.Drawing.Point(16, 88);
600 this.label2.Name = "label2";
601 this.label2.Size = new System.Drawing.Size(80, 16);
602 this.label2.TabIndex = 7;
603 this.label2.Text = "Visit Provider:";
604 //
605 // cboStopCode
606 //
607 this.cboStopCode.Location = new System.Drawing.Point(96, 128);
608 this.cboStopCode.Name = "cboStopCode";
609 this.cboStopCode.Size = new System.Drawing.Size(240, 21);
610 this.cboStopCode.TabIndex = 13;
611 this.cboStopCode.SelectedIndexChanged += new System.EventHandler(this.cboStopCode_SelectedIndexChanged);
612 //
613 // lblStopCode
614 //
615 this.lblStopCode.Location = new System.Drawing.Point(16, 128);
616 this.lblStopCode.Name = "lblStopCode";
617 this.lblStopCode.Size = new System.Drawing.Size(80, 16);
618 this.lblStopCode.TabIndex = 7;
619 this.lblStopCode.Text = "Stop Code:";
620 //
621 // chkRoutingSlip
622 //
623 this.chkRoutingSlip.Location = new System.Drawing.Point(368, 88);
624 this.chkRoutingSlip.Name = "chkRoutingSlip";
625 this.chkRoutingSlip.Size = new System.Drawing.Size(128, 16);
626 this.chkRoutingSlip.TabIndex = 14;
627 this.chkRoutingSlip.Text = "Print Routing Slip";
628 this.toolTip1.SetToolTip(this.chkRoutingSlip, "Prints routing slip to the Windows Default Printer");
629 //
630 // grpPCCPlus
631 //
632 this.grpPCCPlus.Controls.Add(this.chkPCCOutGuide);
633 this.grpPCCPlus.Controls.Add(this.label4);
634 this.grpPCCPlus.Controls.Add(this.cboPCCPlusClinic);
635 this.grpPCCPlus.Controls.Add(this.cboPCCPlusForm);
636 this.grpPCCPlus.Controls.Add(this.label5);
637 this.grpPCCPlus.Location = new System.Drawing.Point(8, 168);
638 this.grpPCCPlus.Name = "grpPCCPlus";
639 this.grpPCCPlus.Size = new System.Drawing.Size(488, 104);
640 this.grpPCCPlus.TabIndex = 15;
641 this.grpPCCPlus.TabStop = false;
642 this.grpPCCPlus.Text = "PCC Plus";
643 //
644 // chkPCCOutGuide
645 //
646 this.chkPCCOutGuide.Location = new System.Drawing.Point(360, 24);
647 this.chkPCCOutGuide.Name = "chkPCCOutGuide";
648 this.chkPCCOutGuide.Size = new System.Drawing.Size(96, 16);
649 this.chkPCCOutGuide.TabIndex = 15;
650 this.chkPCCOutGuide.Text = "Print Outguide";
651 //
652 // label4
653 //
654 this.label4.Location = new System.Drawing.Point(8, 24);
655 this.label4.Name = "label4";
656 this.label4.Size = new System.Drawing.Size(72, 16);
657 this.label4.TabIndex = 8;
658 this.label4.Text = "PCC+ Clinic:";
659 //
660 // cboPCCPlusClinic
661 //
662 this.cboPCCPlusClinic.Location = new System.Drawing.Point(88, 24);
663 this.cboPCCPlusClinic.Name = "cboPCCPlusClinic";
664 this.cboPCCPlusClinic.Size = new System.Drawing.Size(240, 21);
665 this.cboPCCPlusClinic.TabIndex = 0;
666 this.cboPCCPlusClinic.SelectedIndexChanged += new System.EventHandler(this.cboPCCPlusClinic_SelectedIndexChanged);
667 //
668 // cboPCCPlusForm
669 //
670 this.cboPCCPlusForm.Location = new System.Drawing.Point(88, 64);
671 this.cboPCCPlusForm.Name = "cboPCCPlusForm";
672 this.cboPCCPlusForm.Size = new System.Drawing.Size(240, 21);
673 this.cboPCCPlusForm.TabIndex = 0;
674 //
675 // label5
676 //
677 this.label5.Location = new System.Drawing.Point(8, 64);
678 this.label5.Name = "label5";
679 this.label5.Size = new System.Drawing.Size(72, 16);
680 this.label5.TabIndex = 8;
681 this.label5.Text = "PCC+ Form:";
682 //
683 // DCheckIn
684 //
685 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
686 this.ClientSize = new System.Drawing.Size(520, 400);
687 this.Controls.Add(this.grpPCCPlus);
688 this.Controls.Add(this.chkRoutingSlip);
689 this.Controls.Add(this.cboStopCode);
690 this.Controls.Add(this.cboProvider);
691 this.Controls.Add(this.lblPatientName);
692 this.Controls.Add(this.lblAlready);
693 this.Controls.Add(this.dtpCheckIn);
694 this.Controls.Add(this.label1);
695 this.Controls.Add(this.pnlDescription);
696 this.Controls.Add(this.pnlPageBottom);
697 this.Controls.Add(this.label3);
698 this.Controls.Add(this.label2);
699 this.Controls.Add(this.lblStopCode);
700 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
701 this.Name = "DCheckIn";
702 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
703 this.Text = "Appointment Check In";
704 this.pnlPageBottom.ResumeLayout(false);
705 this.pnlDescription.ResumeLayout(false);
706 this.grpDescriptionResourceGroup.ResumeLayout(false);
707 this.grpPCCPlus.ResumeLayout(false);
708 this.ResumeLayout(false);
709
710 }
711 #endregion
712
713 #region Events
714
715 private void cmdOK_Click(object sender, System.EventArgs e)
716 {
717 this.UpdateDialogData(false);
718 }
719
720 private void cboStopCode_SelectedIndexChanged(object sender, System.EventArgs e)
721 {
722 /*
723 * Whenever the stop code changes, the set of PCCPlus Clinic Selections change
724 * except during init.
725 */
726 if (m_bInit == true)
727 return;
728
729 //Change the value of m_sStopCode
730 DataRowView drv = (DataRowView)this.cboStopCode.SelectedItem;
731 string sStopCode = drv.Row["NAME"].ToString();
732 m_sStopCode = sStopCode;
733 m_sStopCodeIEN = drv.Row["BMXIEN"].ToString();
734 PCCPlus();
735 }
736
737 private void cboPCCPlusClinic_SelectedIndexChanged(object sender, System.EventArgs e)
738 {
739 /*
740 * Whenever the PCCPlus Clinic changes, the default EF TEMPLATE changes
741 */
742 if (m_bInit == true)
743 return;
744
745 if (this.cboPCCPlusClinic.SelectedItem == null)
746 return;
747
748 DataRowView drv = (DataRowView)this.cboPCCPlusClinic.SelectedItem;
749 string sDefaultForm = drv.Row["DEFAULT_ENCOUNTER_FORM"].ToString();
750
751 int nFind = this.m_dvForm.Find(sDefaultForm);
752 if (nFind > -1)
753 {
754 this.cboPCCPlusForm.SelectedIndex = nFind;
755 }
756 }
757 #endregion Events
758
759
760 }
761}
Note: See TracBrowser for help on using the repository browser.