Ignore:
Timestamp:
May 7, 2010, 6:38:39 PM (14 years ago)
Author:
Sam Habiel
Message:

Reworked DAppointPage. Removed dependence of DPatientApptDisplay on Crystal Reports. Added UserControl UCPatientAppts to encapsulate functionality of DPatientApptDisplay; right now it does not include printing. DAppointPage now uses UCPatientAppts to provide functionality of seeing patient's previous appointments. DPatientApptDisplay does not yet, but will soon.

Exe is not included.

File:
1 edited

Legend:

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

    r627 r753  
    3535                private System.Windows.Forms.Label label13;
    3636                private System.Windows.Forms.TextBox txtPhoneHome;
    37                 private System.Windows.Forms.GroupBox groupBox1;
    38                 private System.Windows.Forms.TextBox txtCommunity;
    39                 private System.Windows.Forms.Label label7;
     37        private System.Windows.Forms.GroupBox groupBox1;
    4038                private System.Windows.Forms.Label label6;
    4139                private System.Windows.Forms.TextBox txtSSN;
     
    5452                private System.Windows.Forms.Label label3;
    5553                private System.Windows.Forms.Label label14;
    56                 private System.Windows.Forms.TextBox txtHRN;
    57                 private System.Windows.Forms.Button cmdViewAppointments;
    58                 private System.Windows.Forms.Button cmdPrintLetter;
    59                 /// <summary>
    60                 /// Required designer variable.
    61                 /// </summary>
    62                 private System.ComponentModel.Container components = null;
     54        private System.Windows.Forms.TextBox txtHRN;
     55        private System.Windows.Forms.Button cmdPrintLetter;
     56        private GroupBox groupBox4;
     57        private BindingSource dsPatientApptDisplay2BindingSource;
     58        private dsPatientApptDisplay2 dsPatientApptDisplay2;
     59        private BindingSource patientApptsBindingSource;
     60        private IContainer components;
    6361
    6462                public DAppointPage()
     
    7472                private void InitializeComponent()
    7573                {
     74            this.components = new System.ComponentModel.Container();
    7675            this.tabControl1 = new System.Windows.Forms.TabControl();
    7776            this.tabAppointment = new System.Windows.Forms.TabPage();
     
    8887            this.label14 = new System.Windows.Forms.Label();
    8988            this.txtHRN = new System.Windows.Forms.TextBox();
    90             this.txtCommunity = new System.Windows.Forms.TextBox();
    91             this.label7 = new System.Windows.Forms.Label();
    9289            this.label6 = new System.Windows.Forms.Label();
    9390            this.txtSSN = new System.Windows.Forms.TextBox();
     
    112109            this.panel1 = new System.Windows.Forms.Panel();
    113110            this.cmdPrintLetter = new System.Windows.Forms.Button();
    114             this.cmdViewAppointments = new System.Windows.Forms.Button();
    115111            this.cmdCancel = new System.Windows.Forms.Button();
    116112            this.cmdOK = new System.Windows.Forms.Button();
     113            this.groupBox4 = new System.Windows.Forms.GroupBox();
     114            this.patientApptsBindingSource = new System.Windows.Forms.BindingSource(this.components);
     115            this.dsPatientApptDisplay2BindingSource = new System.Windows.Forms.BindingSource(this.components);
     116            this.dsPatientApptDisplay2 = new IndianHealthService.ClinicalScheduling.dsPatientApptDisplay2();
    117117            this.tabControl1.SuspendLayout();
    118118            this.tabAppointment.SuspendLayout();
     
    122122            this.groupBox2.SuspendLayout();
    123123            this.panel1.SuspendLayout();
     124            ((System.ComponentModel.ISupportInitialize)(this.patientApptsBindingSource)).BeginInit();
     125            ((System.ComponentModel.ISupportInitialize)(this.dsPatientApptDisplay2BindingSource)).BeginInit();
     126            ((System.ComponentModel.ISupportInitialize)(this.dsPatientApptDisplay2)).BeginInit();
    124127            this.SuspendLayout();
    125128            //
     
    132135            this.tabControl1.Name = "tabControl1";
    133136            this.tabControl1.SelectedIndex = 0;
    134             this.tabControl1.Size = new System.Drawing.Size(463, 374);
     137            this.tabControl1.Size = new System.Drawing.Size(471, 526);
    135138            this.tabControl1.TabIndex = 0;
    136139            //
    137140            // tabAppointment
    138141            //
     142            this.tabAppointment.Controls.Add(this.groupBox4);
    139143            this.tabAppointment.Controls.Add(this.groupBox3);
    140144            this.tabAppointment.Controls.Add(this.groupBox1);
    141145            this.tabAppointment.Location = new System.Drawing.Point(4, 22);
    142146            this.tabAppointment.Name = "tabAppointment";
    143             this.tabAppointment.Size = new System.Drawing.Size(455, 348);
     147            this.tabAppointment.Size = new System.Drawing.Size(463, 500);
    144148            this.tabAppointment.TabIndex = 1;
    145149            this.tabAppointment.Text = "Appointment";
     
    147151            // groupBox3
    148152            //
     153            this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     154                        | System.Windows.Forms.AnchorStyles.Right)));
    149155            this.groupBox3.Controls.Add(this.lblClinic);
    150156            this.groupBox3.Controls.Add(this.label15);
     
    155161            this.groupBox3.Controls.Add(this.label4);
    156162            this.groupBox3.Controls.Add(this.label3);
    157             this.groupBox3.Location = new System.Drawing.Point(8, 136);
     163            this.groupBox3.Location = new System.Drawing.Point(8, 107);
    158164            this.groupBox3.Name = "groupBox3";
    159             this.groupBox3.Size = new System.Drawing.Size(439, 168);
     165            this.groupBox3.Size = new System.Drawing.Size(439, 141);
    160166            this.groupBox3.TabIndex = 13;
    161167            this.groupBox3.TabStop = false;
     
    185191            this.txtNote.Multiline = true;
    186192            this.txtNote.Name = "txtNote";
    187             this.txtNote.Size = new System.Drawing.Size(353, 88);
     193            this.txtNote.Size = new System.Drawing.Size(353, 60);
    188194            this.txtNote.TabIndex = 17;
    189195            //
     
    235241            this.groupBox1.Controls.Add(this.label14);
    236242            this.groupBox1.Controls.Add(this.txtHRN);
    237             this.groupBox1.Controls.Add(this.txtCommunity);
    238             this.groupBox1.Controls.Add(this.label7);
    239243            this.groupBox1.Controls.Add(this.label6);
    240244            this.groupBox1.Controls.Add(this.txtSSN);
     
    245249            this.groupBox1.Location = new System.Drawing.Point(8, 8);
    246250            this.groupBox1.Name = "groupBox1";
    247             this.groupBox1.Size = new System.Drawing.Size(439, 120);
     251            this.groupBox1.Size = new System.Drawing.Size(439, 93);
    248252            this.groupBox1.TabIndex = 12;
    249253            this.groupBox1.TabStop = false;
     
    267271            this.txtHRN.TabIndex = 12;
    268272            //
    269             // txtCommunity
    270             //
    271             this.txtCommunity.Location = new System.Drawing.Point(96, 88);
    272             this.txtCommunity.Name = "txtCommunity";
    273             this.txtCommunity.ReadOnly = true;
    274             this.txtCommunity.Size = new System.Drawing.Size(337, 20);
    275             this.txtCommunity.TabIndex = 10;
    276             //
    277             // label7
    278             //
    279             this.label7.Location = new System.Drawing.Point(24, 88);
    280             this.label7.Name = "label7";
    281             this.label7.Size = new System.Drawing.Size(72, 16);
    282             this.label7.TabIndex = 11;
    283             this.label7.Text = "Community:";
    284             this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
    285             //
    286273            // label6
    287274            //
     
    340327            this.tabPatientInfo.Location = new System.Drawing.Point(4, 22);
    341328            this.tabPatientInfo.Name = "tabPatientInfo";
    342             this.tabPatientInfo.Size = new System.Drawing.Size(455, 348);
     329            this.tabPatientInfo.Size = new System.Drawing.Size(463, 500);
    343330            this.tabPatientInfo.TabIndex = 0;
    344331            this.tabPatientInfo.Text = "Contact Information";
     
    470457            //
    471458            this.panel1.Controls.Add(this.cmdPrintLetter);
    472             this.panel1.Controls.Add(this.cmdViewAppointments);
    473459            this.panel1.Controls.Add(this.cmdCancel);
    474460            this.panel1.Controls.Add(this.cmdOK);
    475461            this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
    476             this.panel1.Location = new System.Drawing.Point(0, 334);
     462            this.panel1.Location = new System.Drawing.Point(0, 486);
    477463            this.panel1.Name = "panel1";
    478             this.panel1.Size = new System.Drawing.Size(463, 40);
     464            this.panel1.Size = new System.Drawing.Size(471, 40);
    479465            this.panel1.TabIndex = 1;
    480466            //
     
    482468            //
    483469            this.cmdPrintLetter.CausesValidation = false;
    484             this.cmdPrintLetter.Location = new System.Drawing.Point(208, 8);
     470            this.cmdPrintLetter.Location = new System.Drawing.Point(12, 9);
    485471            this.cmdPrintLetter.Name = "cmdPrintLetter";
    486472            this.cmdPrintLetter.Size = new System.Drawing.Size(68, 24);
     
    488474            this.cmdPrintLetter.Text = "Print Letter";
    489475            this.cmdPrintLetter.Click += new System.EventHandler(this.cmdPrintLetter_Click);
    490             //
    491             // cmdViewAppointments
    492             //
    493             this.cmdViewAppointments.CausesValidation = false;
    494             this.cmdViewAppointments.Location = new System.Drawing.Point(12, 8);
    495             this.cmdViewAppointments.Name = "cmdViewAppointments";
    496             this.cmdViewAppointments.Size = new System.Drawing.Size(112, 24);
    497             this.cmdViewAppointments.TabIndex = 2;
    498             this.cmdViewAppointments.Text = "View Appointments";
    499             this.cmdViewAppointments.Click += new System.EventHandler(this.cmdViewAppointments_Click);
    500476            //
    501477            // cmdCancel
     
    518494            this.cmdOK.Click += new System.EventHandler(this.cmdOK_Click);
    519495            //
     496            // groupBox4
     497            //
     498            this.groupBox4.Location = new System.Drawing.Point(8, 254);
     499            this.groupBox4.Name = "groupBox4";
     500            this.groupBox4.Size = new System.Drawing.Size(439, 204);
     501            this.groupBox4.TabIndex = 14;
     502            this.groupBox4.TabStop = false;
     503            this.groupBox4.Text = "Other Appointments";
     504            //
     505            // patientApptsBindingSource
     506            //
     507            this.patientApptsBindingSource.DataMember = "PatientAppts";
     508            this.patientApptsBindingSource.DataSource = this.dsPatientApptDisplay2BindingSource;
     509            //
     510            // dsPatientApptDisplay2BindingSource
     511            //
     512            this.dsPatientApptDisplay2BindingSource.DataSource = this.dsPatientApptDisplay2;
     513            this.dsPatientApptDisplay2BindingSource.Position = 0;
     514            //
     515            // dsPatientApptDisplay2
     516            //
     517            this.dsPatientApptDisplay2.DataSetName = "dsPatientApptDisplay2";
     518            this.dsPatientApptDisplay2.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     519            //
    520520            // DAppointPage
    521521            //
     
    523523            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
    524524            this.CancelButton = this.cmdCancel;
    525             this.ClientSize = new System.Drawing.Size(463, 374);
     525            this.ClientSize = new System.Drawing.Size(471, 526);
    526526            this.Controls.Add(this.panel1);
    527527            this.Controls.Add(this.tabControl1);
     
    541541            this.groupBox2.PerformLayout();
    542542            this.panel1.ResumeLayout(false);
     543            ((System.ComponentModel.ISupportInitialize)(this.patientApptsBindingSource)).EndInit();
     544            ((System.ComponentModel.ISupportInitialize)(this.dsPatientApptDisplay2BindingSource)).EndInit();
     545            ((System.ComponentModel.ISupportInitialize)(this.dsPatientApptDisplay2)).EndInit();
    543546            this.ResumeLayout(false);
    544547
     
    607610
    608611                                this.UpdateDialogData(true);
    609                         }
     612                Control UC = new UCPatientAppts(m_DocManager, int.Parse(m_sPatientIEN));
     613                UC.Dock = DockStyle.Fill;
     614                groupBox4.Controls.Add(UC);
     615            }
    610616                        catch(Exception e)
    611617                        {
Note: See TracChangeset for help on using the changeset viewer.