diff --git a/Louis'-Pharmacy_CNSA212-FP/Louis'-Pharmacy_CNSA212-FP.csproj b/Louis'-Pharmacy_CNSA212-FP/Louis'-Pharmacy_CNSA212-FP.csproj
index 9480ea2..92cc9ad 100644
--- a/Louis'-Pharmacy_CNSA212-FP/Louis'-Pharmacy_CNSA212-FP.csproj
+++ b/Louis'-Pharmacy_CNSA212-FP/Louis'-Pharmacy_CNSA212-FP.csproj
@@ -125,6 +125,9 @@
frmPatientPhysician.cs
+
+ frmPhysician.cs
+
frmPrescription.cs
diff --git a/Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs b/Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs
index 70fc9d6..ae50442 100644
--- a/Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs
+++ b/Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs
@@ -140,7 +140,7 @@ namespace Louis__Pharmacy_CNSA212_FP
lblPatientFirst.AutoSize = true;
lblPatientFirst.Location = new System.Drawing.Point(20, 28);
lblPatientFirst.Name = "lblPatientFirst";
- lblPatientFirst.Size = new System.Drawing.Size(60, 13);
+ lblPatientFirst.Size = new System.Drawing.Size(70, 15);
lblPatientFirst.TabIndex = 4;
lblPatientFirst.Text = "First Name:";
//
@@ -149,7 +149,7 @@ namespace Louis__Pharmacy_CNSA212_FP
lblPatientLast.AutoSize = true;
lblPatientLast.Location = new System.Drawing.Point(20, 69);
lblPatientLast.Name = "lblPatientLast";
- lblPatientLast.Size = new System.Drawing.Size(61, 13);
+ lblPatientLast.Size = new System.Drawing.Size(70, 15);
lblPatientLast.TabIndex = 5;
lblPatientLast.Text = "Last Name:";
//
@@ -158,7 +158,7 @@ namespace Louis__Pharmacy_CNSA212_FP
lblPhysicianFirst.AutoSize = true;
lblPhysicianFirst.Location = new System.Drawing.Point(24, 26);
lblPhysicianFirst.Name = "lblPhysicianFirst";
- lblPhysicianFirst.Size = new System.Drawing.Size(60, 13);
+ lblPhysicianFirst.Size = new System.Drawing.Size(70, 15);
lblPhysicianFirst.TabIndex = 4;
lblPhysicianFirst.Text = "First Name:";
//
@@ -167,7 +167,7 @@ namespace Louis__Pharmacy_CNSA212_FP
lblPhysicianLast.AutoSize = true;
lblPhysicianLast.Location = new System.Drawing.Point(23, 70);
lblPhysicianLast.Name = "lblPhysicianLast";
- lblPhysicianLast.Size = new System.Drawing.Size(61, 13);
+ lblPhysicianLast.Size = new System.Drawing.Size(70, 15);
lblPhysicianLast.TabIndex = 5;
lblPhysicianLast.Text = "Last Name:";
//
@@ -230,7 +230,7 @@ namespace Louis__Pharmacy_CNSA212_FP
this.lblPatientID.AutoSize = true;
this.lblPatientID.Location = new System.Drawing.Point(23, 109);
this.lblPatientID.Name = "lblPatientID";
- this.lblPatientID.Size = new System.Drawing.Size(57, 13);
+ this.lblPatientID.Size = new System.Drawing.Size(63, 15);
this.lblPatientID.TabIndex = 7;
this.lblPatientID.Text = "Patient ID:";
//
@@ -420,26 +420,26 @@ namespace Louis__Pharmacy_CNSA212_FP
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.Size = new System.Drawing.Size(135, 94);
+ this.cmuPatient.Size = new System.Drawing.Size(123, 76);
//
// cmuPatientNew
//
this.cmuPatientNew.Name = "cmuPatientNew";
- this.cmuPatientNew.Size = new System.Drawing.Size(134, 30);
+ this.cmuPatientNew.Size = new System.Drawing.Size(122, 24);
this.cmuPatientNew.Text = "New";
this.cmuPatientNew.Click += new System.EventHandler(this.cmuPatientNew_Click);
//
// cmuPatientEdit
//
this.cmuPatientEdit.Name = "cmuPatientEdit";
- this.cmuPatientEdit.Size = new System.Drawing.Size(134, 30);
+ this.cmuPatientEdit.Size = new System.Drawing.Size(122, 24);
this.cmuPatientEdit.Text = "Edit";
this.cmuPatientEdit.Click += new System.EventHandler(this.cmuPatientEdit_Click);
//
// cmuPatientDelete
//
this.cmuPatientDelete.Name = "cmuPatientDelete";
- this.cmuPatientDelete.Size = new System.Drawing.Size(134, 30);
+ this.cmuPatientDelete.Size = new System.Drawing.Size(122, 24);
this.cmuPatientDelete.Text = "Delete";
this.cmuPatientDelete.Click += new System.EventHandler(this.cmuPatientDelete_Click);
//
@@ -448,7 +448,7 @@ namespace Louis__Pharmacy_CNSA212_FP
this.tbpPrescription.Controls.Add(this.splcPrescription);
this.tbpPrescription.Location = new System.Drawing.Point(4, 22);
this.tbpPrescription.Name = "tbpPrescription";
- this.tbpPrescription.Size = new System.Drawing.Size(658, 415);
+ this.tbpPrescription.Size = new System.Drawing.Size(695, 429);
this.tbpPrescription.TabIndex = 4;
this.tbpPrescription.Text = "Prescription Info";
this.tbpPrescription.UseVisualStyleBackColor = true;
@@ -471,8 +471,8 @@ namespace Louis__Pharmacy_CNSA212_FP
// splcPrescription.Panel2
//
this.splcPrescription.Panel2.Controls.Add(this.dgvPrescription);
- this.splcPrescription.Size = new System.Drawing.Size(658, 415);
- this.splcPrescription.SplitterDistance = 208;
+ this.splcPrescription.Size = new System.Drawing.Size(695, 429);
+ this.splcPrescription.SplitterDistance = 215;
this.splcPrescription.TabIndex = 0;
//
// btnPrescriptionSearch
@@ -504,7 +504,7 @@ namespace Louis__Pharmacy_CNSA212_FP
this.lblPrescriptionPatID.AutoSize = true;
this.lblPrescriptionPatID.Location = new System.Drawing.Point(61, 74);
this.lblPrescriptionPatID.Name = "lblPrescriptionPatID";
- this.lblPrescriptionPatID.Size = new System.Drawing.Size(57, 13);
+ this.lblPrescriptionPatID.Size = new System.Drawing.Size(63, 15);
this.lblPrescriptionPatID.TabIndex = 1;
this.lblPrescriptionPatID.Text = "Patient ID:";
//
@@ -514,7 +514,7 @@ namespace Louis__Pharmacy_CNSA212_FP
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.Size = new System.Drawing.Size(63, 13);
+ this.lblRxNumber.Size = new System.Drawing.Size(73, 15);
this.lblRxNumber.TabIndex = 0;
this.lblRxNumber.Text = "Rx Number:";
//
@@ -592,24 +592,24 @@ namespace Louis__Pharmacy_CNSA212_FP
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.Size = new System.Drawing.Size(135, 94);
+ this.cmuRx.Size = new System.Drawing.Size(123, 76);
//
// cmuRxNew
//
this.cmuRxNew.Name = "cmuRxNew";
- this.cmuRxNew.Size = new System.Drawing.Size(134, 30);
+ this.cmuRxNew.Size = new System.Drawing.Size(122, 24);
this.cmuRxNew.Text = "New";
//
// cmuRxEdit
//
this.cmuRxEdit.Name = "cmuRxEdit";
- this.cmuRxEdit.Size = new System.Drawing.Size(134, 30);
+ this.cmuRxEdit.Size = new System.Drawing.Size(122, 24);
this.cmuRxEdit.Text = "Edit";
//
// cmuRxDelete
//
this.cmuRxDelete.Name = "cmuRxDelete";
- this.cmuRxDelete.Size = new System.Drawing.Size(134, 30);
+ this.cmuRxDelete.Size = new System.Drawing.Size(122, 24);
this.cmuRxDelete.Text = "Delete";
//
// tbpPhysician
@@ -617,8 +617,8 @@ namespace Louis__Pharmacy_CNSA212_FP
this.tbpPhysician.Controls.Add(this.splcPhysician);
this.tbpPhysician.Location = new System.Drawing.Point(4, 22);
this.tbpPhysician.Name = "tbpPhysician";
- this.tbpPhysician.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
- this.tbpPhysician.Size = new System.Drawing.Size(658, 415);
+ this.tbpPhysician.Padding = new System.Windows.Forms.Padding(3);
+ this.tbpPhysician.Size = new System.Drawing.Size(695, 429);
this.tbpPhysician.TabIndex = 2;
this.tbpPhysician.Text = "Physician Info";
this.tbpPhysician.UseVisualStyleBackColor = true;
@@ -646,8 +646,8 @@ namespace Louis__Pharmacy_CNSA212_FP
//
this.splcPhysician.Panel2.AutoScroll = true;
this.splcPhysician.Panel2.Controls.Add(this.dgvPhysician);
- this.splcPhysician.Size = new System.Drawing.Size(652, 409);
- this.splcPhysician.SplitterDistance = 181;
+ this.splcPhysician.Size = new System.Drawing.Size(689, 423);
+ this.splcPhysician.SplitterDistance = 187;
this.splcPhysician.TabIndex = 0;
//
// txtPhysicianID
@@ -662,7 +662,7 @@ namespace Louis__Pharmacy_CNSA212_FP
this.lblPhysicianID.AutoSize = true;
this.lblPhysicianID.Location = new System.Drawing.Point(24, 111);
this.lblPhysicianID.Name = "lblPhysicianID";
- this.lblPhysicianID.Size = new System.Drawing.Size(69, 13);
+ this.lblPhysicianID.Size = new System.Drawing.Size(77, 15);
this.lblPhysicianID.TabIndex = 7;
this.lblPhysicianID.Text = "Physician ID:";
//
@@ -811,24 +811,26 @@ namespace Louis__Pharmacy_CNSA212_FP
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.Size = new System.Drawing.Size(135, 94);
+ this.cmuPhysician.Size = new System.Drawing.Size(123, 76);
//
// cmuPhysicianNew
//
this.cmuPhysicianNew.Name = "cmuPhysicianNew";
- this.cmuPhysicianNew.Size = new System.Drawing.Size(134, 30);
+ this.cmuPhysicianNew.Size = new System.Drawing.Size(122, 24);
this.cmuPhysicianNew.Text = "New";
+ this.cmuPhysicianNew.Click += new System.EventHandler(this.cmuPhysicianNew_Click);
//
// cmuPhysicianEdit
//
this.cmuPhysicianEdit.Name = "cmuPhysicianEdit";
- this.cmuPhysicianEdit.Size = new System.Drawing.Size(134, 30);
+ this.cmuPhysicianEdit.Size = new System.Drawing.Size(122, 24);
this.cmuPhysicianEdit.Text = "Edit";
+ this.cmuPhysicianEdit.Click += new System.EventHandler(this.cmuPhysicianEdit_Click);
//
// cmuPhysicianDelete
//
this.cmuPhysicianDelete.Name = "cmuPhysicianDelete";
- this.cmuPhysicianDelete.Size = new System.Drawing.Size(134, 30);
+ this.cmuPhysicianDelete.Size = new System.Drawing.Size(122, 24);
this.cmuPhysicianDelete.Text = "Delete";
//
// frmInfo
@@ -838,7 +840,7 @@ namespace Louis__Pharmacy_CNSA212_FP
this.ClientSize = new System.Drawing.Size(749, 498);
this.Controls.Add(this.tbcInfo);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
+ this.Margin = new System.Windows.Forms.Padding(2);
this.Name = "frmInfo";
this.Text = "Louis\' Pharmacy - View Patient / Prescription Info";
this.Load += new System.EventHandler(this.frmInfo_Load);
diff --git a/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs b/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs
index f585470..a13d479 100644
--- a/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs
+++ b/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs
@@ -375,5 +375,25 @@ namespace Louis__Pharmacy_CNSA212_FP
}
+
+ private void cmuPhysicianNew_Click(object sender, EventArgs e)
+ {
+
+ frmPhysician physicianAdd = new frmPhysician(this, true);
+ physicianAdd.MdiParent = MdiParent;
+ physicianAdd.StartPosition = FormStartPosition.CenterScreen;
+ physicianAdd.Show();
+ physicianAdd.Focus();
+
+ }
+
+ private void cmuPhysicianEdit_Click(object sender, EventArgs e)
+ {
+ frmPhysician physicianAdd = new frmPhysician(this, false);
+ physicianAdd.MdiParent = MdiParent;
+ physicianAdd.StartPosition = FormStartPosition.CenterScreen;
+ physicianAdd.Show();
+ physicianAdd.Focus();
+ }
}
}
diff --git a/Louis'-Pharmacy_CNSA212-FP/frmPatient.cs b/Louis'-Pharmacy_CNSA212-FP/frmPatient.cs
index 457acfb..d280164 100644
--- a/Louis'-Pharmacy_CNSA212-FP/frmPatient.cs
+++ b/Louis'-Pharmacy_CNSA212-FP/frmPatient.cs
@@ -10,10 +10,10 @@ namespace Louis__Pharmacy_CNSA212_FP
private frmInfo SourceForm;
- public frmPatient(frmInfo there, bool isNew)
+ public frmPatient(frmInfo sourceForm, bool isNew)
{
- SourceForm = there;
+ SourceForm = sourceForm;
isAdd = isNew;
InitializeComponent();
diff --git a/Louis'-Pharmacy_CNSA212-FP/frmPhysician.Designer.cs b/Louis'-Pharmacy_CNSA212-FP/frmPhysician.Designer.cs
index e5788c6..6ee33f9 100644
--- a/Louis'-Pharmacy_CNSA212-FP/frmPhysician.Designer.cs
+++ b/Louis'-Pharmacy_CNSA212-FP/frmPhysician.Designer.cs
@@ -31,12 +31,302 @@ namespace Louis__Pharmacy_CNSA212_FP
///
private void InitializeComponent()
{
- this.components = new System.ComponentModel.Container();
+ this.lblDisPurpose = new System.Windows.Forms.Label();
+ this.btnGO = new System.Windows.Forms.Button();
+ this.btnClose = new System.Windows.Forms.Button();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.label9 = new System.Windows.Forms.Label();
+ this.label10 = new System.Windows.Forms.Label();
+ this.label11 = new System.Windows.Forms.Label();
+ this.txtPhyID = new System.Windows.Forms.TextBox();
+ this.txtFirstName = new System.Windows.Forms.TextBox();
+ this.txtLastName = new System.Windows.Forms.TextBox();
+ this.txtMiddleInit = new System.Windows.Forms.TextBox();
+ this.txtDOB = new System.Windows.Forms.TextBox();
+ this.txtGender = new System.Windows.Forms.TextBox();
+ this.txtSpeciality = new System.Windows.Forms.TextBox();
+ this.txtCity = new System.Windows.Forms.TextBox();
+ this.txtState = new System.Windows.Forms.TextBox();
+ this.txtZip = new System.Windows.Forms.TextBox();
+ this.txtPhone = new System.Windows.Forms.TextBox();
+ this.SuspendLayout();
+ //
+ // lblDisPurpose
+ //
+ this.lblDisPurpose.Font = new System.Drawing.Font("Microsoft Sans Serif", 28.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lblDisPurpose.Location = new System.Drawing.Point(218, 23);
+ this.lblDisPurpose.Name = "lblDisPurpose";
+ this.lblDisPurpose.Size = new System.Drawing.Size(360, 54);
+ this.lblDisPurpose.TabIndex = 0;
+ this.lblDisPurpose.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // btnGO
+ //
+ this.btnGO.Location = new System.Drawing.Point(573, 401);
+ this.btnGO.Name = "btnGO";
+ this.btnGO.Size = new System.Drawing.Size(75, 23);
+ this.btnGO.TabIndex = 1;
+ this.btnGO.UseVisualStyleBackColor = true;
+ this.btnGO.Click += new System.EventHandler(this.btnGO_Click);
+ //
+ // btnClose
+ //
+ this.btnClose.Location = new System.Drawing.Point(680, 401);
+ this.btnClose.Name = "btnClose";
+ this.btnClose.Size = new System.Drawing.Size(75, 23);
+ this.btnClose.TabIndex = 2;
+ this.btnClose.Text = "Close";
+ this.btnClose.UseVisualStyleBackColor = true;
+ this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
+ //
+ // label1
+ //
+ this.label1.Location = new System.Drawing.Point(116, 127);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(123, 30);
+ this.label1.TabIndex = 3;
+ this.label1.Text = "Physician ID:";
+ this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // label2
+ //
+ this.label2.Location = new System.Drawing.Point(116, 157);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(123, 30);
+ this.label2.TabIndex = 4;
+ this.label2.Text = "First Name:";
+ this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // label3
+ //
+ this.label3.Location = new System.Drawing.Point(116, 187);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(123, 30);
+ this.label3.TabIndex = 5;
+ this.label3.Text = "Last Name:";
+ this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // label4
+ //
+ this.label4.Location = new System.Drawing.Point(116, 217);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(123, 30);
+ this.label4.TabIndex = 6;
+ this.label4.Text = "Middle Initial:";
+ this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // label5
+ //
+ this.label5.Location = new System.Drawing.Point(116, 247);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(123, 30);
+ this.label5.TabIndex = 7;
+ this.label5.Text = "Date of Birth:";
+ this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // label6
+ //
+ this.label6.Location = new System.Drawing.Point(404, 127);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(123, 30);
+ this.label6.TabIndex = 8;
+ this.label6.Text = "City:";
+ this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // label7
+ //
+ this.label7.Location = new System.Drawing.Point(404, 157);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(123, 30);
+ this.label7.TabIndex = 9;
+ this.label7.Text = "State:";
+ this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // label8
+ //
+ this.label8.Location = new System.Drawing.Point(404, 187);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(123, 30);
+ this.label8.TabIndex = 10;
+ this.label8.Text = "Zip Code:";
+ this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // label9
+ //
+ this.label9.Location = new System.Drawing.Point(116, 277);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(123, 30);
+ this.label9.TabIndex = 11;
+ this.label9.Text = "Gender (M/F):";
+ this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // label10
+ //
+ this.label10.Location = new System.Drawing.Point(404, 217);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(123, 30);
+ this.label10.TabIndex = 12;
+ this.label10.Text = "Phone Number:";
+ this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // label11
+ //
+ this.label11.Location = new System.Drawing.Point(116, 307);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(123, 30);
+ this.label11.TabIndex = 13;
+ this.label11.Text = "Speciality";
+ this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // txtPhyID
+ //
+ this.txtPhyID.Location = new System.Drawing.Point(245, 133);
+ this.txtPhyID.Name = "txtPhyID";
+ this.txtPhyID.Size = new System.Drawing.Size(100, 20);
+ this.txtPhyID.TabIndex = 14;
+ //
+ // txtFirstName
+ //
+ this.txtFirstName.Location = new System.Drawing.Point(245, 163);
+ this.txtFirstName.Name = "txtFirstName";
+ this.txtFirstName.Size = new System.Drawing.Size(100, 20);
+ this.txtFirstName.TabIndex = 15;
+ //
+ // txtLastName
+ //
+ this.txtLastName.Location = new System.Drawing.Point(245, 193);
+ this.txtLastName.Name = "txtLastName";
+ this.txtLastName.Size = new System.Drawing.Size(100, 20);
+ this.txtLastName.TabIndex = 16;
+ //
+ // txtMiddleInit
+ //
+ this.txtMiddleInit.Location = new System.Drawing.Point(245, 223);
+ this.txtMiddleInit.Name = "txtMiddleInit";
+ this.txtMiddleInit.Size = new System.Drawing.Size(100, 20);
+ this.txtMiddleInit.TabIndex = 17;
+ //
+ // txtDOB
+ //
+ this.txtDOB.Location = new System.Drawing.Point(245, 253);
+ this.txtDOB.Name = "txtDOB";
+ this.txtDOB.Size = new System.Drawing.Size(100, 20);
+ this.txtDOB.TabIndex = 18;
+ //
+ // txtGender
+ //
+ this.txtGender.Location = new System.Drawing.Point(245, 283);
+ this.txtGender.Name = "txtGender";
+ this.txtGender.Size = new System.Drawing.Size(100, 20);
+ this.txtGender.TabIndex = 19;
+ //
+ // txtSpeciality
+ //
+ this.txtSpeciality.Location = new System.Drawing.Point(245, 313);
+ this.txtSpeciality.Name = "txtSpeciality";
+ this.txtSpeciality.Size = new System.Drawing.Size(100, 20);
+ this.txtSpeciality.TabIndex = 20;
+ //
+ // txtCity
+ //
+ this.txtCity.Location = new System.Drawing.Point(533, 133);
+ this.txtCity.Name = "txtCity";
+ this.txtCity.Size = new System.Drawing.Size(100, 20);
+ this.txtCity.TabIndex = 21;
+ //
+ // txtState
+ //
+ this.txtState.Location = new System.Drawing.Point(533, 163);
+ this.txtState.Name = "txtState";
+ this.txtState.Size = new System.Drawing.Size(100, 20);
+ this.txtState.TabIndex = 22;
+ //
+ // txtZip
+ //
+ this.txtZip.Location = new System.Drawing.Point(533, 193);
+ this.txtZip.Name = "txtZip";
+ this.txtZip.Size = new System.Drawing.Size(100, 20);
+ this.txtZip.TabIndex = 23;
+ //
+ // txtPhone
+ //
+ this.txtPhone.Location = new System.Drawing.Point(533, 223);
+ this.txtPhone.Name = "txtPhone";
+ this.txtPhone.Size = new System.Drawing.Size(100, 20);
+ this.txtPhone.TabIndex = 24;
+ //
+ // frmPhysician
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Controls.Add(this.txtPhone);
+ this.Controls.Add(this.txtZip);
+ this.Controls.Add(this.txtState);
+ this.Controls.Add(this.txtCity);
+ this.Controls.Add(this.txtSpeciality);
+ this.Controls.Add(this.txtGender);
+ this.Controls.Add(this.txtDOB);
+ this.Controls.Add(this.txtMiddleInit);
+ this.Controls.Add(this.txtLastName);
+ this.Controls.Add(this.txtFirstName);
+ this.Controls.Add(this.txtPhyID);
+ this.Controls.Add(this.label11);
+ this.Controls.Add(this.label10);
+ this.Controls.Add(this.label9);
+ this.Controls.Add(this.label8);
+ this.Controls.Add(this.label7);
+ this.Controls.Add(this.label6);
+ this.Controls.Add(this.label5);
+ this.Controls.Add(this.label4);
+ this.Controls.Add(this.label3);
+ this.Controls.Add(this.label2);
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.btnClose);
+ this.Controls.Add(this.btnGO);
+ this.Controls.Add(this.lblDisPurpose);
+ this.Name = "frmPhysician";
this.Text = "frmPhysician";
+ this.ResumeLayout(false);
+ this.PerformLayout();
}
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.TextBox txtPhyID;
+ private System.Windows.Forms.TextBox txtFirstName;
+ private System.Windows.Forms.TextBox txtLastName;
+ private System.Windows.Forms.TextBox txtMiddleInit;
+ private System.Windows.Forms.TextBox txtDOB;
+ private System.Windows.Forms.TextBox txtGender;
+ private System.Windows.Forms.TextBox txtSpeciality;
+ private System.Windows.Forms.TextBox txtCity;
+ private System.Windows.Forms.TextBox txtState;
+ private System.Windows.Forms.TextBox txtZip;
+ private System.Windows.Forms.TextBox txtPhone;
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label5;
+
+ private System.Windows.Forms.Button btnGO;
+ private System.Windows.Forms.Button btnClose;
+
+ private System.Windows.Forms.Label lblDisPurpose;
+
#endregion
}
}
\ No newline at end of file
diff --git a/Louis'-Pharmacy_CNSA212-FP/frmPhysician.cs b/Louis'-Pharmacy_CNSA212-FP/frmPhysician.cs
index e2bba28..9c54f3e 100644
--- a/Louis'-Pharmacy_CNSA212-FP/frmPhysician.cs
+++ b/Louis'-Pharmacy_CNSA212-FP/frmPhysician.cs
@@ -1,12 +1,45 @@
-using System.Windows.Forms;
+using System;
+using System.Windows.Forms;
namespace Louis__Pharmacy_CNSA212_FP
{
public partial class frmPhysician : Form
{
- public frmPhysician()
+
+ private bool isAdd;
+ private frmInfo SourceForm;
+
+ public frmPhysician(frmInfo sourceForm, bool isNew)
{
+
+ SourceForm = sourceForm;
+
+ isAdd = isNew;
InitializeComponent();
+
+ txtState.MaxLength = 2;
+
+ if (isNew)
+ {
+ lblDisPurpose.Text = @"Add Physician";
+ btnGO.Text = @"Create";
+ }
+ else
+ {
+ lblDisPurpose.Text = @"Edit Physician";
+ btnGO.Text = @"Update";
+ }
+
+ }
+
+ private void btnClose_Click(object sender, EventArgs e)
+ {
+ Close();
+ }
+
+ private void btnGO_Click(object sender, EventArgs e)
+ {
+
}
}
}
\ No newline at end of file
diff --git a/Louis'-Pharmacy_CNSA212-FP/frmPhysician.resx b/Louis'-Pharmacy_CNSA212-FP/frmPhysician.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/Louis'-Pharmacy_CNSA212-FP/frmPhysician.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file