Ignore:
Timestamp:
May 21, 2010, 9:03:45 PM (14 years ago)
Author:
Sam Habiel
Message:

Removal of Crystal Reports
Partial Rework of Clinic Patient List report
Other reports that used Crystal don't work yet.
Fixes for Strongly typed DataTables (change the RESOURCEID from uint to int) to support table merge from untyped table.
Support for command line arguments: /s= for server /p= for port /a= for access code /v= for verify code
Only the following combinations work: none; /s and /p; /s, /p, /a, /v

File:
1 edited

Legend:

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

    r753 r772  
    5353                private System.Windows.Forms.Label label14;
    5454        private System.Windows.Forms.TextBox txtHRN;
    55         private System.Windows.Forms.Button cmdPrintLetter;
    5655        private GroupBox groupBox4;
    5756        private BindingSource dsPatientApptDisplay2BindingSource;
     
    7574            this.tabControl1 = new System.Windows.Forms.TabControl();
    7675            this.tabAppointment = new System.Windows.Forms.TabPage();
     76            this.groupBox4 = new System.Windows.Forms.GroupBox();
    7777            this.groupBox3 = new System.Windows.Forms.GroupBox();
    7878            this.lblClinic = new System.Windows.Forms.Label();
     
    108108            this.txtStreet = new System.Windows.Forms.TextBox();
    109109            this.panel1 = new System.Windows.Forms.Panel();
    110             this.cmdPrintLetter = new System.Windows.Forms.Button();
    111110            this.cmdCancel = new System.Windows.Forms.Button();
    112111            this.cmdOK = new System.Windows.Forms.Button();
    113             this.groupBox4 = new System.Windows.Forms.GroupBox();
    114112            this.patientApptsBindingSource = new System.Windows.Forms.BindingSource(this.components);
    115113            this.dsPatientApptDisplay2BindingSource = new System.Windows.Forms.BindingSource(this.components);
     
    148146            this.tabAppointment.TabIndex = 1;
    149147            this.tabAppointment.Text = "Appointment";
     148            //
     149            // groupBox4
     150            //
     151            this.groupBox4.Location = new System.Drawing.Point(8, 254);
     152            this.groupBox4.Name = "groupBox4";
     153            this.groupBox4.Size = new System.Drawing.Size(439, 204);
     154            this.groupBox4.TabIndex = 14;
     155            this.groupBox4.TabStop = false;
     156            this.groupBox4.Text = "Other Appointments";
    150157            //
    151158            // groupBox3
     
    456463            // panel1
    457464            //
    458             this.panel1.Controls.Add(this.cmdPrintLetter);
    459465            this.panel1.Controls.Add(this.cmdCancel);
    460466            this.panel1.Controls.Add(this.cmdOK);
     
    465471            this.panel1.TabIndex = 1;
    466472            //
    467             // cmdPrintLetter
    468             //
    469             this.cmdPrintLetter.CausesValidation = false;
    470             this.cmdPrintLetter.Location = new System.Drawing.Point(12, 9);
    471             this.cmdPrintLetter.Name = "cmdPrintLetter";
    472             this.cmdPrintLetter.Size = new System.Drawing.Size(68, 24);
    473             this.cmdPrintLetter.TabIndex = 3;
    474             this.cmdPrintLetter.Text = "Print Letter";
    475             this.cmdPrintLetter.Click += new System.EventHandler(this.cmdPrintLetter_Click);
    476             //
    477473            // cmdCancel
    478474            //
     
    493489            this.cmdOK.Text = "OK";
    494490            this.cmdOK.Click += new System.EventHandler(this.cmdOK_Click);
    495             //
    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";
    504491            //
    505492            // patientApptsBindingSource
     
    530517            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
    531518            this.Text = "Patient Appointment";
    532             this.Load += new System.EventHandler(this.DAppointPage_Load);
    533519            this.tabControl1.ResumeLayout(false);
    534520            this.tabAppointment.ResumeLayout(false);
     
    674660                }
    675661
    676                 private void cmdViewAppointments_Click(object sender, System.EventArgs e)
    677                 {
    678                         try
    679                         {
    680                                 Debug.Assert(m_sPatientIEN != "");
    681                                 int nPatientID = Convert.ToInt32(m_sPatientIEN);
    682                                 ViewPatientAppointments(nPatientID);
    683                         }
    684                         catch (Exception ex)
    685                         {
    686                                 MessageBox.Show(this, ex.Message, "Clinical Scheduling", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
    687                         }
    688                 }
    689 
    690                 public void ViewPatientAppointments(int PatientID)
    691                 {
    692                         DPatientApptDisplay dPa = new DPatientApptDisplay();
    693 
    694                         dPa.InitializeForm(this.DocManager, PatientID);
    695 
    696                         if (dPa.ShowDialog(this) != DialogResult.Cancel)
    697                         {
    698                                 return;
    699                         }
    700                 }
    701 
    702 
    703                 private void cmdPrintLetter_Click(object sender, System.EventArgs e)
    704                 {
    705                         try
    706                         {
    707                                 Debug.Assert(m_sPatientIEN != "");
    708                                 int nPatientID = Convert.ToInt32(m_sPatientIEN);
    709                                 PrintPatientLetter(nPatientID);
    710                         }
    711                         catch (Exception ex)
    712                         {
    713                                 MessageBox.Show(this, ex.Message, "Clinical Scheduling", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
    714                         }               
    715                 }
    716 
    717                 private void PrintPatientLetter(int PatientID)
    718                 {
    719                         //Print letter for individual patient
    720                         try
    721                         {
    722                                 DPatientLetter dPa = new DPatientLetter();
    723                                 dPa.InitializeForm(DocManager, PatientID);
    724 
    725                                 if (dPa.ShowDialog(this) != DialogResult.Cancel)
    726                                 {
    727                                         return;
    728                                 }
    729                         }
    730                         catch (Exception ex)
    731                         {
    732                                 throw ex;
    733                         }
    734                 }
    735 
    736                 private void DAppointPage_Load(object sender, System.EventArgs e)
    737                 {
    738                         cmdPrintLetter.Enabled = !(m_dStartTime < DateTime.Today);
    739                 }
    740662
    741663                #endregion //Methods
Note: See TracChangeset for help on using the changeset viewer.