Ignore:
Timestamp:
Mar 21, 2011, 8:47:45 AM (13 years ago)
Author:
Sam Habiel
Message:

CGDocument:

CGDocumentManager:

CGView: (Changes to support printing of Appointment Slip)

  • Changed name and text of context menu to say "print appointment slip"
  • Logic to Print Appointment Slip

CustomPrinting.cs renamed to Printing.cs; old Printing.Cs removed.
DAppointPage:

  • New checkbox to request printing of Appointment Slip
  • Sex of patient now pulled and included in form.

DPatientLetter:

  • Redirected to use new Printing framework.

Patient:

Printing:

File:
1 edited

Legend:

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

    r1106 r1110  
    6464        private TextBox txtCountry;
    6565        private CheckBox chkPrint;
     66        private Label label18;
     67        private TextBox txtSex;
    6668        private IContainer components;
    6769
     
    121123            this.txtStreet = new System.Windows.Forms.TextBox();
    122124            this.panel1 = new System.Windows.Forms.Panel();
     125            this.chkPrint = new System.Windows.Forms.CheckBox();
    123126            this.cmdCancel = new System.Windows.Forms.Button();
    124127            this.cmdOK = new System.Windows.Forms.Button();
     
    126129            this.dsPatientApptDisplay2BindingSource = new System.Windows.Forms.BindingSource(this.components);
    127130            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();
    129133            this.tabControl1.SuspendLayout();
    130134            this.tabAppointment.SuspendLayout();
     
    260264            // groupBox1
    261265            //
     266            this.groupBox1.Controls.Add(this.txtSex);
     267            this.groupBox1.Controls.Add(this.label18);
    262268            this.groupBox1.Controls.Add(this.label14);
    263269            this.groupBox1.Controls.Add(this.txtHRN);
     
    277283            // label14
    278284            //
    279             this.label14.Location = new System.Drawing.Point(56, 64);
     285            this.label14.Location = new System.Drawing.Point(50, 64);
    280286            this.label14.Name = "label14";
    281287            this.label14.Size = new System.Drawing.Size(40, 16);
     
    294300            // label6
    295301            //
    296             this.label6.Location = new System.Drawing.Point(224, 40);
     302            this.label6.Location = new System.Drawing.Point(227, 65);
    297303            this.label6.Name = "label6";
    298304            this.label6.Size = new System.Drawing.Size(40, 16);
     
    303309            // txtPID
    304310            //
    305             this.txtPID.Location = new System.Drawing.Point(272, 40);
     311            this.txtPID.Location = new System.Drawing.Point(272, 63);
    306312            this.txtPID.Name = "txtPID";
    307313            this.txtPID.ReadOnly = true;
     
    311317            // label5
    312318            //
    313             this.label5.Location = new System.Drawing.Point(64, 40);
     319            this.label5.Location = new System.Drawing.Point(58, 41);
    314320            this.label5.Name = "label5";
    315321            this.label5.Size = new System.Drawing.Size(32, 16);
     
    328334            // label2
    329335            //
    330             this.label2.Location = new System.Drawing.Point(56, 16);
     336            this.label2.Location = new System.Drawing.Point(50, 16);
    331337            this.label2.Name = "label2";
    332338            this.label2.Size = new System.Drawing.Size(40, 16);
     
    543549            this.panel1.TabIndex = 1;
    544550            //
     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            //
    545561            // cmdCancel
    546562            //
     
    577593            this.dsPatientApptDisplay2.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
    578594            //
    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;
    588612            //
    589613            // DAppointPage
     
    623647
    624648                private string                  m_sPatientName;
     649        private Sex             m_enumPatientSex;
    625650                private string                  m_sPatientHRN;
    626651                private string                  m_sPatientIEN;
     
    674699                                DataRow r = tb.Rows[0];
    675700                                this.m_sPatientName = r["NAME"].ToString();
     701                this.m_enumPatientSex = r["SEX"].ToString() == "MALE" ? Sex.Male : Sex.Female;
    676702                                this.m_sPatientHRN = r["HRN"].ToString();
    677703                                this.m_sPatientIEN = r["IEN"].ToString();
     
    716742                                txtNote.Text = this.m_sNote;
    717743                                txtPatientName.Text = m_sPatientName;
     744                txtSex.Text = m_enumPatientSex.ToString();
    718745                                txtPhoneHome.Text = this.m_sPhoneHome;
    719746                                txtPhoneOffice.Text = this.m_sPhoneOffice;
     
    797824                    DFN = Int32.Parse(m_sPatientIEN),
    798825                    Name = m_sPatientName,
     826                    Sex = m_enumPatientSex,
    799827                    DOB = m_dPatientDOB,
    800828                    ID = m_sPatientPID,
Note: See TracChangeset for help on using the changeset viewer.