Added tabs to the view info form, added a split container to each tab in the same form, and also added a couple labels and tet boxes into the patient info tab in the same form.

This commit is contained in:
Adam McCane 2024-02-02 17:24:49 -05:00
parent 14317064ea
commit 7b0dd09368
5 changed files with 251 additions and 13 deletions

35
.claudiaideconfig Normal file
View File

@ -0,0 +1,35 @@
{
"BackgroundImageAbsolutePath": "c:\\users\\adam mccane\\appdata\\local\\microsoft\\visualstudio\\17.0_2394d4dc\\extensions\\yswmbonb.gqq\\Images\\background.png",
"BackgroundImagesDirectoryAbsolutePath": "c:\\users\\adam mccane\\appdata\\local\\microsoft\\visualstudio\\17.0_2394d4dc\\extensions\\yswmbonb.gqq\\Images",
"BlurMethod": 0,
"BlurRadius": 0,
"ExpandToIDE": false,
"Extensions": ".png, .jpg, .gif, .bmp",
"ImageBackgroundType": 0,
"ImageFadeAnimationInterval": "PT5S",
"ImageStretch": 0,
"IsLimitToMainlyEditorWindow": false,
"IsTransparentToContentMargin": false,
"IsTransparentToStickyScroll": false,
"LoopSlideshow": true,
"MaxHeight": 0,
"MaxWidth": 0,
"Opacity": 0.35,
"PositionHorizon": 1,
"PositionVertical": 1,
"ShuffleSlideshow": false,
"SoftEdgeX": 0,
"SoftEdgeY": 0,
"TileMode": 0,
"UpdateImageInterval": "PT1M",
"ViewBoxPointX": 0,
"ViewBoxPointY": 0,
"ViewPortHeight": 1,
"ViewPortPointX": 0,
"ViewPortPointY": 0,
"ViewPortWidth": 1,
"WebApiDownloadInterval": "PT5M",
"WebApiEndpoint": "",
"WebApiJsonKey": "",
"WebSingleUrl": ""
}

View File

@ -16,7 +16,7 @@ namespace Louis__Pharmacy_CNSA212_FP
{ {
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmAddPatientPhysician()); Application.Run(new frmInfo());
} }
} }
} }

View File

@ -30,28 +30,216 @@ namespace Louis__Pharmacy_CNSA212_FP
private void InitializeComponent() private void InitializeComponent()
{ {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmInfo)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmInfo));
this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.mnusNavigation = new System.Windows.Forms.MenuStrip();
this.navigationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.addUpdatePatientAndPhysicianToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.refillInfoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.prescriptionInfoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.tbcInfo = new System.Windows.Forms.TabControl();
this.tbpPhysician = new System.Windows.Forms.TabPage();
this.splcPhysician = new System.Windows.Forms.SplitContainer();
this.tbpPatient = new System.Windows.Forms.TabPage();
this.tbpPrescription = new System.Windows.Forms.TabPage();
this.splcPrescription = new System.Windows.Forms.SplitContainer();
this.splcPatient = new System.Windows.Forms.SplitContainer();
this.lblPatientFirst = new System.Windows.Forms.Label();
this.lblPatientLast = new System.Windows.Forms.Label();
this.txtPatientFirst = new System.Windows.Forms.TextBox();
this.txtPatientLast = new System.Windows.Forms.TextBox();
this.mnusNavigation.SuspendLayout();
this.tbcInfo.SuspendLayout();
this.tbpPhysician.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splcPhysician)).BeginInit();
this.splcPhysician.SuspendLayout();
this.tbpPatient.SuspendLayout();
this.tbpPrescription.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splcPrescription)).BeginInit();
this.splcPrescription.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splcPatient)).BeginInit();
this.splcPatient.Panel1.SuspendLayout();
this.splcPatient.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// toolStrip1 // mnusNavigation
// //
this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.mnusNavigation.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStrip1.Name = "toolStrip1"; this.navigationToolStripMenuItem});
this.toolStrip1.Size = new System.Drawing.Size(690, 25); this.mnusNavigation.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.TabIndex = 0; this.mnusNavigation.Name = "mnusNavigation";
this.toolStrip1.Text = "toolStrip1"; this.mnusNavigation.Size = new System.Drawing.Size(690, 24);
this.mnusNavigation.TabIndex = 0;
this.mnusNavigation.Text = "Navigation";
//
// navigationToolStripMenuItem
//
this.navigationToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.addUpdatePatientAndPhysicianToolStripMenuItem,
this.refillInfoToolStripMenuItem,
this.prescriptionInfoToolStripMenuItem});
this.navigationToolStripMenuItem.Name = "navigationToolStripMenuItem";
this.navigationToolStripMenuItem.Size = new System.Drawing.Size(77, 20);
this.navigationToolStripMenuItem.Text = "Navigation";
//
// addUpdatePatientAndPhysicianToolStripMenuItem
//
this.addUpdatePatientAndPhysicianToolStripMenuItem.Name = "addUpdatePatientAndPhysicianToolStripMenuItem";
this.addUpdatePatientAndPhysicianToolStripMenuItem.Size = new System.Drawing.Size(255, 22);
this.addUpdatePatientAndPhysicianToolStripMenuItem.Text = "Add/Update Patient and Physician";
//
// refillInfoToolStripMenuItem
//
this.refillInfoToolStripMenuItem.Name = "refillInfoToolStripMenuItem";
this.refillInfoToolStripMenuItem.Size = new System.Drawing.Size(255, 22);
this.refillInfoToolStripMenuItem.Text = "Refill Info";
//
// prescriptionInfoToolStripMenuItem
//
this.prescriptionInfoToolStripMenuItem.Name = "prescriptionInfoToolStripMenuItem";
this.prescriptionInfoToolStripMenuItem.Size = new System.Drawing.Size(255, 22);
this.prescriptionInfoToolStripMenuItem.Text = "Prescription Info";
//
// tbcInfo
//
this.tbcInfo.Controls.Add(this.tbpPatient);
this.tbcInfo.Controls.Add(this.tbpPrescription);
this.tbcInfo.Controls.Add(this.tbpPhysician);
this.tbcInfo.Location = new System.Drawing.Point(12, 27);
this.tbcInfo.Name = "tbcInfo";
this.tbcInfo.SelectedIndex = 0;
this.tbcInfo.Size = new System.Drawing.Size(666, 341);
this.tbcInfo.TabIndex = 1;
//
// tbpPhysician
//
this.tbpPhysician.Controls.Add(this.splcPhysician);
this.tbpPhysician.Location = new System.Drawing.Point(4, 22);
this.tbpPhysician.Name = "tbpPhysician";
this.tbpPhysician.Padding = new System.Windows.Forms.Padding(3);
this.tbpPhysician.Size = new System.Drawing.Size(658, 315);
this.tbpPhysician.TabIndex = 2;
this.tbpPhysician.Text = "Physician Info";
this.tbpPhysician.UseVisualStyleBackColor = true;
//
// splcPhysician
//
this.splcPhysician.Dock = System.Windows.Forms.DockStyle.Fill;
this.splcPhysician.Location = new System.Drawing.Point(3, 3);
this.splcPhysician.Name = "splcPhysician";
this.splcPhysician.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splcPhysician.Panel1
//
this.splcPhysician.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.splcPhysician.Size = new System.Drawing.Size(652, 309);
this.splcPhysician.SplitterDistance = 158;
this.splcPhysician.TabIndex = 0;
//
// tbpPatient
//
this.tbpPatient.Controls.Add(this.splcPatient);
this.tbpPatient.Location = new System.Drawing.Point(4, 22);
this.tbpPatient.Name = "tbpPatient";
this.tbpPatient.Size = new System.Drawing.Size(658, 315);
this.tbpPatient.TabIndex = 3;
this.tbpPatient.Text = "Patient Info";
this.tbpPatient.UseVisualStyleBackColor = true;
//
// tbpPrescription
//
this.tbpPrescription.Controls.Add(this.splcPrescription);
this.tbpPrescription.Location = new System.Drawing.Point(4, 22);
this.tbpPrescription.Name = "tbpPrescription";
this.tbpPrescription.Size = new System.Drawing.Size(658, 315);
this.tbpPrescription.TabIndex = 4;
this.tbpPrescription.Text = "Prescription Info";
this.tbpPrescription.UseVisualStyleBackColor = true;
//
// splcPrescription
//
this.splcPrescription.Dock = System.Windows.Forms.DockStyle.Fill;
this.splcPrescription.Location = new System.Drawing.Point(0, 0);
this.splcPrescription.Name = "splcPrescription";
this.splcPrescription.Orientation = System.Windows.Forms.Orientation.Horizontal;
this.splcPrescription.Size = new System.Drawing.Size(658, 315);
this.splcPrescription.SplitterDistance = 160;
this.splcPrescription.TabIndex = 0;
//
// splcPatient
//
this.splcPatient.Dock = System.Windows.Forms.DockStyle.Fill;
this.splcPatient.Location = new System.Drawing.Point(0, 0);
this.splcPatient.Name = "splcPatient";
this.splcPatient.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splcPatient.Panel1
//
this.splcPatient.Panel1.Controls.Add(this.txtPatientLast);
this.splcPatient.Panel1.Controls.Add(this.txtPatientFirst);
this.splcPatient.Panel1.Controls.Add(this.lblPatientLast);
this.splcPatient.Panel1.Controls.Add(this.lblPatientFirst);
this.splcPatient.Size = new System.Drawing.Size(658, 315);
this.splcPatient.SplitterDistance = 159;
this.splcPatient.TabIndex = 0;
//
// lblPatientFirst
//
this.lblPatientFirst.AutoSize = true;
this.lblPatientFirst.Location = new System.Drawing.Point(44, 33);
this.lblPatientFirst.Name = "lblPatientFirst";
this.lblPatientFirst.Size = new System.Drawing.Size(60, 13);
this.lblPatientFirst.TabIndex = 0;
this.lblPatientFirst.Text = "First Name:";
//
// lblPatientLast
//
this.lblPatientLast.AutoSize = true;
this.lblPatientLast.Location = new System.Drawing.Point(47, 67);
this.lblPatientLast.Name = "lblPatientLast";
this.lblPatientLast.Size = new System.Drawing.Size(61, 13);
this.lblPatientLast.TabIndex = 1;
this.lblPatientLast.Text = "Last Name:";
//
// txtPatientFirst
//
this.txtPatientFirst.Location = new System.Drawing.Point(141, 33);
this.txtPatientFirst.Name = "txtPatientFirst";
this.txtPatientFirst.Size = new System.Drawing.Size(100, 20);
this.txtPatientFirst.TabIndex = 2;
//
// txtPatientLast
//
this.txtPatientLast.Location = new System.Drawing.Point(141, 67);
this.txtPatientLast.Name = "txtPatientLast";
this.txtPatientLast.Size = new System.Drawing.Size(100, 20);
this.txtPatientLast.TabIndex = 3;
// //
// frmInfo // frmInfo
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(690, 380); this.ClientSize = new System.Drawing.Size(690, 380);
this.Controls.Add(this.toolStrip1); this.Controls.Add(this.tbcInfo);
this.Controls.Add(this.mnusNavigation);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.MainMenuStrip = this.mnusNavigation;
this.Margin = new System.Windows.Forms.Padding(2);
this.Name = "frmInfo"; this.Name = "frmInfo";
this.Text = "Louis\' Pharmacy - View Patient / Prescription Info"; this.Text = "Louis\' Pharmacy - View Patient / Prescription Info";
this.Load += new System.EventHandler(this.frmInfo_Load); this.Load += new System.EventHandler(this.frmInfo_Load);
this.mnusNavigation.ResumeLayout(false);
this.mnusNavigation.PerformLayout();
this.tbcInfo.ResumeLayout(false);
this.tbpPhysician.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splcPhysician)).EndInit();
this.splcPhysician.ResumeLayout(false);
this.tbpPatient.ResumeLayout(false);
this.tbpPrescription.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splcPrescription)).EndInit();
this.splcPrescription.ResumeLayout(false);
this.splcPatient.Panel1.ResumeLayout(false);
this.splcPatient.Panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splcPatient)).EndInit();
this.splcPatient.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@ -59,6 +247,21 @@ namespace Louis__Pharmacy_CNSA212_FP
#endregion #endregion
private System.Windows.Forms.ToolStrip toolStrip1; private System.Windows.Forms.MenuStrip mnusNavigation;
private System.Windows.Forms.ToolStripMenuItem navigationToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem addUpdatePatientAndPhysicianToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem refillInfoToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem prescriptionInfoToolStripMenuItem;
private System.Windows.Forms.TabControl tbcInfo;
private System.Windows.Forms.TabPage tbpPhysician;
private System.Windows.Forms.SplitContainer splcPhysician;
private System.Windows.Forms.TabPage tbpPatient;
private System.Windows.Forms.TabPage tbpPrescription;
private System.Windows.Forms.SplitContainer splcPatient;
private System.Windows.Forms.SplitContainer splcPrescription;
private System.Windows.Forms.TextBox txtPatientFirst;
private System.Windows.Forms.Label lblPatientLast;
private System.Windows.Forms.Label lblPatientFirst;
private System.Windows.Forms.TextBox txtPatientLast;
} }
} }

View File

@ -20,7 +20,7 @@ namespace Louis__Pharmacy_CNSA212_FP
private void frmInfo_Load(object sender, EventArgs e) private void frmInfo_Load(object sender, EventArgs e)
{ {
// TODO: This line of code loads data into the 'fPCASDataSet.patientCount' table. You can move, or remove it, as needed. // TODO: This line of code loads data into the 'fPCASDataSet.patientCount' table. You can move, or remove it, as needed.
this.patientCountTableAdapter.Fill(this.fPCASDataSet.patientCount); //this.patientCountTableAdapter.Fill(this.FPCASDataSet.patientCount);
} }
} }

View File

@ -117,7 +117,7 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="mnusNavigation.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />