This commit is contained in:
Adam McCane 2024-02-16 10:15:23 -05:00
commit 7b539032a9
10 changed files with 449 additions and 164 deletions

View File

@ -98,7 +98,6 @@
<Compile Include="PharmacyDataTier.cs" /> <Compile Include="PharmacyDataTier.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="refillDataTier.cs" />
<EmbeddedResource Include="frmAbout.resx"> <EmbeddedResource Include="frmAbout.resx">
<DependentUpon>frmAbout.cs</DependentUpon> <DependentUpon>frmAbout.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>

View File

@ -138,36 +138,40 @@ namespace Louis__Pharmacy_CNSA212_FP
// lblPatientFirst // lblPatientFirst
// //
lblPatientFirst.AutoSize = true; lblPatientFirst.AutoSize = true;
lblPatientFirst.Location = new System.Drawing.Point(20, 28); lblPatientFirst.Location = new System.Drawing.Point(27, 34);
lblPatientFirst.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
lblPatientFirst.Name = "lblPatientFirst"; lblPatientFirst.Name = "lblPatientFirst";
lblPatientFirst.Size = new System.Drawing.Size(60, 13); lblPatientFirst.Size = new System.Drawing.Size(80, 17);
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(20, 69); lblPatientLast.Location = new System.Drawing.Point(27, 85);
lblPatientLast.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
lblPatientLast.Name = "lblPatientLast"; lblPatientLast.Name = "lblPatientLast";
lblPatientLast.Size = new System.Drawing.Size(61, 13); lblPatientLast.Size = new System.Drawing.Size(80, 17);
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(24, 26); lblPhysicianFirst.Location = new System.Drawing.Point(32, 32);
lblPhysicianFirst.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
lblPhysicianFirst.Name = "lblPhysicianFirst"; lblPhysicianFirst.Name = "lblPhysicianFirst";
lblPhysicianFirst.Size = new System.Drawing.Size(60, 13); lblPhysicianFirst.Size = new System.Drawing.Size(80, 17);
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(23, 70); lblPhysicianLast.Location = new System.Drawing.Point(31, 86);
lblPhysicianLast.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
lblPhysicianLast.Name = "lblPhysicianLast"; lblPhysicianLast.Name = "lblPhysicianLast";
lblPhysicianLast.Size = new System.Drawing.Size(61, 13); lblPhysicianLast.Size = new System.Drawing.Size(80, 17);
lblPhysicianLast.TabIndex = 5; lblPhysicianLast.TabIndex = 5;
lblPhysicianLast.Text = "Last Name:"; lblPhysicianLast.Text = "Last Name:";
// //
@ -176,18 +180,20 @@ 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(12, 12); this.tbcInfo.Location = new System.Drawing.Point(16, 15);
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(666, 441); this.tbcInfo.Size = new System.Drawing.Size(888, 543);
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, 22); this.tbpPatient.Location = new System.Drawing.Point(4, 25);
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(658, 415); this.tbpPatient.Size = new System.Drawing.Size(880, 514);
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;
@ -196,6 +202,7 @@ 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;
// //
@ -213,46 +220,52 @@ 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(658, 415); this.splcPatient.Size = new System.Drawing.Size(880, 514);
this.splcPatient.SplitterDistance = 186; this.splcPatient.SplitterDistance = 230;
this.splcPatient.SplitterWidth = 5;
this.splcPatient.TabIndex = 0; this.splcPatient.TabIndex = 0;
// //
// txtPatientID // txtPatientID
// //
this.txtPatientID.Location = new System.Drawing.Point(86, 109); this.txtPatientID.Location = new System.Drawing.Point(115, 134);
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(100, 20); this.txtPatientID.Size = new System.Drawing.Size(132, 22);
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(23, 109); this.lblPatientID.Location = new System.Drawing.Point(31, 134);
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(57, 13); this.lblPatientID.Size = new System.Drawing.Size(73, 17);
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(87, 66); this.txtPatientLast.Location = new System.Drawing.Point(116, 81);
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(100, 20); this.txtPatientLast.Size = new System.Drawing.Size(132, 22);
this.txtPatientLast.TabIndex = 6; this.txtPatientLast.TabIndex = 6;
// //
// txtPatientFirst // txtPatientFirst
// //
this.txtPatientFirst.Location = new System.Drawing.Point(86, 25); this.txtPatientFirst.Location = new System.Drawing.Point(115, 31);
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(100, 20); this.txtPatientFirst.Size = new System.Drawing.Size(132, 22);
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(23, 150); this.btnPatientSearch.Location = new System.Drawing.Point(31, 185);
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(75, 23); this.btnPatientSearch.Size = new System.Drawing.Size(100, 28);
this.btnPatientSearch.TabIndex = 4; this.btnPatientSearch.TabIndex = 4;
this.btnPatientSearch.Text = "Search"; this.btnPatientSearch.Text = "Search";
this.btnPatientSearch.UseVisualStyleBackColor = false; this.btnPatientSearch.UseVisualStyleBackColor = false;
@ -263,93 +276,133 @@ namespace Louis__Pharmacy_CNSA212_FP
this.dgvPatient.AllowUserToAddRows = false; this.dgvPatient.AllowUserToAddRows = false;
this.dgvPatient.AllowUserToDeleteRows = false; this.dgvPatient.AllowUserToDeleteRows = false;
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.pat_id, this.FirstName, this.LastName, this.MiddleInitials, this.City, this.UsState, this.Zip, this.Ibs, this.Height_feet, this.Height_inches, this.Ailment, this.DOB, this.PhoneNumber, this.Gender, this.Medications }); this.dgvPatient.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.pat_id,
this.FirstName,
this.LastName,
this.MiddleInitials,
this.City,
this.UsState,
this.Zip,
this.Ibs,
this.Height_feet,
this.Height_inches,
this.Ailment,
this.DOB,
this.PhoneNumber,
this.Gender,
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(3, 3); this.dgvPatient.Location = new System.Drawing.Point(4, 4);
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.ReadOnly = true;
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(652, 219); this.dgvPatient.Size = new System.Drawing.Size(869, 270);
this.dgvPatient.TabIndex = 0; this.dgvPatient.TabIndex = 0;
this.dgvPatient.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPatient_CellContentClick);
// //
// pat_id // pat_id
// //
this.pat_id.DataPropertyName = "Patient_id"; this.pat_id.DataPropertyName = "Patient_id";
this.pat_id.HeaderText = "Patient ID"; this.pat_id.HeaderText = "Patient ID";
this.pat_id.MinimumWidth = 6;
this.pat_id.Name = "pat_id"; this.pat_id.Name = "pat_id";
this.pat_id.ReadOnly = true; this.pat_id.ReadOnly = true;
this.pat_id.Width = 125;
// //
// FirstName // FirstName
// //
this.FirstName.DataPropertyName = "FirstName"; this.FirstName.DataPropertyName = "FirstName";
this.FirstName.HeaderText = "First Name"; this.FirstName.HeaderText = "First Name";
this.FirstName.MinimumWidth = 6;
this.FirstName.Name = "FirstName"; this.FirstName.Name = "FirstName";
this.FirstName.ReadOnly = true; this.FirstName.ReadOnly = true;
this.FirstName.Width = 125;
// //
// LastName // LastName
// //
this.LastName.DataPropertyName = "LastName"; this.LastName.DataPropertyName = "LastName";
this.LastName.HeaderText = "Last Name"; this.LastName.HeaderText = "Last Name";
this.LastName.MinimumWidth = 6;
this.LastName.Name = "LastName"; this.LastName.Name = "LastName";
this.LastName.ReadOnly = true; this.LastName.ReadOnly = true;
this.LastName.Width = 125;
// //
// MiddleInitials // MiddleInitials
// //
this.MiddleInitials.DataPropertyName = "MiddleInitials"; this.MiddleInitials.DataPropertyName = "MiddleInitials";
this.MiddleInitials.HeaderText = "Middle Initial"; this.MiddleInitials.HeaderText = "Middle Initial";
this.MiddleInitials.MinimumWidth = 6;
this.MiddleInitials.Name = "MiddleInitials"; this.MiddleInitials.Name = "MiddleInitials";
this.MiddleInitials.ReadOnly = true; this.MiddleInitials.ReadOnly = true;
this.MiddleInitials.Width = 125;
// //
// City // City
// //
this.City.DataPropertyName = "City"; this.City.DataPropertyName = "City";
this.City.HeaderText = "City"; this.City.HeaderText = "City";
this.City.MinimumWidth = 6;
this.City.Name = "City"; this.City.Name = "City";
this.City.ReadOnly = true; this.City.ReadOnly = true;
this.City.Width = 125;
// //
// UsState // UsState
// //
this.UsState.DataPropertyName = "UsState"; this.UsState.DataPropertyName = "UsState";
this.UsState.HeaderText = "State"; this.UsState.HeaderText = "State";
this.UsState.MinimumWidth = 6;
this.UsState.Name = "UsState"; this.UsState.Name = "UsState";
this.UsState.ReadOnly = true; this.UsState.ReadOnly = true;
this.UsState.Width = 125;
// //
// Zip // Zip
// //
this.Zip.DataPropertyName = "Zip"; this.Zip.DataPropertyName = "Zip";
this.Zip.HeaderText = "Zip"; this.Zip.HeaderText = "Zip";
this.Zip.MinimumWidth = 6;
this.Zip.Name = "Zip"; this.Zip.Name = "Zip";
this.Zip.ReadOnly = true; this.Zip.ReadOnly = true;
this.Zip.Width = 125;
// //
// Ibs // Ibs
// //
this.Ibs.DataPropertyName = "Ibs"; this.Ibs.DataPropertyName = "Ibs";
this.Ibs.HeaderText = "Weight"; this.Ibs.HeaderText = "Weight";
this.Ibs.MinimumWidth = 6;
this.Ibs.Name = "Ibs"; this.Ibs.Name = "Ibs";
this.Ibs.ReadOnly = true; this.Ibs.ReadOnly = true;
this.Ibs.Width = 125;
// //
// Height_feet // Height_feet
// //
this.Height_feet.DataPropertyName = "Height_feet"; this.Height_feet.DataPropertyName = "Height_feet";
this.Height_feet.HeaderText = "Height (Feet)"; this.Height_feet.HeaderText = "Height (Feet)";
this.Height_feet.MinimumWidth = 6;
this.Height_feet.Name = "Height_feet"; this.Height_feet.Name = "Height_feet";
this.Height_feet.ReadOnly = true; this.Height_feet.ReadOnly = true;
this.Height_feet.Width = 125;
// //
// Height_inches // Height_inches
// //
this.Height_inches.DataPropertyName = "Height_inches"; this.Height_inches.DataPropertyName = "Height_inches";
this.Height_inches.HeaderText = "Height (inches)"; this.Height_inches.HeaderText = "Height (inches)";
this.Height_inches.MinimumWidth = 6;
this.Height_inches.Name = "Height_inches"; this.Height_inches.Name = "Height_inches";
this.Height_inches.ReadOnly = true; this.Height_inches.ReadOnly = true;
this.Height_inches.Width = 125;
// //
// Ailment // Ailment
// //
this.Ailment.DataPropertyName = "Ailment"; this.Ailment.DataPropertyName = "Ailment";
this.Ailment.HeaderText = "Ailment"; this.Ailment.HeaderText = "Ailment";
this.Ailment.MinimumWidth = 6;
this.Ailment.Name = "Ailment"; this.Ailment.Name = "Ailment";
this.Ailment.ReadOnly = true; this.Ailment.ReadOnly = true;
this.Ailment.Width = 125;
// //
// DOB // DOB
// //
@ -358,62 +411,75 @@ namespace Louis__Pharmacy_CNSA212_FP
dataGridViewCellStyle1.NullValue = null; dataGridViewCellStyle1.NullValue = null;
this.DOB.DefaultCellStyle = dataGridViewCellStyle1; this.DOB.DefaultCellStyle = dataGridViewCellStyle1;
this.DOB.HeaderText = "DOB"; this.DOB.HeaderText = "DOB";
this.DOB.MinimumWidth = 6;
this.DOB.Name = "DOB"; this.DOB.Name = "DOB";
this.DOB.ReadOnly = true; this.DOB.ReadOnly = true;
this.DOB.Width = 125;
// //
// PhoneNumber // PhoneNumber
// //
this.PhoneNumber.DataPropertyName = "PhoneNumber"; this.PhoneNumber.DataPropertyName = "PhoneNumber";
this.PhoneNumber.HeaderText = "Phone Number"; this.PhoneNumber.HeaderText = "Phone Number";
this.PhoneNumber.MinimumWidth = 6;
this.PhoneNumber.Name = "PhoneNumber"; this.PhoneNumber.Name = "PhoneNumber";
this.PhoneNumber.ReadOnly = true; this.PhoneNumber.ReadOnly = true;
this.PhoneNumber.Width = 125;
// //
// Gender // Gender
// //
this.Gender.DataPropertyName = "Gender"; this.Gender.DataPropertyName = "Gender";
this.Gender.HeaderText = "Gender"; this.Gender.HeaderText = "Gender";
this.Gender.MinimumWidth = 6;
this.Gender.Name = "Gender"; this.Gender.Name = "Gender";
this.Gender.ReadOnly = true; this.Gender.ReadOnly = true;
this.Gender.Width = 125;
// //
// Medications // Medications
// //
this.Medications.DataPropertyName = "Medications"; this.Medications.DataPropertyName = "Medications";
this.Medications.HeaderText = "Medications"; this.Medications.HeaderText = "Medications";
this.Medications.MinimumWidth = 6;
this.Medications.Name = "Medications"; this.Medications.Name = "Medications";
this.Medications.ReadOnly = true; this.Medications.ReadOnly = true;
this.Medications.Width = 125;
// //
// cmuPatient // cmuPatient
// //
this.cmuPatient.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.cmuPatientNew, this.cmuPatientEdit, this.cmuPatientDelete }); this.cmuPatient.ImageScalingSize = new System.Drawing.Size(20, 20);
this.cmuPatient.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.cmuPatientNew,
this.cmuPatientEdit,
this.cmuPatientDelete});
this.cmuPatient.Name = "contextMenuStrip1"; this.cmuPatient.Name = "contextMenuStrip1";
this.cmuPatient.Size = new System.Drawing.Size(108, 70); this.cmuPatient.Size = new System.Drawing.Size(123, 76);
// //
// cmuPatientNew // cmuPatientNew
// //
this.cmuPatientNew.Name = "cmuPatientNew"; this.cmuPatientNew.Name = "cmuPatientNew";
this.cmuPatientNew.Size = new System.Drawing.Size(107, 22); this.cmuPatientNew.Size = new System.Drawing.Size(122, 24);
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(107, 22); this.cmuPatientEdit.Size = new System.Drawing.Size(122, 24);
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(107, 22); this.cmuPatientDelete.Size = new System.Drawing.Size(122, 24);
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, 22); this.tbpPrescription.Location = new System.Drawing.Point(4, 25);
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(658, 415); this.tbpPrescription.Size = new System.Drawing.Size(880, 514);
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;
@ -422,6 +488,7 @@ 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;
// //
@ -436,15 +503,17 @@ 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(658, 415); this.splcPrescription.Size = new System.Drawing.Size(880, 514);
this.splcPrescription.SplitterDistance = 210; this.splcPrescription.SplitterDistance = 260;
this.splcPrescription.SplitterWidth = 5;
this.splcPrescription.TabIndex = 0; this.splcPrescription.TabIndex = 0;
// //
// btnPrescriptionSearch // btnPrescriptionSearch
// //
this.btnPrescriptionSearch.Location = new System.Drawing.Point(64, 117); this.btnPrescriptionSearch.Location = new System.Drawing.Point(85, 144);
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(75, 23); this.btnPrescriptionSearch.Size = new System.Drawing.Size(100, 28);
this.btnPrescriptionSearch.TabIndex = 4; this.btnPrescriptionSearch.TabIndex = 4;
this.btnPrescriptionSearch.Text = "Search"; this.btnPrescriptionSearch.Text = "Search";
this.btnPrescriptionSearch.UseVisualStyleBackColor = true; this.btnPrescriptionSearch.UseVisualStyleBackColor = true;
@ -452,34 +521,36 @@ namespace Louis__Pharmacy_CNSA212_FP
// //
// txtPrescriptionPatID // txtPrescriptionPatID
// //
this.txtPrescriptionPatID.Location = new System.Drawing.Point(184, 74); this.txtPrescriptionPatID.Location = new System.Drawing.Point(245, 91);
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(100, 20); this.txtPrescriptionPatID.Size = new System.Drawing.Size(132, 22);
this.txtPrescriptionPatID.TabIndex = 3; this.txtPrescriptionPatID.TabIndex = 3;
// //
// txtRxNumber // txtRxNumber
// //
this.txtRxNumber.Location = new System.Drawing.Point(184, 25); this.txtRxNumber.Location = new System.Drawing.Point(245, 31);
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(100, 20); this.txtRxNumber.Size = new System.Drawing.Size(132, 22);
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(61, 74); this.lblPrescriptionPatID.Location = new System.Drawing.Point(81, 91);
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(57, 13); this.lblPrescriptionPatID.Size = new System.Drawing.Size(73, 17);
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(61, 25); this.lblRxNumber.Location = new System.Drawing.Point(81, 31);
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(63, 13); this.lblRxNumber.Size = new System.Drawing.Size(82, 17);
this.lblRxNumber.TabIndex = 0; this.lblRxNumber.TabIndex = 0;
this.lblRxNumber.Text = "Rx Number:"; this.lblRxNumber.Text = "Rx Number:";
// //
@ -488,86 +559,114 @@ namespace Louis__Pharmacy_CNSA212_FP
this.dgvPrescription.AllowUserToAddRows = false; this.dgvPrescription.AllowUserToAddRows = false;
this.dgvPrescription.AllowUserToDeleteRows = false; this.dgvPrescription.AllowUserToDeleteRows = false;
this.dgvPrescription.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvPrescription.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvPrescription.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.RxNum_id, this.numRefills, this.pastNumRefills, this.PrescribedBy, this.Physician_id, this.Medication_id, this.Patient_id }); this.dgvPrescription.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.RxNum_id,
this.numRefills,
this.pastNumRefills,
this.PrescribedBy,
this.Physician_id,
this.Medication_id,
this.Patient_id});
this.dgvPrescription.ContextMenuStrip = this.cmuRx; this.dgvPrescription.ContextMenuStrip = this.cmuRx;
this.dgvPrescription.Location = new System.Drawing.Point(3, 3); this.dgvPrescription.Location = new System.Drawing.Point(4, 4);
this.dgvPrescription.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.dgvPrescription.Name = "dgvPrescription"; this.dgvPrescription.Name = "dgvPrescription";
this.dgvPrescription.Size = new System.Drawing.Size(652, 195); this.dgvPrescription.RowHeadersWidth = 51;
this.dgvPrescription.Size = new System.Drawing.Size(869, 240);
this.dgvPrescription.TabIndex = 0; this.dgvPrescription.TabIndex = 0;
// //
// RxNum_id // RxNum_id
// //
this.RxNum_id.DataPropertyName = "RxNum_id"; this.RxNum_id.DataPropertyName = "RxNum_id";
this.RxNum_id.HeaderText = "Rx Number"; this.RxNum_id.HeaderText = "Rx Number";
this.RxNum_id.MinimumWidth = 6;
this.RxNum_id.Name = "RxNum_id"; this.RxNum_id.Name = "RxNum_id";
this.RxNum_id.Width = 125;
// //
// numRefills // numRefills
// //
this.numRefills.DataPropertyName = "numRefills"; this.numRefills.DataPropertyName = "numRefills";
this.numRefills.HeaderText = "Number of Refills"; this.numRefills.HeaderText = "Number of Refills";
this.numRefills.MinimumWidth = 6;
this.numRefills.Name = "numRefills"; this.numRefills.Name = "numRefills";
this.numRefills.Width = 125;
// //
// pastNumRefills // pastNumRefills
// //
this.pastNumRefills.DataPropertyName = "pastNumRefills"; this.pastNumRefills.DataPropertyName = "pastNumRefills";
this.pastNumRefills.HeaderText = "Past Number of Refills"; this.pastNumRefills.HeaderText = "Past Number of Refills";
this.pastNumRefills.MinimumWidth = 6;
this.pastNumRefills.Name = "pastNumRefills"; this.pastNumRefills.Name = "pastNumRefills";
this.pastNumRefills.Width = 125;
// //
// PrescribedBy // PrescribedBy
// //
this.PrescribedBy.DataPropertyName = "PrescribedBy"; this.PrescribedBy.DataPropertyName = "PrescribedBy";
this.PrescribedBy.HeaderText = "Prescribed By"; this.PrescribedBy.HeaderText = "Prescribed By";
this.PrescribedBy.MinimumWidth = 6;
this.PrescribedBy.Name = "PrescribedBy"; this.PrescribedBy.Name = "PrescribedBy";
this.PrescribedBy.Width = 125;
// //
// Physician_id // Physician_id
// //
this.Physician_id.DataPropertyName = "Physician_id"; this.Physician_id.DataPropertyName = "Physician_id";
this.Physician_id.HeaderText = "Physician ID"; this.Physician_id.HeaderText = "Physician ID";
this.Physician_id.MinimumWidth = 6;
this.Physician_id.Name = "Physician_id"; this.Physician_id.Name = "Physician_id";
this.Physician_id.Width = 125;
// //
// Medication_id // Medication_id
// //
this.Medication_id.DataPropertyName = "Medication_id"; this.Medication_id.DataPropertyName = "Medication_id";
this.Medication_id.HeaderText = "Medication ID"; this.Medication_id.HeaderText = "Medication ID";
this.Medication_id.MinimumWidth = 6;
this.Medication_id.Name = "Medication_id"; this.Medication_id.Name = "Medication_id";
this.Medication_id.Width = 125;
// //
// Patient_id // Patient_id
// //
this.Patient_id.DataPropertyName = "Patient_id"; this.Patient_id.DataPropertyName = "Patient_id";
this.Patient_id.HeaderText = "Patient ID"; this.Patient_id.HeaderText = "Patient ID";
this.Patient_id.MinimumWidth = 6;
this.Patient_id.Name = "Patient_id"; this.Patient_id.Name = "Patient_id";
this.Patient_id.Width = 125;
// //
// cmuRx // cmuRx
// //
this.cmuRx.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.cmuRxNew, this.cmuRxEdit, this.cmuRxDelete }); this.cmuRx.ImageScalingSize = new System.Drawing.Size(20, 20);
this.cmuRx.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.cmuRxNew,
this.cmuRxEdit,
this.cmuRxDelete});
this.cmuRx.Name = "cmuRx"; this.cmuRx.Name = "cmuRx";
this.cmuRx.Size = new System.Drawing.Size(108, 70); this.cmuRx.Size = new System.Drawing.Size(123, 76);
// //
// cmuRxNew // cmuRxNew
// //
this.cmuRxNew.Name = "cmuRxNew"; this.cmuRxNew.Name = "cmuRxNew";
this.cmuRxNew.Size = new System.Drawing.Size(107, 22); this.cmuRxNew.Size = new System.Drawing.Size(122, 24);
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(107, 22); this.cmuRxEdit.Size = new System.Drawing.Size(122, 24);
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(107, 22); this.cmuRxDelete.Size = new System.Drawing.Size(122, 24);
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, 22); this.tbpPhysician.Location = new System.Drawing.Point(4, 25);
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(3); this.tbpPhysician.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tbpPhysician.Size = new System.Drawing.Size(658, 415); this.tbpPhysician.Size = new System.Drawing.Size(880, 514);
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;
@ -575,7 +674,8 @@ 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(3, 3); this.splcPhysician.Location = new System.Drawing.Point(4, 4);
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;
// //
@ -595,45 +695,51 @@ 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(652, 409); this.splcPhysician.Size = new System.Drawing.Size(872, 506);
this.splcPhysician.SplitterDistance = 183; this.splcPhysician.SplitterDistance = 226;
this.splcPhysician.SplitterWidth = 5;
this.splcPhysician.TabIndex = 0; this.splcPhysician.TabIndex = 0;
// //
// txtPhysicianID // txtPhysicianID
// //
this.txtPhysicianID.Location = new System.Drawing.Point(99, 111); this.txtPhysicianID.Location = new System.Drawing.Point(132, 137);
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(100, 20); this.txtPhysicianID.Size = new System.Drawing.Size(132, 22);
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(24, 111); this.lblPhysicianID.Location = new System.Drawing.Point(32, 137);
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(69, 13); this.lblPhysicianID.Size = new System.Drawing.Size(89, 17);
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(99, 67); this.txtPhysicianLast.Location = new System.Drawing.Point(132, 82);
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(100, 20); this.txtPhysicianLast.Size = new System.Drawing.Size(132, 22);
this.txtPhysicianLast.TabIndex = 6; this.txtPhysicianLast.TabIndex = 6;
// //
// txtPhysicianFirst // txtPhysicianFirst
// //
this.txtPhysicianFirst.Location = new System.Drawing.Point(99, 23); this.txtPhysicianFirst.Location = new System.Drawing.Point(132, 28);
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(100, 20); this.txtPhysicianFirst.Size = new System.Drawing.Size(132, 22);
this.txtPhysicianFirst.TabIndex = 5; this.txtPhysicianFirst.TabIndex = 5;
// //
// btnPhysicianSearch // btnPhysicianSearch
// //
this.btnPhysicianSearch.Location = new System.Drawing.Point(45, 146); this.btnPhysicianSearch.Location = new System.Drawing.Point(60, 180);
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(75, 23); this.btnPhysicianSearch.Size = new System.Drawing.Size(100, 28);
this.btnPhysicianSearch.TabIndex = 4; this.btnPhysicianSearch.TabIndex = 4;
this.btnPhysicianSearch.Text = "Search"; this.btnPhysicianSearch.Text = "Search";
this.btnPhysicianSearch.UseVisualStyleBackColor = true; this.btnPhysicianSearch.UseVisualStyleBackColor = true;
@ -644,62 +750,89 @@ namespace Louis__Pharmacy_CNSA212_FP
this.dgvPhysician.AllowUserToAddRows = false; this.dgvPhysician.AllowUserToAddRows = false;
this.dgvPhysician.AllowUserToDeleteRows = false; this.dgvPhysician.AllowUserToDeleteRows = false;
this.dgvPhysician.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvPhysician.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvPhysician.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.Phys_id, this.namefirst, this.namelast, this.initialsmiddle, this.cit, this.state, this.zipp, this.dobb, this.numberphone, this.gennder, this.Specialty }); this.dgvPhysician.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Phys_id,
this.namefirst,
this.namelast,
this.initialsmiddle,
this.cit,
this.state,
this.zipp,
this.dobb,
this.numberphone,
this.gennder,
this.Specialty});
this.dgvPhysician.ContextMenuStrip = this.cmuPhysician; this.dgvPhysician.ContextMenuStrip = this.cmuPhysician;
this.dgvPhysician.Location = new System.Drawing.Point(3, 3); this.dgvPhysician.Location = new System.Drawing.Point(4, 4);
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.Size = new System.Drawing.Size(646, 216); this.dgvPhysician.RowHeadersWidth = 51;
this.dgvPhysician.Size = new System.Drawing.Size(861, 266);
this.dgvPhysician.TabIndex = 0; this.dgvPhysician.TabIndex = 0;
// //
// Phys_id // Phys_id
// //
this.Phys_id.DataPropertyName = "Physician_id"; this.Phys_id.DataPropertyName = "Physician_id";
this.Phys_id.HeaderText = "Physician ID"; this.Phys_id.HeaderText = "Physician ID";
this.Phys_id.MinimumWidth = 6;
this.Phys_id.Name = "Phys_id"; this.Phys_id.Name = "Phys_id";
this.Phys_id.ReadOnly = true; this.Phys_id.ReadOnly = true;
this.Phys_id.Width = 125;
// //
// namefirst // namefirst
// //
this.namefirst.DataPropertyName = "FirstName"; this.namefirst.DataPropertyName = "FirstName";
this.namefirst.HeaderText = "First Name"; this.namefirst.HeaderText = "First Name";
this.namefirst.MinimumWidth = 6;
this.namefirst.Name = "namefirst"; this.namefirst.Name = "namefirst";
this.namefirst.ReadOnly = true; this.namefirst.ReadOnly = true;
this.namefirst.Width = 125;
// //
// namelast // namelast
// //
this.namelast.DataPropertyName = "LastName"; this.namelast.DataPropertyName = "LastName";
this.namelast.HeaderText = "Last Name"; this.namelast.HeaderText = "Last Name";
this.namelast.MinimumWidth = 6;
this.namelast.Name = "namelast"; this.namelast.Name = "namelast";
this.namelast.ReadOnly = true; this.namelast.ReadOnly = true;
this.namelast.Width = 125;
// //
// initialsmiddle // initialsmiddle
// //
this.initialsmiddle.DataPropertyName = "MiddleInitials"; this.initialsmiddle.DataPropertyName = "MiddleInitials";
this.initialsmiddle.HeaderText = "Middle Initial"; this.initialsmiddle.HeaderText = "Middle Initial";
this.initialsmiddle.MinimumWidth = 6;
this.initialsmiddle.Name = "initialsmiddle"; this.initialsmiddle.Name = "initialsmiddle";
this.initialsmiddle.ReadOnly = true; this.initialsmiddle.ReadOnly = true;
this.initialsmiddle.Width = 125;
// //
// cit // cit
// //
this.cit.DataPropertyName = "City"; this.cit.DataPropertyName = "City";
this.cit.HeaderText = "City"; this.cit.HeaderText = "City";
this.cit.MinimumWidth = 6;
this.cit.Name = "cit"; this.cit.Name = "cit";
this.cit.ReadOnly = true; this.cit.ReadOnly = true;
this.cit.Width = 125;
// //
// state // state
// //
this.state.DataPropertyName = "UsState"; this.state.DataPropertyName = "UsState";
this.state.HeaderText = "State"; this.state.HeaderText = "State";
this.state.MinimumWidth = 6;
this.state.Name = "state"; this.state.Name = "state";
this.state.ReadOnly = true; this.state.ReadOnly = true;
this.state.Width = 125;
// //
// zipp // zipp
// //
this.zipp.DataPropertyName = "Zip"; this.zipp.DataPropertyName = "Zip";
this.zipp.HeaderText = "Zip"; this.zipp.HeaderText = "Zip";
this.zipp.MinimumWidth = 6;
this.zipp.Name = "zipp"; this.zipp.Name = "zipp";
this.zipp.ReadOnly = true; this.zipp.ReadOnly = true;
this.zipp.Width = 125;
// //
// dobb // dobb
// //
@ -708,62 +841,74 @@ namespace Louis__Pharmacy_CNSA212_FP
dataGridViewCellStyle2.NullValue = null; dataGridViewCellStyle2.NullValue = null;
this.dobb.DefaultCellStyle = dataGridViewCellStyle2; this.dobb.DefaultCellStyle = dataGridViewCellStyle2;
this.dobb.HeaderText = "DOB"; this.dobb.HeaderText = "DOB";
this.dobb.MinimumWidth = 6;
this.dobb.Name = "dobb"; this.dobb.Name = "dobb";
this.dobb.ReadOnly = true; this.dobb.ReadOnly = true;
this.dobb.Width = 125;
// //
// numberphone // numberphone
// //
this.numberphone.DataPropertyName = "PhoneNumber"; this.numberphone.DataPropertyName = "PhoneNumber";
this.numberphone.HeaderText = "Phone Number"; this.numberphone.HeaderText = "Phone Number";
this.numberphone.MinimumWidth = 6;
this.numberphone.Name = "numberphone"; this.numberphone.Name = "numberphone";
this.numberphone.ReadOnly = true; this.numberphone.ReadOnly = true;
this.numberphone.Width = 125;
// //
// gennder // gennder
// //
this.gennder.DataPropertyName = "Gender"; this.gennder.DataPropertyName = "Gender";
this.gennder.HeaderText = "Gender"; this.gennder.HeaderText = "Gender";
this.gennder.MinimumWidth = 6;
this.gennder.Name = "gennder"; this.gennder.Name = "gennder";
this.gennder.ReadOnly = true; this.gennder.ReadOnly = true;
this.gennder.Width = 125;
// //
// Specialty // Specialty
// //
this.Specialty.DataPropertyName = "Specialty"; this.Specialty.DataPropertyName = "Specialty";
this.Specialty.HeaderText = "Specialty"; this.Specialty.HeaderText = "Specialty";
this.Specialty.MinimumWidth = 6;
this.Specialty.Name = "Specialty"; this.Specialty.Name = "Specialty";
this.Specialty.ReadOnly = true; this.Specialty.ReadOnly = true;
this.Specialty.Width = 125;
// //
// cmuPhysician // cmuPhysician
// //
this.cmuPhysician.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.cmuPhysicianNew, this.cmuPhysicianEdit, this.cmuPhysicianDelete }); this.cmuPhysician.ImageScalingSize = new System.Drawing.Size(20, 20);
this.cmuPhysician.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.cmuPhysicianNew,
this.cmuPhysicianEdit,
this.cmuPhysicianDelete});
this.cmuPhysician.Name = "cmuPhysician"; this.cmuPhysician.Name = "cmuPhysician";
this.cmuPhysician.Size = new System.Drawing.Size(108, 70); this.cmuPhysician.Size = new System.Drawing.Size(123, 76);
// //
// cmuPhysicianNew // cmuPhysicianNew
// //
this.cmuPhysicianNew.Name = "cmuPhysicianNew"; this.cmuPhysicianNew.Name = "cmuPhysicianNew";
this.cmuPhysicianNew.Size = new System.Drawing.Size(107, 22); this.cmuPhysicianNew.Size = new System.Drawing.Size(122, 24);
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(107, 22); this.cmuPhysicianEdit.Size = new System.Drawing.Size(122, 24);
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(107, 22); this.cmuPhysicianDelete.Size = new System.Drawing.Size(122, 24);
this.cmuPhysicianDelete.Text = "Delete"; this.cmuPhysicianDelete.Text = "Delete";
// //
// frmInfo // frmInfo
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(737, 465); this.ClientSize = new System.Drawing.Size(983, 572);
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(2); this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 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);
@ -793,6 +938,7 @@ namespace Louis__Pharmacy_CNSA212_FP
((System.ComponentModel.ISupportInitialize)(this.dgvPhysician)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dgvPhysician)).EndInit();
this.cmuPhysician.ResumeLayout(false); this.cmuPhysician.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
} }
private System.Windows.Forms.ContextMenuStrip cmuPatient; private System.Windows.Forms.ContextMenuStrip cmuPatient;
@ -826,7 +972,7 @@ namespace Louis__Pharmacy_CNSA212_FP
private System.Windows.Forms.Button btnPhysicianSearch; private System.Windows.Forms.Button btnPhysicianSearch;
private System.Windows.Forms.TextBox txtPatientLast; private System.Windows.Forms.TextBox txtPatientLast;
private System.Windows.Forms.TextBox txtPatientFirst; private System.Windows.Forms.TextBox txtPatientFirst;
private System.Windows.Forms.DataGridView dgvPatient; public System.Windows.Forms.DataGridView dgvPatient;
private System.Windows.Forms.TextBox txtPhysicianLast; private System.Windows.Forms.TextBox txtPhysicianLast;
private System.Windows.Forms.TextBox txtPhysicianFirst; private System.Windows.Forms.TextBox txtPhysicianFirst;
private System.Windows.Forms.DataGridView dgvPhysician; private System.Windows.Forms.DataGridView dgvPhysician;

View File

@ -322,15 +322,25 @@ namespace Louis__Pharmacy_CNSA212_FP
{ {
if (dgvPatient.Rows.Count > 0) if (dgvPatient.Rows.Count > 0)
{ {
// Console.WriteLine( dgvPatient.SelectedRows.Count);
DataGridViewRow row = dgvPatient.SelectedRows[0];
string patid = "";
patid = (row.Cells[0].Value).ToString();
frmPatientAdd PatientAdd = new frmPatientAdd(false); frmPatientAdd PatientAdd = new frmPatientAdd(false);
PatientAdd.MdiParent = MdiParent; PatientAdd.MdiParent = MdiParent;
PatientAdd.StartPosition = FormStartPosition.CenterScreen; PatientAdd.StartPosition = FormStartPosition.CenterScreen;
PatientAdd.Show(); PatientAdd.Show();
PatientAdd.Focus(); PatientAdd.Focus();
Console.WriteLine( dgvPatient.SelectedRows.Count); PatientAdd.FillPatient(patid);
DataGridViewRow row = dgvPatient.SelectedRows[0];
PatientAdd.FillPatient(row.Cells[0].Value.ToString().Trim());
} }
}
private void dgvPatient_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
} }
} }
} }

View File

@ -31,8 +31,6 @@
this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.mnuNavigation = new System.Windows.Forms.ToolStripMenuItem(); this.mnuNavigation = new System.Windows.Forms.ToolStripMenuItem();
this.mnuNavigationView = new System.Windows.Forms.ToolStripMenuItem(); this.mnuNavigationView = new System.Windows.Forms.ToolStripMenuItem();
this.mnuNavigationAUPaPh = new System.Windows.Forms.ToolStripMenuItem();
this.mnuNavigationAUPres = new System.Windows.Forms.ToolStripMenuItem();
this.mnuNavigationAURRefill = new System.Windows.Forms.ToolStripMenuItem(); this.mnuNavigationAURRefill = new System.Windows.Forms.ToolStripMenuItem();
this.mnuWindow = new System.Windows.Forms.ToolStripMenuItem(); this.mnuWindow = new System.Windows.Forms.ToolStripMenuItem();
this.mnuWindowArrangeIcons = new System.Windows.Forms.ToolStripMenuItem(); this.mnuWindowArrangeIcons = new System.Windows.Forms.ToolStripMenuItem();
@ -47,10 +45,7 @@
// //
// menuStrip1 // menuStrip1
// //
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuNavigation, this.mnuWindow, this.mnuHelp });
this.mnuNavigation,
this.mnuWindow,
this.mnuHelp});
this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(800, 24); this.menuStrip1.Size = new System.Drawing.Size(800, 24);
@ -59,11 +54,7 @@
// //
// mnuNavigation // mnuNavigation
// //
this.mnuNavigation.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuNavigation.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuNavigationView, this.mnuNavigationAURRefill });
this.mnuNavigationView,
this.mnuNavigationAUPaPh,
this.mnuNavigationAUPres,
this.mnuNavigationAURRefill});
this.mnuNavigation.Name = "mnuNavigation"; this.mnuNavigation.Name = "mnuNavigation";
this.mnuNavigation.Size = new System.Drawing.Size(77, 20); this.mnuNavigation.Size = new System.Drawing.Size(77, 20);
this.mnuNavigation.Text = "Navigation"; this.mnuNavigation.Text = "Navigation";
@ -71,39 +62,20 @@
// mnuNavigationView // mnuNavigationView
// //
this.mnuNavigationView.Name = "mnuNavigationView"; this.mnuNavigationView.Name = "mnuNavigationView";
this.mnuNavigationView.Size = new System.Drawing.Size(286, 22); this.mnuNavigationView.Size = new System.Drawing.Size(272, 22);
this.mnuNavigationView.Text = "View Patient/Prescription/Physician Info"; this.mnuNavigationView.Text = "Patient/Prescription/Physician Search";
this.mnuNavigationView.Click += new System.EventHandler(this.mnuNavigationView_Click); this.mnuNavigationView.Click += new System.EventHandler(this.mnuNavigationView_Click);
// //
// mnuNavigationAUPaPh
//
this.mnuNavigationAUPaPh.Name = "mnuNavigationAUPaPh";
this.mnuNavigationAUPaPh.Size = new System.Drawing.Size(286, 22);
this.mnuNavigationAUPaPh.Text = "Add/Update Patient/Physician";
this.mnuNavigationAUPaPh.Click += new System.EventHandler(this.mnuNavigationAUPaPh_Click);
//
// mnuNavigationAUPres
//
this.mnuNavigationAUPres.Name = "mnuNavigationAUPres";
this.mnuNavigationAUPres.Size = new System.Drawing.Size(286, 22);
this.mnuNavigationAUPres.Text = "Add/Update Prescription";
this.mnuNavigationAUPres.Click += new System.EventHandler(this.mnuNavigationAUPres_Click);
//
// mnuNavigationAURRefill // mnuNavigationAURRefill
// //
this.mnuNavigationAURRefill.Name = "mnuNavigationAURRefill"; this.mnuNavigationAURRefill.Name = "mnuNavigationAURRefill";
this.mnuNavigationAURRefill.Size = new System.Drawing.Size(286, 22); this.mnuNavigationAURRefill.Size = new System.Drawing.Size(272, 22);
this.mnuNavigationAURRefill.Text = "Add/Update/Remove Refill"; this.mnuNavigationAURRefill.Text = "Add/Update/Remove Refill";
this.mnuNavigationAURRefill.Click += new System.EventHandler(this.mnuNavigationAURRefill_Click); this.mnuNavigationAURRefill.Click += new System.EventHandler(this.mnuNavigationAURRefill_Click);
// //
// mnuWindow // mnuWindow
// //
this.mnuWindow.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuWindow.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuWindowArrangeIcons, this.mnuWindowCascade, this.mnuWindowHorizontal, this.mnuWindowVertical, this.mnuWindowCloseAll });
this.mnuWindowArrangeIcons,
this.mnuWindowCascade,
this.mnuWindowHorizontal,
this.mnuWindowVertical,
this.mnuWindowCloseAll});
this.mnuWindow.Name = "mnuWindow"; this.mnuWindow.Name = "mnuWindow";
this.mnuWindow.Size = new System.Drawing.Size(63, 20); this.mnuWindow.Size = new System.Drawing.Size(63, 20);
this.mnuWindow.Text = "Window"; this.mnuWindow.Text = "Window";
@ -111,42 +83,41 @@
// mnuWindowArrangeIcons // mnuWindowArrangeIcons
// //
this.mnuWindowArrangeIcons.Name = "mnuWindowArrangeIcons"; this.mnuWindowArrangeIcons.Name = "mnuWindowArrangeIcons";
this.mnuWindowArrangeIcons.Size = new System.Drawing.Size(180, 22); this.mnuWindowArrangeIcons.Size = new System.Drawing.Size(147, 22);
this.mnuWindowArrangeIcons.Text = "Arrange Icons"; this.mnuWindowArrangeIcons.Text = "Arrange Icons";
this.mnuWindowArrangeIcons.Click += new System.EventHandler(this.mnuWindowArrangeIcons_Click); this.mnuWindowArrangeIcons.Click += new System.EventHandler(this.mnuWindowArrangeIcons_Click);
// //
// mnuWindowCascade // mnuWindowCascade
// //
this.mnuWindowCascade.Name = "mnuWindowCascade"; this.mnuWindowCascade.Name = "mnuWindowCascade";
this.mnuWindowCascade.Size = new System.Drawing.Size(180, 22); this.mnuWindowCascade.Size = new System.Drawing.Size(147, 22);
this.mnuWindowCascade.Text = "Cascade"; this.mnuWindowCascade.Text = "Cascade";
this.mnuWindowCascade.Click += new System.EventHandler(this.mnuWindowCascade_Click); this.mnuWindowCascade.Click += new System.EventHandler(this.mnuWindowCascade_Click);
// //
// mnuWindowHorizontal // mnuWindowHorizontal
// //
this.mnuWindowHorizontal.Name = "mnuWindowHorizontal"; this.mnuWindowHorizontal.Name = "mnuWindowHorizontal";
this.mnuWindowHorizontal.Size = new System.Drawing.Size(180, 22); this.mnuWindowHorizontal.Size = new System.Drawing.Size(147, 22);
this.mnuWindowHorizontal.Text = "Horizontal"; this.mnuWindowHorizontal.Text = "Horizontal";
this.mnuWindowHorizontal.Click += new System.EventHandler(this.mnuWindowHorizontal_Click); this.mnuWindowHorizontal.Click += new System.EventHandler(this.mnuWindowHorizontal_Click);
// //
// mnuWindowVertical // mnuWindowVertical
// //
this.mnuWindowVertical.Name = "mnuWindowVertical"; this.mnuWindowVertical.Name = "mnuWindowVertical";
this.mnuWindowVertical.Size = new System.Drawing.Size(180, 22); this.mnuWindowVertical.Size = new System.Drawing.Size(147, 22);
this.mnuWindowVertical.Text = "Vertical"; this.mnuWindowVertical.Text = "Vertical";
this.mnuWindowVertical.Click += new System.EventHandler(this.mnuWindowVertical_Click); this.mnuWindowVertical.Click += new System.EventHandler(this.mnuWindowVertical_Click);
// //
// mnuWindowCloseAll // mnuWindowCloseAll
// //
this.mnuWindowCloseAll.Name = "mnuWindowCloseAll"; this.mnuWindowCloseAll.Name = "mnuWindowCloseAll";
this.mnuWindowCloseAll.Size = new System.Drawing.Size(180, 22); this.mnuWindowCloseAll.Size = new System.Drawing.Size(147, 22);
this.mnuWindowCloseAll.Text = "Close All"; this.mnuWindowCloseAll.Text = "Close All";
this.mnuWindowCloseAll.Click += new System.EventHandler(this.mnuWindowCloseAll_Click); this.mnuWindowCloseAll.Click += new System.EventHandler(this.mnuWindowCloseAll_Click);
// //
// mnuHelp // mnuHelp
// //
this.mnuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuHelpAbout });
this.mnuHelpAbout});
this.mnuHelp.Name = "mnuHelp"; this.mnuHelp.Name = "mnuHelp";
this.mnuHelp.Size = new System.Drawing.Size(44, 20); this.mnuHelp.Size = new System.Drawing.Size(44, 20);
this.mnuHelp.Text = "Help"; this.mnuHelp.Text = "Help";
@ -154,7 +125,7 @@
// mnuHelpAbout // mnuHelpAbout
// //
this.mnuHelpAbout.Name = "mnuHelpAbout"; this.mnuHelpAbout.Name = "mnuHelpAbout";
this.mnuHelpAbout.Size = new System.Drawing.Size(180, 22); this.mnuHelpAbout.Size = new System.Drawing.Size(107, 22);
this.mnuHelpAbout.Text = "About"; this.mnuHelpAbout.Text = "About";
this.mnuHelpAbout.Click += new System.EventHandler(this.mnuHelpAbout_Click); this.mnuHelpAbout.Click += new System.EventHandler(this.mnuHelpAbout_Click);
// //
@ -173,7 +144,6 @@
this.menuStrip1.PerformLayout(); this.menuStrip1.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
} }
#endregion #endregion
@ -181,8 +151,6 @@
private System.Windows.Forms.MenuStrip menuStrip1; private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem mnuNavigation; private System.Windows.Forms.ToolStripMenuItem mnuNavigation;
private System.Windows.Forms.ToolStripMenuItem mnuNavigationView; private System.Windows.Forms.ToolStripMenuItem mnuNavigationView;
private System.Windows.Forms.ToolStripMenuItem mnuNavigationAUPaPh;
private System.Windows.Forms.ToolStripMenuItem mnuNavigationAUPres;
private System.Windows.Forms.ToolStripMenuItem mnuNavigationAURRefill; private System.Windows.Forms.ToolStripMenuItem mnuNavigationAURRefill;
private System.Windows.Forms.ToolStripMenuItem mnuWindow; private System.Windows.Forms.ToolStripMenuItem mnuWindow;
private System.Windows.Forms.ToolStripMenuItem mnuHelp; private System.Windows.Forms.ToolStripMenuItem mnuHelp;

View File

@ -43,26 +43,26 @@ namespace Louis__Pharmacy_CNSA212_FP
private void mnuNavigationAUPaPh_Click(object sender, EventArgs e) private void mnuNavigationAUPaPh_Click(object sender, EventArgs e)
{ {
frmPatientPhysician formPaPh = new frmPatientPhysician(); // frmPatientPhysician formPaPh = new frmPatientPhysician();
//
formPaPh.MdiParent = this; // formPaPh.MdiParent = this;
formPaPh.StartPosition = FormStartPosition.CenterScreen; // formPaPh.StartPosition = FormStartPosition.CenterScreen;
formPaPh.Show(); // formPaPh.Show();
formPaPh.Focus(); // formPaPh.Focus();
//
mnuNavigationAUPaPh.Checked = true; // mnuNavigationAUPaPh.Checked = true;
} }
private void mnuNavigationAUPres_Click(object sender, EventArgs e) private void mnuNavigationAUPres_Click(object sender, EventArgs e)
{ {
frmPrescription formPrescription = new frmPrescription(); // frmPrescription formPrescription = new frmPrescription();
//
formPrescription.MdiParent = this; // formPrescription.MdiParent = this;
formPrescription.StartPosition = FormStartPosition.CenterScreen; // formPrescription.StartPosition = FormStartPosition.CenterScreen;
formPrescription.Show(); // formPrescription.Show();
formPrescription.Focus(); // formPrescription.Focus();
//
mnuNavigationAUPres.Checked = true; // mnuNavigationAUPres.Checked = true;
} }
private void mnuNavigationAURRefill_Click(object sender, EventArgs e) private void mnuNavigationAURRefill_Click(object sender, EventArgs e)

View File

@ -47,7 +47,6 @@ namespace Louis__Pharmacy_CNSA212_FP
{ {
} }
} }

View File

@ -29,21 +29,151 @@ namespace Louis__Pharmacy_CNSA212_FP
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPrescription)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPrescription));
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.dgvPrescriptions = new System.Windows.Forms.DataGridView();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.btnSearch = new System.Windows.Forms.Button();
this.lblLastName = new System.Windows.Forms.Label();
this.lblRxNumber = new System.Windows.Forms.Label();
this.lblFirstName = new System.Windows.Forms.Label();
this.txtRxNumber = new System.Windows.Forms.TextBox();
this.txtLastName = new System.Windows.Forms.TextBox();
this.txtFirstName = new System.Windows.Forms.TextBox();
((System.ComponentModel.ISupportInitialize)(this.dgvPrescriptions)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// contextMenuStrip1
//
this.contextMenuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(61, 4);
//
// dgvPrescriptions
//
this.dgvPrescriptions.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvPrescriptions.Location = new System.Drawing.Point(0, 3);
this.dgvPrescriptions.Name = "dgvPrescriptions";
this.dgvPrescriptions.RowHeadersWidth = 51;
this.dgvPrescriptions.RowTemplate.Height = 24;
this.dgvPrescriptions.Size = new System.Drawing.Size(878, 263);
this.dgvPrescriptions.TabIndex = 2;
//
// splitContainer1
//
this.splitContainer1.Location = new System.Drawing.Point(13, 12);
this.splitContainer1.Name = "splitContainer1";
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.btnSearch);
this.splitContainer1.Panel1.Controls.Add(this.lblLastName);
this.splitContainer1.Panel1.Controls.Add(this.lblRxNumber);
this.splitContainer1.Panel1.Controls.Add(this.lblFirstName);
this.splitContainer1.Panel1.Controls.Add(this.txtRxNumber);
this.splitContainer1.Panel1.Controls.Add(this.txtLastName);
this.splitContainer1.Panel1.Controls.Add(this.txtFirstName);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.dgvPrescriptions);
this.splitContainer1.Size = new System.Drawing.Size(881, 546);
this.splitContainer1.SplitterDistance = 273;
this.splitContainer1.TabIndex = 3;
//
// btnSearch
//
this.btnSearch.Location = new System.Drawing.Point(35, 213);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(93, 28);
this.btnSearch.TabIndex = 6;
this.btnSearch.Text = "Search";
this.btnSearch.UseVisualStyleBackColor = true;
//
// lblLastName
//
this.lblLastName.Location = new System.Drawing.Point(16, 101);
this.lblLastName.Name = "lblLastName";
this.lblLastName.Size = new System.Drawing.Size(100, 23);
this.lblLastName.TabIndex = 5;
this.lblLastName.Text = "Last Name:";
this.lblLastName.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lblRxNumber
//
this.lblRxNumber.Location = new System.Drawing.Point(16, 154);
this.lblRxNumber.Name = "lblRxNumber";
this.lblRxNumber.Size = new System.Drawing.Size(100, 23);
this.lblRxNumber.TabIndex = 4;
this.lblRxNumber.Text = "Rx Number:";
this.lblRxNumber.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lblFirstName
//
this.lblFirstName.Location = new System.Drawing.Point(16, 55);
this.lblFirstName.Name = "lblFirstName";
this.lblFirstName.Size = new System.Drawing.Size(100, 23);
this.lblFirstName.TabIndex = 3;
this.lblFirstName.Text = "First Name:";
this.lblFirstName.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtRxNumber
//
this.txtRxNumber.Location = new System.Drawing.Point(122, 154);
this.txtRxNumber.Name = "txtRxNumber";
this.txtRxNumber.Size = new System.Drawing.Size(148, 22);
this.txtRxNumber.TabIndex = 2;
//
// txtLastName
//
this.txtLastName.Location = new System.Drawing.Point(122, 101);
this.txtLastName.Name = "txtLastName";
this.txtLastName.Size = new System.Drawing.Size(148, 22);
this.txtLastName.TabIndex = 1;
//
// txtFirstName
//
this.txtFirstName.Location = new System.Drawing.Point(122, 56);
this.txtFirstName.Name = "txtFirstName";
this.txtFirstName.Size = new System.Drawing.Size(148, 22);
this.txtFirstName.TabIndex = 0;
//
// frmPrescription // frmPrescription
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450); this.ClientSize = new System.Drawing.Size(981, 570);
this.Controls.Add(this.splitContainer1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "frmPrescription"; this.Name = "frmPrescription";
this.Text = "Louis\' Pharmacy - Add / Update Prescription"; this.Text = "Louis\' Pharmacy - Add / Update Prescription";
this.Load += new System.EventHandler(this.frmPrescription_Load);
((System.ComponentModel.ISupportInitialize)(this.dgvPrescriptions)).EndInit();
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel1.PerformLayout();
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
} }
#endregion #endregion
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private System.Windows.Forms.DataGridView dgvPrescriptions;
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.TextBox txtFirstName;
private System.Windows.Forms.TextBox txtRxNumber;
private System.Windows.Forms.TextBox txtLastName;
private System.Windows.Forms.Label lblFirstName;
private System.Windows.Forms.Label lblLastName;
private System.Windows.Forms.Label lblRxNumber;
private System.Windows.Forms.Button btnSearch;
} }
} }

View File

@ -16,5 +16,45 @@ namespace Louis__Pharmacy_CNSA212_FP
{ {
InitializeComponent(); InitializeComponent();
} }
private void btnPatientSearch_Click(object sender, EventArgs e)
{
}
private void btnPrescriptionSearch_Click(object sender, EventArgs e)
{
}
private void btnPhysicianSearch_Click(object sender, EventArgs e)
{
}
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
}
private void frmPrescription_Load(object sender, EventArgs e)
{
}
private void frmPrescription_KeyDown(object sender, KeyEventArgs e)
{
// esc not funtional
if (e.KeyCode == Keys.Escape) // Check if the pressed key is Escape
{
this.Close(); // Close the form
}
if (e.KeyCode == Keys.Enter)
{
btnPatientSearch_Click(sender, e);
}
}
} }
} }

View File

@ -117,6 +117,12 @@
<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="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>65</value>
</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" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>

View File

@ -1,13 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Louis__Pharmacy_CNSA212_FP
{
class refillDataTier
{
}
}