Chore: Cruft Cleanup
This commit is contained in:
parent
da929ad036
commit
45831e2e4d
Tanshu.Accounts.PointOfSale
Products
FoodTableForm.Designer.csFoodTableForm.csFoodTableForm.resxFoodTableListForm.Designer.csFoodTableListForm.csFoodTableListForm.resx
Properties
Resources
SplashForm.Designer.csSplashForm.csSplashForm.resxTanshu.Accounts.PointOfSale.csprojTanshu.Accounts.Repository
CheckoutBI.csCustomerBI.csFoodTableBI.csGroupBI.csIUnitOfWork.csManagementBI.csModifierBI.csPrintLocationBI.csProductBI.csProductGroupBI.csProductGroupModifierBI.csReprintBI.csRoleBI.csSalesAnalysisBI.csTanshu.Accounts.Repository.csprojTaxBI.csUnitOfWork.csUserBI.csVoucherBI.csVoucherSettlementBI.csWaiterBI.cs
@ -1,385 +0,0 @@
|
||||
namespace Tanshu.Accounts.PointOfSale
|
||||
{
|
||||
partial class FoodTableForm
|
||||
{
|
||||
/// <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.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;
|
||||
}
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,132 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="bsProductGroups.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>211, 17</value>
|
||||
</metadata>
|
||||
<metadata name="bsServiceTax.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>56, 25</value>
|
||||
</metadata>
|
||||
<metadata name="bsVat.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>382, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>102</value>
|
||||
</metadata>
|
||||
</root>
|
@ -1,268 +0,0 @@
|
||||
namespace Tanshu.Accounts.PointOfSale
|
||||
{
|
||||
partial class FoodTableListForm
|
||||
{
|
||||
/// <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.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;
|
||||
}
|
||||
}
|
@ -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<Product> _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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,138 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="moveUp.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="moveDown.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Vat.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="ServiceTax.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Group.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="bsList.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -117,8 +117,4 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="Splash" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Splash.jpg;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
Binary file not shown.
Before ![]() (image error) Size: 1.5 MiB |
54
Tanshu.Accounts.PointOfSale/SplashForm.Designer.cs
generated
54
Tanshu.Accounts.PointOfSale/SplashForm.Designer.cs
generated
@ -1,54 +0,0 @@
|
||||
namespace Tanshu.Accounts.PointOfSale
|
||||
{
|
||||
partial class SplashForm
|
||||
{
|
||||
/// <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.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
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,120 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
@ -425,7 +425,6 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Resources\burger.ico" />
|
||||
<Content Include="Resources\Splash.jpg" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
|
||||
|
0
Tanshu.Accounts.Repository/BusinessLayer/FoodTableBI.cs → Tanshu.Accounts.Repository/FoodTableBI.cs
0
Tanshu.Accounts.Repository/BusinessLayer/FoodTableBI.cs → Tanshu.Accounts.Repository/FoodTableBI.cs
0
Tanshu.Accounts.Repository/BusinessLayer/IUnitOfWork.cs → Tanshu.Accounts.Repository/IUnitOfWork.cs
0
Tanshu.Accounts.Repository/BusinessLayer/IUnitOfWork.cs → Tanshu.Accounts.Repository/IUnitOfWork.cs
@ -63,30 +63,30 @@
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="BusinessLayer\CheckoutBI.cs" />
|
||||
<Compile Include="BusinessLayer\GroupBI.cs" />
|
||||
<Compile Include="BusinessLayer\CustomerBI.cs" />
|
||||
<Compile Include="BusinessLayer\FoodTableBI.cs" />
|
||||
<Compile Include="BusinessLayer\IUnitOfWork.cs">
|
||||
<Compile Include="CheckoutBI.cs" />
|
||||
<Compile Include="GroupBI.cs" />
|
||||
<Compile Include="CustomerBI.cs" />
|
||||
<Compile Include="FoodTableBI.cs" />
|
||||
<Compile Include="IUnitOfWork.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BusinessLayer\ManagementBI.cs" />
|
||||
<Compile Include="BusinessLayer\ModifierBI.cs" />
|
||||
<Compile Include="BusinessLayer\PrintLocationBI.cs" />
|
||||
<Compile Include="BusinessLayer\ProductBI.cs" />
|
||||
<Compile Include="BusinessLayer\ProductGroupBI.cs" />
|
||||
<Compile Include="BusinessLayer\ProductGroupModifierBI.cs" />
|
||||
<Compile Include="BusinessLayer\ReprintBI.cs" />
|
||||
<Compile Include="BusinessLayer\RoleBI.cs" />
|
||||
<Compile Include="BusinessLayer\SalesAnalysisBI.cs" />
|
||||
<Compile Include="BusinessLayer\TaxBI.cs" />
|
||||
<Compile Include="BusinessLayer\UnitOfWork.cs">
|
||||
<Compile Include="ManagementBI.cs" />
|
||||
<Compile Include="ModifierBI.cs" />
|
||||
<Compile Include="PrintLocationBI.cs" />
|
||||
<Compile Include="ProductBI.cs" />
|
||||
<Compile Include="ProductGroupBI.cs" />
|
||||
<Compile Include="ProductGroupModifierBI.cs" />
|
||||
<Compile Include="ReprintBI.cs" />
|
||||
<Compile Include="RoleBI.cs" />
|
||||
<Compile Include="SalesAnalysisBI.cs" />
|
||||
<Compile Include="TaxBI.cs" />
|
||||
<Compile Include="UnitOfWork.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BusinessLayer\UserBI.cs" />
|
||||
<Compile Include="BusinessLayer\VoucherBI.cs" />
|
||||
<Compile Include="BusinessLayer\VoucherSettlementBI.cs" />
|
||||
<Compile Include="BusinessLayer\WaiterBI.cs" />
|
||||
<Compile Include="UserBI.cs" />
|
||||
<Compile Include="VoucherBI.cs" />
|
||||
<Compile Include="VoucherSettlementBI.cs" />
|
||||
<Compile Include="WaiterBI.cs" />
|
||||
<Compile Include="Session.cs" />
|
||||
<Compile Include="DbValues.cs" />
|
||||
<Compile Include="SetupStore.cs" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user