- Timestamp:
- Mar 21, 2011, 8:47:45 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/DAppointPage.cs
r1106 r1110 64 64 private TextBox txtCountry; 65 65 private CheckBox chkPrint; 66 private Label label18; 67 private TextBox txtSex; 66 68 private IContainer components; 67 69 … … 121 123 this.txtStreet = new System.Windows.Forms.TextBox(); 122 124 this.panel1 = new System.Windows.Forms.Panel(); 125 this.chkPrint = new System.Windows.Forms.CheckBox(); 123 126 this.cmdCancel = new System.Windows.Forms.Button(); 124 127 this.cmdOK = new System.Windows.Forms.Button(); … … 126 129 this.dsPatientApptDisplay2BindingSource = new System.Windows.Forms.BindingSource(this.components); 127 130 this.dsPatientApptDisplay2 = new IndianHealthService.ClinicalScheduling.dsPatientApptDisplay2(); 128 this.chkPrint = new System.Windows.Forms.CheckBox(); 131 this.label18 = new System.Windows.Forms.Label(); 132 this.txtSex = new System.Windows.Forms.TextBox(); 129 133 this.tabControl1.SuspendLayout(); 130 134 this.tabAppointment.SuspendLayout(); … … 260 264 // groupBox1 261 265 // 266 this.groupBox1.Controls.Add(this.txtSex); 267 this.groupBox1.Controls.Add(this.label18); 262 268 this.groupBox1.Controls.Add(this.label14); 263 269 this.groupBox1.Controls.Add(this.txtHRN); … … 277 283 // label14 278 284 // 279 this.label14.Location = new System.Drawing.Point(5 6, 64);285 this.label14.Location = new System.Drawing.Point(50, 64); 280 286 this.label14.Name = "label14"; 281 287 this.label14.Size = new System.Drawing.Size(40, 16); … … 294 300 // label6 295 301 // 296 this.label6.Location = new System.Drawing.Point(22 4, 40);302 this.label6.Location = new System.Drawing.Point(227, 65); 297 303 this.label6.Name = "label6"; 298 304 this.label6.Size = new System.Drawing.Size(40, 16); … … 303 309 // txtPID 304 310 // 305 this.txtPID.Location = new System.Drawing.Point(272, 40);311 this.txtPID.Location = new System.Drawing.Point(272, 63); 306 312 this.txtPID.Name = "txtPID"; 307 313 this.txtPID.ReadOnly = true; … … 311 317 // label5 312 318 // 313 this.label5.Location = new System.Drawing.Point( 64, 40);319 this.label5.Location = new System.Drawing.Point(58, 41); 314 320 this.label5.Name = "label5"; 315 321 this.label5.Size = new System.Drawing.Size(32, 16); … … 328 334 // label2 329 335 // 330 this.label2.Location = new System.Drawing.Point(5 6, 16);336 this.label2.Location = new System.Drawing.Point(50, 16); 331 337 this.label2.Name = "label2"; 332 338 this.label2.Size = new System.Drawing.Size(40, 16); … … 543 549 this.panel1.TabIndex = 1; 544 550 // 551 // chkPrint 552 // 553 this.chkPrint.AutoSize = true; 554 this.chkPrint.Location = new System.Drawing.Point(13, 14); 555 this.chkPrint.Name = "chkPrint"; 556 this.chkPrint.Size = new System.Drawing.Size(144, 17); 557 this.chkPrint.TabIndex = 2; 558 this.chkPrint.Text = "Print Appointment Letter"; 559 this.chkPrint.UseVisualStyleBackColor = true; 560 // 545 561 // cmdCancel 546 562 // … … 577 593 this.dsPatientApptDisplay2.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; 578 594 // 579 // chkPrint 580 // 581 this.chkPrint.AutoSize = true; 582 this.chkPrint.Location = new System.Drawing.Point(13, 14); 583 this.chkPrint.Name = "chkPrint"; 584 this.chkPrint.Size = new System.Drawing.Size(144, 17); 585 this.chkPrint.TabIndex = 2; 586 this.chkPrint.Text = "Print Appointment Letter"; 587 this.chkPrint.UseVisualStyleBackColor = true; 595 // label18 596 // 597 this.label18.AutoSize = true; 598 this.label18.Location = new System.Drawing.Point(238, 44); 599 this.label18.Name = "label18"; 600 this.label18.Size = new System.Drawing.Size(29, 13); 601 this.label18.TabIndex = 14; 602 this.label18.Text = "Sex:"; 603 // 604 // txtSex 605 // 606 this.txtSex.BackColor = System.Drawing.SystemColors.Control; 607 this.txtSex.Location = new System.Drawing.Point(273, 41); 608 this.txtSex.Name = "txtSex"; 609 this.txtSex.ReadOnly = true; 610 this.txtSex.Size = new System.Drawing.Size(160, 20); 611 this.txtSex.TabIndex = 15; 588 612 // 589 613 // DAppointPage … … 623 647 624 648 private string m_sPatientName; 649 private Sex m_enumPatientSex; 625 650 private string m_sPatientHRN; 626 651 private string m_sPatientIEN; … … 674 699 DataRow r = tb.Rows[0]; 675 700 this.m_sPatientName = r["NAME"].ToString(); 701 this.m_enumPatientSex = r["SEX"].ToString() == "MALE" ? Sex.Male : Sex.Female; 676 702 this.m_sPatientHRN = r["HRN"].ToString(); 677 703 this.m_sPatientIEN = r["IEN"].ToString(); … … 716 742 txtNote.Text = this.m_sNote; 717 743 txtPatientName.Text = m_sPatientName; 744 txtSex.Text = m_enumPatientSex.ToString(); 718 745 txtPhoneHome.Text = this.m_sPhoneHome; 719 746 txtPhoneOffice.Text = this.m_sPhoneOffice; … … 797 824 DFN = Int32.Parse(m_sPatientIEN), 798 825 Name = m_sPatientName, 826 Sex = m_enumPatientSex, 799 827 DOB = m_dPatientDOB, 800 828 ID = m_sPatientPID,
Note:
See TracChangeset
for help on using the changeset viewer.