Merge branch 'master' of https://github.com/EggMan20339/CNSA-212
This commit is contained in:
commit
5b66345aeb
@ -13,6 +13,153 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
static String connString = ConfigurationManager.ConnectionStrings["ConnString"].ConnectionString;
|
static String connString = ConfigurationManager.ConnectionStrings["ConnString"].ConnectionString;
|
||||||
static SqlConnection myConn = new SqlConnection(connString);
|
static SqlConnection myConn = new SqlConnection(connString);
|
||||||
static System.Data.SqlClient.SqlCommand cmdString = new System.Data.SqlClient.SqlCommand();
|
static System.Data.SqlClient.SqlCommand cmdString = new System.Data.SqlClient.SqlCommand();
|
||||||
|
|
||||||
|
|
||||||
|
public static void UpdatePatient(
|
||||||
|
string Patient_id,
|
||||||
|
string FirstName,
|
||||||
|
string LastName,
|
||||||
|
string MiddleIntials,
|
||||||
|
int lbs,
|
||||||
|
int Height_feet,
|
||||||
|
int Height_inches,
|
||||||
|
DateTime DOB,
|
||||||
|
string Gender,
|
||||||
|
string City,
|
||||||
|
Int16 Zip,
|
||||||
|
string UsState,
|
||||||
|
string PhoneNumber)
|
||||||
|
{
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
myConn.Open();
|
||||||
|
|
||||||
|
cmdString.Parameters.Clear();
|
||||||
|
|
||||||
|
cmdString.Connection = myConn;
|
||||||
|
cmdString.CommandType = CommandType.StoredProcedure;
|
||||||
|
cmdString.CommandTimeout = 1500;
|
||||||
|
|
||||||
|
cmdString.CommandText = "UpdatePatient";
|
||||||
|
|
||||||
|
cmdString.Parameters.Add("@Patient_id", SqlDbType.VarChar, 8).Value = Patient_id;
|
||||||
|
cmdString.Parameters.Add("@FirstName", SqlDbType.VarChar, 30).Value = FirstName;
|
||||||
|
cmdString.Parameters.Add("@LastName", SqlDbType.VarChar, 30).Value = LastName;
|
||||||
|
cmdString.Parameters.Add("@MiddleIntials", SqlDbType.VarChar).Value = MiddleIntials;
|
||||||
|
cmdString.Parameters.Add("@lbs", SqlDbType.Int).Value = lbs;
|
||||||
|
cmdString.Parameters.Add("@Height_feet", SqlDbType.Int).Value = Height_feet;
|
||||||
|
cmdString.Parameters.Add("@Height_inches", SqlDbType.Int).Value = Height_inches;
|
||||||
|
cmdString.Parameters.Add("@DOB", SqlDbType.DateTime).Value = DOB;
|
||||||
|
cmdString.Parameters.Add("@Gender", SqlDbType.Char).Value = Gender;
|
||||||
|
cmdString.Parameters.Add("@City", SqlDbType.VarChar, 30).Value = City;
|
||||||
|
cmdString.Parameters.Add("@Zip", SqlDbType.SmallInt).Value = Zip;
|
||||||
|
cmdString.Parameters.Add("@UsState", SqlDbType.Char, 2).Value = UsState;
|
||||||
|
cmdString.Parameters.Add("@PhoneNumber", SqlDbType.Char,14).Value = PhoneNumber;
|
||||||
|
|
||||||
|
cmdString.ExecuteNonQuery();
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ArgumentException(ex.Message);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
myConn.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void CreatePatient(
|
||||||
|
string Patient_id,
|
||||||
|
string FirstName,
|
||||||
|
string LastName,
|
||||||
|
string MiddleIntials,
|
||||||
|
int lbs,
|
||||||
|
int Height_feet,
|
||||||
|
int Height_inches,
|
||||||
|
DateTime DOB,
|
||||||
|
string Gender,
|
||||||
|
string City,
|
||||||
|
Int16 Zip,
|
||||||
|
string UsState,
|
||||||
|
string PhoneNumber)
|
||||||
|
{
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
myConn.Open();
|
||||||
|
|
||||||
|
cmdString.Parameters.Clear();
|
||||||
|
|
||||||
|
cmdString.Connection = myConn;
|
||||||
|
cmdString.CommandType = CommandType.StoredProcedure;
|
||||||
|
cmdString.CommandTimeout = 1500;
|
||||||
|
|
||||||
|
cmdString.CommandText = "CreatePatient";
|
||||||
|
|
||||||
|
cmdString.Parameters.Add("@Patient_id", SqlDbType.VarChar, 8).Value = Patient_id;
|
||||||
|
cmdString.Parameters.Add("@FirstName", SqlDbType.VarChar, 30).Value = FirstName;
|
||||||
|
cmdString.Parameters.Add("@LastName", SqlDbType.VarChar, 30).Value = LastName;
|
||||||
|
cmdString.Parameters.Add("@MiddleIntials", SqlDbType.VarChar).Value = MiddleIntials;
|
||||||
|
cmdString.Parameters.Add("@lbs", SqlDbType.Int).Value = lbs;
|
||||||
|
cmdString.Parameters.Add("@Height_feet", SqlDbType.Int).Value = Height_feet;
|
||||||
|
cmdString.Parameters.Add("@Height_inches", SqlDbType.Int).Value = Height_inches;
|
||||||
|
cmdString.Parameters.Add("@DOB", SqlDbType.DateTime).Value = DOB;
|
||||||
|
cmdString.Parameters.Add("@Gender", SqlDbType.Char).Value = Gender;
|
||||||
|
cmdString.Parameters.Add("@City", SqlDbType.VarChar, 30).Value = City;
|
||||||
|
cmdString.Parameters.Add("@Zip", SqlDbType.SmallInt).Value = Zip;
|
||||||
|
cmdString.Parameters.Add("@UsState", SqlDbType.Char, 2).Value = UsState;
|
||||||
|
cmdString.Parameters.Add("@PhoneNumber", SqlDbType.Char,14).Value = PhoneNumber;
|
||||||
|
|
||||||
|
cmdString.ExecuteNonQuery();
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ArgumentException(ex.Message);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
myConn.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void DeletePatient(string Patient_id)
|
||||||
|
{
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// open connection
|
||||||
|
myConn.Open();
|
||||||
|
//clear any parameters
|
||||||
|
cmdString.Parameters.Clear();
|
||||||
|
// command
|
||||||
|
cmdString.Connection = myConn;
|
||||||
|
cmdString.CommandType = CommandType.StoredProcedure;
|
||||||
|
cmdString.CommandTimeout = 1500;
|
||||||
|
cmdString.CommandText = "DeletePatient";
|
||||||
|
// Define input parameter
|
||||||
|
cmdString.Parameters.Add("@Patient_id", SqlDbType.VarChar, 8).Value = Patient_id;
|
||||||
|
|
||||||
|
cmdString.ExecuteNonQuery();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ArgumentException(ex.Message);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
myConn.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static DataSet PatientInfoSearch(string id, string lname, string fname)
|
public static DataSet PatientInfoSearch(string id, string lname, string fname)
|
||||||
{
|
{
|
||||||
|
492
Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs
generated
492
Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs
generated
@ -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 dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
||||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||||
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = 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,6 +46,21 @@ 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();
|
||||||
@ -92,21 +107,6 @@ 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,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(30, 43);
|
||||||
|
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(90, 20);
|
||||||
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(30, 106);
|
||||||
|
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(90, 20);
|
||||||
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(36, 40);
|
||||||
|
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(90, 20);
|
||||||
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(34, 108);
|
||||||
|
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(90, 20);
|
||||||
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(18, 18);
|
||||||
|
this.tbcInfo.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
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(999, 678);
|
||||||
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, 29);
|
||||||
|
this.tbpPatient.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.tbpPatient.Name = "tbpPatient";
|
this.tbpPatient.Name = "tbpPatient";
|
||||||
this.tbpPatient.Size = new System.Drawing.Size(658, 415);
|
this.tbpPatient.Size = new System.Drawing.Size(991, 645);
|
||||||
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, 5, 4, 5);
|
||||||
this.splcPatient.Name = "splcPatient";
|
this.splcPatient.Name = "splcPatient";
|
||||||
this.splcPatient.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
this.splcPatient.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||||
//
|
//
|
||||||
@ -208,51 +215,58 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
this.splcPatient.Panel1.Controls.Add(lblPatientFirst);
|
this.splcPatient.Panel1.Controls.Add(lblPatientFirst);
|
||||||
this.splcPatient.Panel1.Controls.Add(this.txtPatientFirst);
|
this.splcPatient.Panel1.Controls.Add(this.txtPatientFirst);
|
||||||
this.splcPatient.Panel1.Controls.Add(this.btnPatientSearch);
|
this.splcPatient.Panel1.Controls.Add(this.btnPatientSearch);
|
||||||
|
this.splcPatient.Panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.Panel1_Paint);
|
||||||
//
|
//
|
||||||
// splcPatient.Panel2
|
// splcPatient.Panel2
|
||||||
//
|
//
|
||||||
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(991, 645);
|
||||||
this.splcPatient.SplitterDistance = 184;
|
this.splcPatient.SplitterDistance = 285;
|
||||||
|
this.splcPatient.SplitterWidth = 6;
|
||||||
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(129, 168);
|
||||||
|
this.txtPatientID.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtPatientID.Name = "txtPatientID";
|
this.txtPatientID.Name = "txtPatientID";
|
||||||
this.txtPatientID.Size = new System.Drawing.Size(100, 20);
|
this.txtPatientID.Size = new System.Drawing.Size(148, 26);
|
||||||
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(34, 168);
|
||||||
|
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(84, 20);
|
||||||
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(130, 102);
|
||||||
|
this.txtPatientLast.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtPatientLast.Name = "txtPatientLast";
|
this.txtPatientLast.Name = "txtPatientLast";
|
||||||
this.txtPatientLast.Size = new System.Drawing.Size(100, 20);
|
this.txtPatientLast.Size = new System.Drawing.Size(148, 26);
|
||||||
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(129, 38);
|
||||||
|
this.txtPatientFirst.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtPatientFirst.Name = "txtPatientFirst";
|
this.txtPatientFirst.Name = "txtPatientFirst";
|
||||||
this.txtPatientFirst.Size = new System.Drawing.Size(100, 20);
|
this.txtPatientFirst.Size = new System.Drawing.Size(148, 26);
|
||||||
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(34, 231);
|
||||||
|
this.btnPatientSearch.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.btnPatientSearch.Name = "btnPatientSearch";
|
this.btnPatientSearch.Name = "btnPatientSearch";
|
||||||
this.btnPatientSearch.Size = new System.Drawing.Size(75, 23);
|
this.btnPatientSearch.Size = new System.Drawing.Size(112, 35);
|
||||||
this.btnPatientSearch.TabIndex = 4;
|
this.btnPatientSearch.TabIndex = 4;
|
||||||
this.btnPatientSearch.Text = "Search";
|
this.btnPatientSearch.Text = "Search";
|
||||||
this.btnPatientSearch.UseVisualStyleBackColor = false;
|
this.btnPatientSearch.UseVisualStyleBackColor = false;
|
||||||
@ -265,51 +279,191 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
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.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.dgvPatient.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
|
this.dgvPatient.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
|
||||||
this.dgvPatient.Location = new System.Drawing.Point(0, 0);
|
this.dgvPatient.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.dgvPatient.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
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.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(658, 227);
|
this.dgvPatient.Size = new System.Drawing.Size(991, 354);
|
||||||
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);
|
||||||
this.cmuPatient.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.cmuPatientNew, this.cmuPatientEdit, this.cmuPatientDelete });
|
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(153, 116);
|
||||||
//
|
//
|
||||||
// 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(152, 30);
|
||||||
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(152, 30);
|
||||||
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(152, 30);
|
||||||
this.cmuPatientDelete.Text = "Delete";
|
this.cmuPatientDelete.Text = "Delete";
|
||||||
|
this.cmuPatientDelete.Click += new System.EventHandler(this.cmuPatientDelete_Click);
|
||||||
//
|
//
|
||||||
// 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, 29);
|
||||||
|
this.tbpPrescription.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.tbpPrescription.Name = "tbpPrescription";
|
this.tbpPrescription.Name = "tbpPrescription";
|
||||||
this.tbpPrescription.Size = new System.Drawing.Size(658, 415);
|
this.tbpPrescription.Size = new System.Drawing.Size(991, 645);
|
||||||
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;
|
||||||
@ -318,6 +472,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, 5, 4, 5);
|
||||||
this.splcPrescription.Name = "splcPrescription";
|
this.splcPrescription.Name = "splcPrescription";
|
||||||
this.splcPrescription.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
this.splcPrescription.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||||
//
|
//
|
||||||
@ -332,15 +487,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(991, 645);
|
||||||
this.splcPrescription.SplitterDistance = 209;
|
this.splcPrescription.SplitterDistance = 324;
|
||||||
|
this.splcPrescription.SplitterWidth = 6;
|
||||||
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(96, 180);
|
||||||
|
this.btnPrescriptionSearch.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.btnPrescriptionSearch.Name = "btnPrescriptionSearch";
|
this.btnPrescriptionSearch.Name = "btnPrescriptionSearch";
|
||||||
this.btnPrescriptionSearch.Size = new System.Drawing.Size(75, 23);
|
this.btnPrescriptionSearch.Size = new System.Drawing.Size(112, 35);
|
||||||
this.btnPrescriptionSearch.TabIndex = 4;
|
this.btnPrescriptionSearch.TabIndex = 4;
|
||||||
this.btnPrescriptionSearch.Text = "Search";
|
this.btnPrescriptionSearch.Text = "Search";
|
||||||
this.btnPrescriptionSearch.UseVisualStyleBackColor = true;
|
this.btnPrescriptionSearch.UseVisualStyleBackColor = true;
|
||||||
@ -348,34 +505,36 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
//
|
//
|
||||||
// txtPrescriptionPatID
|
// txtPrescriptionPatID
|
||||||
//
|
//
|
||||||
this.txtPrescriptionPatID.Location = new System.Drawing.Point(184, 74);
|
this.txtPrescriptionPatID.Location = new System.Drawing.Point(276, 114);
|
||||||
|
this.txtPrescriptionPatID.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtPrescriptionPatID.Name = "txtPrescriptionPatID";
|
this.txtPrescriptionPatID.Name = "txtPrescriptionPatID";
|
||||||
this.txtPrescriptionPatID.Size = new System.Drawing.Size(100, 20);
|
this.txtPrescriptionPatID.Size = new System.Drawing.Size(148, 26);
|
||||||
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(276, 38);
|
||||||
|
this.txtRxNumber.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtRxNumber.Name = "txtRxNumber";
|
this.txtRxNumber.Name = "txtRxNumber";
|
||||||
this.txtRxNumber.Size = new System.Drawing.Size(100, 20);
|
this.txtRxNumber.Size = new System.Drawing.Size(148, 26);
|
||||||
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(92, 114);
|
||||||
|
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(84, 20);
|
||||||
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(92, 38);
|
||||||
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(92, 20);
|
||||||
this.lblRxNumber.TabIndex = 0;
|
this.lblRxNumber.TabIndex = 0;
|
||||||
this.lblRxNumber.Text = "Rx Number:";
|
this.lblRxNumber.Text = "Rx Number:";
|
||||||
//
|
//
|
||||||
@ -386,10 +545,11 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
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, 5);
|
||||||
|
this.dgvPrescription.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.dgvPrescription.Name = "dgvPrescription";
|
this.dgvPrescription.Name = "dgvPrescription";
|
||||||
this.dgvPrescription.RowHeadersWidth = 51;
|
this.dgvPrescription.RowHeadersWidth = 51;
|
||||||
this.dgvPrescription.Size = new System.Drawing.Size(652, 195);
|
this.dgvPrescription.Size = new System.Drawing.Size(978, 300);
|
||||||
this.dgvPrescription.TabIndex = 0;
|
this.dgvPrescription.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// RxNum_id
|
// RxNum_id
|
||||||
@ -453,33 +613,34 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
this.cmuRx.ImageScalingSize = new System.Drawing.Size(20, 20);
|
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.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(135, 94);
|
||||||
//
|
//
|
||||||
// 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(134, 30);
|
||||||
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(134, 30);
|
||||||
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(134, 30);
|
||||||
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, 29);
|
||||||
|
this.tbpPhysician.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
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, 5, 4, 5);
|
||||||
this.tbpPhysician.Size = new System.Drawing.Size(658, 415);
|
this.tbpPhysician.Size = new System.Drawing.Size(991, 645);
|
||||||
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;
|
||||||
@ -487,7 +648,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, 5);
|
||||||
|
this.splcPhysician.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.splcPhysician.Name = "splcPhysician";
|
this.splcPhysician.Name = "splcPhysician";
|
||||||
this.splcPhysician.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
this.splcPhysician.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||||
//
|
//
|
||||||
@ -507,45 +669,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(983, 635);
|
||||||
this.splcPhysician.SplitterDistance = 182;
|
this.splcPhysician.SplitterDistance = 282;
|
||||||
|
this.splcPhysician.SplitterWidth = 6;
|
||||||
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(148, 171);
|
||||||
|
this.txtPhysicianID.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtPhysicianID.Name = "txtPhysicianID";
|
this.txtPhysicianID.Name = "txtPhysicianID";
|
||||||
this.txtPhysicianID.Size = new System.Drawing.Size(100, 20);
|
this.txtPhysicianID.Size = new System.Drawing.Size(148, 26);
|
||||||
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(36, 171);
|
||||||
|
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(100, 20);
|
||||||
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(148, 103);
|
||||||
|
this.txtPhysicianLast.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtPhysicianLast.Name = "txtPhysicianLast";
|
this.txtPhysicianLast.Name = "txtPhysicianLast";
|
||||||
this.txtPhysicianLast.Size = new System.Drawing.Size(100, 20);
|
this.txtPhysicianLast.Size = new System.Drawing.Size(148, 26);
|
||||||
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(148, 35);
|
||||||
|
this.txtPhysicianFirst.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtPhysicianFirst.Name = "txtPhysicianFirst";
|
this.txtPhysicianFirst.Name = "txtPhysicianFirst";
|
||||||
this.txtPhysicianFirst.Size = new System.Drawing.Size(100, 20);
|
this.txtPhysicianFirst.Size = new System.Drawing.Size(148, 26);
|
||||||
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(68, 225);
|
||||||
|
this.btnPhysicianSearch.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.btnPhysicianSearch.Name = "btnPhysicianSearch";
|
this.btnPhysicianSearch.Name = "btnPhysicianSearch";
|
||||||
this.btnPhysicianSearch.Size = new System.Drawing.Size(75, 23);
|
this.btnPhysicianSearch.Size = new System.Drawing.Size(112, 35);
|
||||||
this.btnPhysicianSearch.TabIndex = 4;
|
this.btnPhysicianSearch.TabIndex = 4;
|
||||||
this.btnPhysicianSearch.Text = "Search";
|
this.btnPhysicianSearch.Text = "Search";
|
||||||
this.btnPhysicianSearch.UseVisualStyleBackColor = true;
|
this.btnPhysicianSearch.UseVisualStyleBackColor = true;
|
||||||
@ -558,11 +726,12 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
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, 5);
|
||||||
|
this.dgvPhysician.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
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(646, 216);
|
this.dgvPhysician.Size = new System.Drawing.Size(969, 332);
|
||||||
this.dgvPhysician.TabIndex = 0;
|
this.dgvPhysician.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// Phys_id
|
// Phys_id
|
||||||
@ -672,172 +841,33 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
this.cmuPhysician.ImageScalingSize = new System.Drawing.Size(20, 20);
|
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.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(135, 94);
|
||||||
//
|
//
|
||||||
// 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(134, 30);
|
||||||
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(134, 30);
|
||||||
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(134, 30);
|
||||||
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.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;
|
|
||||||
//
|
|
||||||
// frmInfo
|
// frmInfo
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||||
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(1124, 766);
|
||||||
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.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);
|
||||||
@ -940,7 +970,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
private System.Windows.Forms.DataGridViewTextBoxColumn Specialty;
|
private System.Windows.Forms.DataGridViewTextBoxColumn Specialty;
|
||||||
private System.Windows.Forms.TextBox txtPhysicianID;
|
private System.Windows.Forms.TextBox txtPhysicianID;
|
||||||
private System.Windows.Forms.Label lblPhysicianID;
|
private System.Windows.Forms.Label lblPhysicianID;
|
||||||
private System.Windows.Forms.TextBox txtPatientID;
|
public System.Windows.Forms.TextBox txtPatientID;
|
||||||
private System.Windows.Forms.Label lblPatientID;
|
private System.Windows.Forms.Label lblPatientID;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -21,6 +21,9 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
public frmInfo()
|
public frmInfo()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
|
dgvPatient.DoubleClick += cmuPatientEdit_Click;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void frmInfo_Load(object sender, EventArgs e)
|
private void frmInfo_Load(object sender, EventArgs e)
|
||||||
@ -32,6 +35,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
cmuPatientEdit.Enabled = false;
|
cmuPatientEdit.Enabled = false;
|
||||||
cmuPatientDelete.Enabled = false;
|
cmuPatientDelete.Enabled = false;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void frmInfo_KeyDown(object sender, KeyEventArgs e)
|
private void frmInfo_KeyDown(object sender, KeyEventArgs e)
|
||||||
@ -57,7 +61,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btnPatientSearch_Click(object sender, EventArgs e)
|
public void btnPatientSearch_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string fname = "";
|
string fname = "";
|
||||||
string lname = "";
|
string lname = "";
|
||||||
@ -310,7 +314,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
private void cmuPatientNew_Click(object sender, EventArgs e)
|
private void cmuPatientNew_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
frmPatientAdd PatientAdd = new frmPatientAdd(true);
|
frmPatientAdd PatientAdd = new frmPatientAdd(this, true);
|
||||||
PatientAdd.MdiParent = MdiParent;
|
PatientAdd.MdiParent = MdiParent;
|
||||||
PatientAdd.StartPosition = FormStartPosition.CenterScreen;
|
PatientAdd.StartPosition = FormStartPosition.CenterScreen;
|
||||||
PatientAdd.Show();
|
PatientAdd.Show();
|
||||||
@ -330,7 +334,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
row = dgvPatient.SelectedRows[0];
|
row = dgvPatient.SelectedRows[0];
|
||||||
string patid = "";
|
string patid = "";
|
||||||
patid = (row.Cells[4].Value).ToString();
|
patid = (row.Cells[4].Value).ToString();
|
||||||
frmPatientAdd PatientAdd = new frmPatientAdd(false);
|
frmPatientAdd PatientAdd = new frmPatientAdd(this, false);
|
||||||
PatientAdd.MdiParent = MdiParent;
|
PatientAdd.MdiParent = MdiParent;
|
||||||
PatientAdd.StartPosition = FormStartPosition.CenterScreen;
|
PatientAdd.StartPosition = FormStartPosition.CenterScreen;
|
||||||
PatientAdd.Show();
|
PatientAdd.Show();
|
||||||
@ -343,8 +347,31 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void dgvPatient_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
private void dgvPatient_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||||
|
{
|
||||||
|
cmuPatientEdit_Click(sender, e);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Panel1_Paint(object sender, PaintEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void cmuPatientDelete_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (dgvPatient.Rows.Count > 0)
|
||||||
|
{
|
||||||
|
|
||||||
|
dgvPatient.DataSource = ds.Tables[0];
|
||||||
|
// Console.WriteLine( dgvPatient.SelectedRows.Count);
|
||||||
|
DataGridViewRow row = new DataGridViewRow();
|
||||||
|
row = dgvPatient.SelectedRows[0];
|
||||||
|
string patid = "";
|
||||||
|
patid = (row.Cells[4].Value).ToString();
|
||||||
|
PharmacyDataTier.DeletePatient(patid);
|
||||||
|
btnPatientSearch_Click(sender, e);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
30
Louis'-Pharmacy_CNSA212-FP/frmMain.Designer.cs
generated
30
Louis'-Pharmacy_CNSA212-FP/frmMain.Designer.cs
generated
@ -48,7 +48,8 @@
|
|||||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuNavigation, this.mnuWindow, this.mnuHelp });
|
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 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.Padding = new System.Windows.Forms.Padding(9, 3, 0, 3);
|
||||||
|
this.menuStrip1.Size = new System.Drawing.Size(1450, 35);
|
||||||
this.menuStrip1.TabIndex = 0;
|
this.menuStrip1.TabIndex = 0;
|
||||||
this.menuStrip1.Text = "menuStrip1";
|
this.menuStrip1.Text = "menuStrip1";
|
||||||
//
|
//
|
||||||
@ -56,20 +57,20 @@
|
|||||||
//
|
//
|
||||||
this.mnuNavigation.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuNavigationView, this.mnuNavigationAURRefill });
|
this.mnuNavigation.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuNavigationView, 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(110, 29);
|
||||||
this.mnuNavigation.Text = "Navigation";
|
this.mnuNavigation.Text = "Navigation";
|
||||||
//
|
//
|
||||||
// mnuNavigationView
|
// mnuNavigationView
|
||||||
//
|
//
|
||||||
this.mnuNavigationView.Name = "mnuNavigationView";
|
this.mnuNavigationView.Name = "mnuNavigationView";
|
||||||
this.mnuNavigationView.Size = new System.Drawing.Size(272, 22);
|
this.mnuNavigationView.Size = new System.Drawing.Size(373, 30);
|
||||||
this.mnuNavigationView.Text = "Patient/Prescription/Physician Search";
|
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);
|
||||||
//
|
//
|
||||||
// mnuNavigationAURRefill
|
// mnuNavigationAURRefill
|
||||||
//
|
//
|
||||||
this.mnuNavigationAURRefill.Name = "mnuNavigationAURRefill";
|
this.mnuNavigationAURRefill.Name = "mnuNavigationAURRefill";
|
||||||
this.mnuNavigationAURRefill.Size = new System.Drawing.Size(272, 22);
|
this.mnuNavigationAURRefill.Size = new System.Drawing.Size(373, 30);
|
||||||
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);
|
||||||
//
|
//
|
||||||
@ -77,41 +78,41 @@
|
|||||||
//
|
//
|
||||||
this.mnuWindow.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuWindowArrangeIcons, this.mnuWindowCascade, this.mnuWindowHorizontal, this.mnuWindowVertical, this.mnuWindowCloseAll });
|
this.mnuWindow.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { 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(90, 29);
|
||||||
this.mnuWindow.Text = "Window";
|
this.mnuWindow.Text = "Window";
|
||||||
//
|
//
|
||||||
// mnuWindowArrangeIcons
|
// mnuWindowArrangeIcons
|
||||||
//
|
//
|
||||||
this.mnuWindowArrangeIcons.Name = "mnuWindowArrangeIcons";
|
this.mnuWindowArrangeIcons.Name = "mnuWindowArrangeIcons";
|
||||||
this.mnuWindowArrangeIcons.Size = new System.Drawing.Size(147, 22);
|
this.mnuWindowArrangeIcons.Size = new System.Drawing.Size(194, 30);
|
||||||
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(147, 22);
|
this.mnuWindowCascade.Size = new System.Drawing.Size(194, 30);
|
||||||
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(147, 22);
|
this.mnuWindowHorizontal.Size = new System.Drawing.Size(194, 30);
|
||||||
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(147, 22);
|
this.mnuWindowVertical.Size = new System.Drawing.Size(194, 30);
|
||||||
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(147, 22);
|
this.mnuWindowCloseAll.Size = new System.Drawing.Size(194, 30);
|
||||||
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);
|
||||||
//
|
//
|
||||||
@ -119,24 +120,25 @@
|
|||||||
//
|
//
|
||||||
this.mnuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuHelpAbout });
|
this.mnuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { 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(61, 29);
|
||||||
this.mnuHelp.Text = "Help";
|
this.mnuHelp.Text = "Help";
|
||||||
//
|
//
|
||||||
// mnuHelpAbout
|
// mnuHelpAbout
|
||||||
//
|
//
|
||||||
this.mnuHelpAbout.Name = "mnuHelpAbout";
|
this.mnuHelpAbout.Name = "mnuHelpAbout";
|
||||||
this.mnuHelpAbout.Size = new System.Drawing.Size(107, 22);
|
this.mnuHelpAbout.Size = new System.Drawing.Size(134, 30);
|
||||||
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);
|
||||||
//
|
//
|
||||||
// frmMain
|
// frmMain
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||||
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(1450, 942);
|
||||||
this.Controls.Add(this.menuStrip1);
|
this.Controls.Add(this.menuStrip1);
|
||||||
this.IsMdiContainer = true;
|
this.IsMdiContainer = true;
|
||||||
this.MainMenuStrip = this.menuStrip1;
|
this.MainMenuStrip = this.menuStrip1;
|
||||||
|
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.Name = "frmMain";
|
this.Name = "frmMain";
|
||||||
this.Text = "frmMain";
|
this.Text = "frmMain";
|
||||||
this.Load += new System.EventHandler(this.frmMain_Load);
|
this.Load += new System.EventHandler(this.frmMain_Load);
|
||||||
|
160
Louis'-Pharmacy_CNSA212-FP/frmPatientAdd.Designer.cs
generated
160
Louis'-Pharmacy_CNSA212-FP/frmPatientAdd.Designer.cs
generated
@ -59,13 +59,15 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
this.txtPhone = new System.Windows.Forms.TextBox();
|
this.txtPhone = new System.Windows.Forms.TextBox();
|
||||||
this.lblDisPurpose = new System.Windows.Forms.Label();
|
this.lblDisPurpose = new System.Windows.Forms.Label();
|
||||||
this.btnGO = new System.Windows.Forms.Button();
|
this.btnGO = new System.Windows.Forms.Button();
|
||||||
|
this.btnClose = new System.Windows.Forms.Button();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// label1
|
// label1
|
||||||
//
|
//
|
||||||
this.label1.Location = new System.Drawing.Point(83, 72);
|
this.label1.Location = new System.Drawing.Point(124, 111);
|
||||||
|
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.label1.Name = "label1";
|
this.label1.Name = "label1";
|
||||||
this.label1.Size = new System.Drawing.Size(100, 23);
|
this.label1.Size = new System.Drawing.Size(150, 35);
|
||||||
this.label1.TabIndex = 0;
|
this.label1.TabIndex = 0;
|
||||||
this.label1.Text = "Patient ID:";
|
this.label1.Text = "Patient ID:";
|
||||||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
@ -73,227 +75,266 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
//
|
//
|
||||||
// label2
|
// label2
|
||||||
//
|
//
|
||||||
this.label2.Location = new System.Drawing.Point(83, 95);
|
this.label2.Location = new System.Drawing.Point(124, 146);
|
||||||
|
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.label2.Name = "label2";
|
this.label2.Name = "label2";
|
||||||
this.label2.Size = new System.Drawing.Size(100, 23);
|
this.label2.Size = new System.Drawing.Size(150, 35);
|
||||||
this.label2.TabIndex = 1;
|
this.label2.TabIndex = 1;
|
||||||
this.label2.Text = "First Name:";
|
this.label2.Text = "First Name:";
|
||||||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
//
|
//
|
||||||
// label3
|
// label3
|
||||||
//
|
//
|
||||||
this.label3.Location = new System.Drawing.Point(83, 118);
|
this.label3.Location = new System.Drawing.Point(124, 182);
|
||||||
|
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.label3.Name = "label3";
|
this.label3.Name = "label3";
|
||||||
this.label3.Size = new System.Drawing.Size(100, 23);
|
this.label3.Size = new System.Drawing.Size(150, 35);
|
||||||
this.label3.TabIndex = 2;
|
this.label3.TabIndex = 2;
|
||||||
this.label3.Text = "Last Name:";
|
this.label3.Text = "Last Name:";
|
||||||
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
//
|
//
|
||||||
// label4
|
// label4
|
||||||
//
|
//
|
||||||
this.label4.Location = new System.Drawing.Point(83, 141);
|
this.label4.Location = new System.Drawing.Point(124, 217);
|
||||||
|
this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.label4.Name = "label4";
|
this.label4.Name = "label4";
|
||||||
this.label4.Size = new System.Drawing.Size(100, 23);
|
this.label4.Size = new System.Drawing.Size(150, 35);
|
||||||
this.label4.TabIndex = 3;
|
this.label4.TabIndex = 3;
|
||||||
this.label4.Text = "Middle Initial:";
|
this.label4.Text = "Middle Initial:";
|
||||||
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
//
|
//
|
||||||
// label5
|
// label5
|
||||||
//
|
//
|
||||||
this.label5.Location = new System.Drawing.Point(391, 72);
|
this.label5.Location = new System.Drawing.Point(586, 111);
|
||||||
|
this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.label5.Name = "label5";
|
this.label5.Name = "label5";
|
||||||
this.label5.Size = new System.Drawing.Size(100, 23);
|
this.label5.Size = new System.Drawing.Size(150, 35);
|
||||||
this.label5.TabIndex = 4;
|
this.label5.TabIndex = 4;
|
||||||
this.label5.Text = "City:";
|
this.label5.Text = "City:";
|
||||||
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
//
|
//
|
||||||
// label6
|
// label6
|
||||||
//
|
//
|
||||||
this.label6.Location = new System.Drawing.Point(391, 95);
|
this.label6.Location = new System.Drawing.Point(586, 146);
|
||||||
|
this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.label6.Name = "label6";
|
this.label6.Name = "label6";
|
||||||
this.label6.Size = new System.Drawing.Size(100, 23);
|
this.label6.Size = new System.Drawing.Size(150, 35);
|
||||||
this.label6.TabIndex = 5;
|
this.label6.TabIndex = 5;
|
||||||
this.label6.Text = "Zip Code:";
|
this.label6.Text = "Zip Code:";
|
||||||
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
//
|
//
|
||||||
// label7
|
// label7
|
||||||
//
|
//
|
||||||
this.label7.Location = new System.Drawing.Point(391, 118);
|
this.label7.Location = new System.Drawing.Point(586, 182);
|
||||||
|
this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.label7.Name = "label7";
|
this.label7.Name = "label7";
|
||||||
this.label7.Size = new System.Drawing.Size(100, 23);
|
this.label7.Size = new System.Drawing.Size(150, 35);
|
||||||
this.label7.TabIndex = 6;
|
this.label7.TabIndex = 6;
|
||||||
this.label7.Text = "State";
|
this.label7.Text = "State";
|
||||||
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
//
|
//
|
||||||
// label8
|
// label8
|
||||||
//
|
//
|
||||||
this.label8.Location = new System.Drawing.Point(83, 164);
|
this.label8.Location = new System.Drawing.Point(124, 252);
|
||||||
|
this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.label8.Name = "label8";
|
this.label8.Name = "label8";
|
||||||
this.label8.Size = new System.Drawing.Size(100, 23);
|
this.label8.Size = new System.Drawing.Size(150, 35);
|
||||||
this.label8.TabIndex = 7;
|
this.label8.TabIndex = 7;
|
||||||
this.label8.Text = "Weight (Lbs):";
|
this.label8.Text = "Weight (Lbs):";
|
||||||
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
//
|
//
|
||||||
// label9
|
// label9
|
||||||
//
|
//
|
||||||
this.label9.Location = new System.Drawing.Point(83, 187);
|
this.label9.Location = new System.Drawing.Point(124, 288);
|
||||||
|
this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.label9.Name = "label9";
|
this.label9.Name = "label9";
|
||||||
this.label9.Size = new System.Drawing.Size(100, 23);
|
this.label9.Size = new System.Drawing.Size(150, 35);
|
||||||
this.label9.TabIndex = 8;
|
this.label9.TabIndex = 8;
|
||||||
this.label9.Text = "Height (Ft):";
|
this.label9.Text = "Height (Ft):";
|
||||||
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
//
|
//
|
||||||
// label10
|
// label10
|
||||||
//
|
//
|
||||||
this.label10.Location = new System.Drawing.Point(83, 210);
|
this.label10.Location = new System.Drawing.Point(124, 323);
|
||||||
|
this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.label10.Name = "label10";
|
this.label10.Name = "label10";
|
||||||
this.label10.Size = new System.Drawing.Size(100, 23);
|
this.label10.Size = new System.Drawing.Size(150, 35);
|
||||||
this.label10.TabIndex = 9;
|
this.label10.TabIndex = 9;
|
||||||
this.label10.Text = "Height (in):";
|
this.label10.Text = "Height (in):";
|
||||||
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
//
|
//
|
||||||
// label11
|
// label11
|
||||||
//
|
//
|
||||||
this.label11.Location = new System.Drawing.Point(83, 233);
|
this.label11.Location = new System.Drawing.Point(124, 358);
|
||||||
|
this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.label11.Name = "label11";
|
this.label11.Name = "label11";
|
||||||
this.label11.Size = new System.Drawing.Size(100, 23);
|
this.label11.Size = new System.Drawing.Size(150, 35);
|
||||||
this.label11.TabIndex = 10;
|
this.label11.TabIndex = 10;
|
||||||
this.label11.Text = "Date of Birth:";
|
this.label11.Text = "Date of Birth:";
|
||||||
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
//
|
//
|
||||||
// label12
|
// label12
|
||||||
//
|
//
|
||||||
this.label12.Location = new System.Drawing.Point(391, 141);
|
this.label12.Location = new System.Drawing.Point(586, 217);
|
||||||
|
this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.label12.Name = "label12";
|
this.label12.Name = "label12";
|
||||||
this.label12.Size = new System.Drawing.Size(100, 23);
|
this.label12.Size = new System.Drawing.Size(150, 35);
|
||||||
this.label12.TabIndex = 11;
|
this.label12.TabIndex = 11;
|
||||||
this.label12.Text = "Phone Number:";
|
this.label12.Text = "Phone Number:";
|
||||||
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
//
|
//
|
||||||
// label13
|
// label13
|
||||||
//
|
//
|
||||||
this.label13.Location = new System.Drawing.Point(83, 256);
|
this.label13.Location = new System.Drawing.Point(124, 394);
|
||||||
|
this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.label13.Name = "label13";
|
this.label13.Name = "label13";
|
||||||
this.label13.Size = new System.Drawing.Size(100, 23);
|
this.label13.Size = new System.Drawing.Size(150, 35);
|
||||||
this.label13.TabIndex = 12;
|
this.label13.TabIndex = 12;
|
||||||
this.label13.Text = "Gender (M/F):";
|
this.label13.Text = "Gender (M/F):";
|
||||||
this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
//
|
//
|
||||||
// txtPatientID
|
// txtPatientID
|
||||||
//
|
//
|
||||||
this.txtPatientID.Location = new System.Drawing.Point(189, 74);
|
this.txtPatientID.Location = new System.Drawing.Point(284, 114);
|
||||||
|
this.txtPatientID.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtPatientID.Name = "txtPatientID";
|
this.txtPatientID.Name = "txtPatientID";
|
||||||
this.txtPatientID.Size = new System.Drawing.Size(100, 20);
|
this.txtPatientID.Size = new System.Drawing.Size(148, 26);
|
||||||
this.txtPatientID.TabIndex = 1;
|
this.txtPatientID.TabIndex = 1;
|
||||||
//
|
//
|
||||||
// txtFname
|
// txtFname
|
||||||
//
|
//
|
||||||
this.txtFname.Location = new System.Drawing.Point(189, 97);
|
this.txtFname.Location = new System.Drawing.Point(284, 149);
|
||||||
|
this.txtFname.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtFname.Name = "txtFname";
|
this.txtFname.Name = "txtFname";
|
||||||
this.txtFname.Size = new System.Drawing.Size(100, 20);
|
this.txtFname.Size = new System.Drawing.Size(148, 26);
|
||||||
this.txtFname.TabIndex = 2;
|
this.txtFname.TabIndex = 2;
|
||||||
//
|
//
|
||||||
// txtLname
|
// txtLname
|
||||||
//
|
//
|
||||||
this.txtLname.Location = new System.Drawing.Point(189, 120);
|
this.txtLname.Location = new System.Drawing.Point(284, 185);
|
||||||
|
this.txtLname.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtLname.Name = "txtLname";
|
this.txtLname.Name = "txtLname";
|
||||||
this.txtLname.Size = new System.Drawing.Size(100, 20);
|
this.txtLname.Size = new System.Drawing.Size(148, 26);
|
||||||
this.txtLname.TabIndex = 3;
|
this.txtLname.TabIndex = 3;
|
||||||
//
|
//
|
||||||
// txtMidInit
|
// txtMidInit
|
||||||
//
|
//
|
||||||
this.txtMidInit.Location = new System.Drawing.Point(189, 143);
|
this.txtMidInit.Location = new System.Drawing.Point(284, 220);
|
||||||
|
this.txtMidInit.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtMidInit.Name = "txtMidInit";
|
this.txtMidInit.Name = "txtMidInit";
|
||||||
this.txtMidInit.Size = new System.Drawing.Size(100, 20);
|
this.txtMidInit.Size = new System.Drawing.Size(148, 26);
|
||||||
this.txtMidInit.TabIndex = 4;
|
this.txtMidInit.TabIndex = 4;
|
||||||
//
|
//
|
||||||
// txtWeight
|
// txtWeight
|
||||||
//
|
//
|
||||||
this.txtWeight.Location = new System.Drawing.Point(189, 166);
|
this.txtWeight.Location = new System.Drawing.Point(284, 255);
|
||||||
|
this.txtWeight.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtWeight.Name = "txtWeight";
|
this.txtWeight.Name = "txtWeight";
|
||||||
this.txtWeight.Size = new System.Drawing.Size(100, 20);
|
this.txtWeight.Size = new System.Drawing.Size(148, 26);
|
||||||
this.txtWeight.TabIndex = 5;
|
this.txtWeight.TabIndex = 5;
|
||||||
//
|
//
|
||||||
// txtHeightFt
|
// txtHeightFt
|
||||||
//
|
//
|
||||||
this.txtHeightFt.Location = new System.Drawing.Point(189, 189);
|
this.txtHeightFt.Location = new System.Drawing.Point(284, 291);
|
||||||
|
this.txtHeightFt.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtHeightFt.Name = "txtHeightFt";
|
this.txtHeightFt.Name = "txtHeightFt";
|
||||||
this.txtHeightFt.Size = new System.Drawing.Size(100, 20);
|
this.txtHeightFt.Size = new System.Drawing.Size(148, 26);
|
||||||
this.txtHeightFt.TabIndex = 6;
|
this.txtHeightFt.TabIndex = 6;
|
||||||
//
|
//
|
||||||
// txtHeightIn
|
// txtHeightIn
|
||||||
//
|
//
|
||||||
this.txtHeightIn.Location = new System.Drawing.Point(189, 212);
|
this.txtHeightIn.Location = new System.Drawing.Point(284, 326);
|
||||||
|
this.txtHeightIn.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtHeightIn.Name = "txtHeightIn";
|
this.txtHeightIn.Name = "txtHeightIn";
|
||||||
this.txtHeightIn.Size = new System.Drawing.Size(100, 20);
|
this.txtHeightIn.Size = new System.Drawing.Size(148, 26);
|
||||||
this.txtHeightIn.TabIndex = 7;
|
this.txtHeightIn.TabIndex = 7;
|
||||||
//
|
//
|
||||||
// txtDOB
|
// txtDOB
|
||||||
//
|
//
|
||||||
this.txtDOB.Location = new System.Drawing.Point(189, 235);
|
this.txtDOB.Location = new System.Drawing.Point(284, 362);
|
||||||
|
this.txtDOB.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtDOB.Name = "txtDOB";
|
this.txtDOB.Name = "txtDOB";
|
||||||
this.txtDOB.Size = new System.Drawing.Size(100, 20);
|
this.txtDOB.Size = new System.Drawing.Size(148, 26);
|
||||||
this.txtDOB.TabIndex = 8;
|
this.txtDOB.TabIndex = 8;
|
||||||
//
|
//
|
||||||
// txtGender
|
// txtGender
|
||||||
//
|
//
|
||||||
this.txtGender.Location = new System.Drawing.Point(189, 258);
|
this.txtGender.Location = new System.Drawing.Point(284, 397);
|
||||||
|
this.txtGender.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtGender.Name = "txtGender";
|
this.txtGender.Name = "txtGender";
|
||||||
this.txtGender.Size = new System.Drawing.Size(100, 20);
|
this.txtGender.Size = new System.Drawing.Size(148, 26);
|
||||||
this.txtGender.TabIndex = 9;
|
this.txtGender.TabIndex = 9;
|
||||||
//
|
//
|
||||||
// txtCity
|
// txtCity
|
||||||
//
|
//
|
||||||
this.txtCity.Location = new System.Drawing.Point(497, 74);
|
this.txtCity.Location = new System.Drawing.Point(746, 114);
|
||||||
|
this.txtCity.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtCity.Name = "txtCity";
|
this.txtCity.Name = "txtCity";
|
||||||
this.txtCity.Size = new System.Drawing.Size(100, 20);
|
this.txtCity.Size = new System.Drawing.Size(148, 26);
|
||||||
this.txtCity.TabIndex = 10;
|
this.txtCity.TabIndex = 10;
|
||||||
//
|
//
|
||||||
// txtZip
|
// txtZip
|
||||||
//
|
//
|
||||||
this.txtZip.Location = new System.Drawing.Point(497, 97);
|
this.txtZip.Location = new System.Drawing.Point(746, 149);
|
||||||
|
this.txtZip.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtZip.Name = "txtZip";
|
this.txtZip.Name = "txtZip";
|
||||||
this.txtZip.Size = new System.Drawing.Size(100, 20);
|
this.txtZip.Size = new System.Drawing.Size(148, 26);
|
||||||
this.txtZip.TabIndex = 11;
|
this.txtZip.TabIndex = 11;
|
||||||
//
|
//
|
||||||
// txtState
|
// txtState
|
||||||
//
|
//
|
||||||
this.txtState.Location = new System.Drawing.Point(497, 120);
|
this.txtState.Location = new System.Drawing.Point(746, 185);
|
||||||
|
this.txtState.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtState.Name = "txtState";
|
this.txtState.Name = "txtState";
|
||||||
this.txtState.Size = new System.Drawing.Size(100, 20);
|
this.txtState.Size = new System.Drawing.Size(148, 26);
|
||||||
this.txtState.TabIndex = 12;
|
this.txtState.TabIndex = 12;
|
||||||
//
|
//
|
||||||
// txtPhone
|
// txtPhone
|
||||||
//
|
//
|
||||||
this.txtPhone.Location = new System.Drawing.Point(497, 143);
|
this.txtPhone.Location = new System.Drawing.Point(746, 220);
|
||||||
|
this.txtPhone.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.txtPhone.Name = "txtPhone";
|
this.txtPhone.Name = "txtPhone";
|
||||||
this.txtPhone.Size = new System.Drawing.Size(100, 20);
|
this.txtPhone.Size = new System.Drawing.Size(148, 26);
|
||||||
this.txtPhone.TabIndex = 13;
|
this.txtPhone.TabIndex = 13;
|
||||||
//
|
//
|
||||||
// lblDisPurpose
|
// lblDisPurpose
|
||||||
//
|
//
|
||||||
this.lblDisPurpose.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.lblDisPurpose.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.lblDisPurpose.Location = new System.Drawing.Point(206, 9);
|
this.lblDisPurpose.Location = new System.Drawing.Point(309, 14);
|
||||||
|
this.lblDisPurpose.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
this.lblDisPurpose.Name = "lblDisPurpose";
|
this.lblDisPurpose.Name = "lblDisPurpose";
|
||||||
this.lblDisPurpose.Size = new System.Drawing.Size(380, 36);
|
this.lblDisPurpose.Size = new System.Drawing.Size(570, 55);
|
||||||
this.lblDisPurpose.TabIndex = 26;
|
this.lblDisPurpose.TabIndex = 26;
|
||||||
this.lblDisPurpose.Text = "Patient";
|
this.lblDisPurpose.Text = "Patient";
|
||||||
this.lblDisPurpose.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
this.lblDisPurpose.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
//
|
//
|
||||||
// btnGO
|
// btnGO
|
||||||
//
|
//
|
||||||
this.btnGO.Location = new System.Drawing.Point(670, 389);
|
this.btnGO.Location = new System.Drawing.Point(832, 600);
|
||||||
|
this.btnGO.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.btnGO.Name = "btnGO";
|
this.btnGO.Name = "btnGO";
|
||||||
this.btnGO.Size = new System.Drawing.Size(75, 23);
|
this.btnGO.Size = new System.Drawing.Size(112, 35);
|
||||||
this.btnGO.TabIndex = 14;
|
this.btnGO.TabIndex = 14;
|
||||||
this.btnGO.UseVisualStyleBackColor = true;
|
this.btnGO.UseVisualStyleBackColor = true;
|
||||||
|
this.btnGO.Click += new System.EventHandler(this.btnGO_Click);
|
||||||
|
//
|
||||||
|
// btnClose
|
||||||
|
//
|
||||||
|
this.btnClose.Location = new System.Drawing.Point(1011, 600);
|
||||||
|
this.btnClose.Name = "btnClose";
|
||||||
|
this.btnClose.Size = new System.Drawing.Size(112, 35);
|
||||||
|
this.btnClose.TabIndex = 27;
|
||||||
|
this.btnClose.Text = "Close";
|
||||||
|
this.btnClose.UseVisualStyleBackColor = true;
|
||||||
|
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
|
||||||
//
|
//
|
||||||
// frmPatientAdd
|
// frmPatientAdd
|
||||||
//
|
//
|
||||||
this.AcceptButton = this.btnGO;
|
this.AcceptButton = this.btnGO;
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||||
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(1212, 726);
|
||||||
|
this.Controls.Add(this.btnClose);
|
||||||
this.Controls.Add(this.btnGO);
|
this.Controls.Add(this.btnGO);
|
||||||
this.Controls.Add(this.lblDisPurpose);
|
this.Controls.Add(this.lblDisPurpose);
|
||||||
this.Controls.Add(this.txtPhone);
|
this.Controls.Add(this.txtPhone);
|
||||||
@ -322,6 +363,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
this.Controls.Add(this.label3);
|
this.Controls.Add(this.label3);
|
||||||
this.Controls.Add(this.label2);
|
this.Controls.Add(this.label2);
|
||||||
this.Controls.Add(this.label1);
|
this.Controls.Add(this.label1);
|
||||||
|
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.Name = "frmPatientAdd";
|
this.Name = "frmPatientAdd";
|
||||||
this.Text = "frmPatientAdd";
|
this.Text = "frmPatientAdd";
|
||||||
this.Load += new System.EventHandler(this.frmPatientAdd_Load);
|
this.Load += new System.EventHandler(this.frmPatientAdd_Load);
|
||||||
@ -329,6 +371,8 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private System.Windows.Forms.Button btnClose;
|
||||||
|
|
||||||
private System.Windows.Forms.Button btnGO;
|
private System.Windows.Forms.Button btnGO;
|
||||||
|
|
||||||
private System.Windows.Forms.TextBox txtPatientID;
|
private System.Windows.Forms.TextBox txtPatientID;
|
||||||
|
@ -1,18 +1,25 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Windows.Forms;
|
|
||||||
using System.Data;
|
using System.Data;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace Louis__Pharmacy_CNSA212_FP
|
namespace Louis__Pharmacy_CNSA212_FP
|
||||||
{
|
{
|
||||||
public partial class frmPatientAdd : Form
|
public partial class frmPatientAdd : Form
|
||||||
{
|
{
|
||||||
|
|
||||||
private static bool isAdd;
|
private static bool isAdd;
|
||||||
public frmPatientAdd(bool isNew)
|
|
||||||
|
private frmInfo SourceForm;
|
||||||
|
|
||||||
|
public frmPatientAdd(frmInfo there, bool isNew)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
SourceForm = there;
|
||||||
|
|
||||||
isAdd = isNew;
|
isAdd = isNew;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
|
txtState.MaxLength = 2;
|
||||||
|
|
||||||
if (isNew)
|
if (isNew)
|
||||||
{
|
{
|
||||||
lblDisPurpose.Text = "Add Patient";
|
lblDisPurpose.Text = "Add Patient";
|
||||||
@ -23,37 +30,29 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
lblDisPurpose.Text = "Edit Patient";
|
lblDisPurpose.Text = "Edit Patient";
|
||||||
btnGO.Text = "Update";
|
btnGO.Text = "Update";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void label1_Click(object sender, EventArgs e)
|
private void label1_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void frmPatientAdd_Load(object sender, EventArgs e)
|
private void frmPatientAdd_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
txtPatientID.Enabled = false;
|
txtPatientID.Enabled = false;
|
||||||
|
|
||||||
if (isAdd)
|
if (isAdd)
|
||||||
{
|
{
|
||||||
double nextID = PharmacyDataTier.GetNextPatientID();
|
var nextID = PharmacyDataTier.GetNextPatientID();
|
||||||
txtPatientID.Text = nextID.ToString();
|
txtPatientID.Text = nextID.ToString();
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void FillPatient(string patID)
|
public void FillPatient(string patID)
|
||||||
{
|
{
|
||||||
DataSet ds = new DataSet();
|
var ds = new DataSet();
|
||||||
PharmacyDataTier data = new PharmacyDataTier();
|
var data = new PharmacyDataTier();
|
||||||
|
|
||||||
ds = PharmacyDataTier.PatientInfoSearch(patID);
|
ds = PharmacyDataTier.PatientInfoSearch(patID);
|
||||||
txtPatientID.Text = ds.Tables[0].Rows[0]["Patient_id"].ToString();
|
txtPatientID.Text = ds.Tables[0].Rows[0]["Patient_id"].ToString();
|
||||||
@ -70,6 +69,408 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
txtState.Text = ds.Tables[0].Rows[0]["UsState"].ToString();
|
txtState.Text = ds.Tables[0].Rows[0]["UsState"].ToString();
|
||||||
txtPhone.Text = ds.Tables[0].Rows[0]["PhoneNumber"].ToString();
|
txtPhone.Text = ds.Tables[0].Rows[0]["PhoneNumber"].ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void btnGO_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
var epLocal = new ErrorProvider();
|
||||||
|
|
||||||
|
var Patient_id = txtPatientID.Text;
|
||||||
|
var FirstName = txtFname.Text;
|
||||||
|
var LastName = txtLname.Text;
|
||||||
|
var MiddleIntials = txtMidInit.Text;
|
||||||
|
var City = txtCity.Text;
|
||||||
|
|
||||||
|
int lbs;
|
||||||
|
int Height_feet;
|
||||||
|
int Height_inches;
|
||||||
|
DateTime DOB;
|
||||||
|
string Gender;
|
||||||
|
short Zip;
|
||||||
|
string UsState;
|
||||||
|
string PhoneNumber;
|
||||||
|
|
||||||
|
var parseHasFailed = false;
|
||||||
|
|
||||||
|
|
||||||
|
if (!isAdd)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
lbs = int.Parse(txtWeight.Text);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Height_feet = int.Parse(txtHeightFt.Text);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Height_inches = int.Parse(txtHeightIn.Text);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
DOB = DateTime.Parse(txtDOB.Text);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Gender = txtGender.Text;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Zip = short.Parse(txtZip.Text);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
UsState = txtState.Text;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
PhoneNumber = txtPhone.Text;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (Patient_id.Length > 8)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtPatientID, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
while (Patient_id.Length < 8)
|
||||||
|
{
|
||||||
|
Patient_id = "0" + Patient_id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FirstName.Length > 30)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtFname, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LastName.Length > 30)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtLname, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (MiddleIntials.Length > 1)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtMidInit, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MiddleIntials = MiddleIntials.ToUpper();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Zip > 65535)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtZip, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (City.Length > 30)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtCity, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (UsState.Length > 2)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtState, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
UsState = UsState.ToUpper();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (lbs > 2147483647)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtWeight, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Height_feet > 2147483647)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtHeightFt, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Height_inches > 2147483647)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtHeightIn, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (PhoneNumber.Length > 14)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtPhone, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Gender.Length > 1)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtGender, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Gender = Gender.ToUpper();
|
||||||
|
}
|
||||||
|
|
||||||
|
PharmacyDataTier.UpdatePatient(
|
||||||
|
Patient_id,
|
||||||
|
FirstName,
|
||||||
|
LastName,
|
||||||
|
MiddleIntials,
|
||||||
|
lbs,
|
||||||
|
Height_feet,
|
||||||
|
Height_inches,
|
||||||
|
DOB,
|
||||||
|
Gender,
|
||||||
|
City,
|
||||||
|
Zip,
|
||||||
|
UsState,
|
||||||
|
PhoneNumber);
|
||||||
|
|
||||||
|
|
||||||
|
SourceForm.txtPatientID.Text = Patient_id.ToString();
|
||||||
|
SourceForm.btnPatientSearch_Click(SourceForm, e);
|
||||||
|
|
||||||
|
Close();
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception exception)
|
||||||
|
{
|
||||||
|
epLocal.SetError(btnGO, "Error Creating Patient");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtPhone, "Invalid Value");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtState, "Invalid Value");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtZip, "Invalid Value");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtGender, "Invalid Value");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtDOB, "Invalid Value");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtHeightIn, "Invalid Value");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtHeightFt, "Invalid Value");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtWeight, "Invalid Value");
|
||||||
|
}
|
||||||
|
}else if (isAdd)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
lbs = int.Parse(txtWeight.Text);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Height_feet = int.Parse(txtHeightFt.Text);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Height_inches = int.Parse(txtHeightIn.Text);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
DOB = DateTime.Parse(txtDOB.Text);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Gender = txtGender.Text;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Zip = short.Parse(txtZip.Text);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
UsState = txtState.Text;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
PhoneNumber = txtPhone.Text;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (Patient_id.Length > 8)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtPatientID, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
while (Patient_id.Length < 8)
|
||||||
|
{
|
||||||
|
Patient_id = "0" + Patient_id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FirstName.Length > 30)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtFname, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LastName.Length > 30)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtLname, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (MiddleIntials.Length > 1)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtMidInit, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MiddleIntials = MiddleIntials.ToUpper();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Zip > 65535)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtZip, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (City.Length > 30)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtCity, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (UsState.Length > 2)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtState, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
UsState = UsState.ToUpper();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (lbs > 2147483647)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtWeight, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Height_feet > 2147483647)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtHeightFt, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Height_inches > 2147483647)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtHeightIn, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (PhoneNumber.Length > 14)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtPhone, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Gender.Length > 1)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtGender, "Error");
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Gender = Gender.ToUpper();
|
||||||
|
}
|
||||||
|
|
||||||
|
PharmacyDataTier.CreatePatient(
|
||||||
|
Patient_id,
|
||||||
|
FirstName,
|
||||||
|
LastName,
|
||||||
|
MiddleIntials,
|
||||||
|
lbs,
|
||||||
|
Height_feet,
|
||||||
|
Height_inches,
|
||||||
|
DOB,
|
||||||
|
Gender,
|
||||||
|
City,
|
||||||
|
Zip,
|
||||||
|
UsState,
|
||||||
|
PhoneNumber);
|
||||||
|
|
||||||
|
|
||||||
|
SourceForm.txtPatientID.Text = Patient_id.ToString();
|
||||||
|
SourceForm.btnPatientSearch_Click(SourceForm, e);
|
||||||
|
|
||||||
|
Close();
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception exception)
|
||||||
|
{
|
||||||
|
epLocal.SetError(btnGO, "Error Creating Patient");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtPhone, "Invalid Value");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtState, "Invalid Value");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtZip, "Invalid Value");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtGender, "Invalid Value");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtDOB, "Invalid Value");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtHeightIn, "Invalid Value");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtHeightFt, "Invalid Value");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
epLocal.SetError(txtWeight, "Invalid Value");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnClose_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user