Ignore:
Timestamp:
Mar 23, 2011, 5:15:51 AM (13 years ago)
Author:
Sam Habiel
Message:

CGAppointment: Added Provider as a Member of Class. (auto property)
CGDocument: No changes
CGDocumentManager: Added UserPreferences as a member of a Class (private and property)
CGView: Changes to support printing of Routing Slip
DAppointPage: Changes to support UserPreferences member for auto printing the routing slips
DCheckIn: Extensive changes in load code (now uses LINQ instead of ADO.net). Changes to support UserPreferences member for auto printing the routing slips.
Patient: Documentation for UserFriendlyAge.
Provider: New class to represent Provider
UserPreferences: New class to represent User preferences. Does not interact with DB right now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/DAppointPage.cs

    r1110 r1111  
    9494            this.label3 = new System.Windows.Forms.Label();
    9595            this.groupBox1 = new System.Windows.Forms.GroupBox();
     96            this.txtSex = new System.Windows.Forms.TextBox();
     97            this.label18 = new System.Windows.Forms.Label();
    9698            this.label14 = new System.Windows.Forms.Label();
    9799            this.txtHRN = new System.Windows.Forms.TextBox();
     
    129131            this.dsPatientApptDisplay2BindingSource = new System.Windows.Forms.BindingSource(this.components);
    130132            this.dsPatientApptDisplay2 = new IndianHealthService.ClinicalScheduling.dsPatientApptDisplay2();
    131             this.label18 = new System.Windows.Forms.Label();
    132             this.txtSex = new System.Windows.Forms.TextBox();
    133133            this.tabControl1.SuspendLayout();
    134134            this.tabAppointment.SuspendLayout();
     
    280280            this.groupBox1.TabStop = false;
    281281            this.groupBox1.Text = "Patient ID";
     282            //
     283            // txtSex
     284            //
     285            this.txtSex.BackColor = System.Drawing.SystemColors.Control;
     286            this.txtSex.Location = new System.Drawing.Point(273, 41);
     287            this.txtSex.Name = "txtSex";
     288            this.txtSex.ReadOnly = true;
     289            this.txtSex.Size = new System.Drawing.Size(160, 20);
     290            this.txtSex.TabIndex = 15;
     291            //
     292            // label18
     293            //
     294            this.label18.AutoSize = true;
     295            this.label18.Location = new System.Drawing.Point(238, 44);
     296            this.label18.Name = "label18";
     297            this.label18.Size = new System.Drawing.Size(29, 13);
     298            this.label18.TabIndex = 14;
     299            this.label18.Text = "Sex:";
    282300            //
    283301            // label14
     
    558576            this.chkPrint.Text = "Print Appointment Letter";
    559577            this.chkPrint.UseVisualStyleBackColor = true;
     578            this.chkPrint.CheckedChanged += new System.EventHandler(this.chkPrint_CheckedChanged);
    560579            //
    561580            // cmdCancel
     
    592611            this.dsPatientApptDisplay2.DataSetName = "dsPatientApptDisplay2";
    593612            this.dsPatientApptDisplay2.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
    594             //
    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;
    612613            //
    613614            // DAppointPage
     
    717718                UC.Dock = DockStyle.Fill;
    718719                groupBox4.Controls.Add(UC);
     720
     721                chkPrint.Checked = CGDocumentManager.Current.UserPreferences.PrintAppointmentSlipAutomacially;
    719722            }
    720723                        catch(Exception e)
     
    858861                #endregion //Properties
    859862
     863        /// <summary>
     864        /// Save Print Slip preference in UserPreferences object. For now, it always starts false since
     865        /// it isn't saved in the DB; but that will change in the future.
     866        /// </summary>
     867        /// <param name="sender"></param>
     868        /// <param name="e"></param>
     869        private void chkPrint_CheckedChanged(object sender, EventArgs e)
     870        {
     871            CGDocumentManager.Current.UserPreferences.PrintAppointmentSlipAutomacially = chkPrint.Checked;
     872        }
     873
    860874
    861875        } //end Class
Note: See TracChangeset for help on using the changeset viewer.