da929ad036
Breaking Change: Renamed Discontinued to IsActive and added NA field to products. Cleanup: Removed not used attributes Change: RoleConstants changed to simple string Feature: Table Create/Edit/Reorder and Modifier Create/Edit Form Feature: Bills now show the Tax name from the database and not a hack
350 lines
16 KiB
C#
350 lines
16 KiB
C#
namespace Tanshu.Accounts.PointOfSale
|
|
{
|
|
partial class ProductForm
|
|
{
|
|
/// <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();
|
|
this.Label4 = new System.Windows.Forms.Label();
|
|
this.bsProductGroups = new System.Windows.Forms.BindingSource(this.components);
|
|
this.Label7 = new System.Windows.Forms.Label();
|
|
this.bsServiceTax = new System.Windows.Forms.BindingSource(this.components);
|
|
this.label5 = new System.Windows.Forms.Label();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.txtProductID = new System.Windows.Forms.TextBox();
|
|
this.txtCode = new System.Windows.Forms.TextBox();
|
|
this.Label2 = new System.Windows.Forms.Label();
|
|
this.txtUnits = new System.Windows.Forms.TextBox();
|
|
this.txtName = new System.Windows.Forms.TextBox();
|
|
this.txtPrice = new System.Windows.Forms.TextBox();
|
|
this.cmbVat = new System.Windows.Forms.ComboBox();
|
|
this.bsVat = new System.Windows.Forms.BindingSource(this.components);
|
|
this.chkIsActive = new System.Windows.Forms.CheckBox();
|
|
this.txtServiceCharge = new System.Windows.Forms.TextBox();
|
|
this.btnAddProductGroup = new System.Windows.Forms.Button();
|
|
this.cmbProductGroup = new System.Windows.Forms.ComboBox();
|
|
this.btnCancel = new System.Windows.Forms.Button();
|
|
this.btnOk = new System.Windows.Forms.Button();
|
|
this.txtFullPrice = new System.Windows.Forms.TextBox();
|
|
this.cmbServiceTax = new System.Windows.Forms.ComboBox();
|
|
this.label6 = new System.Windows.Forms.Label();
|
|
this.chkIsScTaxable = new System.Windows.Forms.CheckBox();
|
|
this.chkIsNotAvailable = new System.Windows.Forms.CheckBox();
|
|
((System.ComponentModel.ISupportInitialize)(this.bsProductGroups)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.bsServiceTax)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.bsVat)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// Label4
|
|
//
|
|
this.Label4.AutoSize = true;
|
|
this.Label4.Location = new System.Drawing.Point(19, 67);
|
|
this.Label4.Name = "Label4";
|
|
this.Label4.Size = new System.Drawing.Size(85, 13);
|
|
this.Label4.TabIndex = 15;
|
|
this.Label4.Text = "Price / Full Price";
|
|
//
|
|
// bsProductGroups
|
|
//
|
|
this.bsProductGroups.DataSource = typeof(Tanshu.Accounts.Entities.ProductGroup);
|
|
//
|
|
// Label7
|
|
//
|
|
this.Label7.AutoSize = true;
|
|
this.Label7.Location = new System.Drawing.Point(70, 141);
|
|
this.Label7.Name = "Label7";
|
|
this.Label7.Size = new System.Drawing.Size(36, 13);
|
|
this.Label7.TabIndex = 17;
|
|
this.Label7.Text = "Group";
|
|
//
|
|
// bsServiceTax
|
|
//
|
|
this.bsServiceTax.DataSource = typeof(Tanshu.Accounts.Entities.Tax);
|
|
//
|
|
// label5
|
|
//
|
|
this.label5.AutoSize = true;
|
|
this.label5.Location = new System.Drawing.Point(26, 115);
|
|
this.label5.Name = "label5";
|
|
this.label5.Size = new System.Drawing.Size(80, 13);
|
|
this.label5.TabIndex = 16;
|
|
this.label5.Text = "Service Charge";
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.AutoSize = true;
|
|
this.label3.Location = new System.Drawing.Point(12, 15);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(94, 13);
|
|
this.label3.TabIndex = 13;
|
|
this.label3.Text = "Product ID / Code";
|
|
//
|
|
// txtProductID
|
|
//
|
|
this.txtProductID.Location = new System.Drawing.Point(112, 12);
|
|
this.txtProductID.Name = "txtProductID";
|
|
this.txtProductID.ReadOnly = true;
|
|
this.txtProductID.Size = new System.Drawing.Size(189, 20);
|
|
this.txtProductID.TabIndex = 12;
|
|
//
|
|
// txtCode
|
|
//
|
|
this.txtCode.AccessibleName = "";
|
|
this.txtCode.Location = new System.Drawing.Point(307, 12);
|
|
this.txtCode.Name = "txtCode";
|
|
this.txtCode.Size = new System.Drawing.Size(96, 20);
|
|
this.txtCode.TabIndex = 0;
|
|
this.txtCode.WordWrap = false;
|
|
//
|
|
// Label2
|
|
//
|
|
this.Label2.AutoSize = true;
|
|
this.Label2.Location = new System.Drawing.Point(36, 41);
|
|
this.Label2.Name = "Label2";
|
|
this.Label2.Size = new System.Drawing.Size(70, 13);
|
|
this.Label2.TabIndex = 14;
|
|
this.Label2.Text = "Name / Units";
|
|
//
|
|
// txtUnits
|
|
//
|
|
this.txtUnits.AccessibleName = "";
|
|
this.txtUnits.Location = new System.Drawing.Point(307, 38);
|
|
this.txtUnits.Name = "txtUnits";
|
|
this.txtUnits.Size = new System.Drawing.Size(96, 20);
|
|
this.txtUnits.TabIndex = 2;
|
|
//
|
|
// txtName
|
|
//
|
|
this.txtName.AccessibleName = "";
|
|
this.txtName.Location = new System.Drawing.Point(112, 38);
|
|
this.txtName.Name = "txtName";
|
|
this.txtName.Size = new System.Drawing.Size(189, 20);
|
|
this.txtName.TabIndex = 1;
|
|
//
|
|
// txtPrice
|
|
//
|
|
this.txtPrice.AccessibleName = "";
|
|
this.txtPrice.Location = new System.Drawing.Point(112, 64);
|
|
this.txtPrice.Name = "txtPrice";
|
|
this.txtPrice.Size = new System.Drawing.Size(84, 20);
|
|
this.txtPrice.TabIndex = 3;
|
|
this.txtPrice.Text = "0";
|
|
//
|
|
// cmbVat
|
|
//
|
|
this.cmbVat.DataSource = this.bsVat;
|
|
this.cmbVat.DisplayMember = "Name";
|
|
this.cmbVat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cmbVat.Location = new System.Drawing.Point(213, 87);
|
|
this.cmbVat.Name = "cmbVat";
|
|
this.cmbVat.Size = new System.Drawing.Size(88, 21);
|
|
this.cmbVat.TabIndex = 4;
|
|
this.cmbVat.ValueMember = "TaxID";
|
|
//
|
|
// bsVat
|
|
//
|
|
this.bsVat.DataSource = typeof(Tanshu.Accounts.Entities.Tax);
|
|
//
|
|
// chkIsActive
|
|
//
|
|
this.chkIsActive.AutoSize = true;
|
|
this.chkIsActive.Location = new System.Drawing.Point(191, 115);
|
|
this.chkIsActive.Name = "chkIsActive";
|
|
this.chkIsActive.Size = new System.Drawing.Size(67, 17);
|
|
this.chkIsActive.TabIndex = 7;
|
|
this.chkIsActive.Text = "Is Active";
|
|
this.chkIsActive.UseVisualStyleBackColor = true;
|
|
//
|
|
// txtServiceCharge
|
|
//
|
|
this.txtServiceCharge.AccessibleName = "Phone 1";
|
|
this.txtServiceCharge.Location = new System.Drawing.Point(112, 113);
|
|
this.txtServiceCharge.Name = "txtServiceCharge";
|
|
this.txtServiceCharge.Size = new System.Drawing.Size(73, 20);
|
|
this.txtServiceCharge.TabIndex = 5;
|
|
this.txtServiceCharge.Text = "0";
|
|
//
|
|
// btnAddProductGroup
|
|
//
|
|
this.btnAddProductGroup.Location = new System.Drawing.Point(307, 139);
|
|
this.btnAddProductGroup.Name = "btnAddProductGroup";
|
|
this.btnAddProductGroup.Size = new System.Drawing.Size(96, 21);
|
|
this.btnAddProductGroup.TabIndex = 9;
|
|
this.btnAddProductGroup.Text = "Add Group";
|
|
//
|
|
// cmbProductGroup
|
|
//
|
|
this.cmbProductGroup.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bsProductGroups, "ProductGroupID", true));
|
|
this.cmbProductGroup.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsProductGroups, "Name", true));
|
|
this.cmbProductGroup.DataSource = this.bsProductGroups;
|
|
this.cmbProductGroup.DisplayMember = "Name";
|
|
this.cmbProductGroup.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cmbProductGroup.Location = new System.Drawing.Point(112, 139);
|
|
this.cmbProductGroup.Name = "cmbProductGroup";
|
|
this.cmbProductGroup.Size = new System.Drawing.Size(189, 21);
|
|
this.cmbProductGroup.TabIndex = 8;
|
|
this.cmbProductGroup.ValueMember = "ProductGroupID";
|
|
//
|
|
// btnCancel
|
|
//
|
|
this.btnCancel.Location = new System.Drawing.Point(328, 166);
|
|
this.btnCancel.Name = "btnCancel";
|
|
this.btnCancel.Size = new System.Drawing.Size(75, 75);
|
|
this.btnCancel.TabIndex = 11;
|
|
this.btnCancel.Text = "&Cancel";
|
|
this.btnCancel.UseVisualStyleBackColor = true;
|
|
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
|
//
|
|
// btnOk
|
|
//
|
|
this.btnOk.Location = new System.Drawing.Point(247, 166);
|
|
this.btnOk.Name = "btnOk";
|
|
this.btnOk.Size = new System.Drawing.Size(75, 75);
|
|
this.btnOk.TabIndex = 10;
|
|
this.btnOk.Text = "&Ok";
|
|
this.btnOk.UseVisualStyleBackColor = true;
|
|
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
|
|
//
|
|
// txtFullPrice
|
|
//
|
|
this.txtFullPrice.AccessibleName = "";
|
|
this.txtFullPrice.Location = new System.Drawing.Point(201, 64);
|
|
this.txtFullPrice.Name = "txtFullPrice";
|
|
this.txtFullPrice.Size = new System.Drawing.Size(79, 20);
|
|
this.txtFullPrice.TabIndex = 19;
|
|
this.txtFullPrice.Text = "0";
|
|
//
|
|
// cmbServiceTax
|
|
//
|
|
this.cmbServiceTax.DataSource = this.bsServiceTax;
|
|
this.cmbServiceTax.DisplayMember = "Name";
|
|
this.cmbServiceTax.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cmbServiceTax.Location = new System.Drawing.Point(112, 87);
|
|
this.cmbServiceTax.Name = "cmbServiceTax";
|
|
this.cmbServiceTax.Size = new System.Drawing.Size(96, 21);
|
|
this.cmbServiceTax.TabIndex = 20;
|
|
this.cmbServiceTax.ValueMember = "TaxID";
|
|
//
|
|
// label6
|
|
//
|
|
this.label6.AutoSize = true;
|
|
this.label6.Location = new System.Drawing.Point(19, 89);
|
|
this.label6.Name = "label6";
|
|
this.label6.Size = new System.Drawing.Size(91, 13);
|
|
this.label6.TabIndex = 21;
|
|
this.label6.Text = "Service Tax / Vat";
|
|
//
|
|
// chkIsScTaxable
|
|
//
|
|
this.chkIsScTaxable.AutoSize = true;
|
|
this.chkIsScTaxable.Location = new System.Drawing.Point(307, 89);
|
|
this.chkIsScTaxable.Name = "chkIsScTaxable";
|
|
this.chkIsScTaxable.Size = new System.Drawing.Size(91, 17);
|
|
this.chkIsScTaxable.TabIndex = 22;
|
|
this.chkIsScTaxable.Text = "Is Sc Taxable";
|
|
this.chkIsScTaxable.UseVisualStyleBackColor = true;
|
|
//
|
|
// chkIsNotAvailable
|
|
//
|
|
this.chkIsNotAvailable.AutoSize = true;
|
|
this.chkIsNotAvailable.Location = new System.Drawing.Point(255, 114);
|
|
this.chkIsNotAvailable.Name = "chkIsNotAvailable";
|
|
this.chkIsNotAvailable.Size = new System.Drawing.Size(57, 17);
|
|
this.chkIsNotAvailable.TabIndex = 23;
|
|
this.chkIsNotAvailable.Text = "Is N/A";
|
|
this.chkIsNotAvailable.UseVisualStyleBackColor = true;
|
|
//
|
|
// ProductForm
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(415, 276);
|
|
this.Controls.Add(this.chkIsNotAvailable);
|
|
this.Controls.Add(this.chkIsScTaxable);
|
|
this.Controls.Add(this.label6);
|
|
this.Controls.Add(this.cmbServiceTax);
|
|
this.Controls.Add(this.txtFullPrice);
|
|
this.Controls.Add(this.btnCancel);
|
|
this.Controls.Add(this.btnOk);
|
|
this.Controls.Add(this.btnAddProductGroup);
|
|
this.Controls.Add(this.cmbProductGroup);
|
|
this.Controls.Add(this.chkIsActive);
|
|
this.Controls.Add(this.txtServiceCharge);
|
|
this.Controls.Add(this.Label7);
|
|
this.Controls.Add(this.txtPrice);
|
|
this.Controls.Add(this.label5);
|
|
this.Controls.Add(this.cmbVat);
|
|
this.Controls.Add(this.txtUnits);
|
|
this.Controls.Add(this.txtName);
|
|
this.Controls.Add(this.Label2);
|
|
this.Controls.Add(this.txtCode);
|
|
this.Controls.Add(this.txtProductID);
|
|
this.Controls.Add(this.label3);
|
|
this.Controls.Add(this.Label4);
|
|
this.MaximizeBox = false;
|
|
this.MinimizeBox = false;
|
|
this.Name = "ProductForm";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "Products";
|
|
this.Load += new System.EventHandler(this.Products_Load);
|
|
((System.ComponentModel.ISupportInitialize)(this.bsProductGroups)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.bsServiceTax)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.bsVat)).EndInit();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
internal System.Windows.Forms.Label Label4;
|
|
internal System.Windows.Forms.Label Label7;
|
|
private System.Windows.Forms.BindingSource bsProductGroups;
|
|
private System.Windows.Forms.BindingSource bsServiceTax;
|
|
internal System.Windows.Forms.Label label5;
|
|
private System.Windows.Forms.Label label3;
|
|
private System.Windows.Forms.TextBox txtProductID;
|
|
internal System.Windows.Forms.TextBox txtCode;
|
|
internal System.Windows.Forms.Label Label2;
|
|
internal System.Windows.Forms.TextBox txtUnits;
|
|
internal System.Windows.Forms.TextBox txtName;
|
|
internal System.Windows.Forms.TextBox txtPrice;
|
|
internal System.Windows.Forms.ComboBox cmbVat;
|
|
private System.Windows.Forms.CheckBox chkIsActive;
|
|
internal System.Windows.Forms.TextBox txtServiceCharge;
|
|
internal System.Windows.Forms.Button btnAddProductGroup;
|
|
internal System.Windows.Forms.ComboBox cmbProductGroup;
|
|
private System.Windows.Forms.Button btnCancel;
|
|
private System.Windows.Forms.Button btnOk;
|
|
internal System.Windows.Forms.TextBox txtFullPrice;
|
|
internal System.Windows.Forms.ComboBox cmbServiceTax;
|
|
internal System.Windows.Forms.Label label6;
|
|
private System.Windows.Forms.CheckBox chkIsScTaxable;
|
|
private System.Windows.Forms.BindingSource bsVat;
|
|
private System.Windows.Forms.CheckBox chkIsNotAvailable;
|
|
}
|
|
} |