Named the search button, labels, and text boxes in the refill form.

This commit is contained in:
Adam McCane 2024-02-16 11:08:51 -05:00
parent 7b539032a9
commit b594f2ab7f
3 changed files with 297 additions and 277 deletions

View File

@ -34,8 +34,8 @@ namespace Louis__Pharmacy_CNSA212_FP
System.Windows.Forms.Label lblPatientLast; System.Windows.Forms.Label lblPatientLast;
System.Windows.Forms.Label lblPhysicianFirst; System.Windows.Forms.Label lblPhysicianFirst;
System.Windows.Forms.Label lblPhysicianLast; System.Windows.Forms.Label lblPhysicianLast;
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmInfo)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmInfo));
this.tbcInfo = new System.Windows.Forms.TabControl(); this.tbcInfo = new System.Windows.Forms.TabControl();
this.tbpPatient = new System.Windows.Forms.TabPage(); this.tbpPatient = new System.Windows.Forms.TabPage();
@ -46,21 +46,6 @@ namespace Louis__Pharmacy_CNSA212_FP
this.txtPatientFirst = new System.Windows.Forms.TextBox(); this.txtPatientFirst = new System.Windows.Forms.TextBox();
this.btnPatientSearch = new System.Windows.Forms.Button(); this.btnPatientSearch = new System.Windows.Forms.Button();
this.dgvPatient = new System.Windows.Forms.DataGridView(); this.dgvPatient = new System.Windows.Forms.DataGridView();
this.pat_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.FirstName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.LastName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.MiddleInitials = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.City = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.UsState = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Zip = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Ibs = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Height_feet = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Height_inches = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Ailment = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DOB = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.PhoneNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Gender = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Medications = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.cmuPatient = new System.Windows.Forms.ContextMenuStrip(this.components); this.cmuPatient = new System.Windows.Forms.ContextMenuStrip(this.components);
this.cmuPatientNew = new System.Windows.Forms.ToolStripMenuItem(); this.cmuPatientNew = new System.Windows.Forms.ToolStripMenuItem();
this.cmuPatientEdit = new System.Windows.Forms.ToolStripMenuItem(); this.cmuPatientEdit = new System.Windows.Forms.ToolStripMenuItem();
@ -107,6 +92,21 @@ namespace Louis__Pharmacy_CNSA212_FP
this.cmuPhysicianNew = new System.Windows.Forms.ToolStripMenuItem(); this.cmuPhysicianNew = new System.Windows.Forms.ToolStripMenuItem();
this.cmuPhysicianEdit = new System.Windows.Forms.ToolStripMenuItem(); this.cmuPhysicianEdit = new System.Windows.Forms.ToolStripMenuItem();
this.cmuPhysicianDelete = new System.Windows.Forms.ToolStripMenuItem(); this.cmuPhysicianDelete = new System.Windows.Forms.ToolStripMenuItem();
this.pat_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.FirstName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.LastName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.MiddleInitials = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.City = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.UsState = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Zip = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Ibs = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Height_feet = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Height_inches = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Ailment = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DOB = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.PhoneNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Gender = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Medications = new System.Windows.Forms.DataGridViewTextBoxColumn();
lblPatientFirst = new System.Windows.Forms.Label(); lblPatientFirst = new System.Windows.Forms.Label();
lblPatientLast = new System.Windows.Forms.Label(); lblPatientLast = new System.Windows.Forms.Label();
lblPhysicianFirst = new System.Windows.Forms.Label(); lblPhysicianFirst = new System.Windows.Forms.Label();
@ -138,40 +138,36 @@ namespace Louis__Pharmacy_CNSA212_FP
// lblPatientFirst // lblPatientFirst
// //
lblPatientFirst.AutoSize = true; lblPatientFirst.AutoSize = true;
lblPatientFirst.Location = new System.Drawing.Point(27, 34); lblPatientFirst.Location = new System.Drawing.Point(20, 28);
lblPatientFirst.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
lblPatientFirst.Name = "lblPatientFirst"; lblPatientFirst.Name = "lblPatientFirst";
lblPatientFirst.Size = new System.Drawing.Size(80, 17); lblPatientFirst.Size = new System.Drawing.Size(60, 13);
lblPatientFirst.TabIndex = 4; lblPatientFirst.TabIndex = 4;
lblPatientFirst.Text = "First Name:"; lblPatientFirst.Text = "First Name:";
// //
// lblPatientLast // lblPatientLast
// //
lblPatientLast.AutoSize = true; lblPatientLast.AutoSize = true;
lblPatientLast.Location = new System.Drawing.Point(27, 85); lblPatientLast.Location = new System.Drawing.Point(20, 69);
lblPatientLast.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
lblPatientLast.Name = "lblPatientLast"; lblPatientLast.Name = "lblPatientLast";
lblPatientLast.Size = new System.Drawing.Size(80, 17); lblPatientLast.Size = new System.Drawing.Size(61, 13);
lblPatientLast.TabIndex = 5; lblPatientLast.TabIndex = 5;
lblPatientLast.Text = "Last Name:"; lblPatientLast.Text = "Last Name:";
// //
// lblPhysicianFirst // lblPhysicianFirst
// //
lblPhysicianFirst.AutoSize = true; lblPhysicianFirst.AutoSize = true;
lblPhysicianFirst.Location = new System.Drawing.Point(32, 32); lblPhysicianFirst.Location = new System.Drawing.Point(24, 26);
lblPhysicianFirst.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
lblPhysicianFirst.Name = "lblPhysicianFirst"; lblPhysicianFirst.Name = "lblPhysicianFirst";
lblPhysicianFirst.Size = new System.Drawing.Size(80, 17); lblPhysicianFirst.Size = new System.Drawing.Size(60, 13);
lblPhysicianFirst.TabIndex = 4; lblPhysicianFirst.TabIndex = 4;
lblPhysicianFirst.Text = "First Name:"; lblPhysicianFirst.Text = "First Name:";
// //
// lblPhysicianLast // lblPhysicianLast
// //
lblPhysicianLast.AutoSize = true; lblPhysicianLast.AutoSize = true;
lblPhysicianLast.Location = new System.Drawing.Point(31, 86); lblPhysicianLast.Location = new System.Drawing.Point(23, 70);
lblPhysicianLast.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
lblPhysicianLast.Name = "lblPhysicianLast"; lblPhysicianLast.Name = "lblPhysicianLast";
lblPhysicianLast.Size = new System.Drawing.Size(80, 17); lblPhysicianLast.Size = new System.Drawing.Size(61, 13);
lblPhysicianLast.TabIndex = 5; lblPhysicianLast.TabIndex = 5;
lblPhysicianLast.Text = "Last Name:"; lblPhysicianLast.Text = "Last Name:";
// //
@ -180,20 +176,18 @@ namespace Louis__Pharmacy_CNSA212_FP
this.tbcInfo.Controls.Add(this.tbpPatient); this.tbcInfo.Controls.Add(this.tbpPatient);
this.tbcInfo.Controls.Add(this.tbpPrescription); this.tbcInfo.Controls.Add(this.tbpPrescription);
this.tbcInfo.Controls.Add(this.tbpPhysician); this.tbcInfo.Controls.Add(this.tbpPhysician);
this.tbcInfo.Location = new System.Drawing.Point(16, 15); this.tbcInfo.Location = new System.Drawing.Point(12, 12);
this.tbcInfo.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tbcInfo.Name = "tbcInfo"; this.tbcInfo.Name = "tbcInfo";
this.tbcInfo.SelectedIndex = 0; this.tbcInfo.SelectedIndex = 0;
this.tbcInfo.Size = new System.Drawing.Size(888, 543); this.tbcInfo.Size = new System.Drawing.Size(666, 441);
this.tbcInfo.TabIndex = 1; this.tbcInfo.TabIndex = 1;
// //
// tbpPatient // tbpPatient
// //
this.tbpPatient.Controls.Add(this.splcPatient); this.tbpPatient.Controls.Add(this.splcPatient);
this.tbpPatient.Location = new System.Drawing.Point(4, 25); this.tbpPatient.Location = new System.Drawing.Point(4, 22);
this.tbpPatient.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tbpPatient.Name = "tbpPatient"; this.tbpPatient.Name = "tbpPatient";
this.tbpPatient.Size = new System.Drawing.Size(880, 514); this.tbpPatient.Size = new System.Drawing.Size(658, 415);
this.tbpPatient.TabIndex = 3; this.tbpPatient.TabIndex = 3;
this.tbpPatient.Text = "Patient Info"; this.tbpPatient.Text = "Patient Info";
this.tbpPatient.UseVisualStyleBackColor = true; this.tbpPatient.UseVisualStyleBackColor = true;
@ -202,7 +196,6 @@ namespace Louis__Pharmacy_CNSA212_FP
// //
this.splcPatient.Dock = System.Windows.Forms.DockStyle.Fill; this.splcPatient.Dock = System.Windows.Forms.DockStyle.Fill;
this.splcPatient.Location = new System.Drawing.Point(0, 0); this.splcPatient.Location = new System.Drawing.Point(0, 0);
this.splcPatient.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.splcPatient.Name = "splcPatient"; this.splcPatient.Name = "splcPatient";
this.splcPatient.Orientation = System.Windows.Forms.Orientation.Horizontal; this.splcPatient.Orientation = System.Windows.Forms.Orientation.Horizontal;
// //
@ -220,52 +213,46 @@ namespace Louis__Pharmacy_CNSA212_FP
// //
this.splcPatient.Panel2.AutoScroll = true; this.splcPatient.Panel2.AutoScroll = true;
this.splcPatient.Panel2.Controls.Add(this.dgvPatient); this.splcPatient.Panel2.Controls.Add(this.dgvPatient);
this.splcPatient.Size = new System.Drawing.Size(880, 514); this.splcPatient.Size = new System.Drawing.Size(658, 415);
this.splcPatient.SplitterDistance = 230; this.splcPatient.SplitterDistance = 185;
this.splcPatient.SplitterWidth = 5;
this.splcPatient.TabIndex = 0; this.splcPatient.TabIndex = 0;
// //
// txtPatientID // txtPatientID
// //
this.txtPatientID.Location = new System.Drawing.Point(115, 134); this.txtPatientID.Location = new System.Drawing.Point(86, 109);
this.txtPatientID.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.txtPatientID.Name = "txtPatientID"; this.txtPatientID.Name = "txtPatientID";
this.txtPatientID.Size = new System.Drawing.Size(132, 22); this.txtPatientID.Size = new System.Drawing.Size(100, 20);
this.txtPatientID.TabIndex = 8; this.txtPatientID.TabIndex = 8;
// //
// lblPatientID // lblPatientID
// //
this.lblPatientID.AutoSize = true; this.lblPatientID.AutoSize = true;
this.lblPatientID.Location = new System.Drawing.Point(31, 134); this.lblPatientID.Location = new System.Drawing.Point(23, 109);
this.lblPatientID.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblPatientID.Name = "lblPatientID"; this.lblPatientID.Name = "lblPatientID";
this.lblPatientID.Size = new System.Drawing.Size(73, 17); this.lblPatientID.Size = new System.Drawing.Size(57, 13);
this.lblPatientID.TabIndex = 7; this.lblPatientID.TabIndex = 7;
this.lblPatientID.Text = "Patient ID:"; this.lblPatientID.Text = "Patient ID:";
// //
// txtPatientLast // txtPatientLast
// //
this.txtPatientLast.Location = new System.Drawing.Point(116, 81); this.txtPatientLast.Location = new System.Drawing.Point(87, 66);
this.txtPatientLast.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.txtPatientLast.Name = "txtPatientLast"; this.txtPatientLast.Name = "txtPatientLast";
this.txtPatientLast.Size = new System.Drawing.Size(132, 22); this.txtPatientLast.Size = new System.Drawing.Size(100, 20);
this.txtPatientLast.TabIndex = 6; this.txtPatientLast.TabIndex = 6;
// //
// txtPatientFirst // txtPatientFirst
// //
this.txtPatientFirst.Location = new System.Drawing.Point(115, 31); this.txtPatientFirst.Location = new System.Drawing.Point(86, 25);
this.txtPatientFirst.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.txtPatientFirst.Name = "txtPatientFirst"; this.txtPatientFirst.Name = "txtPatientFirst";
this.txtPatientFirst.Size = new System.Drawing.Size(132, 22); this.txtPatientFirst.Size = new System.Drawing.Size(100, 20);
this.txtPatientFirst.TabIndex = 5; this.txtPatientFirst.TabIndex = 5;
// //
// btnPatientSearch // btnPatientSearch
// //
this.btnPatientSearch.BackColor = System.Drawing.Color.Transparent; this.btnPatientSearch.BackColor = System.Drawing.Color.Transparent;
this.btnPatientSearch.Location = new System.Drawing.Point(31, 185); this.btnPatientSearch.Location = new System.Drawing.Point(23, 150);
this.btnPatientSearch.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnPatientSearch.Name = "btnPatientSearch"; this.btnPatientSearch.Name = "btnPatientSearch";
this.btnPatientSearch.Size = new System.Drawing.Size(100, 28); this.btnPatientSearch.Size = new System.Drawing.Size(75, 23);
this.btnPatientSearch.TabIndex = 4; this.btnPatientSearch.TabIndex = 4;
this.btnPatientSearch.Text = "Search"; this.btnPatientSearch.Text = "Search";
this.btnPatientSearch.UseVisualStyleBackColor = false; this.btnPatientSearch.UseVisualStyleBackColor = false;
@ -275,6 +262,7 @@ namespace Louis__Pharmacy_CNSA212_FP
// //
this.dgvPatient.AllowUserToAddRows = false; this.dgvPatient.AllowUserToAddRows = false;
this.dgvPatient.AllowUserToDeleteRows = false; this.dgvPatient.AllowUserToDeleteRows = false;
this.dgvPatient.AllowUserToOrderColumns = true;
this.dgvPatient.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvPatient.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvPatient.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dgvPatient.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.pat_id, this.pat_id,
@ -294,155 +282,15 @@ namespace Louis__Pharmacy_CNSA212_FP
this.Medications}); this.Medications});
this.dgvPatient.ContextMenuStrip = this.cmuPatient; this.dgvPatient.ContextMenuStrip = this.cmuPatient;
this.dgvPatient.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; this.dgvPatient.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dgvPatient.Location = new System.Drawing.Point(4, 4); this.dgvPatient.Location = new System.Drawing.Point(3, 3);
this.dgvPatient.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.dgvPatient.MultiSelect = false; this.dgvPatient.MultiSelect = false;
this.dgvPatient.Name = "dgvPatient"; this.dgvPatient.Name = "dgvPatient";
this.dgvPatient.ReadOnly = true;
this.dgvPatient.RowHeadersWidth = 51; this.dgvPatient.RowHeadersWidth = 51;
this.dgvPatient.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvPatient.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvPatient.Size = new System.Drawing.Size(869, 270); this.dgvPatient.Size = new System.Drawing.Size(652, 219);
this.dgvPatient.TabIndex = 0; this.dgvPatient.TabIndex = 0;
this.dgvPatient.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPatient_CellContentClick); this.dgvPatient.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPatient_CellContentClick);
// //
// pat_id
//
this.pat_id.DataPropertyName = "Patient_id";
this.pat_id.HeaderText = "Patient ID";
this.pat_id.MinimumWidth = 6;
this.pat_id.Name = "pat_id";
this.pat_id.ReadOnly = true;
this.pat_id.Width = 125;
//
// FirstName
//
this.FirstName.DataPropertyName = "FirstName";
this.FirstName.HeaderText = "First Name";
this.FirstName.MinimumWidth = 6;
this.FirstName.Name = "FirstName";
this.FirstName.ReadOnly = true;
this.FirstName.Width = 125;
//
// LastName
//
this.LastName.DataPropertyName = "LastName";
this.LastName.HeaderText = "Last Name";
this.LastName.MinimumWidth = 6;
this.LastName.Name = "LastName";
this.LastName.ReadOnly = true;
this.LastName.Width = 125;
//
// MiddleInitials
//
this.MiddleInitials.DataPropertyName = "MiddleInitials";
this.MiddleInitials.HeaderText = "Middle Initial";
this.MiddleInitials.MinimumWidth = 6;
this.MiddleInitials.Name = "MiddleInitials";
this.MiddleInitials.ReadOnly = true;
this.MiddleInitials.Width = 125;
//
// City
//
this.City.DataPropertyName = "City";
this.City.HeaderText = "City";
this.City.MinimumWidth = 6;
this.City.Name = "City";
this.City.ReadOnly = true;
this.City.Width = 125;
//
// UsState
//
this.UsState.DataPropertyName = "UsState";
this.UsState.HeaderText = "State";
this.UsState.MinimumWidth = 6;
this.UsState.Name = "UsState";
this.UsState.ReadOnly = true;
this.UsState.Width = 125;
//
// Zip
//
this.Zip.DataPropertyName = "Zip";
this.Zip.HeaderText = "Zip";
this.Zip.MinimumWidth = 6;
this.Zip.Name = "Zip";
this.Zip.ReadOnly = true;
this.Zip.Width = 125;
//
// Ibs
//
this.Ibs.DataPropertyName = "Ibs";
this.Ibs.HeaderText = "Weight";
this.Ibs.MinimumWidth = 6;
this.Ibs.Name = "Ibs";
this.Ibs.ReadOnly = true;
this.Ibs.Width = 125;
//
// Height_feet
//
this.Height_feet.DataPropertyName = "Height_feet";
this.Height_feet.HeaderText = "Height (Feet)";
this.Height_feet.MinimumWidth = 6;
this.Height_feet.Name = "Height_feet";
this.Height_feet.ReadOnly = true;
this.Height_feet.Width = 125;
//
// Height_inches
//
this.Height_inches.DataPropertyName = "Height_inches";
this.Height_inches.HeaderText = "Height (inches)";
this.Height_inches.MinimumWidth = 6;
this.Height_inches.Name = "Height_inches";
this.Height_inches.ReadOnly = true;
this.Height_inches.Width = 125;
//
// Ailment
//
this.Ailment.DataPropertyName = "Ailment";
this.Ailment.HeaderText = "Ailment";
this.Ailment.MinimumWidth = 6;
this.Ailment.Name = "Ailment";
this.Ailment.ReadOnly = true;
this.Ailment.Width = 125;
//
// DOB
//
this.DOB.DataPropertyName = "DOB";
dataGridViewCellStyle1.Format = "d";
dataGridViewCellStyle1.NullValue = null;
this.DOB.DefaultCellStyle = dataGridViewCellStyle1;
this.DOB.HeaderText = "DOB";
this.DOB.MinimumWidth = 6;
this.DOB.Name = "DOB";
this.DOB.ReadOnly = true;
this.DOB.Width = 125;
//
// PhoneNumber
//
this.PhoneNumber.DataPropertyName = "PhoneNumber";
this.PhoneNumber.HeaderText = "Phone Number";
this.PhoneNumber.MinimumWidth = 6;
this.PhoneNumber.Name = "PhoneNumber";
this.PhoneNumber.ReadOnly = true;
this.PhoneNumber.Width = 125;
//
// Gender
//
this.Gender.DataPropertyName = "Gender";
this.Gender.HeaderText = "Gender";
this.Gender.MinimumWidth = 6;
this.Gender.Name = "Gender";
this.Gender.ReadOnly = true;
this.Gender.Width = 125;
//
// Medications
//
this.Medications.DataPropertyName = "Medications";
this.Medications.HeaderText = "Medications";
this.Medications.MinimumWidth = 6;
this.Medications.Name = "Medications";
this.Medications.ReadOnly = true;
this.Medications.Width = 125;
//
// cmuPatient // cmuPatient
// //
this.cmuPatient.ImageScalingSize = new System.Drawing.Size(20, 20); this.cmuPatient.ImageScalingSize = new System.Drawing.Size(20, 20);
@ -451,35 +299,34 @@ namespace Louis__Pharmacy_CNSA212_FP
this.cmuPatientEdit, this.cmuPatientEdit,
this.cmuPatientDelete}); this.cmuPatientDelete});
this.cmuPatient.Name = "contextMenuStrip1"; this.cmuPatient.Name = "contextMenuStrip1";
this.cmuPatient.Size = new System.Drawing.Size(123, 76); this.cmuPatient.Size = new System.Drawing.Size(108, 70);
// //
// cmuPatientNew // cmuPatientNew
// //
this.cmuPatientNew.Name = "cmuPatientNew"; this.cmuPatientNew.Name = "cmuPatientNew";
this.cmuPatientNew.Size = new System.Drawing.Size(122, 24); this.cmuPatientNew.Size = new System.Drawing.Size(107, 22);
this.cmuPatientNew.Text = "New"; this.cmuPatientNew.Text = "New";
this.cmuPatientNew.Click += new System.EventHandler(this.cmuPatientNew_Click); this.cmuPatientNew.Click += new System.EventHandler(this.cmuPatientNew_Click);
// //
// cmuPatientEdit // cmuPatientEdit
// //
this.cmuPatientEdit.Name = "cmuPatientEdit"; this.cmuPatientEdit.Name = "cmuPatientEdit";
this.cmuPatientEdit.Size = new System.Drawing.Size(122, 24); this.cmuPatientEdit.Size = new System.Drawing.Size(107, 22);
this.cmuPatientEdit.Text = "Edit"; this.cmuPatientEdit.Text = "Edit";
this.cmuPatientEdit.Click += new System.EventHandler(this.cmuPatientEdit_Click); this.cmuPatientEdit.Click += new System.EventHandler(this.cmuPatientEdit_Click);
// //
// cmuPatientDelete // cmuPatientDelete
// //
this.cmuPatientDelete.Name = "cmuPatientDelete"; this.cmuPatientDelete.Name = "cmuPatientDelete";
this.cmuPatientDelete.Size = new System.Drawing.Size(122, 24); this.cmuPatientDelete.Size = new System.Drawing.Size(107, 22);
this.cmuPatientDelete.Text = "Delete"; this.cmuPatientDelete.Text = "Delete";
// //
// tbpPrescription // tbpPrescription
// //
this.tbpPrescription.Controls.Add(this.splcPrescription); this.tbpPrescription.Controls.Add(this.splcPrescription);
this.tbpPrescription.Location = new System.Drawing.Point(4, 25); this.tbpPrescription.Location = new System.Drawing.Point(4, 22);
this.tbpPrescription.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tbpPrescription.Name = "tbpPrescription"; this.tbpPrescription.Name = "tbpPrescription";
this.tbpPrescription.Size = new System.Drawing.Size(880, 514); this.tbpPrescription.Size = new System.Drawing.Size(658, 415);
this.tbpPrescription.TabIndex = 4; this.tbpPrescription.TabIndex = 4;
this.tbpPrescription.Text = "Prescription Info"; this.tbpPrescription.Text = "Prescription Info";
this.tbpPrescription.UseVisualStyleBackColor = true; this.tbpPrescription.UseVisualStyleBackColor = true;
@ -488,7 +335,6 @@ namespace Louis__Pharmacy_CNSA212_FP
// //
this.splcPrescription.Dock = System.Windows.Forms.DockStyle.Fill; this.splcPrescription.Dock = System.Windows.Forms.DockStyle.Fill;
this.splcPrescription.Location = new System.Drawing.Point(0, 0); this.splcPrescription.Location = new System.Drawing.Point(0, 0);
this.splcPrescription.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.splcPrescription.Name = "splcPrescription"; this.splcPrescription.Name = "splcPrescription";
this.splcPrescription.Orientation = System.Windows.Forms.Orientation.Horizontal; this.splcPrescription.Orientation = System.Windows.Forms.Orientation.Horizontal;
// //
@ -503,17 +349,15 @@ namespace Louis__Pharmacy_CNSA212_FP
// splcPrescription.Panel2 // splcPrescription.Panel2
// //
this.splcPrescription.Panel2.Controls.Add(this.dgvPrescription); this.splcPrescription.Panel2.Controls.Add(this.dgvPrescription);
this.splcPrescription.Size = new System.Drawing.Size(880, 514); this.splcPrescription.Size = new System.Drawing.Size(658, 415);
this.splcPrescription.SplitterDistance = 260; this.splcPrescription.SplitterDistance = 209;
this.splcPrescription.SplitterWidth = 5;
this.splcPrescription.TabIndex = 0; this.splcPrescription.TabIndex = 0;
// //
// btnPrescriptionSearch // btnPrescriptionSearch
// //
this.btnPrescriptionSearch.Location = new System.Drawing.Point(85, 144); this.btnPrescriptionSearch.Location = new System.Drawing.Point(64, 117);
this.btnPrescriptionSearch.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnPrescriptionSearch.Name = "btnPrescriptionSearch"; this.btnPrescriptionSearch.Name = "btnPrescriptionSearch";
this.btnPrescriptionSearch.Size = new System.Drawing.Size(100, 28); this.btnPrescriptionSearch.Size = new System.Drawing.Size(75, 23);
this.btnPrescriptionSearch.TabIndex = 4; this.btnPrescriptionSearch.TabIndex = 4;
this.btnPrescriptionSearch.Text = "Search"; this.btnPrescriptionSearch.Text = "Search";
this.btnPrescriptionSearch.UseVisualStyleBackColor = true; this.btnPrescriptionSearch.UseVisualStyleBackColor = true;
@ -521,36 +365,34 @@ namespace Louis__Pharmacy_CNSA212_FP
// //
// txtPrescriptionPatID // txtPrescriptionPatID
// //
this.txtPrescriptionPatID.Location = new System.Drawing.Point(245, 91); this.txtPrescriptionPatID.Location = new System.Drawing.Point(184, 74);
this.txtPrescriptionPatID.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.txtPrescriptionPatID.Name = "txtPrescriptionPatID"; this.txtPrescriptionPatID.Name = "txtPrescriptionPatID";
this.txtPrescriptionPatID.Size = new System.Drawing.Size(132, 22); this.txtPrescriptionPatID.Size = new System.Drawing.Size(100, 20);
this.txtPrescriptionPatID.TabIndex = 3; this.txtPrescriptionPatID.TabIndex = 3;
// //
// txtRxNumber // txtRxNumber
// //
this.txtRxNumber.Location = new System.Drawing.Point(245, 31); this.txtRxNumber.Location = new System.Drawing.Point(184, 25);
this.txtRxNumber.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.txtRxNumber.Name = "txtRxNumber"; this.txtRxNumber.Name = "txtRxNumber";
this.txtRxNumber.Size = new System.Drawing.Size(132, 22); this.txtRxNumber.Size = new System.Drawing.Size(100, 20);
this.txtRxNumber.TabIndex = 2; this.txtRxNumber.TabIndex = 2;
// //
// lblPrescriptionPatID // lblPrescriptionPatID
// //
this.lblPrescriptionPatID.AutoSize = true; this.lblPrescriptionPatID.AutoSize = true;
this.lblPrescriptionPatID.Location = new System.Drawing.Point(81, 91); this.lblPrescriptionPatID.Location = new System.Drawing.Point(61, 74);
this.lblPrescriptionPatID.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblPrescriptionPatID.Name = "lblPrescriptionPatID"; this.lblPrescriptionPatID.Name = "lblPrescriptionPatID";
this.lblPrescriptionPatID.Size = new System.Drawing.Size(73, 17); this.lblPrescriptionPatID.Size = new System.Drawing.Size(57, 13);
this.lblPrescriptionPatID.TabIndex = 1; this.lblPrescriptionPatID.TabIndex = 1;
this.lblPrescriptionPatID.Text = "Patient ID:"; this.lblPrescriptionPatID.Text = "Patient ID:";
// //
// lblRxNumber // lblRxNumber
// //
this.lblRxNumber.AutoSize = true; this.lblRxNumber.AutoSize = true;
this.lblRxNumber.Location = new System.Drawing.Point(81, 31); this.lblRxNumber.Location = new System.Drawing.Point(61, 25);
this.lblRxNumber.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblRxNumber.Name = "lblRxNumber"; this.lblRxNumber.Name = "lblRxNumber";
this.lblRxNumber.Size = new System.Drawing.Size(82, 17); this.lblRxNumber.Size = new System.Drawing.Size(63, 13);
this.lblRxNumber.TabIndex = 0; this.lblRxNumber.TabIndex = 0;
this.lblRxNumber.Text = "Rx Number:"; this.lblRxNumber.Text = "Rx Number:";
// //
@ -568,11 +410,10 @@ namespace Louis__Pharmacy_CNSA212_FP
this.Medication_id, this.Medication_id,
this.Patient_id}); this.Patient_id});
this.dgvPrescription.ContextMenuStrip = this.cmuRx; this.dgvPrescription.ContextMenuStrip = this.cmuRx;
this.dgvPrescription.Location = new System.Drawing.Point(4, 4); this.dgvPrescription.Location = new System.Drawing.Point(3, 3);
this.dgvPrescription.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.dgvPrescription.Name = "dgvPrescription"; this.dgvPrescription.Name = "dgvPrescription";
this.dgvPrescription.RowHeadersWidth = 51; this.dgvPrescription.RowHeadersWidth = 51;
this.dgvPrescription.Size = new System.Drawing.Size(869, 240); this.dgvPrescription.Size = new System.Drawing.Size(652, 195);
this.dgvPrescription.TabIndex = 0; this.dgvPrescription.TabIndex = 0;
// //
// RxNum_id // RxNum_id
@ -639,34 +480,33 @@ namespace Louis__Pharmacy_CNSA212_FP
this.cmuRxEdit, this.cmuRxEdit,
this.cmuRxDelete}); this.cmuRxDelete});
this.cmuRx.Name = "cmuRx"; this.cmuRx.Name = "cmuRx";
this.cmuRx.Size = new System.Drawing.Size(123, 76); this.cmuRx.Size = new System.Drawing.Size(108, 70);
// //
// cmuRxNew // cmuRxNew
// //
this.cmuRxNew.Name = "cmuRxNew"; this.cmuRxNew.Name = "cmuRxNew";
this.cmuRxNew.Size = new System.Drawing.Size(122, 24); this.cmuRxNew.Size = new System.Drawing.Size(107, 22);
this.cmuRxNew.Text = "New"; this.cmuRxNew.Text = "New";
// //
// cmuRxEdit // cmuRxEdit
// //
this.cmuRxEdit.Name = "cmuRxEdit"; this.cmuRxEdit.Name = "cmuRxEdit";
this.cmuRxEdit.Size = new System.Drawing.Size(122, 24); this.cmuRxEdit.Size = new System.Drawing.Size(107, 22);
this.cmuRxEdit.Text = "Edit"; this.cmuRxEdit.Text = "Edit";
// //
// cmuRxDelete // cmuRxDelete
// //
this.cmuRxDelete.Name = "cmuRxDelete"; this.cmuRxDelete.Name = "cmuRxDelete";
this.cmuRxDelete.Size = new System.Drawing.Size(122, 24); this.cmuRxDelete.Size = new System.Drawing.Size(107, 22);
this.cmuRxDelete.Text = "Delete"; this.cmuRxDelete.Text = "Delete";
// //
// tbpPhysician // tbpPhysician
// //
this.tbpPhysician.Controls.Add(this.splcPhysician); this.tbpPhysician.Controls.Add(this.splcPhysician);
this.tbpPhysician.Location = new System.Drawing.Point(4, 25); this.tbpPhysician.Location = new System.Drawing.Point(4, 22);
this.tbpPhysician.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tbpPhysician.Name = "tbpPhysician"; this.tbpPhysician.Name = "tbpPhysician";
this.tbpPhysician.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); this.tbpPhysician.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.tbpPhysician.Size = new System.Drawing.Size(880, 514); this.tbpPhysician.Size = new System.Drawing.Size(658, 415);
this.tbpPhysician.TabIndex = 2; this.tbpPhysician.TabIndex = 2;
this.tbpPhysician.Text = "Physician Info"; this.tbpPhysician.Text = "Physician Info";
this.tbpPhysician.UseVisualStyleBackColor = true; this.tbpPhysician.UseVisualStyleBackColor = true;
@ -674,8 +514,7 @@ namespace Louis__Pharmacy_CNSA212_FP
// splcPhysician // splcPhysician
// //
this.splcPhysician.Dock = System.Windows.Forms.DockStyle.Fill; this.splcPhysician.Dock = System.Windows.Forms.DockStyle.Fill;
this.splcPhysician.Location = new System.Drawing.Point(4, 4); this.splcPhysician.Location = new System.Drawing.Point(3, 3);
this.splcPhysician.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.splcPhysician.Name = "splcPhysician"; this.splcPhysician.Name = "splcPhysician";
this.splcPhysician.Orientation = System.Windows.Forms.Orientation.Horizontal; this.splcPhysician.Orientation = System.Windows.Forms.Orientation.Horizontal;
// //
@ -695,51 +534,45 @@ namespace Louis__Pharmacy_CNSA212_FP
// //
this.splcPhysician.Panel2.AutoScroll = true; this.splcPhysician.Panel2.AutoScroll = true;
this.splcPhysician.Panel2.Controls.Add(this.dgvPhysician); this.splcPhysician.Panel2.Controls.Add(this.dgvPhysician);
this.splcPhysician.Size = new System.Drawing.Size(872, 506); this.splcPhysician.Size = new System.Drawing.Size(652, 409);
this.splcPhysician.SplitterDistance = 226; this.splcPhysician.SplitterDistance = 182;
this.splcPhysician.SplitterWidth = 5;
this.splcPhysician.TabIndex = 0; this.splcPhysician.TabIndex = 0;
// //
// txtPhysicianID // txtPhysicianID
// //
this.txtPhysicianID.Location = new System.Drawing.Point(132, 137); this.txtPhysicianID.Location = new System.Drawing.Point(99, 111);
this.txtPhysicianID.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.txtPhysicianID.Name = "txtPhysicianID"; this.txtPhysicianID.Name = "txtPhysicianID";
this.txtPhysicianID.Size = new System.Drawing.Size(132, 22); this.txtPhysicianID.Size = new System.Drawing.Size(100, 20);
this.txtPhysicianID.TabIndex = 8; this.txtPhysicianID.TabIndex = 8;
// //
// lblPhysicianID // lblPhysicianID
// //
this.lblPhysicianID.AutoSize = true; this.lblPhysicianID.AutoSize = true;
this.lblPhysicianID.Location = new System.Drawing.Point(32, 137); this.lblPhysicianID.Location = new System.Drawing.Point(24, 111);
this.lblPhysicianID.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblPhysicianID.Name = "lblPhysicianID"; this.lblPhysicianID.Name = "lblPhysicianID";
this.lblPhysicianID.Size = new System.Drawing.Size(89, 17); this.lblPhysicianID.Size = new System.Drawing.Size(69, 13);
this.lblPhysicianID.TabIndex = 7; this.lblPhysicianID.TabIndex = 7;
this.lblPhysicianID.Text = "Physician ID:"; this.lblPhysicianID.Text = "Physician ID:";
// //
// txtPhysicianLast // txtPhysicianLast
// //
this.txtPhysicianLast.Location = new System.Drawing.Point(132, 82); this.txtPhysicianLast.Location = new System.Drawing.Point(99, 67);
this.txtPhysicianLast.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.txtPhysicianLast.Name = "txtPhysicianLast"; this.txtPhysicianLast.Name = "txtPhysicianLast";
this.txtPhysicianLast.Size = new System.Drawing.Size(132, 22); this.txtPhysicianLast.Size = new System.Drawing.Size(100, 20);
this.txtPhysicianLast.TabIndex = 6; this.txtPhysicianLast.TabIndex = 6;
// //
// txtPhysicianFirst // txtPhysicianFirst
// //
this.txtPhysicianFirst.Location = new System.Drawing.Point(132, 28); this.txtPhysicianFirst.Location = new System.Drawing.Point(99, 23);
this.txtPhysicianFirst.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.txtPhysicianFirst.Name = "txtPhysicianFirst"; this.txtPhysicianFirst.Name = "txtPhysicianFirst";
this.txtPhysicianFirst.Size = new System.Drawing.Size(132, 22); this.txtPhysicianFirst.Size = new System.Drawing.Size(100, 20);
this.txtPhysicianFirst.TabIndex = 5; this.txtPhysicianFirst.TabIndex = 5;
// //
// btnPhysicianSearch // btnPhysicianSearch
// //
this.btnPhysicianSearch.Location = new System.Drawing.Point(60, 180); this.btnPhysicianSearch.Location = new System.Drawing.Point(45, 146);
this.btnPhysicianSearch.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnPhysicianSearch.Name = "btnPhysicianSearch"; this.btnPhysicianSearch.Name = "btnPhysicianSearch";
this.btnPhysicianSearch.Size = new System.Drawing.Size(100, 28); this.btnPhysicianSearch.Size = new System.Drawing.Size(75, 23);
this.btnPhysicianSearch.TabIndex = 4; this.btnPhysicianSearch.TabIndex = 4;
this.btnPhysicianSearch.Text = "Search"; this.btnPhysicianSearch.Text = "Search";
this.btnPhysicianSearch.UseVisualStyleBackColor = true; this.btnPhysicianSearch.UseVisualStyleBackColor = true;
@ -763,12 +596,11 @@ namespace Louis__Pharmacy_CNSA212_FP
this.gennder, this.gennder,
this.Specialty}); this.Specialty});
this.dgvPhysician.ContextMenuStrip = this.cmuPhysician; this.dgvPhysician.ContextMenuStrip = this.cmuPhysician;
this.dgvPhysician.Location = new System.Drawing.Point(4, 4); this.dgvPhysician.Location = new System.Drawing.Point(3, 3);
this.dgvPhysician.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.dgvPhysician.Name = "dgvPhysician"; this.dgvPhysician.Name = "dgvPhysician";
this.dgvPhysician.ReadOnly = true; this.dgvPhysician.ReadOnly = true;
this.dgvPhysician.RowHeadersWidth = 51; this.dgvPhysician.RowHeadersWidth = 51;
this.dgvPhysician.Size = new System.Drawing.Size(861, 266); this.dgvPhysician.Size = new System.Drawing.Size(646, 216);
this.dgvPhysician.TabIndex = 0; this.dgvPhysician.TabIndex = 0;
// //
// Phys_id // Phys_id
@ -881,34 +713,157 @@ namespace Louis__Pharmacy_CNSA212_FP
this.cmuPhysicianEdit, this.cmuPhysicianEdit,
this.cmuPhysicianDelete}); this.cmuPhysicianDelete});
this.cmuPhysician.Name = "cmuPhysician"; this.cmuPhysician.Name = "cmuPhysician";
this.cmuPhysician.Size = new System.Drawing.Size(123, 76); this.cmuPhysician.Size = new System.Drawing.Size(108, 70);
// //
// cmuPhysicianNew // cmuPhysicianNew
// //
this.cmuPhysicianNew.Name = "cmuPhysicianNew"; this.cmuPhysicianNew.Name = "cmuPhysicianNew";
this.cmuPhysicianNew.Size = new System.Drawing.Size(122, 24); this.cmuPhysicianNew.Size = new System.Drawing.Size(107, 22);
this.cmuPhysicianNew.Text = "New"; this.cmuPhysicianNew.Text = "New";
// //
// cmuPhysicianEdit // cmuPhysicianEdit
// //
this.cmuPhysicianEdit.Name = "cmuPhysicianEdit"; this.cmuPhysicianEdit.Name = "cmuPhysicianEdit";
this.cmuPhysicianEdit.Size = new System.Drawing.Size(122, 24); this.cmuPhysicianEdit.Size = new System.Drawing.Size(107, 22);
this.cmuPhysicianEdit.Text = "Edit"; this.cmuPhysicianEdit.Text = "Edit";
// //
// cmuPhysicianDelete // cmuPhysicianDelete
// //
this.cmuPhysicianDelete.Name = "cmuPhysicianDelete"; this.cmuPhysicianDelete.Name = "cmuPhysicianDelete";
this.cmuPhysicianDelete.Size = new System.Drawing.Size(122, 24); this.cmuPhysicianDelete.Size = new System.Drawing.Size(107, 22);
this.cmuPhysicianDelete.Text = "Delete"; this.cmuPhysicianDelete.Text = "Delete";
// //
// pat_id
//
this.pat_id.DataPropertyName = "Patient_id";
this.pat_id.HeaderText = "Patient ID";
this.pat_id.MinimumWidth = 6;
this.pat_id.Name = "pat_id";
this.pat_id.Width = 125;
//
// FirstName
//
this.FirstName.DataPropertyName = "FirstName";
this.FirstName.HeaderText = "First Name";
this.FirstName.MinimumWidth = 6;
this.FirstName.Name = "FirstName";
this.FirstName.Width = 125;
//
// LastName
//
this.LastName.DataPropertyName = "LastName";
this.LastName.HeaderText = "Last Name";
this.LastName.MinimumWidth = 6;
this.LastName.Name = "LastName";
this.LastName.Width = 125;
//
// MiddleInitials
//
this.MiddleInitials.DataPropertyName = "MiddleInitials";
this.MiddleInitials.HeaderText = "Middle Initial";
this.MiddleInitials.MinimumWidth = 6;
this.MiddleInitials.Name = "MiddleInitials";
this.MiddleInitials.Width = 125;
//
// City
//
this.City.DataPropertyName = "City";
this.City.HeaderText = "City";
this.City.MinimumWidth = 6;
this.City.Name = "City";
this.City.Width = 125;
//
// UsState
//
this.UsState.DataPropertyName = "UsState";
this.UsState.HeaderText = "State";
this.UsState.MinimumWidth = 6;
this.UsState.Name = "UsState";
this.UsState.Width = 125;
//
// Zip
//
this.Zip.DataPropertyName = "Zip";
this.Zip.HeaderText = "Zip";
this.Zip.MinimumWidth = 6;
this.Zip.Name = "Zip";
this.Zip.Width = 125;
//
// Ibs
//
this.Ibs.DataPropertyName = "Ibs";
this.Ibs.HeaderText = "Weight";
this.Ibs.MinimumWidth = 6;
this.Ibs.Name = "Ibs";
this.Ibs.Width = 125;
//
// Height_feet
//
this.Height_feet.DataPropertyName = "Height_feet";
this.Height_feet.HeaderText = "Height (Feet)";
this.Height_feet.MinimumWidth = 6;
this.Height_feet.Name = "Height_feet";
this.Height_feet.Width = 125;
//
// Height_inches
//
this.Height_inches.DataPropertyName = "Height_inches";
this.Height_inches.HeaderText = "Height (inches)";
this.Height_inches.MinimumWidth = 6;
this.Height_inches.Name = "Height_inches";
this.Height_inches.Width = 125;
//
// Ailment
//
this.Ailment.DataPropertyName = "Ailment";
this.Ailment.HeaderText = "Ailment";
this.Ailment.MinimumWidth = 6;
this.Ailment.Name = "Ailment";
this.Ailment.Width = 125;
//
// DOB
//
this.DOB.DataPropertyName = "DOB";
dataGridViewCellStyle1.Format = "d";
dataGridViewCellStyle1.NullValue = null;
this.DOB.DefaultCellStyle = dataGridViewCellStyle1;
this.DOB.HeaderText = "DOB";
this.DOB.MinimumWidth = 6;
this.DOB.Name = "DOB";
this.DOB.Width = 125;
//
// PhoneNumber
//
this.PhoneNumber.DataPropertyName = "PhoneNumber";
this.PhoneNumber.HeaderText = "Phone Number";
this.PhoneNumber.MinimumWidth = 6;
this.PhoneNumber.Name = "PhoneNumber";
this.PhoneNumber.Width = 125;
//
// Gender
//
this.Gender.DataPropertyName = "Gender";
this.Gender.HeaderText = "Gender";
this.Gender.MinimumWidth = 6;
this.Gender.Name = "Gender";
this.Gender.Width = 125;
//
// Medications
//
this.Medications.DataPropertyName = "Medications";
this.Medications.HeaderText = "Medications";
this.Medications.MinimumWidth = 6;
this.Medications.Name = "Medications";
this.Medications.Width = 125;
//
// frmInfo // frmInfo
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); 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(983, 572); this.ClientSize = new System.Drawing.Size(737, 465);
this.Controls.Add(this.tbcInfo); this.Controls.Add(this.tbcInfo);
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(3, 2, 3, 2); this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 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);
@ -977,21 +932,6 @@ namespace Louis__Pharmacy_CNSA212_FP
private System.Windows.Forms.TextBox txtPhysicianFirst; private System.Windows.Forms.TextBox txtPhysicianFirst;
private System.Windows.Forms.DataGridView dgvPhysician; private System.Windows.Forms.DataGridView dgvPhysician;
private System.Windows.Forms.DataGridView dgvPrescription; private System.Windows.Forms.DataGridView dgvPrescription;
private System.Windows.Forms.DataGridViewTextBoxColumn pat_id;
private System.Windows.Forms.DataGridViewTextBoxColumn FirstName;
private System.Windows.Forms.DataGridViewTextBoxColumn LastName;
private System.Windows.Forms.DataGridViewTextBoxColumn MiddleInitials;
private System.Windows.Forms.DataGridViewTextBoxColumn City;
private System.Windows.Forms.DataGridViewTextBoxColumn UsState;
private System.Windows.Forms.DataGridViewTextBoxColumn Zip;
private System.Windows.Forms.DataGridViewTextBoxColumn Ibs;
private System.Windows.Forms.DataGridViewTextBoxColumn Height_feet;
private System.Windows.Forms.DataGridViewTextBoxColumn Height_inches;
private System.Windows.Forms.DataGridViewTextBoxColumn Ailment;
private System.Windows.Forms.DataGridViewTextBoxColumn DOB;
private System.Windows.Forms.DataGridViewTextBoxColumn PhoneNumber;
private System.Windows.Forms.DataGridViewTextBoxColumn Gender;
private System.Windows.Forms.DataGridViewTextBoxColumn Medications;
private System.Windows.Forms.DataGridViewTextBoxColumn RxNum_id; private System.Windows.Forms.DataGridViewTextBoxColumn RxNum_id;
private System.Windows.Forms.DataGridViewTextBoxColumn numRefills; private System.Windows.Forms.DataGridViewTextBoxColumn numRefills;
private System.Windows.Forms.DataGridViewTextBoxColumn pastNumRefills; private System.Windows.Forms.DataGridViewTextBoxColumn pastNumRefills;
@ -1014,5 +954,20 @@ namespace Louis__Pharmacy_CNSA212_FP
private System.Windows.Forms.Label lblPhysicianID; private System.Windows.Forms.Label lblPhysicianID;
private System.Windows.Forms.TextBox txtPatientID; private System.Windows.Forms.TextBox txtPatientID;
private System.Windows.Forms.Label lblPatientID; private System.Windows.Forms.Label lblPatientID;
private System.Windows.Forms.DataGridViewTextBoxColumn pat_id;
private System.Windows.Forms.DataGridViewTextBoxColumn FirstName;
private System.Windows.Forms.DataGridViewTextBoxColumn LastName;
private System.Windows.Forms.DataGridViewTextBoxColumn MiddleInitials;
private System.Windows.Forms.DataGridViewTextBoxColumn City;
private System.Windows.Forms.DataGridViewTextBoxColumn UsState;
private System.Windows.Forms.DataGridViewTextBoxColumn Zip;
private System.Windows.Forms.DataGridViewTextBoxColumn Ibs;
private System.Windows.Forms.DataGridViewTextBoxColumn Height_feet;
private System.Windows.Forms.DataGridViewTextBoxColumn Height_inches;
private System.Windows.Forms.DataGridViewTextBoxColumn Ailment;
private System.Windows.Forms.DataGridViewTextBoxColumn DOB;
private System.Windows.Forms.DataGridViewTextBoxColumn PhoneNumber;
private System.Windows.Forms.DataGridViewTextBoxColumn Gender;
private System.Windows.Forms.DataGridViewTextBoxColumn Medications;
} }
} }

View File

@ -320,11 +320,12 @@ namespace Louis__Pharmacy_CNSA212_FP
private void cmuPatientEdit_Click(object sender, EventArgs e) private void cmuPatientEdit_Click(object sender, EventArgs e)
{ {
string patid = "";
if (dgvPatient.Rows.Count > 0) if (dgvPatient.Rows.Count > 0)
{ {
// Console.WriteLine( dgvPatient.SelectedRows.Count); // Console.WriteLine( dgvPatient.SelectedRows.Count);
DataGridViewRow row = dgvPatient.SelectedRows[0]; DataGridViewRow row = dgvPatient.SelectedRows[0];
string patid = "";
patid = (row.Cells[0].Value).ToString(); patid = (row.Cells[0].Value).ToString();
frmPatientAdd PatientAdd = new frmPatientAdd(false); frmPatientAdd PatientAdd = new frmPatientAdd(false);
PatientAdd.MdiParent = MdiParent; PatientAdd.MdiParent = MdiParent;

View File

@ -55,9 +55,15 @@ namespace Louis__Pharmacy_CNSA212_FP
this.cmuUpdate = new System.Windows.Forms.ToolStripMenuItem(); this.cmuUpdate = new System.Windows.Forms.ToolStripMenuItem();
this.cmuDelete = new System.Windows.Forms.ToolStripMenuItem(); this.cmuDelete = new System.Windows.Forms.ToolStripMenuItem();
this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.txtPatientID = new System.Windows.Forms.TextBox();
this.txtDate = new System.Windows.Forms.TextBox();
this.btnSearch = new System.Windows.Forms.Button();
this.lblPatientID = new System.Windows.Forms.Label();
this.lblDate = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.contextMenuStrip1.SuspendLayout(); this.contextMenuStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout(); this.splitContainer1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@ -125,6 +131,8 @@ namespace Louis__Pharmacy_CNSA212_FP
// //
// dataGridView1 // dataGridView1
// //
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.refillid, this.refillid,
@ -203,6 +211,14 @@ namespace Louis__Pharmacy_CNSA212_FP
this.splitContainer1.Name = "splitContainer1"; this.splitContainer1.Name = "splitContainer1";
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
// //
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.txtPatientID);
this.splitContainer1.Panel1.Controls.Add(this.txtDate);
this.splitContainer1.Panel1.Controls.Add(this.btnSearch);
this.splitContainer1.Panel1.Controls.Add(this.lblPatientID);
this.splitContainer1.Panel1.Controls.Add(this.lblDate);
//
// splitContainer1.Panel2 // splitContainer1.Panel2
// //
this.splitContainer1.Panel2.Controls.Add(this.dataGridView1); this.splitContainer1.Panel2.Controls.Add(this.dataGridView1);
@ -210,6 +226,47 @@ namespace Louis__Pharmacy_CNSA212_FP
this.splitContainer1.SplitterDistance = 249; this.splitContainer1.SplitterDistance = 249;
this.splitContainer1.TabIndex = 1; this.splitContainer1.TabIndex = 1;
// //
// txtPatientID
//
this.txtPatientID.Location = new System.Drawing.Point(203, 120);
this.txtPatientID.Name = "txtPatientID";
this.txtPatientID.Size = new System.Drawing.Size(100, 20);
this.txtPatientID.TabIndex = 4;
//
// txtDate
//
this.txtDate.Location = new System.Drawing.Point(203, 51);
this.txtDate.Name = "txtDate";
this.txtDate.Size = new System.Drawing.Size(100, 20);
this.txtDate.TabIndex = 3;
//
// btnSearch
//
this.btnSearch.Location = new System.Drawing.Point(106, 190);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(75, 23);
this.btnSearch.TabIndex = 2;
this.btnSearch.Text = "Search";
this.btnSearch.UseVisualStyleBackColor = true;
//
// lblPatientID
//
this.lblPatientID.AutoSize = true;
this.lblPatientID.Location = new System.Drawing.Point(62, 120);
this.lblPatientID.Name = "lblPatientID";
this.lblPatientID.Size = new System.Drawing.Size(57, 13);
this.lblPatientID.TabIndex = 1;
this.lblPatientID.Text = "Patient ID:";
//
// lblDate
//
this.lblDate.AutoSize = true;
this.lblDate.Location = new System.Drawing.Point(59, 51);
this.lblDate.Name = "lblDate";
this.lblDate.Size = new System.Drawing.Size(71, 13);
this.lblDate.TabIndex = 0;
this.lblDate.Text = "Date of Refill:";
//
// frmRefill // frmRefill
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -223,6 +280,8 @@ namespace Louis__Pharmacy_CNSA212_FP
this.Load += new System.EventHandler(this.frmRefill_Load); this.Load += new System.EventHandler(this.frmRefill_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.contextMenuStrip1.ResumeLayout(false); this.contextMenuStrip1.ResumeLayout(false);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel1.PerformLayout();
this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false); this.splitContainer1.ResumeLayout(false);
@ -269,5 +328,10 @@ namespace Louis__Pharmacy_CNSA212_FP
private System.Windows.Forms.ToolStripMenuItem cmuUpdate; private System.Windows.Forms.ToolStripMenuItem cmuUpdate;
private System.Windows.Forms.ToolStripMenuItem cmuDelete; private System.Windows.Forms.ToolStripMenuItem cmuDelete;
private System.Windows.Forms.SplitContainer splitContainer1; private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.TextBox txtPatientID;
private System.Windows.Forms.TextBox txtDate;
private System.Windows.Forms.Button btnSearch;
private System.Windows.Forms.Label lblPatientID;
private System.Windows.Forms.Label lblDate;
} }
} }