Added data grid views to the three refill tabs in the refill form. Divided the add, edit, and delete functionality between the three data grid views.

This commit is contained in:
Adam McCane 2024-02-07 16:53:41 -05:00
parent 08659e6a1f
commit 8915ffa04e
3 changed files with 513 additions and 6 deletions

View File

@ -29,12 +29,58 @@ namespace Louis__Pharmacy_CNSA212_FP
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmRefill));
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tbAddRefill = new System.Windows.Forms.TabPage();
this.tbUpdateRefill = new System.Windows.Forms.TabPage();
this.tbDeleteRefill = new System.Windows.Forms.TabPage();
this.finalProjectOfficialPharmacyDataSet = new Louis__Pharmacy_CNSA212_FP.FinalProjectOfficialPharmacyDataSet();
this.rEFILLSBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.rEFILLSTableAdapter = new Louis__Pharmacy_CNSA212_FP.FinalProjectOfficialPharmacyDataSetTableAdapters.REFILLSTableAdapter();
this.tableAdapterManager = new Louis__Pharmacy_CNSA212_FP.FinalProjectOfficialPharmacyDataSetTableAdapters.TableAdapterManager();
this.rEFILLSBindingNavigator = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
this.rEFILLSBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
this.rEFILLSDataGridView = new System.Windows.Forms.DataGridView();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.rEFILLSDataGridView1 = new System.Windows.Forms.DataGridView();
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.rEFILLSDataGridView2 = new System.Windows.Forms.DataGridView();
this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tabControl1.SuspendLayout();
this.tbAddRefill.SuspendLayout();
this.tbUpdateRefill.SuspendLayout();
this.tbDeleteRefill.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.finalProjectOfficialPharmacyDataSet)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.rEFILLSBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.rEFILLSBindingNavigator)).BeginInit();
this.rEFILLSBindingNavigator.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.rEFILLSDataGridView)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.rEFILLSDataGridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.rEFILLSDataGridView2)).BeginInit();
this.SuspendLayout();
//
// tabControl1
@ -42,53 +88,374 @@ namespace Louis__Pharmacy_CNSA212_FP
this.tabControl1.Controls.Add(this.tbAddRefill);
this.tabControl1.Controls.Add(this.tbUpdateRefill);
this.tabControl1.Controls.Add(this.tbDeleteRefill);
this.tabControl1.Location = new System.Drawing.Point(12, 12);
this.tabControl1.Location = new System.Drawing.Point(12, 28);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(576, 342);
this.tabControl1.Size = new System.Drawing.Size(580, 322);
this.tabControl1.TabIndex = 0;
//
// tbAddRefill
//
this.tbAddRefill.AutoScroll = true;
this.tbAddRefill.Controls.Add(this.rEFILLSDataGridView);
this.tbAddRefill.Location = new System.Drawing.Point(4, 22);
this.tbAddRefill.Name = "tbAddRefill";
this.tbAddRefill.Padding = new System.Windows.Forms.Padding(3);
this.tbAddRefill.Size = new System.Drawing.Size(568, 316);
this.tbAddRefill.Size = new System.Drawing.Size(572, 296);
this.tbAddRefill.TabIndex = 0;
this.tbAddRefill.Text = "Add Refill";
this.tbAddRefill.UseVisualStyleBackColor = true;
//
// tbUpdateRefill
//
this.tbUpdateRefill.AutoScroll = true;
this.tbUpdateRefill.Controls.Add(this.rEFILLSDataGridView1);
this.tbUpdateRefill.Location = new System.Drawing.Point(4, 22);
this.tbUpdateRefill.Name = "tbUpdateRefill";
this.tbUpdateRefill.Padding = new System.Windows.Forms.Padding(3);
this.tbUpdateRefill.Size = new System.Drawing.Size(568, 316);
this.tbUpdateRefill.Size = new System.Drawing.Size(572, 296);
this.tbUpdateRefill.TabIndex = 1;
this.tbUpdateRefill.Text = "Update Refill";
this.tbUpdateRefill.UseVisualStyleBackColor = true;
//
// tbDeleteRefill
//
this.tbDeleteRefill.AutoScroll = true;
this.tbDeleteRefill.Controls.Add(this.rEFILLSDataGridView2);
this.tbDeleteRefill.Location = new System.Drawing.Point(4, 22);
this.tbDeleteRefill.Name = "tbDeleteRefill";
this.tbDeleteRefill.Size = new System.Drawing.Size(568, 316);
this.tbDeleteRefill.Size = new System.Drawing.Size(572, 296);
this.tbDeleteRefill.TabIndex = 2;
this.tbDeleteRefill.Text = "Delete Refill";
this.tbDeleteRefill.UseVisualStyleBackColor = true;
//
// finalProjectOfficialPharmacyDataSet
//
this.finalProjectOfficialPharmacyDataSet.DataSetName = "FinalProjectOfficialPharmacyDataSet";
this.finalProjectOfficialPharmacyDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// rEFILLSBindingSource
//
this.rEFILLSBindingSource.DataMember = "REFILLS";
this.rEFILLSBindingSource.DataSource = this.finalProjectOfficialPharmacyDataSet;
//
// rEFILLSTableAdapter
//
this.rEFILLSTableAdapter.ClearBeforeFill = true;
//
// tableAdapterManager
//
this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
this.tableAdapterManager.MEDICATIONSTableAdapter = null;
this.tableAdapterManager.PATIENTTableAdapter = null;
this.tableAdapterManager.PHYSICIANTableAdapter = null;
this.tableAdapterManager.REFILLSTableAdapter = this.rEFILLSTableAdapter;
this.tableAdapterManager.UpdateOrder = Louis__Pharmacy_CNSA212_FP.FinalProjectOfficialPharmacyDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
// rEFILLSBindingNavigator
//
this.rEFILLSBindingNavigator.AddNewItem = this.bindingNavigatorAddNewItem;
this.rEFILLSBindingNavigator.BindingSource = this.rEFILLSBindingSource;
this.rEFILLSBindingNavigator.CountItem = this.bindingNavigatorCountItem;
this.rEFILLSBindingNavigator.DeleteItem = this.bindingNavigatorDeleteItem;
this.rEFILLSBindingNavigator.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem,
this.bindingNavigatorSeparator,
this.bindingNavigatorPositionItem,
this.bindingNavigatorCountItem,
this.bindingNavigatorSeparator1,
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2,
this.bindingNavigatorAddNewItem,
this.bindingNavigatorDeleteItem,
this.rEFILLSBindingNavigatorSaveItem});
this.rEFILLSBindingNavigator.Location = new System.Drawing.Point(0, 0);
this.rEFILLSBindingNavigator.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.rEFILLSBindingNavigator.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.rEFILLSBindingNavigator.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.rEFILLSBindingNavigator.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.rEFILLSBindingNavigator.Name = "rEFILLSBindingNavigator";
this.rEFILLSBindingNavigator.PositionItem = this.bindingNavigatorPositionItem;
this.rEFILLSBindingNavigator.Size = new System.Drawing.Size(631, 25);
this.rEFILLSBindingNavigator.TabIndex = 1;
this.rEFILLSBindingNavigator.Text = "bindingNavigator1";
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveFirstItem.Text = "Move first";
//
// bindingNavigatorMovePreviousItem
//
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMovePreviousItem.Text = "Move previous";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25);
//
// bindingNavigatorPositionItem
//
this.bindingNavigatorPositionItem.AccessibleName = "Position";
this.bindingNavigatorPositionItem.AutoSize = false;
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
this.bindingNavigatorPositionItem.Text = "0";
this.bindingNavigatorPositionItem.ToolTipText = "Current position";
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(35, 15);
this.bindingNavigatorCountItem.Text = "of {0}";
this.bindingNavigatorCountItem.ToolTipText = "Total number of items";
//
// bindingNavigatorSeparator1
//
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 6);
//
// bindingNavigatorMoveNextItem
//
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 20);
this.bindingNavigatorMoveNextItem.Text = "Move next";
//
// bindingNavigatorMoveLastItem
//
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 20);
this.bindingNavigatorMoveLastItem.Text = "Move last";
//
// bindingNavigatorSeparator2
//
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 6);
//
// bindingNavigatorAddNewItem
//
this.bindingNavigatorAddNewItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorAddNewItem.Text = "Add new";
//
// bindingNavigatorDeleteItem
//
this.bindingNavigatorDeleteItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(23, 20);
this.bindingNavigatorDeleteItem.Text = "Delete";
//
// rEFILLSBindingNavigatorSaveItem
//
this.rEFILLSBindingNavigatorSaveItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.rEFILLSBindingNavigatorSaveItem.Image = ((System.Drawing.Image)(resources.GetObject("rEFILLSBindingNavigatorSaveItem.Image")));
this.rEFILLSBindingNavigatorSaveItem.Name = "rEFILLSBindingNavigatorSaveItem";
this.rEFILLSBindingNavigatorSaveItem.Size = new System.Drawing.Size(23, 23);
this.rEFILLSBindingNavigatorSaveItem.Text = "Save Data";
this.rEFILLSBindingNavigatorSaveItem.Click += new System.EventHandler(this.rEFILLSBindingNavigatorSaveItem_Click);
//
// rEFILLSDataGridView
//
this.rEFILLSDataGridView.AllowUserToDeleteRows = false;
this.rEFILLSDataGridView.AutoGenerateColumns = false;
this.rEFILLSDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.rEFILLSDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn2,
this.dataGridViewTextBoxColumn3,
this.dataGridViewTextBoxColumn4,
this.dataGridViewTextBoxColumn5});
this.rEFILLSDataGridView.DataSource = this.rEFILLSBindingSource;
this.rEFILLSDataGridView.Location = new System.Drawing.Point(6, 6);
this.rEFILLSDataGridView.Name = "rEFILLSDataGridView";
this.rEFILLSDataGridView.ReadOnly = true;
this.rEFILLSDataGridView.Size = new System.Drawing.Size(556, 304);
this.rEFILLSDataGridView.TabIndex = 0;
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "Refill_id";
this.dataGridViewTextBoxColumn1.HeaderText = "Refill_id";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.DataPropertyName = "Numrefill";
this.dataGridViewTextBoxColumn2.HeaderText = "Numrefill";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.ReadOnly = true;
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.DataPropertyName = "StartDate";
this.dataGridViewTextBoxColumn3.HeaderText = "StartDate";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.dataGridViewTextBoxColumn3.ReadOnly = true;
//
// dataGridViewTextBoxColumn4
//
this.dataGridViewTextBoxColumn4.DataPropertyName = "EndDate";
this.dataGridViewTextBoxColumn4.HeaderText = "EndDate";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
this.dataGridViewTextBoxColumn4.ReadOnly = true;
//
// dataGridViewTextBoxColumn5
//
this.dataGridViewTextBoxColumn5.DataPropertyName = "NotesAndComments";
this.dataGridViewTextBoxColumn5.HeaderText = "NotesAndComments";
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
this.dataGridViewTextBoxColumn5.ReadOnly = true;
//
// rEFILLSDataGridView1
//
this.rEFILLSDataGridView1.AllowUserToAddRows = false;
this.rEFILLSDataGridView1.AllowUserToDeleteRows = false;
this.rEFILLSDataGridView1.AutoGenerateColumns = false;
this.rEFILLSDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.rEFILLSDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn6,
this.dataGridViewTextBoxColumn7,
this.dataGridViewTextBoxColumn8,
this.dataGridViewTextBoxColumn9,
this.dataGridViewTextBoxColumn10});
this.rEFILLSDataGridView1.DataSource = this.rEFILLSBindingSource;
this.rEFILLSDataGridView1.Location = new System.Drawing.Point(6, 6);
this.rEFILLSDataGridView1.Name = "rEFILLSDataGridView1";
this.rEFILLSDataGridView1.Size = new System.Drawing.Size(560, 282);
this.rEFILLSDataGridView1.TabIndex = 0;
//
// dataGridViewTextBoxColumn6
//
this.dataGridViewTextBoxColumn6.DataPropertyName = "Refill_id";
this.dataGridViewTextBoxColumn6.HeaderText = "Refill_id";
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
//
// dataGridViewTextBoxColumn7
//
this.dataGridViewTextBoxColumn7.DataPropertyName = "Numrefill";
this.dataGridViewTextBoxColumn7.HeaderText = "Numrefill";
this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
//
// dataGridViewTextBoxColumn8
//
this.dataGridViewTextBoxColumn8.DataPropertyName = "StartDate";
this.dataGridViewTextBoxColumn8.HeaderText = "StartDate";
this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
//
// dataGridViewTextBoxColumn9
//
this.dataGridViewTextBoxColumn9.DataPropertyName = "EndDate";
this.dataGridViewTextBoxColumn9.HeaderText = "EndDate";
this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
//
// dataGridViewTextBoxColumn10
//
this.dataGridViewTextBoxColumn10.DataPropertyName = "NotesAndComments";
this.dataGridViewTextBoxColumn10.HeaderText = "NotesAndComments";
this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
//
// rEFILLSDataGridView2
//
this.rEFILLSDataGridView2.AllowUserToAddRows = false;
this.rEFILLSDataGridView2.AutoGenerateColumns = false;
this.rEFILLSDataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.rEFILLSDataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn11,
this.dataGridViewTextBoxColumn12,
this.dataGridViewTextBoxColumn13,
this.dataGridViewTextBoxColumn14,
this.dataGridViewTextBoxColumn15});
this.rEFILLSDataGridView2.DataSource = this.rEFILLSBindingSource;
this.rEFILLSDataGridView2.Location = new System.Drawing.Point(3, 3);
this.rEFILLSDataGridView2.Name = "rEFILLSDataGridView2";
this.rEFILLSDataGridView2.ReadOnly = true;
this.rEFILLSDataGridView2.Size = new System.Drawing.Size(566, 285);
this.rEFILLSDataGridView2.TabIndex = 0;
//
// dataGridViewTextBoxColumn11
//
this.dataGridViewTextBoxColumn11.DataPropertyName = "Refill_id";
this.dataGridViewTextBoxColumn11.HeaderText = "Refill_id";
this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
this.dataGridViewTextBoxColumn11.ReadOnly = true;
//
// dataGridViewTextBoxColumn12
//
this.dataGridViewTextBoxColumn12.DataPropertyName = "Numrefill";
this.dataGridViewTextBoxColumn12.HeaderText = "Numrefill";
this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12";
this.dataGridViewTextBoxColumn12.ReadOnly = true;
//
// dataGridViewTextBoxColumn13
//
this.dataGridViewTextBoxColumn13.DataPropertyName = "StartDate";
this.dataGridViewTextBoxColumn13.HeaderText = "StartDate";
this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13";
this.dataGridViewTextBoxColumn13.ReadOnly = true;
//
// dataGridViewTextBoxColumn14
//
this.dataGridViewTextBoxColumn14.DataPropertyName = "EndDate";
this.dataGridViewTextBoxColumn14.HeaderText = "EndDate";
this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14";
this.dataGridViewTextBoxColumn14.ReadOnly = true;
//
// dataGridViewTextBoxColumn15
//
this.dataGridViewTextBoxColumn15.DataPropertyName = "NotesAndComments";
this.dataGridViewTextBoxColumn15.HeaderText = "NotesAndComments";
this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15";
this.dataGridViewTextBoxColumn15.ReadOnly = true;
//
// frmRefill
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(600, 366);
this.ClientSize = new System.Drawing.Size(631, 350);
this.Controls.Add(this.rEFILLSBindingNavigator);
this.Controls.Add(this.tabControl1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Name = "frmRefill";
this.Text = "Louis\' Pharmacy - Prescription Refill";
this.Load += new System.EventHandler(this.frmRefill_Load);
this.tabControl1.ResumeLayout(false);
this.tbAddRefill.ResumeLayout(false);
this.tbUpdateRefill.ResumeLayout(false);
this.tbDeleteRefill.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.finalProjectOfficialPharmacyDataSet)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.rEFILLSBindingSource)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.rEFILLSBindingNavigator)).EndInit();
this.rEFILLSBindingNavigator.ResumeLayout(false);
this.rEFILLSBindingNavigator.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.rEFILLSDataGridView)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.rEFILLSDataGridView1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.rEFILLSDataGridView2)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
@ -98,5 +465,40 @@ namespace Louis__Pharmacy_CNSA212_FP
private System.Windows.Forms.TabPage tbAddRefill;
private System.Windows.Forms.TabPage tbUpdateRefill;
private System.Windows.Forms.TabPage tbDeleteRefill;
private FinalProjectOfficialPharmacyDataSet finalProjectOfficialPharmacyDataSet;
private System.Windows.Forms.BindingSource rEFILLSBindingSource;
private FinalProjectOfficialPharmacyDataSetTableAdapters.REFILLSTableAdapter rEFILLSTableAdapter;
private FinalProjectOfficialPharmacyDataSetTableAdapters.TableAdapterManager tableAdapterManager;
private System.Windows.Forms.BindingNavigator rEFILLSBindingNavigator;
private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStripButton rEFILLSBindingNavigatorSaveItem;
private System.Windows.Forms.DataGridView rEFILLSDataGridView;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
private System.Windows.Forms.DataGridView rEFILLSDataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;
private System.Windows.Forms.DataGridView rEFILLSDataGridView2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn11;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn12;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn13;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn14;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn15;
}
}

View File

@ -16,5 +16,20 @@ namespace Louis__Pharmacy_CNSA212_FP
{
InitializeComponent();
}
private void rEFILLSBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
this.rEFILLSBindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.finalProjectOfficialPharmacyDataSet);
}
private void frmRefill_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'finalProjectOfficialPharmacyDataSet.REFILLS' table. You can move, or remove it, as needed.
this.rEFILLSTableAdapter.Fill(this.finalProjectOfficialPharmacyDataSet.REFILLS);
}
}
}

View File

@ -117,7 +117,97 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="rEFILLSBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>262, 17</value>
</metadata>
<metadata name="rEFILLSBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>262, 17</value>
</metadata>
<metadata name="finalProjectOfficialPharmacyDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="rEFILLSTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>430, 17</value>
</metadata>
<metadata name="tableAdapterManager.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>590, 17</value>
</metadata>
<metadata name="rEFILLSBindingNavigator.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>759, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorAddNewItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFKSURBVDhPYxi84O4C9v+35nH+vzqH6//FGbz/ocLEg+tA
jX8eNf7/87Dh/8nJAqQbcH46L9yAgz0ipBtwfJIgUHPd/z8Pqv7vaBcnbMClmTz/z07l+38SqPFIv9D/
fd0iQM3l///eK/q/vkHm/6oauf9LKxX/zy9V/j+rSBXTwFNAf/55WA/UVAvElf//3CsB4rz/f+9m/v97
J/n/39tx///djADikP+TcjQxDTjUKwx27t/7pUCNBUCN2UCNqUCNCf//3YoGagz7/+9G0P9/1/3+d6Xp
Yhqws13i/5Zmqf/rwM6V/7+kQvH/31sxQI3h/6fmafyfkKX1vztD9397qv7/5kRDwmEyG+hPkHP/3Qj4
35OhQ1gDOgD5898NfyD2+9+arE+6Ad3pumD/gnB9nBHpBrQkGfxviDf8XxNr/L8y2oR0A+gEGBgAJCPY
nnX8iGkAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFvSURBVDhPtZBNKMNhHMd3Vd5K7eKCWjkgk7yEZDKksciE
yMwkBw6LhHZxcCDlQg64SA4kJeVE4jRv89qaWn8tUtoF/7g8H2Ootb+x4nt56nm+38/v+/xUfyJcJ9Bt
BMcOH1eRiZV5RGcVwqyHrfWwELweWJoJ9rC2AL0mRLse0VEBcxOKkLeGwlwGIz2h75w6ApC6bERjAdia
gkxiyIow5cKkPWxDFYvTiMrUdxDDVnCfwVh/AOo/P2zhhccFzcWBLxmzEPV50Nfyu/Cn2N/1V85DGNKh
Rhth+EaCxkLISUDWxvOgjYXa7F/Wv7kGUz4UJeKzGODi6H25d2l+yPLsDwu8v4NWHY8lSbhL0/HtbX8F
GLXh1MQgnxwoQ3h5hkEL6JI5TlPj21gNMd6WZyC1VSN7r0Mh7G4i56pxpkQhdTWA/KQ4aUcTh+x0KACm
RpBSo3HrM0G6Uq7pl2zvhvNDBcClE8YH4HDv2/A/SKV6BYojAxyEJtLJAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEqSURBVDhPYxg8oHDW8/9NC57/z5z4+D9UCAOEtz/AKceQ
O/PZ/1VH3v/HpSi++8H/4IZruA3ImPL0/8J9H7Aqiu95+H/p/v///asv4DYgoefJ/2lb3mMoimi/D9ac
Oev/f6/SE7gNiOx69L939QcURaGt98CaW9cBbe/8+98l/wBuAwKbH/6vm/8Orii45e7/RXv//+8Aas6Y
8/O/Xd3P//YZ23Eb4FF1/3/+tDcoiuyKb/9Pn/P7v3/Xt/86he/+WySsx22Afend/9mTX2Mo0k85/9+k
6MV/laxP/40jl+E2wCLvzv/U/tdYFRkknfgvm/b1v27wPNwGGGbd/h/W8hKnIv3Uy/81fKfhNkAn7cZ/
v+qHeBWpeEzAbYBT7pX/IAV4FQ1CwMAAAPB2wKul5ZpwAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAC2SURBVDhPYxg6ILz9wX8ok3QQ3/3gf3DDNfIMiO95+H/p
/v///asvkG5ARPt9sObMWf//e5WeIM2A0NZ7YM2t64C2d/7975J/gHgDglvu/l+09///DqDmjDk//9vV
/fxvn7GdNBfYFd/+nz7n93//rm//dQrf/bdIWE96GOinnP9vUvTiv0rWp//GkctINwAEDJJO/JdN+/pf
N3geeQaAgH7q5f8avtPINwAEVDwmUGbAYAUMDADQFGCYBLpQVQAAAABJRU5ErkJggg==
</value>
</data>
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACjSURBVDhPYxh8oHDW8/9QJnkgd+az/wnd98g3JGPK0//z
9v/+n9B1hzxDEnqe/J+979f/zq1//7uVXibdkMiuR/+nbPv1v2Tp3/8J0//+t8k9S5ohgc0P/7eufQ/W
bFzy5b909LX/xpHLiDfEo+r+/5K57+CaFV16SHOBfend/4Etz8jTDAIWeXf+2xRcIU8zCBhm3SZfMwjo
pN0gX/NQBAwMAKB+X6AHNEI4AAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEsSURBVDhPYxhcoHDW8/9QJgYAyTUteP4/c+JjnGoYcmc+
+5/QfQ+rApDcqiPv/4e3P8BtQMaUp//n7f/9P6HrDoYikNzCfR/+Bzdcw21AQs+T/7P3/frfufXvf7fS
yygKQXLTtrz/7199AbcBkV2P/k/Z9ut/ydK//xOm//1vk3sWrhgk17v6w3+v0hO4DQhsfvi/de17sGbj
ki//paOv/TeOXAbWAJKrm//uv0v+AdwGeFTd/18y9x1cs6JLD1wxSC5/2pv/9hnbcRtgX3r3f2DLMwzN
IACSy578+r9FwnrcBljk3flvU3AFQzMIgORS+1/DvYQVGGbdxqoZBEByYS0v/+sGz8NtgE7aDZySIDm/
6of/NXyn4TYAH3DKvfJfxWMCGEOFBgVgYAAAvtG/s7kMTpwAAAAASUVORK5CYII=
</value>
</data>
<data name="rEFILLSBindingNavigatorSaveItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABMSURBVDhPY6AK+Pbt239SMVQrBIAFgufA8Yf3H+EYWQxE
x0zYh2kIKQaAMMwQqHbSDQBhog1AxshqaGsAMXjUgEFpADkYqp0SwMAAAPRDDFPA2mtzAAAAAElFTkSu
QmCC
</value>
</data>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAgIAAAAEAIAAoCAEAFgAAACgAAACAAAAAAAEAAAEAIAAAAAAAAAgBAAAAAAAAAAAAAAAAAAAA