diff --git a/Tanshu.Accounts.PointOfSale/Products/FoodTableForm.Designer.cs b/Tanshu.Accounts.PointOfSale/Products/FoodTableForm.Designer.cs
deleted file mode 100644
index f96746a..0000000
--- a/Tanshu.Accounts.PointOfSale/Products/FoodTableForm.Designer.cs
+++ /dev/null
@@ -1,385 +0,0 @@
-namespace Tanshu.Accounts.PointOfSale
-{
- partial class FoodTableForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- 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.chkDiscontinued = 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.label1 = new System.Windows.Forms.Label();
- this.txtSortOrder = new System.Windows.Forms.TextBox();
- 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.bsVat = new System.Windows.Forms.BindingSource(this.components);
- ((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(25, 82);
- this.Label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.Label4.Name = "Label4";
- this.Label4.Size = new System.Drawing.Size(110, 17);
- 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(93, 174);
- this.Label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.Label7.Name = "Label7";
- this.Label7.Size = new System.Drawing.Size(48, 17);
- 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(35, 142);
- this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(105, 17);
- this.label5.TabIndex = 16;
- this.label5.Text = "Service Charge";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(16, 18);
- this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(119, 17);
- this.label3.TabIndex = 13;
- this.label3.Text = "Product ID / Code";
- //
- // txtProductID
- //
- this.txtProductID.Location = new System.Drawing.Point(149, 15);
- this.txtProductID.Margin = new System.Windows.Forms.Padding(4);
- this.txtProductID.Name = "txtProductID";
- this.txtProductID.ReadOnly = true;
- this.txtProductID.Size = new System.Drawing.Size(251, 22);
- this.txtProductID.TabIndex = 12;
- //
- // txtCode
- //
- this.txtCode.AccessibleName = "";
- this.txtCode.Location = new System.Drawing.Point(409, 15);
- this.txtCode.Margin = new System.Windows.Forms.Padding(4);
- this.txtCode.Name = "txtCode";
- this.txtCode.Size = new System.Drawing.Size(127, 22);
- this.txtCode.TabIndex = 0;
- this.txtCode.WordWrap = false;
- //
- // Label2
- //
- this.Label2.AutoSize = true;
- this.Label2.Location = new System.Drawing.Point(48, 50);
- this.Label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.Label2.Name = "Label2";
- this.Label2.Size = new System.Drawing.Size(89, 17);
- this.Label2.TabIndex = 14;
- this.Label2.Text = "Name / Units";
- //
- // txtUnits
- //
- this.txtUnits.AccessibleName = "";
- this.txtUnits.Location = new System.Drawing.Point(409, 47);
- this.txtUnits.Margin = new System.Windows.Forms.Padding(4);
- this.txtUnits.Name = "txtUnits";
- this.txtUnits.Size = new System.Drawing.Size(127, 22);
- this.txtUnits.TabIndex = 2;
- //
- // txtName
- //
- this.txtName.AccessibleName = "";
- this.txtName.Location = new System.Drawing.Point(149, 47);
- this.txtName.Margin = new System.Windows.Forms.Padding(4);
- this.txtName.Name = "txtName";
- this.txtName.Size = new System.Drawing.Size(251, 22);
- this.txtName.TabIndex = 1;
- //
- // txtPrice
- //
- this.txtPrice.AccessibleName = "";
- this.txtPrice.Location = new System.Drawing.Point(149, 79);
- this.txtPrice.Margin = new System.Windows.Forms.Padding(4);
- this.txtPrice.Name = "txtPrice";
- this.txtPrice.Size = new System.Drawing.Size(111, 22);
- 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(284, 107);
- this.cmbVat.Margin = new System.Windows.Forms.Padding(4);
- this.cmbVat.Name = "cmbVat";
- this.cmbVat.Size = new System.Drawing.Size(116, 24);
- this.cmbVat.TabIndex = 4;
- this.cmbVat.ValueMember = "TaxID";
- //
- // chkDiscontinued
- //
- this.chkDiscontinued.AutoSize = true;
- this.chkDiscontinued.Location = new System.Drawing.Point(409, 141);
- this.chkDiscontinued.Margin = new System.Windows.Forms.Padding(4);
- this.chkDiscontinued.Name = "chkDiscontinued";
- this.chkDiscontinued.Size = new System.Drawing.Size(112, 21);
- this.chkDiscontinued.TabIndex = 7;
- this.chkDiscontinued.Text = "Discontinued";
- this.chkDiscontinued.UseVisualStyleBackColor = true;
- //
- // txtServiceCharge
- //
- this.txtServiceCharge.AccessibleName = "Phone 1";
- this.txtServiceCharge.Location = new System.Drawing.Point(149, 139);
- this.txtServiceCharge.Margin = new System.Windows.Forms.Padding(4);
- this.txtServiceCharge.Name = "txtServiceCharge";
- this.txtServiceCharge.Size = new System.Drawing.Size(96, 22);
- this.txtServiceCharge.TabIndex = 5;
- this.txtServiceCharge.Text = "0";
- //
- // btnAddProductGroup
- //
- this.btnAddProductGroup.Location = new System.Drawing.Point(409, 171);
- this.btnAddProductGroup.Margin = new System.Windows.Forms.Padding(4);
- this.btnAddProductGroup.Name = "btnAddProductGroup";
- this.btnAddProductGroup.Size = new System.Drawing.Size(128, 26);
- 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(149, 171);
- this.cmbProductGroup.Margin = new System.Windows.Forms.Padding(4);
- this.cmbProductGroup.Name = "cmbProductGroup";
- this.cmbProductGroup.Size = new System.Drawing.Size(251, 24);
- this.cmbProductGroup.TabIndex = 8;
- this.cmbProductGroup.ValueMember = "ProductGroupID";
- //
- // btnCancel
- //
- this.btnCancel.Location = new System.Drawing.Point(437, 204);
- this.btnCancel.Margin = new System.Windows.Forms.Padding(4);
- this.btnCancel.Name = "btnCancel";
- this.btnCancel.Size = new System.Drawing.Size(100, 92);
- 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(329, 204);
- this.btnOk.Margin = new System.Windows.Forms.Padding(4);
- this.btnOk.Name = "btnOk";
- this.btnOk.Size = new System.Drawing.Size(100, 92);
- this.btnOk.TabIndex = 10;
- this.btnOk.Text = "&Ok";
- this.btnOk.UseVisualStyleBackColor = true;
- this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(261, 142);
- this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(34, 17);
- this.label1.TabIndex = 18;
- this.label1.Text = "Sort";
- //
- // txtSortOrder
- //
- this.txtSortOrder.AccessibleName = "";
- this.txtSortOrder.Location = new System.Drawing.Point(304, 139);
- this.txtSortOrder.Margin = new System.Windows.Forms.Padding(4);
- this.txtSortOrder.Name = "txtSortOrder";
- this.txtSortOrder.Size = new System.Drawing.Size(96, 22);
- this.txtSortOrder.TabIndex = 6;
- this.txtSortOrder.Text = "0";
- //
- // txtFullPrice
- //
- this.txtFullPrice.AccessibleName = "";
- this.txtFullPrice.Location = new System.Drawing.Point(268, 79);
- this.txtFullPrice.Margin = new System.Windows.Forms.Padding(4);
- this.txtFullPrice.Name = "txtFullPrice";
- this.txtFullPrice.Size = new System.Drawing.Size(104, 22);
- 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(149, 107);
- this.cmbServiceTax.Margin = new System.Windows.Forms.Padding(4);
- this.cmbServiceTax.Name = "cmbServiceTax";
- this.cmbServiceTax.Size = new System.Drawing.Size(127, 24);
- this.cmbServiceTax.TabIndex = 20;
- this.cmbServiceTax.ValueMember = "TaxID";
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(25, 110);
- this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(115, 17);
- this.label6.TabIndex = 21;
- this.label6.Text = "Service Tax / Vat";
- //
- // chkIsScTaxable
- //
- this.chkIsScTaxable.AutoSize = true;
- this.chkIsScTaxable.Location = new System.Drawing.Point(409, 109);
- this.chkIsScTaxable.Margin = new System.Windows.Forms.Padding(4);
- this.chkIsScTaxable.Name = "chkIsScTaxable";
- this.chkIsScTaxable.Size = new System.Drawing.Size(114, 21);
- this.chkIsScTaxable.TabIndex = 22;
- this.chkIsScTaxable.Text = "Is Sc Taxable";
- this.chkIsScTaxable.UseVisualStyleBackColor = true;
- //
- // bsVat
- //
- this.bsVat.DataSource = typeof(Tanshu.Accounts.Entities.Tax);
- //
- // ProductForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(553, 340);
- this.Controls.Add(this.chkIsScTaxable);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.cmbServiceTax);
- this.Controls.Add(this.txtFullPrice);
- this.Controls.Add(this.txtSortOrder);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.btnCancel);
- this.Controls.Add(this.btnOk);
- this.Controls.Add(this.btnAddProductGroup);
- this.Controls.Add(this.cmbProductGroup);
- this.Controls.Add(this.chkDiscontinued);
- 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.Margin = new System.Windows.Forms.Padding(4);
- 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 chkDiscontinued;
- 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.Label label1;
- internal System.Windows.Forms.TextBox txtSortOrder;
- 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;
- }
-}
\ No newline at end of file
diff --git a/Tanshu.Accounts.PointOfSale/Products/FoodTableForm.cs b/Tanshu.Accounts.PointOfSale/Products/FoodTableForm.cs
deleted file mode 100644
index 4a0543d..0000000
--- a/Tanshu.Accounts.PointOfSale/Products/FoodTableForm.cs
+++ /dev/null
@@ -1,154 +0,0 @@
-using System;
-using System.Windows.Forms;
-using Tanshu.Accounts.Repository;
-using Tanshu.Accounts.Entities;
-
-namespace Tanshu.Accounts.PointOfSale
-{
- public partial class FoodTableForm : Form
- {
- private Guid? _productID;
- public FoodTableForm(Guid? productID)
- {
- _productID = productID;
- InitializeComponent();
- }
-
- private void Products_Load(object sender, EventArgs e)
- {
- FillCombos();
- if (_productID.HasValue)
- {
- Product product;
- using (var bi = new ProductBI())
- product = bi.Get(x => x.ProductID == _productID.Value);
- txtProductID.Text = _productID.Value.ToString();
- txtCode.Text = product.Code.ToString();
- txtName.Text = product.Name;
- txtUnits.Text = product.Units;
- txtPrice.Text = product.Price.ToString("#.##");
- txtFullPrice.Text = product.FullPrice.ToString("#.##");
- cmbVat.SelectedValue = product.Vat.TaxID;
- cmbServiceTax.SelectedValue = product.ServiceTax.TaxID;
- txtServiceCharge.Text = product.ServiceCharge.ToString("#.##");
- chkDiscontinued.Checked = product.Discontinued;
- chkIsScTaxable.Checked = product.IsScTaxable;
- cmbProductGroup.SelectedValue = product.ProductGroup.ProductGroupID;
- txtSortOrder.Text = product.SortOrder.ToString();
- }
- else
- {
- txtProductID.Text = "(Auto)";
- txtName.Focus();
- }
- }
-
- private void FillCombos()
- {
- using (var bi = new ProductGroupBI())
- bsProductGroups.DataSource = bi.List();
- using (var bi = new TaxBI())
- {
- bsServiceTax.DataSource = bi.List();
- bsVat.DataSource = bi.List();
- }
- }
-
- private void btnAddCategory_Click(object sender, EventArgs e)
- {
- using (var frm = new ProductGroupListForm())
- frm.ShowDialog();
- FillCombos();
- cmbProductGroup.SelectedIndex = -1;
- }
-
- private Product IsFormValid()
- {
- var product = new Product();
-
- if (_productID.HasValue)
- product.ProductID = _productID.Value;
-
- int code;
- if (!int.TryParse(txtCode.Text, out code))
- return null;
- if (code < 0)
- return null;
- product.Code = code;
-
- if (string.IsNullOrEmpty(txtName.Text.Trim()))
- return null;
- product.Name = txtName.Text.Trim();
- //if (string.IsNullOrEmpty(txtUnits.Text.Trim()))
- // return null;
- product.Units = txtUnits.Text.Trim();
-
- decimal price;
- if (!decimal.TryParse(txtPrice.Text, out price))
- return null;
- if (price < 0)
- return null;
- product.Price = price;
-
- if (!decimal.TryParse(txtFullPrice.Text, out price))
- return null;
- if (price < 0 || price < product.Price)
- return null;
- product.FullPrice = price;
-
- // Tax
- if (cmbVat.SelectedItem == null)
- return null;
- product.Vat = (Tax)cmbVat.SelectedItem;
-
- if (cmbServiceTax.SelectedItem == null)
- return null;
- product.ServiceTax = (Tax)cmbServiceTax.SelectedItem;
-
- decimal serviceCharge;
- if (!decimal.TryParse(txtServiceCharge.Text, out serviceCharge))
- return null;
- if (serviceCharge < 0 || serviceCharge > 1)
- return null;
- product.ServiceCharge = serviceCharge;
-
- product.IsScTaxable = chkIsScTaxable.Checked;
- product.Discontinued = chkDiscontinued.Checked;
- int sortOrder;
- if (!int.TryParse(txtSortOrder.Text, out sortOrder))
- return null;
- product.SortOrder = sortOrder;
-
- //Group
- if (cmbProductGroup.SelectedItem == null)
- return null;
- product.ProductGroup = (ProductGroup)cmbProductGroup.SelectedItem;
- return product;
- }
-
- private void btnOk_Click(object sender, EventArgs e)
- {
- var product = IsFormValid();
- if (product != null)
- {
- using (var bi = new ProductBI())
- {
- if (_productID.HasValue)
- bi.Update(product);
- else
- bi.Insert(product);
- bi.SaveChanges();
- }
- MessageBox.Show("Update / Save Successful");
- this.Close();
- }
- else
- MessageBox.Show("The form is not valid");
- }
-
- private void btnCancel_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- }
-}
\ No newline at end of file
diff --git a/Tanshu.Accounts.PointOfSale/Products/FoodTableForm.resx b/Tanshu.Accounts.PointOfSale/Products/FoodTableForm.resx
deleted file mode 100644
index 89bd3df..0000000
--- a/Tanshu.Accounts.PointOfSale/Products/FoodTableForm.resx
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 211, 17
-
-
- 56, 25
-
-
- 382, 17
-
-
- 102
-
-
\ No newline at end of file
diff --git a/Tanshu.Accounts.PointOfSale/Products/FoodTableListForm.Designer.cs b/Tanshu.Accounts.PointOfSale/Products/FoodTableListForm.Designer.cs
deleted file mode 100644
index c74b589..0000000
--- a/Tanshu.Accounts.PointOfSale/Products/FoodTableListForm.Designer.cs
+++ /dev/null
@@ -1,268 +0,0 @@
-namespace Tanshu.Accounts.PointOfSale
-{
- partial class FoodTableListForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- 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.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.Vat = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.ServiceTax = 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.discontinuedDataGridViewCheckBoxColumn = 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.Vat,
- this.ServiceTax,
- this.Group,
- this.serviceChargeDataGridViewTextBoxColumn,
- this.salePriceDataGridViewTextBoxColumn,
- this.discontinuedDataGridViewCheckBoxColumn});
- 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);
- //
- // 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;
- //
- // Vat
- //
- this.Vat.DataPropertyName = "Vat";
- this.Vat.HeaderText = "Vat";
- this.Vat.Name = "Vat";
- this.Vat.ReadOnly = true;
- this.Vat.Width = 48;
- //
- // ServiceTax
- //
- this.ServiceTax.DataPropertyName = "ServiceTax";
- this.ServiceTax.HeaderText = "ServiceTax";
- this.ServiceTax.Name = "ServiceTax";
- this.ServiceTax.ReadOnly = true;
- this.ServiceTax.Width = 86;
- //
- // 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;
- //
- // discontinuedDataGridViewCheckBoxColumn
- //
- this.discontinuedDataGridViewCheckBoxColumn.DataPropertyName = "Discontinued";
- this.discontinuedDataGridViewCheckBoxColumn.HeaderText = "Discontinued";
- this.discontinuedDataGridViewCheckBoxColumn.Name = "discontinuedDataGridViewCheckBoxColumn";
- this.discontinuedDataGridViewCheckBoxColumn.ReadOnly = true;
- this.discontinuedDataGridViewCheckBoxColumn.Width = 75;
- //
- // 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.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.ProductGroupListForm_Load);
- ((System.ComponentModel.ISupportInitialize)(this.dgvProducts)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.bsList)).EndInit();
- this.ResumeLayout(false);
-
- }
-
- #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.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 Vat;
- private System.Windows.Forms.DataGridViewTextBoxColumn ServiceTax;
- private System.Windows.Forms.DataGridViewTextBoxColumn Group;
- private System.Windows.Forms.DataGridViewTextBoxColumn serviceChargeDataGridViewTextBoxColumn;
- private System.Windows.Forms.DataGridViewTextBoxColumn salePriceDataGridViewTextBoxColumn;
- private System.Windows.Forms.DataGridViewCheckBoxColumn discontinuedDataGridViewCheckBoxColumn;
- //private System.Windows.Forms.DataGridViewTextBoxColumn discountLimitDataGridViewTextBoxColumn;
- //private System.Windows.Forms.DataGridViewTextBoxColumn groupTypeDataGridViewTextBoxColumn;
- //private System.Windows.Forms.DataGridViewTextBoxColumn productGroupDataGridViewTextBoxColumn;
- //private System.Windows.Forms.DataGridViewTextBoxColumn taxDataGridViewTextBoxColumn;
- }
-}
\ No newline at end of file
diff --git a/Tanshu.Accounts.PointOfSale/Products/FoodTableListForm.cs b/Tanshu.Accounts.PointOfSale/Products/FoodTableListForm.cs
deleted file mode 100644
index 8070652..0000000
--- a/Tanshu.Accounts.PointOfSale/Products/FoodTableListForm.cs
+++ /dev/null
@@ -1,114 +0,0 @@
-using System;
-using System.Windows.Forms;
-using Tanshu.Accounts.Entities;
-using Tanshu.Accounts.Repository;
-using System.Collections.Generic;
-
-namespace Tanshu.Accounts.PointOfSale
-{
- public partial class FoodTableListForm : Form
- {
- private IList _list;
- public FoodTableListForm()
- {
- InitializeComponent();
- dgvProducts.CellClick += new DataGridViewCellEventHandler(dgvProducts_CellClick);
- }
-
- private void btnAdd_Click(object sender, EventArgs e)
- {
- using (var frm = new ProductForm(null))
- frm.ShowDialog();
- using (var bi = new ProductBI())
- _list = bi.List();
- bsList.DataSource = _list;
- }
-
- private void ProductGroupListForm_Load(object sender, EventArgs e)
- {
- using (var bi = new ProductBI())
- _list = bi.List();
- bsList.DataSource = _list;
- }
-
- private void btnEdit_Click(object sender, EventArgs e)
- {
- var id = ((Product)bsList.Current).ProductID;
- using (var frm = new ProductForm(id))
- frm.ShowDialog();
- using (var bi = new ProductBI())
- _list = bi.List();
- bsList.DataSource = _list;
- }
-
- private void btnExit_Click(object sender, EventArgs e)
- {
- this.Close();
- }
-
- private void dgvProductTypes_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
- {
- var data = dgvProducts.Rows[e.RowIndex].DataBoundItem as Product;
- if (data == null)
- return;
- var tax = e.Value as Tax;
- if (tax != null)
- {
- e.Value = string.Format("{1:P} - {0}", tax.Name, tax.Rate); ;
- return;
- }
- var productGroup = e.Value as ProductGroup;
- if (productGroup != null)
- {
- e.Value = productGroup.Name;
- }
- }
- private void dgvProducts_CellClick(object sender, DataGridViewCellEventArgs e)
- {
- // Ignore clicks that are not on button cells.
- if (e.RowIndex < 0)
- return;
-
- // Ignore clicks that are not on button cells.
- if (e.ColumnIndex == dgvProducts.Columns["moveUp"].Index)
- {
- var product = dgvProducts.Rows[e.RowIndex].DataBoundItem as Product;
- var index = _list.IndexOf(product);
- if (index == 0)
- return;
- var previousProduct = _list[index - 1];
- if (previousProduct.ProductGroup.ProductGroupID != product.ProductGroup.ProductGroupID)
- return;
- _list.RemoveAt(index);
- _list.Insert(index -1, product);
- bsList.DataSource = _list;
- bsList.ResetBindings(false);
- bsList.CurrencyManager.Position -= 1;
- }
- if (e.ColumnIndex == dgvProducts.Columns["moveDown"].Index)
- {
- var product = dgvProducts.Rows[e.RowIndex].DataBoundItem as Product;
- var index = _list.IndexOf(product);
- if (index == _list.Count + 1)
- return;
- var nextProduct = _list[index + 1];
- if (product.ProductGroup.ProductGroupID != nextProduct.ProductGroup.ProductGroupID)
- return;
- _list.RemoveAt(index);
- _list.Insert(index + 1, product);
- bsList.DataSource = _list;
- bsList.ResetBindings(false);
- bsList.CurrencyManager.Position += 1;
- }
- }
-
- private void btnSave_Click(object sender, EventArgs e)
- {
- using (var bi = new ProductBI())
- {
- bi.UpdateSortOrder(_list);
- bi.SaveChanges();
- }
- }
- }
-}
diff --git a/Tanshu.Accounts.PointOfSale/Products/FoodTableListForm.resx b/Tanshu.Accounts.PointOfSale/Products/FoodTableListForm.resx
deleted file mode 100644
index 4537dcc..0000000
--- a/Tanshu.Accounts.PointOfSale/Products/FoodTableListForm.resx
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- 17, 17
-
-
\ No newline at end of file
diff --git a/Tanshu.Accounts.PointOfSale/Properties/Resources.Designer.cs b/Tanshu.Accounts.PointOfSale/Properties/Resources.Designer.cs
index dcaa3c9..7250ad0 100644
--- a/Tanshu.Accounts.PointOfSale/Properties/Resources.Designer.cs
+++ b/Tanshu.Accounts.PointOfSale/Properties/Resources.Designer.cs
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:2.0.50727.5444
+// Runtime Version:2.0.50727.5485
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -59,12 +59,5 @@ namespace Tanshu.Accounts.PointOfSale.Properties {
resourceCulture = value;
}
}
-
- internal static System.Drawing.Bitmap Splash {
- get {
- object obj = ResourceManager.GetObject("Splash", resourceCulture);
- return ((System.Drawing.Bitmap)(obj));
- }
- }
}
}
diff --git a/Tanshu.Accounts.PointOfSale/Properties/Resources.resx b/Tanshu.Accounts.PointOfSale/Properties/Resources.resx
index be8c994..7080a7d 100644
--- a/Tanshu.Accounts.PointOfSale/Properties/Resources.resx
+++ b/Tanshu.Accounts.PointOfSale/Properties/Resources.resx
@@ -117,8 +117,4 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- ..\Resources\Splash.jpg;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
\ No newline at end of file
diff --git a/Tanshu.Accounts.PointOfSale/Resources/Splash.jpg b/Tanshu.Accounts.PointOfSale/Resources/Splash.jpg
deleted file mode 100644
index 60e697f..0000000
Binary files a/Tanshu.Accounts.PointOfSale/Resources/Splash.jpg and /dev/null differ
diff --git a/Tanshu.Accounts.PointOfSale/SplashForm.Designer.cs b/Tanshu.Accounts.PointOfSale/SplashForm.Designer.cs
deleted file mode 100644
index 179552e..0000000
--- a/Tanshu.Accounts.PointOfSale/SplashForm.Designer.cs
+++ /dev/null
@@ -1,54 +0,0 @@
- namespace Tanshu.Accounts.PointOfSale
-{
- partial class SplashForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.SuspendLayout();
- //
- // SplashForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(721, 346);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "SplashForm";
- this.ShowInTaskbar = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Load += new System.EventHandler(this.SplashForm_Load);
- this.Paint += new System.Windows.Forms.PaintEventHandler(this.SplashForm_Paint);
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
-
- }
-}
\ No newline at end of file
diff --git a/Tanshu.Accounts.PointOfSale/SplashForm.cs b/Tanshu.Accounts.PointOfSale/SplashForm.cs
deleted file mode 100644
index 5321ee4..0000000
--- a/Tanshu.Accounts.PointOfSale/SplashForm.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System;
-using System.Drawing;
-using System.Reflection;
-using System.Windows.Forms;
-using Tanshu.Accounts.Repository;
-
-namespace Tanshu.Accounts.PointOfSale
-{
- public partial class SplashForm : Form
- {
- public SplashForm()
- {
- InitializeComponent();
- }
- private void SplashForm_Paint(object sender, PaintEventArgs e)
- {
- // For an image added as a project resource in Visual Studio,
- // get the resource by name.
- // Bitmap backgroundImage = Properties.Resources.mypicture;
- // Otherwise, get the image compiled as an embedded resource.
- Assembly asm = Assembly.GetExecutingAssembly();
- Bitmap backgroundImage = new Bitmap(asm.GetManifestResourceStream("Splash"));
-
- e.Graphics.DrawImage(backgroundImage, this.ClientRectangle,
- new Rectangle(0, 0, backgroundImage.Width, backgroundImage.Height),
- GraphicsUnit.Pixel);
- }
-
- private void SplashForm_Load(object sender, EventArgs e)
- {
- SessionManager.Initialize();
- this.Close();
- }
- }
-}
diff --git a/Tanshu.Accounts.PointOfSale/SplashForm.resx b/Tanshu.Accounts.PointOfSale/SplashForm.resx
deleted file mode 100644
index 19dc0dd..0000000
--- a/Tanshu.Accounts.PointOfSale/SplashForm.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/Tanshu.Accounts.PointOfSale/Tanshu.Accounts.PointOfSale.csproj b/Tanshu.Accounts.PointOfSale/Tanshu.Accounts.PointOfSale.csproj
index 8837531..9587eea 100644
--- a/Tanshu.Accounts.PointOfSale/Tanshu.Accounts.PointOfSale.csproj
+++ b/Tanshu.Accounts.PointOfSale/Tanshu.Accounts.PointOfSale.csproj
@@ -425,7 +425,6 @@
-
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/CheckoutBI.cs b/Tanshu.Accounts.Repository/CheckoutBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/CheckoutBI.cs
rename to Tanshu.Accounts.Repository/CheckoutBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/CustomerBI.cs b/Tanshu.Accounts.Repository/CustomerBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/CustomerBI.cs
rename to Tanshu.Accounts.Repository/CustomerBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/FoodTableBI.cs b/Tanshu.Accounts.Repository/FoodTableBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/FoodTableBI.cs
rename to Tanshu.Accounts.Repository/FoodTableBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/GroupBI.cs b/Tanshu.Accounts.Repository/GroupBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/GroupBI.cs
rename to Tanshu.Accounts.Repository/GroupBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/IUnitOfWork.cs b/Tanshu.Accounts.Repository/IUnitOfWork.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/IUnitOfWork.cs
rename to Tanshu.Accounts.Repository/IUnitOfWork.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/ManagementBI.cs b/Tanshu.Accounts.Repository/ManagementBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/ManagementBI.cs
rename to Tanshu.Accounts.Repository/ManagementBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/ModifierBI.cs b/Tanshu.Accounts.Repository/ModifierBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/ModifierBI.cs
rename to Tanshu.Accounts.Repository/ModifierBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/PrintLocationBI.cs b/Tanshu.Accounts.Repository/PrintLocationBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/PrintLocationBI.cs
rename to Tanshu.Accounts.Repository/PrintLocationBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/ProductBI.cs b/Tanshu.Accounts.Repository/ProductBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/ProductBI.cs
rename to Tanshu.Accounts.Repository/ProductBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/ProductGroupBI.cs b/Tanshu.Accounts.Repository/ProductGroupBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/ProductGroupBI.cs
rename to Tanshu.Accounts.Repository/ProductGroupBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/ProductGroupModifierBI.cs b/Tanshu.Accounts.Repository/ProductGroupModifierBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/ProductGroupModifierBI.cs
rename to Tanshu.Accounts.Repository/ProductGroupModifierBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/ReprintBI.cs b/Tanshu.Accounts.Repository/ReprintBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/ReprintBI.cs
rename to Tanshu.Accounts.Repository/ReprintBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/RoleBI.cs b/Tanshu.Accounts.Repository/RoleBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/RoleBI.cs
rename to Tanshu.Accounts.Repository/RoleBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/SalesAnalysisBI.cs b/Tanshu.Accounts.Repository/SalesAnalysisBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/SalesAnalysisBI.cs
rename to Tanshu.Accounts.Repository/SalesAnalysisBI.cs
diff --git a/Tanshu.Accounts.Repository/Tanshu.Accounts.Repository.csproj b/Tanshu.Accounts.Repository/Tanshu.Accounts.Repository.csproj
index 3239c83..685ff8b 100644
--- a/Tanshu.Accounts.Repository/Tanshu.Accounts.Repository.csproj
+++ b/Tanshu.Accounts.Repository/Tanshu.Accounts.Repository.csproj
@@ -63,30 +63,30 @@
-
-
-
-
-
+
+
+
+
+
Code
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
Code
-
-
-
-
+
+
+
+
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/TaxBI.cs b/Tanshu.Accounts.Repository/TaxBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/TaxBI.cs
rename to Tanshu.Accounts.Repository/TaxBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/UnitOfWork.cs b/Tanshu.Accounts.Repository/UnitOfWork.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/UnitOfWork.cs
rename to Tanshu.Accounts.Repository/UnitOfWork.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/UserBI.cs b/Tanshu.Accounts.Repository/UserBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/UserBI.cs
rename to Tanshu.Accounts.Repository/UserBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/VoucherBI.cs b/Tanshu.Accounts.Repository/VoucherBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/VoucherBI.cs
rename to Tanshu.Accounts.Repository/VoucherBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/VoucherSettlementBI.cs b/Tanshu.Accounts.Repository/VoucherSettlementBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/VoucherSettlementBI.cs
rename to Tanshu.Accounts.Repository/VoucherSettlementBI.cs
diff --git a/Tanshu.Accounts.Repository/BusinessLayer/WaiterBI.cs b/Tanshu.Accounts.Repository/WaiterBI.cs
similarity index 100%
rename from Tanshu.Accounts.Repository/BusinessLayer/WaiterBI.cs
rename to Tanshu.Accounts.Repository/WaiterBI.cs