287 lines
15 KiB
C#
287 lines
15 KiB
C#
namespace Tanshu.Accounts.PointOfSale
|
|
{
|
|
partial class ProductListForm
|
|
{
|
|
/// <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.components = new System.ComponentModel.Container();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
this.btnAdd = new System.Windows.Forms.Button();
|
|
this.btnEdit = new System.Windows.Forms.Button();
|
|
this.btnExit = new System.Windows.Forms.Button();
|
|
this.dgvProducts = new System.Windows.Forms.DataGridView();
|
|
this.bsList = new System.Windows.Forms.BindingSource(this.components);
|
|
this.btnSave = new System.Windows.Forms.Button();
|
|
this.chkIsActive = new System.Windows.Forms.CheckBox();
|
|
this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.unitsDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.moveUp = new System.Windows.Forms.DataGridViewButtonColumn();
|
|
this.moveDown = new System.Windows.Forms.DataGridViewButtonColumn();
|
|
this.ServiceTax = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.Vat = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.Group = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.serviceChargeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.salePriceDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.isActiveDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
|
((System.ComponentModel.ISupportInitialize)(this.dgvProducts)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.bsList)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// btnAdd
|
|
//
|
|
this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.btnAdd.Location = new System.Drawing.Point(12, 255);
|
|
this.btnAdd.Name = "btnAdd";
|
|
this.btnAdd.Size = new System.Drawing.Size(75, 75);
|
|
this.btnAdd.TabIndex = 68;
|
|
this.btnAdd.Text = "&Add";
|
|
this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
|
|
//
|
|
// btnEdit
|
|
//
|
|
this.btnEdit.AccessibleName = "Done";
|
|
this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.btnEdit.Location = new System.Drawing.Point(93, 255);
|
|
this.btnEdit.Name = "btnEdit";
|
|
this.btnEdit.Size = new System.Drawing.Size(75, 75);
|
|
this.btnEdit.TabIndex = 62;
|
|
this.btnEdit.Text = "&Edit";
|
|
this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
|
|
//
|
|
// btnExit
|
|
//
|
|
this.btnExit.AccessibleName = "Done";
|
|
this.btnExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.btnExit.Location = new System.Drawing.Point(575, 255);
|
|
this.btnExit.Name = "btnExit";
|
|
this.btnExit.Size = new System.Drawing.Size(75, 75);
|
|
this.btnExit.TabIndex = 61;
|
|
this.btnExit.Text = "E&xit";
|
|
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
|
|
//
|
|
// dgvProducts
|
|
//
|
|
this.dgvProducts.AllowUserToAddRows = false;
|
|
this.dgvProducts.AllowUserToDeleteRows = false;
|
|
this.dgvProducts.AllowUserToResizeRows = false;
|
|
this.dgvProducts.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
| System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.dgvProducts.AutoGenerateColumns = false;
|
|
this.dgvProducts.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
|
|
this.dgvProducts.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
this.dgvProducts.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
|
this.nameDataGridViewTextBoxColumn,
|
|
this.unitsDataGridViewTextBoxColumn,
|
|
this.moveUp,
|
|
this.moveDown,
|
|
this.ServiceTax,
|
|
this.Vat,
|
|
this.Group,
|
|
this.serviceChargeDataGridViewTextBoxColumn,
|
|
this.salePriceDataGridViewTextBoxColumn,
|
|
this.isActiveDataGridViewCheckBoxColumn});
|
|
this.dgvProducts.DataSource = this.bsList;
|
|
this.dgvProducts.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
|
|
this.dgvProducts.Location = new System.Drawing.Point(12, 12);
|
|
this.dgvProducts.MultiSelect = false;
|
|
this.dgvProducts.Name = "dgvProducts";
|
|
this.dgvProducts.ReadOnly = true;
|
|
this.dgvProducts.RowHeadersVisible = false;
|
|
this.dgvProducts.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
|
|
this.dgvProducts.RowTemplate.Height = 24;
|
|
this.dgvProducts.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
|
this.dgvProducts.Size = new System.Drawing.Size(638, 237);
|
|
this.dgvProducts.TabIndex = 74;
|
|
this.dgvProducts.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dgvProductTypes_CellFormatting);
|
|
//
|
|
// bsList
|
|
//
|
|
this.bsList.DataSource = typeof(Tanshu.Accounts.Entities.Product);
|
|
//
|
|
// btnSave
|
|
//
|
|
this.btnSave.AccessibleName = "Done";
|
|
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.btnSave.Location = new System.Drawing.Point(174, 255);
|
|
this.btnSave.Name = "btnSave";
|
|
this.btnSave.Size = new System.Drawing.Size(75, 75);
|
|
this.btnSave.TabIndex = 75;
|
|
this.btnSave.Text = "&Save";
|
|
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
|
//
|
|
// chkIsActive
|
|
//
|
|
this.chkIsActive.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.chkIsActive.AutoSize = true;
|
|
this.chkIsActive.Checked = true;
|
|
this.chkIsActive.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
this.chkIsActive.Location = new System.Drawing.Point(255, 285);
|
|
this.chkIsActive.Name = "chkIsActive";
|
|
this.chkIsActive.Size = new System.Drawing.Size(116, 17);
|
|
this.chkIsActive.TabIndex = 76;
|
|
this.chkIsActive.Text = "Show Active Only?";
|
|
this.chkIsActive.ThreeState = true;
|
|
this.chkIsActive.UseVisualStyleBackColor = true;
|
|
this.chkIsActive.CheckStateChanged += new System.EventHandler(this.chkIsActive_CheckStateChanged);
|
|
//
|
|
// nameDataGridViewTextBoxColumn
|
|
//
|
|
this.nameDataGridViewTextBoxColumn.DataPropertyName = "Name";
|
|
this.nameDataGridViewTextBoxColumn.HeaderText = "Name";
|
|
this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn";
|
|
this.nameDataGridViewTextBoxColumn.ReadOnly = true;
|
|
this.nameDataGridViewTextBoxColumn.Width = 60;
|
|
//
|
|
// unitsDataGridViewTextBoxColumn
|
|
//
|
|
this.unitsDataGridViewTextBoxColumn.DataPropertyName = "Units";
|
|
this.unitsDataGridViewTextBoxColumn.HeaderText = "Units";
|
|
this.unitsDataGridViewTextBoxColumn.Name = "unitsDataGridViewTextBoxColumn";
|
|
this.unitsDataGridViewTextBoxColumn.ReadOnly = true;
|
|
this.unitsDataGridViewTextBoxColumn.Width = 56;
|
|
//
|
|
// moveUp
|
|
//
|
|
this.moveUp.HeaderText = "Up";
|
|
this.moveUp.Name = "moveUp";
|
|
this.moveUp.ReadOnly = true;
|
|
this.moveUp.Text = "Up";
|
|
this.moveUp.UseColumnTextForButtonValue = true;
|
|
this.moveUp.Width = 27;
|
|
//
|
|
// moveDown
|
|
//
|
|
this.moveDown.HeaderText = "Down";
|
|
this.moveDown.Name = "moveDown";
|
|
this.moveDown.ReadOnly = true;
|
|
this.moveDown.Text = "Down";
|
|
this.moveDown.UseColumnTextForButtonValue = true;
|
|
this.moveDown.Width = 41;
|
|
//
|
|
// ServiceTax
|
|
//
|
|
this.ServiceTax.DataPropertyName = "ServiceTax";
|
|
this.ServiceTax.HeaderText = "ServiceTax";
|
|
this.ServiceTax.Name = "ServiceTax";
|
|
this.ServiceTax.ReadOnly = true;
|
|
this.ServiceTax.Width = 86;
|
|
//
|
|
// Vat
|
|
//
|
|
this.Vat.DataPropertyName = "Vat";
|
|
this.Vat.HeaderText = "Vat";
|
|
this.Vat.Name = "Vat";
|
|
this.Vat.ReadOnly = true;
|
|
this.Vat.Width = 48;
|
|
//
|
|
// Group
|
|
//
|
|
this.Group.DataPropertyName = "ProductGroup";
|
|
this.Group.HeaderText = "ProductGroup";
|
|
this.Group.Name = "Group";
|
|
this.Group.ReadOnly = true;
|
|
this.Group.Width = 98;
|
|
//
|
|
// serviceChargeDataGridViewTextBoxColumn
|
|
//
|
|
this.serviceChargeDataGridViewTextBoxColumn.DataPropertyName = "ServiceCharge";
|
|
dataGridViewCellStyle1.Format = "P0";
|
|
this.serviceChargeDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1;
|
|
this.serviceChargeDataGridViewTextBoxColumn.HeaderText = "SC";
|
|
this.serviceChargeDataGridViewTextBoxColumn.Name = "serviceChargeDataGridViewTextBoxColumn";
|
|
this.serviceChargeDataGridViewTextBoxColumn.ReadOnly = true;
|
|
this.serviceChargeDataGridViewTextBoxColumn.Width = 46;
|
|
//
|
|
// salePriceDataGridViewTextBoxColumn
|
|
//
|
|
this.salePriceDataGridViewTextBoxColumn.DataPropertyName = "Price";
|
|
dataGridViewCellStyle2.Format = "N0";
|
|
this.salePriceDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
|
|
this.salePriceDataGridViewTextBoxColumn.HeaderText = "Price";
|
|
this.salePriceDataGridViewTextBoxColumn.Name = "salePriceDataGridViewTextBoxColumn";
|
|
this.salePriceDataGridViewTextBoxColumn.ReadOnly = true;
|
|
this.salePriceDataGridViewTextBoxColumn.Width = 56;
|
|
//
|
|
// isActiveDataGridViewCheckBoxColumn
|
|
//
|
|
this.isActiveDataGridViewCheckBoxColumn.DataPropertyName = "IsActive";
|
|
this.isActiveDataGridViewCheckBoxColumn.HeaderText = "Is Active";
|
|
this.isActiveDataGridViewCheckBoxColumn.Name = "isActiveDataGridViewCheckBoxColumn";
|
|
this.isActiveDataGridViewCheckBoxColumn.ReadOnly = true;
|
|
this.isActiveDataGridViewCheckBoxColumn.Width = 54;
|
|
//
|
|
// ProductListForm
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(662, 342);
|
|
this.Controls.Add(this.chkIsActive);
|
|
this.Controls.Add(this.btnSave);
|
|
this.Controls.Add(this.dgvProducts);
|
|
this.Controls.Add(this.btnAdd);
|
|
this.Controls.Add(this.btnEdit);
|
|
this.Controls.Add(this.btnExit);
|
|
this.MaximizeBox = false;
|
|
this.MinimizeBox = false;
|
|
this.Name = "ProductListForm";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "Products";
|
|
this.Load += new System.EventHandler(this.ProductListForm_Load);
|
|
((System.ComponentModel.ISupportInitialize)(this.dgvProducts)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.bsList)).EndInit();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
internal System.Windows.Forms.Button btnAdd;
|
|
internal System.Windows.Forms.Button btnEdit;
|
|
internal System.Windows.Forms.Button btnExit;
|
|
private System.Windows.Forms.DataGridView dgvProducts;
|
|
private System.Windows.Forms.BindingSource bsList;
|
|
internal System.Windows.Forms.Button btnSave;
|
|
private System.Windows.Forms.CheckBox chkIsActive;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn nameDataGridViewTextBoxColumn;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn unitsDataGridViewTextBoxColumn;
|
|
private System.Windows.Forms.DataGridViewButtonColumn moveUp;
|
|
private System.Windows.Forms.DataGridViewButtonColumn moveDown;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn ServiceTax;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn Vat;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn Group;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn serviceChargeDataGridViewTextBoxColumn;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn salePriceDataGridViewTextBoxColumn;
|
|
private System.Windows.Forms.DataGridViewCheckBoxColumn isActiveDataGridViewCheckBoxColumn;
|
|
//private System.Windows.Forms.DataGridViewTextBoxColumn discountLimitDataGridViewTextBoxColumn;
|
|
//private System.Windows.Forms.DataGridViewTextBoxColumn groupTypeDataGridViewTextBoxColumn;
|
|
//private System.Windows.Forms.DataGridViewTextBoxColumn productGroupDataGridViewTextBoxColumn;
|
|
//private System.Windows.Forms.DataGridViewTextBoxColumn taxDataGridViewTextBoxColumn;
|
|
}
|
|
} |