Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
5900dad01d
@ -89,6 +89,12 @@
|
|||||||
<Compile Include="frmRefill.Designer.cs">
|
<Compile Include="frmRefill.Designer.cs">
|
||||||
<DependentUpon>frmRefill.cs</DependentUpon>
|
<DependentUpon>frmRefill.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="frmRefillAdd.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="frmRefillAdd.Designer.cs">
|
||||||
|
<DependentUpon>frmRefillAdd.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="frmWelcome.cs">
|
<Compile Include="frmWelcome.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@ -119,6 +125,9 @@
|
|||||||
<EmbeddedResource Include="frmRefill.resx">
|
<EmbeddedResource Include="frmRefill.resx">
|
||||||
<DependentUpon>frmRefill.cs</DependentUpon>
|
<DependentUpon>frmRefill.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="frmRefillAdd.resx">
|
||||||
|
<DependentUpon>frmRefillAdd.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="frmWelcome.resx">
|
<EmbeddedResource Include="frmWelcome.resx">
|
||||||
<DependentUpon>frmWelcome.cs</DependentUpon>
|
<DependentUpon>frmWelcome.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
@ -269,5 +269,42 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static DataSet RefillSearch(DateTime date, string 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 = "SearchRefills";
|
||||||
|
// Define input parameter
|
||||||
|
cmdString.Parameters.Add("@date", SqlDbType.Date).Value = date;
|
||||||
|
cmdString.Parameters.Add("@ID", SqlDbType.VarChar, 8).Value = id;
|
||||||
|
// adapter and dataset
|
||||||
|
SqlDataAdapter aAdapter = new SqlDataAdapter();
|
||||||
|
aAdapter.SelectCommand = cmdString;
|
||||||
|
DataSet aDataSet = new DataSet();
|
||||||
|
|
||||||
|
// fill adapter
|
||||||
|
aAdapter.Fill(aDataSet);
|
||||||
|
|
||||||
|
// return dataSet
|
||||||
|
return aDataSet;
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ArgumentException(ex.Message);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
myConn.Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
47
Louis'-Pharmacy_CNSA212-FP/frmRefill.Designer.cs
generated
47
Louis'-Pharmacy_CNSA212-FP/frmRefill.Designer.cs
generated
@ -44,13 +44,13 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
|
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
|
||||||
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
|
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.rEFILLSBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
|
this.rEFILLSBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
|
||||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
this.dgvRefills = new System.Windows.Forms.DataGridView();
|
||||||
this.refillid = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.refillid = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.refilldate = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.refilldate = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.patientid = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.patientid = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.medicationid = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.medicationid = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.rxnumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.rxnumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
this.cmuRefill = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||||
this.cmuAdd = new System.Windows.Forms.ToolStripMenuItem();
|
this.cmuAdd = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.cmuUpdate = new System.Windows.Forms.ToolStripMenuItem();
|
this.cmuUpdate = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.cmuDelete = new System.Windows.Forms.ToolStripMenuItem();
|
this.cmuDelete = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
@ -60,8 +60,8 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
this.btnSearch = new System.Windows.Forms.Button();
|
this.btnSearch = new System.Windows.Forms.Button();
|
||||||
this.lblPatientID = new System.Windows.Forms.Label();
|
this.lblPatientID = new System.Windows.Forms.Label();
|
||||||
this.lblDate = new System.Windows.Forms.Label();
|
this.lblDate = new System.Windows.Forms.Label();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.dgvRefills)).BeginInit();
|
||||||
this.contextMenuStrip1.SuspendLayout();
|
this.cmuRefill.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||||
this.splitContainer1.Panel1.SuspendLayout();
|
this.splitContainer1.Panel1.SuspendLayout();
|
||||||
this.splitContainer1.Panel2.SuspendLayout();
|
this.splitContainer1.Panel2.SuspendLayout();
|
||||||
@ -129,21 +129,23 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
this.rEFILLSBindingNavigatorSaveItem.Name = "rEFILLSBindingNavigatorSaveItem";
|
this.rEFILLSBindingNavigatorSaveItem.Name = "rEFILLSBindingNavigatorSaveItem";
|
||||||
this.rEFILLSBindingNavigatorSaveItem.Size = new System.Drawing.Size(23, 23);
|
this.rEFILLSBindingNavigatorSaveItem.Size = new System.Drawing.Size(23, 23);
|
||||||
//
|
//
|
||||||
// dataGridView1
|
// dgvRefills
|
||||||
//
|
//
|
||||||
this.dataGridView1.AllowUserToAddRows = false;
|
this.dgvRefills.AllowUserToAddRows = false;
|
||||||
this.dataGridView1.AllowUserToDeleteRows = false;
|
this.dgvRefills.AllowUserToDeleteRows = false;
|
||||||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
this.dgvRefills.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
this.dgvRefills.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||||
this.refillid,
|
this.refillid,
|
||||||
this.refilldate,
|
this.refilldate,
|
||||||
this.patientid,
|
this.patientid,
|
||||||
this.medicationid,
|
this.medicationid,
|
||||||
this.rxnumber});
|
this.rxnumber});
|
||||||
this.dataGridView1.Location = new System.Drawing.Point(3, 3);
|
this.dgvRefills.ContextMenuStrip = this.cmuRefill;
|
||||||
this.dataGridView1.Name = "dataGridView1";
|
this.dgvRefills.Location = new System.Drawing.Point(3, 3);
|
||||||
this.dataGridView1.Size = new System.Drawing.Size(625, 239);
|
this.dgvRefills.Name = "dgvRefills";
|
||||||
this.dataGridView1.TabIndex = 0;
|
this.dgvRefills.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||||
|
this.dgvRefills.Size = new System.Drawing.Size(625, 239);
|
||||||
|
this.dgvRefills.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// refillid
|
// refillid
|
||||||
//
|
//
|
||||||
@ -178,14 +180,14 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
this.rxnumber.HeaderText = "Rx Number";
|
this.rxnumber.HeaderText = "Rx Number";
|
||||||
this.rxnumber.Name = "rxnumber";
|
this.rxnumber.Name = "rxnumber";
|
||||||
//
|
//
|
||||||
// contextMenuStrip1
|
// cmuRefill
|
||||||
//
|
//
|
||||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.cmuRefill.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
this.cmuAdd,
|
this.cmuAdd,
|
||||||
this.cmuUpdate,
|
this.cmuUpdate,
|
||||||
this.cmuDelete});
|
this.cmuDelete});
|
||||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
this.cmuRefill.Name = "contextMenuStrip1";
|
||||||
this.contextMenuStrip1.Size = new System.Drawing.Size(113, 70);
|
this.cmuRefill.Size = new System.Drawing.Size(113, 70);
|
||||||
//
|
//
|
||||||
// cmuAdd
|
// cmuAdd
|
||||||
//
|
//
|
||||||
@ -221,7 +223,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
//
|
//
|
||||||
// splitContainer1.Panel2
|
// splitContainer1.Panel2
|
||||||
//
|
//
|
||||||
this.splitContainer1.Panel2.Controls.Add(this.dataGridView1);
|
this.splitContainer1.Panel2.Controls.Add(this.dgvRefills);
|
||||||
this.splitContainer1.Size = new System.Drawing.Size(631, 498);
|
this.splitContainer1.Size = new System.Drawing.Size(631, 498);
|
||||||
this.splitContainer1.SplitterDistance = 249;
|
this.splitContainer1.SplitterDistance = 249;
|
||||||
this.splitContainer1.TabIndex = 1;
|
this.splitContainer1.TabIndex = 1;
|
||||||
@ -248,6 +250,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
this.btnSearch.TabIndex = 2;
|
this.btnSearch.TabIndex = 2;
|
||||||
this.btnSearch.Text = "Search";
|
this.btnSearch.Text = "Search";
|
||||||
this.btnSearch.UseVisualStyleBackColor = true;
|
this.btnSearch.UseVisualStyleBackColor = true;
|
||||||
|
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
|
||||||
//
|
//
|
||||||
// lblPatientID
|
// lblPatientID
|
||||||
//
|
//
|
||||||
@ -278,8 +281,8 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
this.Name = "frmRefill";
|
this.Name = "frmRefill";
|
||||||
this.Text = "Louis\' Pharmacy - Prescription Refill";
|
this.Text = "Louis\' Pharmacy - Prescription Refill";
|
||||||
this.Load += new System.EventHandler(this.frmRefill_Load);
|
this.Load += new System.EventHandler(this.frmRefill_Load);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.dgvRefills)).EndInit();
|
||||||
this.contextMenuStrip1.ResumeLayout(false);
|
this.cmuRefill.ResumeLayout(false);
|
||||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||||
this.splitContainer1.Panel1.PerformLayout();
|
this.splitContainer1.Panel1.PerformLayout();
|
||||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||||
@ -317,13 +320,13 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn13;
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn13;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn14;
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn14;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn15;
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn15;
|
||||||
private System.Windows.Forms.DataGridView dataGridView1;
|
private System.Windows.Forms.DataGridView dgvRefills;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn refillid;
|
private System.Windows.Forms.DataGridViewTextBoxColumn refillid;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn refilldate;
|
private System.Windows.Forms.DataGridViewTextBoxColumn refilldate;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn patientid;
|
private System.Windows.Forms.DataGridViewTextBoxColumn patientid;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn medicationid;
|
private System.Windows.Forms.DataGridViewTextBoxColumn medicationid;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn rxnumber;
|
private System.Windows.Forms.DataGridViewTextBoxColumn rxnumber;
|
||||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
private System.Windows.Forms.ContextMenuStrip cmuRefill;
|
||||||
private System.Windows.Forms.ToolStripMenuItem cmuAdd;
|
private System.Windows.Forms.ToolStripMenuItem cmuAdd;
|
||||||
private System.Windows.Forms.ToolStripMenuItem cmuUpdate;
|
private System.Windows.Forms.ToolStripMenuItem cmuUpdate;
|
||||||
private System.Windows.Forms.ToolStripMenuItem cmuDelete;
|
private System.Windows.Forms.ToolStripMenuItem cmuDelete;
|
||||||
|
@ -29,7 +29,45 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
|
|
||||||
private void frmRefill_Load(object sender, EventArgs e)
|
private void frmRefill_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
dgvRefills.Visible = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnSearch_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string patientID = "";
|
||||||
|
DateTime date = new DateTime();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
DataSet ds = new DataSet();
|
||||||
|
//PharmacyDataTier phaDT = new PharmacyDataTier();
|
||||||
|
|
||||||
|
patientID = txtPatientID.Text.Trim();
|
||||||
|
if (txtDate.Text.Trim().Length > 0)
|
||||||
|
{
|
||||||
|
date = DateTime.Parse(txtDate.Text.Trim());
|
||||||
|
}
|
||||||
|
|
||||||
|
ds = PharmacyDataTier.RefillSearch(date, patientID);
|
||||||
|
|
||||||
|
if (ds.Tables[0].Rows.Count > 0 )
|
||||||
|
{
|
||||||
|
dgvRefills.Visible = true;
|
||||||
|
|
||||||
|
dgvRefills.DataSource = ds.Tables[0];
|
||||||
|
dgvRefills.AlternatingRowsDefaultCellStyle.BackColor = Color.Black;
|
||||||
|
dgvRefills.AlternatingRowsDefaultCellStyle.ForeColor = Color.White;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dgvRefills.Visible = false;
|
||||||
|
MessageBox.Show("No records found");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -132,7 +132,7 @@
|
|||||||
<metadata name="rxnumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="rxnumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="cmuRefill.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 17</value>
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
|
169
Louis'-Pharmacy_CNSA212-FP/frmRefillAdd.Designer.cs
generated
Normal file
169
Louis'-Pharmacy_CNSA212-FP/frmRefillAdd.Designer.cs
generated
Normal file
@ -0,0 +1,169 @@
|
|||||||
|
namespace Louis__Pharmacy_CNSA212_FP
|
||||||
|
{
|
||||||
|
partial class frmRefillAdd
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.lblRefillID = new System.Windows.Forms.Label();
|
||||||
|
this.lblRefillDate = new System.Windows.Forms.Label();
|
||||||
|
this.lblPatientID = new System.Windows.Forms.Label();
|
||||||
|
this.lblMedicationID = new System.Windows.Forms.Label();
|
||||||
|
this.lblRxNumber = new System.Windows.Forms.Label();
|
||||||
|
this.txtRefillID = new System.Windows.Forms.TextBox();
|
||||||
|
this.txtRefillDate = new System.Windows.Forms.TextBox();
|
||||||
|
this.txtPatientID = new System.Windows.Forms.TextBox();
|
||||||
|
this.txtMedicationID = new System.Windows.Forms.TextBox();
|
||||||
|
this.txtRxNumber = new System.Windows.Forms.TextBox();
|
||||||
|
this.btnAdd = new System.Windows.Forms.Button();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// lblRefillID
|
||||||
|
//
|
||||||
|
this.lblRefillID.AutoSize = true;
|
||||||
|
this.lblRefillID.Location = new System.Drawing.Point(103, 75);
|
||||||
|
this.lblRefillID.Name = "lblRefillID";
|
||||||
|
this.lblRefillID.Size = new System.Drawing.Size(47, 13);
|
||||||
|
this.lblRefillID.TabIndex = 0;
|
||||||
|
this.lblRefillID.Text = "Refill ID:";
|
||||||
|
//
|
||||||
|
// lblRefillDate
|
||||||
|
//
|
||||||
|
this.lblRefillDate.AutoSize = true;
|
||||||
|
this.lblRefillDate.Location = new System.Drawing.Point(103, 146);
|
||||||
|
this.lblRefillDate.Name = "lblRefillDate";
|
||||||
|
this.lblRefillDate.Size = new System.Drawing.Size(59, 13);
|
||||||
|
this.lblRefillDate.TabIndex = 1;
|
||||||
|
this.lblRefillDate.Text = "Refill Date:";
|
||||||
|
//
|
||||||
|
// lblPatientID
|
||||||
|
//
|
||||||
|
this.lblPatientID.AutoSize = true;
|
||||||
|
this.lblPatientID.Location = new System.Drawing.Point(103, 221);
|
||||||
|
this.lblPatientID.Name = "lblPatientID";
|
||||||
|
this.lblPatientID.Size = new System.Drawing.Size(57, 13);
|
||||||
|
this.lblPatientID.TabIndex = 2;
|
||||||
|
this.lblPatientID.Text = "Patient ID:";
|
||||||
|
//
|
||||||
|
// lblMedicationID
|
||||||
|
//
|
||||||
|
this.lblMedicationID.AutoSize = true;
|
||||||
|
this.lblMedicationID.Location = new System.Drawing.Point(425, 75);
|
||||||
|
this.lblMedicationID.Name = "lblMedicationID";
|
||||||
|
this.lblMedicationID.Size = new System.Drawing.Size(76, 13);
|
||||||
|
this.lblMedicationID.TabIndex = 3;
|
||||||
|
this.lblMedicationID.Text = "Medication ID:";
|
||||||
|
//
|
||||||
|
// lblRxNumber
|
||||||
|
//
|
||||||
|
this.lblRxNumber.AutoSize = true;
|
||||||
|
this.lblRxNumber.Location = new System.Drawing.Point(425, 146);
|
||||||
|
this.lblRxNumber.Name = "lblRxNumber";
|
||||||
|
this.lblRxNumber.Size = new System.Drawing.Size(63, 13);
|
||||||
|
this.lblRxNumber.TabIndex = 4;
|
||||||
|
this.lblRxNumber.Text = "Rx Number:";
|
||||||
|
//
|
||||||
|
// txtRefillID
|
||||||
|
//
|
||||||
|
this.txtRefillID.Location = new System.Drawing.Point(173, 75);
|
||||||
|
this.txtRefillID.Name = "txtRefillID";
|
||||||
|
this.txtRefillID.Size = new System.Drawing.Size(100, 20);
|
||||||
|
this.txtRefillID.TabIndex = 5;
|
||||||
|
//
|
||||||
|
// txtRefillDate
|
||||||
|
//
|
||||||
|
this.txtRefillDate.Location = new System.Drawing.Point(173, 146);
|
||||||
|
this.txtRefillDate.Name = "txtRefillDate";
|
||||||
|
this.txtRefillDate.Size = new System.Drawing.Size(100, 20);
|
||||||
|
this.txtRefillDate.TabIndex = 6;
|
||||||
|
//
|
||||||
|
// txtPatientID
|
||||||
|
//
|
||||||
|
this.txtPatientID.Location = new System.Drawing.Point(173, 221);
|
||||||
|
this.txtPatientID.Name = "txtPatientID";
|
||||||
|
this.txtPatientID.Size = new System.Drawing.Size(100, 20);
|
||||||
|
this.txtPatientID.TabIndex = 7;
|
||||||
|
//
|
||||||
|
// txtMedicationID
|
||||||
|
//
|
||||||
|
this.txtMedicationID.Location = new System.Drawing.Point(517, 75);
|
||||||
|
this.txtMedicationID.Name = "txtMedicationID";
|
||||||
|
this.txtMedicationID.Size = new System.Drawing.Size(100, 20);
|
||||||
|
this.txtMedicationID.TabIndex = 8;
|
||||||
|
//
|
||||||
|
// txtRxNumber
|
||||||
|
//
|
||||||
|
this.txtRxNumber.Location = new System.Drawing.Point(517, 146);
|
||||||
|
this.txtRxNumber.Name = "txtRxNumber";
|
||||||
|
this.txtRxNumber.Size = new System.Drawing.Size(100, 20);
|
||||||
|
this.txtRxNumber.TabIndex = 9;
|
||||||
|
//
|
||||||
|
// btnAdd
|
||||||
|
//
|
||||||
|
this.btnAdd.Location = new System.Drawing.Point(322, 358);
|
||||||
|
this.btnAdd.Name = "btnAdd";
|
||||||
|
this.btnAdd.Size = new System.Drawing.Size(75, 23);
|
||||||
|
this.btnAdd.TabIndex = 10;
|
||||||
|
this.btnAdd.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// frmRefillAdd
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||||
|
this.Controls.Add(this.btnAdd);
|
||||||
|
this.Controls.Add(this.txtRxNumber);
|
||||||
|
this.Controls.Add(this.txtMedicationID);
|
||||||
|
this.Controls.Add(this.txtPatientID);
|
||||||
|
this.Controls.Add(this.txtRefillDate);
|
||||||
|
this.Controls.Add(this.txtRefillID);
|
||||||
|
this.Controls.Add(this.lblRxNumber);
|
||||||
|
this.Controls.Add(this.lblMedicationID);
|
||||||
|
this.Controls.Add(this.lblPatientID);
|
||||||
|
this.Controls.Add(this.lblRefillDate);
|
||||||
|
this.Controls.Add(this.lblRefillID);
|
||||||
|
this.Name = "frmRefillAdd";
|
||||||
|
this.Text = "frmRefillAdd";
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Label lblRefillID;
|
||||||
|
private System.Windows.Forms.Label lblRefillDate;
|
||||||
|
private System.Windows.Forms.Label lblPatientID;
|
||||||
|
private System.Windows.Forms.Label lblMedicationID;
|
||||||
|
private System.Windows.Forms.Label lblRxNumber;
|
||||||
|
private System.Windows.Forms.TextBox txtRefillID;
|
||||||
|
private System.Windows.Forms.TextBox txtRefillDate;
|
||||||
|
private System.Windows.Forms.TextBox txtPatientID;
|
||||||
|
private System.Windows.Forms.TextBox txtMedicationID;
|
||||||
|
private System.Windows.Forms.TextBox txtRxNumber;
|
||||||
|
private System.Windows.Forms.Button btnAdd;
|
||||||
|
}
|
||||||
|
}
|
20
Louis'-Pharmacy_CNSA212-FP/frmRefillAdd.cs
Normal file
20
Louis'-Pharmacy_CNSA212-FP/frmRefillAdd.cs
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace Louis__Pharmacy_CNSA212_FP
|
||||||
|
{
|
||||||
|
public partial class frmRefillAdd : Form
|
||||||
|
{
|
||||||
|
public frmRefillAdd()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
120
Louis'-Pharmacy_CNSA212-FP/frmRefillAdd.resx
Normal file
120
Louis'-Pharmacy_CNSA212-FP/frmRefillAdd.resx
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
Loading…
Reference in New Issue
Block a user