Feature: Sale analysis printout changed.
Feature: Sale analysis detail printing built
This commit is contained in:
@ -3,19 +3,20 @@ using System.Collections.Generic;
|
||||
using System.Windows.Forms;
|
||||
using Tanshu.Accounts.BI;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
using Tanshu.Accounts.Helpers;
|
||||
|
||||
|
||||
namespace Tanshu.Accounts.PointOfSale
|
||||
{
|
||||
public partial class frmSaleAnalysisForm : Form
|
||||
{
|
||||
Guid? details = null;
|
||||
List<SalesAnalysisBO> det;
|
||||
private static readonly Tanshu.Logging.SqlLogger log = new Tanshu.Logging.SqlLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
Guid? _details;
|
||||
List<SalesAnalysisBO> _analysis;
|
||||
List<SalesAnalysisDetailBO> _analysisDetail;
|
||||
private static readonly Tanshu.Logging.SqlLogger Log = new Tanshu.Logging.SqlLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
public frmSaleAnalysisForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
log.Warn(string.Format("Sales Analysis by: {0}", CurrentUser.user.Name));
|
||||
Log.Warn(string.Format("Sales Analysis by: {0}", CurrentUser.user.Name));
|
||||
}
|
||||
|
||||
private void dtpStart_ValueChanged(object sender, EventArgs e)
|
||||
@ -25,23 +26,23 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
|
||||
private void ShowStatement()
|
||||
{
|
||||
DateTime startDate = Convert.ToDateTime(String.Format("{0:dd-MMM-yyyy} 00:00:00", dtpStart.Value));
|
||||
DateTime finishDate = Convert.ToDateTime(String.Format("{0:dd-MMM-yyyy} 23:59:59", dtpFinish.Value));
|
||||
var startDate = Convert.ToDateTime(String.Format("{0:dd-MMM-yyyy} 00:00:00", dtpStart.Value));
|
||||
var finishDate = Convert.ToDateTime(String.Format("{0:dd-MMM-yyyy} 23:59:59", dtpFinish.Value));
|
||||
|
||||
if (details.HasValue)
|
||||
if (_details.HasValue)
|
||||
{
|
||||
List<SalesAnalysisDetailBO> list = new SalesAnalysisBI().GetSaleDetail(startDate, finishDate, details.Value);
|
||||
_analysisDetail = new SalesAnalysisBI().GetSaleDetail(startDate, finishDate, _details.Value);
|
||||
dgvSale.AutoGenerateColumns = true;
|
||||
dgvSale.DataSource = list;
|
||||
dgvSale.DataSource = _analysisDetail;
|
||||
dgvSale.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
|
||||
dgvSale.Columns[2].DefaultCellStyle.Format = "#,##0.00;(#,##0.00);0";
|
||||
dgvSale.Columns[3].DefaultCellStyle.Format = "#,##0.00;(#,##0.00);0";
|
||||
}
|
||||
else
|
||||
{
|
||||
det = new SalesAnalysisBI().GetSale(startDate, finishDate);
|
||||
_analysis = new SalesAnalysisBI().GetSale(startDate, finishDate);
|
||||
dgvSale.AutoGenerateColumns = true;
|
||||
dgvSale.DataSource = det;
|
||||
dgvSale.DataSource = _analysis;
|
||||
dgvSale.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
|
||||
dgvSale.Columns[0].Visible = false;
|
||||
dgvSale.Columns[2].DefaultCellStyle.Format = "#,##0.00;(#,##0.00);0";
|
||||
@ -73,25 +74,26 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
|
||||
private void dgvSale_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!details.HasValue)
|
||||
details = ((SalesAnalysisBO)dgvSale.SelectedRows[0].DataBoundItem).TypeID;
|
||||
else
|
||||
details = null;
|
||||
ShowStatement();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{ throw ex; }
|
||||
if (!_details.HasValue)
|
||||
_details = ((SalesAnalysisBO)dgvSale.SelectedRows[0].DataBoundItem).TypeID;
|
||||
else
|
||||
_details = null;
|
||||
ShowStatement();
|
||||
}
|
||||
|
||||
private void btnPrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (det != null)
|
||||
if (!_details.HasValue)
|
||||
{
|
||||
DateTime startDate = Convert.ToDateTime(String.Format("{0:dd-MMM-yyyy} 00:00:00", dtpStart.Value));
|
||||
DateTime finishDate = Convert.ToDateTime(String.Format("{0:dd-MMM-yyyy} 23:59:59", dtpFinish.Value));
|
||||
Accounts.Print.Thermal.PrintSale(det, startDate, finishDate);
|
||||
var startDate = Convert.ToDateTime(String.Format("{0:dd-MMM-yyyy} 00:00:00", dtpStart.Value));
|
||||
var finishDate = Convert.ToDateTime(String.Format("{0:dd-MMM-yyyy} 23:59:59", dtpFinish.Value));
|
||||
Print.Thermal.PrintSale(_analysis, startDate, finishDate);
|
||||
}
|
||||
else
|
||||
{
|
||||
var startDate = Convert.ToDateTime(String.Format("{0:dd-MMM-yyyy} 00:00:00", dtpStart.Value));
|
||||
var finishDate = Convert.ToDateTime(String.Format("{0:dd-MMM-yyyy} 23:59:59", dtpFinish.Value));
|
||||
Print.Thermal.PrintSale(_analysisDetail, startDate, finishDate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
475
Tanshu.Accounts.PointOfSale/Sales/SalesForm.Designer.cs
generated
475
Tanshu.Accounts.PointOfSale/Sales/SalesForm.Designer.cs
generated
@ -29,8 +29,8 @@
|
||||
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();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.tmrPending = new System.Windows.Forms.Timer(this.components);
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.txtDiscount = new System.Windows.Forms.TextBox();
|
||||
@ -43,9 +43,6 @@
|
||||
this.txtGrossTax = new System.Windows.Forms.TextBox();
|
||||
this.dgvProducts = new System.Windows.Forms.DataGridView();
|
||||
this.Display = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.printedDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.additionalDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.bindingSource = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.pnlBilling = new System.Windows.Forms.Panel();
|
||||
this.btnAdvance = new System.Windows.Forms.Button();
|
||||
this.btnResetCustomer = new System.Windows.Forms.Button();
|
||||
@ -78,19 +75,7 @@
|
||||
this.btnPaidCredit = new System.Windows.Forms.Button();
|
||||
this.dgvPending = new System.Windows.Forms.DataGridView();
|
||||
this.selectDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.billNoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.kotDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.TableID = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.amountDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.importantDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.alarmDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.bookingTimeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.lastEditedDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.waiterDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.cashierDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.printedDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.alarmTimeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.bsPending = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.btnAlarm = new System.Windows.Forms.Button();
|
||||
this.chkRefresh = new System.Windows.Forms.CheckBox();
|
||||
this.btnRefresh = new System.Windows.Forms.Button();
|
||||
@ -105,14 +90,29 @@
|
||||
this.tpAll = new System.Windows.Forms.TabPage();
|
||||
this.tpAlarm = new System.Windows.Forms.TabPage();
|
||||
this.lblUser = new System.Windows.Forms.Label();
|
||||
this.billNoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.kotDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.amountDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.importantDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.alarmDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.bookingTimeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.lastEditedDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.waiterDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.cashierDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.printedDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.alarmTimeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.bsPending = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.printedDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.additionalDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.bindingSource = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.bsWaiter = new System.Windows.Forms.BindingSource(this.components);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvProducts)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource)).BeginInit();
|
||||
this.pnlBilling.SuspendLayout();
|
||||
this.pnlWaiting.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvPending)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsPending)).BeginInit();
|
||||
this.tcPending.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsPending)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsWaiter)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
@ -138,7 +138,7 @@
|
||||
//
|
||||
this.txtDiscount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.txtDiscount.Location = new System.Drawing.Point(1133, 633);
|
||||
this.txtDiscount.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtDiscount.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.txtDiscount.Name = "txtDiscount";
|
||||
this.txtDiscount.ReadOnly = true;
|
||||
this.txtDiscount.Size = new System.Drawing.Size(159, 22);
|
||||
@ -162,7 +162,7 @@
|
||||
//
|
||||
this.txtGrossAmount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.txtGrossAmount.Location = new System.Drawing.Point(1133, 665);
|
||||
this.txtGrossAmount.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtGrossAmount.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.txtGrossAmount.Name = "txtGrossAmount";
|
||||
this.txtGrossAmount.ReadOnly = true;
|
||||
this.txtGrossAmount.Size = new System.Drawing.Size(159, 22);
|
||||
@ -176,7 +176,7 @@
|
||||
this.txtAmount.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.txtAmount.ForeColor = System.Drawing.Color.Transparent;
|
||||
this.txtAmount.Location = new System.Drawing.Point(1133, 697);
|
||||
this.txtAmount.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtAmount.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.txtAmount.Name = "txtAmount";
|
||||
this.txtAmount.ReadOnly = true;
|
||||
this.txtAmount.Size = new System.Drawing.Size(159, 26);
|
||||
@ -211,7 +211,7 @@
|
||||
// txtNarration
|
||||
//
|
||||
this.txtNarration.Location = new System.Drawing.Point(16, 593);
|
||||
this.txtNarration.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtNarration.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.txtNarration.Multiline = true;
|
||||
this.txtNarration.Name = "txtNarration";
|
||||
this.txtNarration.Size = new System.Drawing.Size(287, 130);
|
||||
@ -221,7 +221,7 @@
|
||||
//
|
||||
this.txtGrossTax.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.txtGrossTax.Location = new System.Drawing.Point(1133, 601);
|
||||
this.txtGrossTax.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtGrossTax.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.txtGrossTax.Name = "txtGrossTax";
|
||||
this.txtGrossTax.ReadOnly = true;
|
||||
this.txtGrossTax.Size = new System.Drawing.Size(159, 22);
|
||||
@ -247,7 +247,7 @@
|
||||
this.dgvProducts.DataSource = this.bindingSource;
|
||||
this.dgvProducts.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
|
||||
this.dgvProducts.Location = new System.Drawing.Point(16, 111);
|
||||
this.dgvProducts.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.dgvProducts.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.dgvProducts.MultiSelect = false;
|
||||
this.dgvProducts.Name = "dgvProducts";
|
||||
this.dgvProducts.RowHeadersVisible = false;
|
||||
@ -266,31 +266,6 @@
|
||||
this.Display.ReadOnly = true;
|
||||
this.Display.Width = 5;
|
||||
//
|
||||
// printedDataGridViewTextBoxColumn
|
||||
//
|
||||
this.printedDataGridViewTextBoxColumn.DataPropertyName = "Printed";
|
||||
dataGridViewCellStyle1.Format = "N2";
|
||||
this.printedDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.printedDataGridViewTextBoxColumn.HeaderText = "Printed";
|
||||
this.printedDataGridViewTextBoxColumn.Name = "printedDataGridViewTextBoxColumn";
|
||||
this.printedDataGridViewTextBoxColumn.ReadOnly = true;
|
||||
this.printedDataGridViewTextBoxColumn.Width = 5;
|
||||
//
|
||||
// additionalDataGridViewTextBoxColumn
|
||||
//
|
||||
this.additionalDataGridViewTextBoxColumn.DataPropertyName = "Additional";
|
||||
dataGridViewCellStyle2.Format = "N2";
|
||||
dataGridViewCellStyle2.NullValue = null;
|
||||
this.additionalDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.additionalDataGridViewTextBoxColumn.HeaderText = "Additional";
|
||||
this.additionalDataGridViewTextBoxColumn.Name = "additionalDataGridViewTextBoxColumn";
|
||||
this.additionalDataGridViewTextBoxColumn.ReadOnly = true;
|
||||
this.additionalDataGridViewTextBoxColumn.Width = 5;
|
||||
//
|
||||
// bindingSource
|
||||
//
|
||||
this.bindingSource.DataSource = typeof(Tanshu.Accounts.Contracts.SalesBillItemBO);
|
||||
//
|
||||
// pnlBilling
|
||||
//
|
||||
this.pnlBilling.AutoSize = true;
|
||||
@ -333,7 +308,7 @@
|
||||
this.pnlBilling.Controls.Add(this.label7);
|
||||
this.pnlBilling.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pnlBilling.Location = new System.Drawing.Point(0, 0);
|
||||
this.pnlBilling.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.pnlBilling.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.pnlBilling.Name = "pnlBilling";
|
||||
this.pnlBilling.Size = new System.Drawing.Size(1309, 815);
|
||||
this.pnlBilling.TabIndex = 121;
|
||||
@ -341,7 +316,7 @@
|
||||
// btnAdvance
|
||||
//
|
||||
this.btnAdvance.Location = new System.Drawing.Point(455, 668);
|
||||
this.btnAdvance.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnAdvance.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnAdvance.Name = "btnAdvance";
|
||||
this.btnAdvance.Size = new System.Drawing.Size(135, 55);
|
||||
this.btnAdvance.TabIndex = 152;
|
||||
@ -354,7 +329,7 @@
|
||||
this.btnResetCustomer.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnResetCustomer.ForeColor = System.Drawing.Color.Red;
|
||||
this.btnResetCustomer.Location = new System.Drawing.Point(652, 66);
|
||||
this.btnResetCustomer.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnResetCustomer.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnResetCustomer.Name = "btnResetCustomer";
|
||||
this.btnResetCustomer.Size = new System.Drawing.Size(48, 42);
|
||||
this.btnResetCustomer.TabIndex = 151;
|
||||
@ -364,7 +339,7 @@
|
||||
// btnWaiter
|
||||
//
|
||||
this.btnWaiter.Location = new System.Drawing.Point(455, 593);
|
||||
this.btnWaiter.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnWaiter.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnWaiter.Name = "btnWaiter";
|
||||
this.btnWaiter.Size = new System.Drawing.Size(135, 68);
|
||||
this.btnWaiter.TabIndex = 150;
|
||||
@ -375,7 +350,7 @@
|
||||
// txtCode
|
||||
//
|
||||
this.txtCode.Location = new System.Drawing.Point(708, 66);
|
||||
this.txtCode.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtCode.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.txtCode.Name = "txtCode";
|
||||
this.txtCode.Size = new System.Drawing.Size(584, 22);
|
||||
this.txtCode.TabIndex = 149;
|
||||
@ -383,7 +358,7 @@
|
||||
// btnClear
|
||||
//
|
||||
this.btnClear.Location = new System.Drawing.Point(312, 593);
|
||||
this.btnClear.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnClear.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnClear.Name = "btnClear";
|
||||
this.btnClear.Size = new System.Drawing.Size(135, 130);
|
||||
this.btnClear.TabIndex = 148;
|
||||
@ -394,7 +369,7 @@
|
||||
// btnRate
|
||||
//
|
||||
this.btnRate.Location = new System.Drawing.Point(884, 697);
|
||||
this.btnRate.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnRate.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnRate.Name = "btnRate";
|
||||
this.btnRate.Size = new System.Drawing.Size(139, 28);
|
||||
this.btnRate.TabIndex = 146;
|
||||
@ -405,7 +380,7 @@
|
||||
// btnPrintKot
|
||||
//
|
||||
this.btnPrintKot.Location = new System.Drawing.Point(740, 593);
|
||||
this.btnPrintKot.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnPrintKot.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnPrintKot.Name = "btnPrintKot";
|
||||
this.btnPrintKot.Size = new System.Drawing.Size(136, 130);
|
||||
this.btnPrintKot.TabIndex = 145;
|
||||
@ -416,7 +391,7 @@
|
||||
// btnPrintBill
|
||||
//
|
||||
this.btnPrintBill.Location = new System.Drawing.Point(597, 593);
|
||||
this.btnPrintBill.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnPrintBill.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnPrintBill.Name = "btnPrintBill";
|
||||
this.btnPrintBill.Size = new System.Drawing.Size(135, 130);
|
||||
this.btnPrintBill.TabIndex = 144;
|
||||
@ -427,7 +402,7 @@
|
||||
// btnVoid
|
||||
//
|
||||
this.btnVoid.Location = new System.Drawing.Point(884, 597);
|
||||
this.btnVoid.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnVoid.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnVoid.Name = "btnVoid";
|
||||
this.btnVoid.Size = new System.Drawing.Size(139, 28);
|
||||
this.btnVoid.TabIndex = 143;
|
||||
@ -438,7 +413,7 @@
|
||||
// btnDiscount
|
||||
//
|
||||
this.btnDiscount.Location = new System.Drawing.Point(884, 633);
|
||||
this.btnDiscount.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnDiscount.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnDiscount.Name = "btnDiscount";
|
||||
this.btnDiscount.Size = new System.Drawing.Size(139, 28);
|
||||
this.btnDiscount.TabIndex = 142;
|
||||
@ -449,7 +424,7 @@
|
||||
// btnQuantity
|
||||
//
|
||||
this.btnQuantity.Location = new System.Drawing.Point(884, 661);
|
||||
this.btnQuantity.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnQuantity.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnQuantity.Name = "btnQuantity";
|
||||
this.btnQuantity.Size = new System.Drawing.Size(139, 28);
|
||||
this.btnQuantity.TabIndex = 141;
|
||||
@ -460,7 +435,7 @@
|
||||
// txtTableID
|
||||
//
|
||||
this.txtTableID.Location = new System.Drawing.Point(520, 34);
|
||||
this.txtTableID.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtTableID.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.txtTableID.Name = "txtTableID";
|
||||
this.txtTableID.ReadOnly = true;
|
||||
this.txtTableID.Size = new System.Drawing.Size(123, 22);
|
||||
@ -489,7 +464,7 @@
|
||||
// txtUserID
|
||||
//
|
||||
this.txtUserID.Location = new System.Drawing.Point(1076, 34);
|
||||
this.txtUserID.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtUserID.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.txtUserID.Name = "txtUserID";
|
||||
this.txtUserID.ReadOnly = true;
|
||||
this.txtUserID.Size = new System.Drawing.Size(216, 22);
|
||||
@ -528,7 +503,7 @@
|
||||
// txtDate
|
||||
//
|
||||
this.txtDate.Location = new System.Drawing.Point(652, 34);
|
||||
this.txtDate.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtDate.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.txtDate.Name = "txtDate";
|
||||
this.txtDate.ReadOnly = true;
|
||||
this.txtDate.Size = new System.Drawing.Size(203, 22);
|
||||
@ -537,7 +512,7 @@
|
||||
// txtLastEditDate
|
||||
//
|
||||
this.txtLastEditDate.Location = new System.Drawing.Point(864, 34);
|
||||
this.txtLastEditDate.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtLastEditDate.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.txtLastEditDate.Name = "txtLastEditDate";
|
||||
this.txtLastEditDate.ReadOnly = true;
|
||||
this.txtLastEditDate.Size = new System.Drawing.Size(203, 22);
|
||||
@ -546,7 +521,7 @@
|
||||
// txtCreationDate
|
||||
//
|
||||
this.txtCreationDate.Location = new System.Drawing.Point(349, 34);
|
||||
this.txtCreationDate.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtCreationDate.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.txtCreationDate.Name = "txtCreationDate";
|
||||
this.txtCreationDate.ReadOnly = true;
|
||||
this.txtCreationDate.Size = new System.Drawing.Size(161, 22);
|
||||
@ -575,7 +550,7 @@
|
||||
// txtBillID
|
||||
//
|
||||
this.txtBillID.Location = new System.Drawing.Point(16, 34);
|
||||
this.txtBillID.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtBillID.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.txtBillID.Name = "txtBillID";
|
||||
this.txtBillID.ReadOnly = true;
|
||||
this.txtBillID.Size = new System.Drawing.Size(144, 22);
|
||||
@ -584,7 +559,7 @@
|
||||
// txtKotID
|
||||
//
|
||||
this.txtKotID.Location = new System.Drawing.Point(169, 34);
|
||||
this.txtKotID.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.txtKotID.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.txtKotID.Name = "txtKotID";
|
||||
this.txtKotID.ReadOnly = true;
|
||||
this.txtKotID.Size = new System.Drawing.Size(171, 22);
|
||||
@ -595,7 +570,7 @@
|
||||
this.btnCustomer.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnCustomer.ForeColor = System.Drawing.Color.Red;
|
||||
this.btnCustomer.Location = new System.Drawing.Point(16, 66);
|
||||
this.btnCustomer.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnCustomer.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnCustomer.Name = "btnCustomer";
|
||||
this.btnCustomer.Size = new System.Drawing.Size(628, 42);
|
||||
this.btnCustomer.TabIndex = 126;
|
||||
@ -621,7 +596,7 @@
|
||||
this.pnlWaiting.Controls.Add(this.lblUser);
|
||||
this.pnlWaiting.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pnlWaiting.Location = new System.Drawing.Point(0, 0);
|
||||
this.pnlWaiting.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.pnlWaiting.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.pnlWaiting.Name = "pnlWaiting";
|
||||
this.pnlWaiting.Size = new System.Drawing.Size(1309, 815);
|
||||
this.pnlWaiting.TabIndex = 121;
|
||||
@ -629,7 +604,7 @@
|
||||
// btnPaidStaff
|
||||
//
|
||||
this.btnPaidStaff.Location = new System.Drawing.Point(1133, 649);
|
||||
this.btnPaidStaff.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnPaidStaff.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnPaidStaff.Name = "btnPaidStaff";
|
||||
this.btnPaidStaff.Size = new System.Drawing.Size(160, 71);
|
||||
this.btnPaidStaff.TabIndex = 138;
|
||||
@ -640,7 +615,7 @@
|
||||
// btnPaidCredit
|
||||
//
|
||||
this.btnPaidCredit.Location = new System.Drawing.Point(1133, 727);
|
||||
this.btnPaidCredit.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnPaidCredit.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnPaidCredit.Name = "btnPaidCredit";
|
||||
this.btnPaidCredit.Size = new System.Drawing.Size(160, 65);
|
||||
this.btnPaidCredit.TabIndex = 137;
|
||||
@ -676,10 +651,11 @@
|
||||
this.alarmTimeDataGridViewTextBoxColumn});
|
||||
this.dgvPending.DataSource = this.bsPending;
|
||||
this.dgvPending.Location = new System.Drawing.Point(16, 49);
|
||||
this.dgvPending.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.dgvPending.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.dgvPending.MultiSelect = false;
|
||||
this.dgvPending.Name = "dgvPending";
|
||||
this.dgvPending.RowHeadersVisible = false;
|
||||
this.dgvPending.RowTemplate.Height = 24;
|
||||
this.dgvPending.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dgvPending.Size = new System.Drawing.Size(928, 599);
|
||||
this.dgvPending.TabIndex = 0;
|
||||
@ -695,6 +671,172 @@
|
||||
this.selectDataGridViewCheckBoxColumn.Name = "selectDataGridViewCheckBoxColumn";
|
||||
this.selectDataGridViewCheckBoxColumn.Width = 53;
|
||||
//
|
||||
// TableID
|
||||
//
|
||||
this.TableID.DataPropertyName = "TableID";
|
||||
this.TableID.HeaderText = "TableID";
|
||||
this.TableID.Name = "TableID";
|
||||
this.TableID.Width = 82;
|
||||
//
|
||||
// btnAlarm
|
||||
//
|
||||
this.btnAlarm.Location = new System.Drawing.Point(1133, 484);
|
||||
this.btnAlarm.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnAlarm.Name = "btnAlarm";
|
||||
this.btnAlarm.Size = new System.Drawing.Size(160, 79);
|
||||
this.btnAlarm.TabIndex = 136;
|
||||
this.btnAlarm.Text = "Alarm";
|
||||
this.btnAlarm.UseVisualStyleBackColor = true;
|
||||
this.btnAlarm.Click += new System.EventHandler(this.btnAlarm_Click);
|
||||
//
|
||||
// chkRefresh
|
||||
//
|
||||
this.chkRefresh.AutoSize = true;
|
||||
this.chkRefresh.Checked = true;
|
||||
this.chkRefresh.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.chkRefresh.Location = new System.Drawing.Point(952, 49);
|
||||
this.chkRefresh.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.chkRefresh.Name = "chkRefresh";
|
||||
this.chkRefresh.Size = new System.Drawing.Size(160, 21);
|
||||
this.chkRefresh.TabIndex = 134;
|
||||
this.chkRefresh.Text = "Keep refreshing Bills";
|
||||
this.chkRefresh.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btnRefresh
|
||||
//
|
||||
this.btnRefresh.Location = new System.Drawing.Point(12, 649);
|
||||
this.btnRefresh.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnRefresh.Name = "btnRefresh";
|
||||
this.btnRefresh.Size = new System.Drawing.Size(172, 144);
|
||||
this.btnRefresh.TabIndex = 133;
|
||||
this.btnRefresh.Text = "Refresh - F5";
|
||||
this.btnRefresh.UseVisualStyleBackColor = true;
|
||||
this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
|
||||
//
|
||||
// btnPaidCC
|
||||
//
|
||||
this.btnPaidCC.Location = new System.Drawing.Point(1133, 574);
|
||||
this.btnPaidCC.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnPaidCC.Name = "btnPaidCC";
|
||||
this.btnPaidCC.Size = new System.Drawing.Size(160, 68);
|
||||
this.btnPaidCC.TabIndex = 6;
|
||||
this.btnPaidCC.Text = "Paid By CC";
|
||||
this.btnPaidCC.UseVisualStyleBackColor = true;
|
||||
this.btnPaidCC.Click += new System.EventHandler(this.btnPaidCC_Click);
|
||||
//
|
||||
// btnPaidCash
|
||||
//
|
||||
this.btnPaidCash.Location = new System.Drawing.Point(952, 649);
|
||||
this.btnPaidCash.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnPaidCash.Name = "btnPaidCash";
|
||||
this.btnPaidCash.Size = new System.Drawing.Size(173, 144);
|
||||
this.btnPaidCash.TabIndex = 5;
|
||||
this.btnPaidCash.Text = "Paid";
|
||||
this.btnPaidCash.UseVisualStyleBackColor = true;
|
||||
this.btnPaidCash.Click += new System.EventHandler(this.btnPaidCash_Click);
|
||||
//
|
||||
// btnBillList
|
||||
//
|
||||
this.btnBillList.Location = new System.Drawing.Point(952, 484);
|
||||
this.btnBillList.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnBillList.Name = "btnBillList";
|
||||
this.btnBillList.Size = new System.Drawing.Size(173, 158);
|
||||
this.btnBillList.TabIndex = 4;
|
||||
this.btnBillList.Text = "List Of Bills to Cancel";
|
||||
this.btnBillList.UseVisualStyleBackColor = true;
|
||||
this.btnBillList.Click += new System.EventHandler(this.btnBillList_Click);
|
||||
//
|
||||
// btnSelectBill
|
||||
//
|
||||
this.btnSelectBill.Location = new System.Drawing.Point(952, 294);
|
||||
this.btnSelectBill.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnSelectBill.Name = "btnSelectBill";
|
||||
this.btnSelectBill.Size = new System.Drawing.Size(341, 182);
|
||||
this.btnSelectBill.TabIndex = 3;
|
||||
this.btnSelectBill.Text = "Select Bill";
|
||||
this.btnSelectBill.UseVisualStyleBackColor = true;
|
||||
this.btnSelectBill.Click += new System.EventHandler(this.btnSelectBill_Click);
|
||||
//
|
||||
// btnStartBill
|
||||
//
|
||||
this.btnStartBill.Location = new System.Drawing.Point(952, 78);
|
||||
this.btnStartBill.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btnStartBill.Name = "btnStartBill";
|
||||
this.btnStartBill.Size = new System.Drawing.Size(341, 209);
|
||||
this.btnStartBill.TabIndex = 2;
|
||||
this.btnStartBill.Text = "New Bill - F6";
|
||||
this.btnStartBill.UseVisualStyleBackColor = true;
|
||||
this.btnStartBill.Click += new System.EventHandler(this.btnStartBill_Click);
|
||||
//
|
||||
// tcPending
|
||||
//
|
||||
this.tcPending.Controls.Add(this.tpToday);
|
||||
this.tcPending.Controls.Add(this.tpWeek);
|
||||
this.tcPending.Controls.Add(this.tpAll);
|
||||
this.tcPending.Controls.Add(this.tpAlarm);
|
||||
this.tcPending.Location = new System.Drawing.Point(256, 15);
|
||||
this.tcPending.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tcPending.Name = "tcPending";
|
||||
this.tcPending.SelectedIndex = 0;
|
||||
this.tcPending.Size = new System.Drawing.Size(361, 25);
|
||||
this.tcPending.TabIndex = 1;
|
||||
this.tcPending.SelectedIndexChanged += new System.EventHandler(this.tcPending_SelectedIndexChanged);
|
||||
//
|
||||
// tpToday
|
||||
//
|
||||
this.tpToday.Location = new System.Drawing.Point(4, 25);
|
||||
this.tpToday.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tpToday.Name = "tpToday";
|
||||
this.tpToday.Padding = new System.Windows.Forms.Padding(4);
|
||||
this.tpToday.Size = new System.Drawing.Size(353, 0);
|
||||
this.tpToday.TabIndex = 1;
|
||||
this.tpToday.Text = "Today";
|
||||
this.tpToday.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tpWeek
|
||||
//
|
||||
this.tpWeek.Location = new System.Drawing.Point(4, 25);
|
||||
this.tpWeek.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tpWeek.Name = "tpWeek";
|
||||
this.tpWeek.Padding = new System.Windows.Forms.Padding(4);
|
||||
this.tpWeek.Size = new System.Drawing.Size(353, 0);
|
||||
this.tpWeek.TabIndex = 2;
|
||||
this.tpWeek.Text = "Week";
|
||||
this.tpWeek.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tpAll
|
||||
//
|
||||
this.tpAll.Location = new System.Drawing.Point(4, 25);
|
||||
this.tpAll.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tpAll.Name = "tpAll";
|
||||
this.tpAll.Padding = new System.Windows.Forms.Padding(4);
|
||||
this.tpAll.Size = new System.Drawing.Size(353, 0);
|
||||
this.tpAll.TabIndex = 3;
|
||||
this.tpAll.Text = "All";
|
||||
this.tpAll.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tpAlarm
|
||||
//
|
||||
this.tpAlarm.Location = new System.Drawing.Point(4, 25);
|
||||
this.tpAlarm.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.tpAlarm.Name = "tpAlarm";
|
||||
this.tpAlarm.Padding = new System.Windows.Forms.Padding(4);
|
||||
this.tpAlarm.Size = new System.Drawing.Size(353, 0);
|
||||
this.tpAlarm.TabIndex = 5;
|
||||
this.tpAlarm.Text = "Alarms";
|
||||
this.tpAlarm.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// lblUser
|
||||
//
|
||||
this.lblUser.Font = new System.Drawing.Font("Microsoft Sans Serif", 48F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblUser.ForeColor = System.Drawing.Color.Red;
|
||||
this.lblUser.Location = new System.Drawing.Point(192, 652);
|
||||
this.lblUser.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.lblUser.Name = "lblUser";
|
||||
this.lblUser.Size = new System.Drawing.Size(752, 140);
|
||||
this.lblUser.TabIndex = 135;
|
||||
this.lblUser.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// billNoDataGridViewTextBoxColumn
|
||||
//
|
||||
this.billNoDataGridViewTextBoxColumn.DataPropertyName = "BillNo";
|
||||
@ -709,13 +851,6 @@
|
||||
this.kotDataGridViewTextBoxColumn.Name = "kotDataGridViewTextBoxColumn";
|
||||
this.kotDataGridViewTextBoxColumn.Width = 54;
|
||||
//
|
||||
// TableID
|
||||
//
|
||||
this.TableID.DataPropertyName = "TableID";
|
||||
this.TableID.HeaderText = "TableID";
|
||||
this.TableID.Name = "TableID";
|
||||
this.TableID.Width = 82;
|
||||
//
|
||||
// amountDataGridViewTextBoxColumn
|
||||
//
|
||||
this.amountDataGridViewTextBoxColumn.DataPropertyName = "Amount";
|
||||
@ -781,164 +916,30 @@
|
||||
//
|
||||
this.bsPending.DataSource = typeof(Tanshu.Accounts.Contracts.PendingBillsBO);
|
||||
//
|
||||
// btnAlarm
|
||||
// printedDataGridViewTextBoxColumn
|
||||
//
|
||||
this.btnAlarm.Location = new System.Drawing.Point(1133, 484);
|
||||
this.btnAlarm.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnAlarm.Name = "btnAlarm";
|
||||
this.btnAlarm.Size = new System.Drawing.Size(160, 79);
|
||||
this.btnAlarm.TabIndex = 136;
|
||||
this.btnAlarm.Text = "Alarm";
|
||||
this.btnAlarm.UseVisualStyleBackColor = true;
|
||||
this.btnAlarm.Click += new System.EventHandler(this.btnAlarm_Click);
|
||||
this.printedDataGridViewTextBoxColumn.DataPropertyName = "Printed";
|
||||
dataGridViewCellStyle3.Format = "N2";
|
||||
this.printedDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.printedDataGridViewTextBoxColumn.HeaderText = "Printed";
|
||||
this.printedDataGridViewTextBoxColumn.Name = "printedDataGridViewTextBoxColumn";
|
||||
this.printedDataGridViewTextBoxColumn.ReadOnly = true;
|
||||
this.printedDataGridViewTextBoxColumn.Width = 5;
|
||||
//
|
||||
// chkRefresh
|
||||
// additionalDataGridViewTextBoxColumn
|
||||
//
|
||||
this.chkRefresh.AutoSize = true;
|
||||
this.chkRefresh.Checked = true;
|
||||
this.chkRefresh.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.chkRefresh.Location = new System.Drawing.Point(952, 49);
|
||||
this.chkRefresh.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.chkRefresh.Name = "chkRefresh";
|
||||
this.chkRefresh.Size = new System.Drawing.Size(160, 21);
|
||||
this.chkRefresh.TabIndex = 134;
|
||||
this.chkRefresh.Text = "Keep refreshing Bills";
|
||||
this.chkRefresh.UseVisualStyleBackColor = true;
|
||||
this.additionalDataGridViewTextBoxColumn.DataPropertyName = "Additional";
|
||||
dataGridViewCellStyle4.Format = "N2";
|
||||
dataGridViewCellStyle4.NullValue = null;
|
||||
this.additionalDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.additionalDataGridViewTextBoxColumn.HeaderText = "Additional";
|
||||
this.additionalDataGridViewTextBoxColumn.Name = "additionalDataGridViewTextBoxColumn";
|
||||
this.additionalDataGridViewTextBoxColumn.ReadOnly = true;
|
||||
this.additionalDataGridViewTextBoxColumn.Width = 5;
|
||||
//
|
||||
// btnRefresh
|
||||
// bindingSource
|
||||
//
|
||||
this.btnRefresh.Location = new System.Drawing.Point(12, 649);
|
||||
this.btnRefresh.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnRefresh.Name = "btnRefresh";
|
||||
this.btnRefresh.Size = new System.Drawing.Size(172, 144);
|
||||
this.btnRefresh.TabIndex = 133;
|
||||
this.btnRefresh.Text = "Refresh - F5";
|
||||
this.btnRefresh.UseVisualStyleBackColor = true;
|
||||
this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
|
||||
//
|
||||
// btnPaidCC
|
||||
//
|
||||
this.btnPaidCC.Location = new System.Drawing.Point(1133, 574);
|
||||
this.btnPaidCC.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnPaidCC.Name = "btnPaidCC";
|
||||
this.btnPaidCC.Size = new System.Drawing.Size(160, 68);
|
||||
this.btnPaidCC.TabIndex = 6;
|
||||
this.btnPaidCC.Text = "Paid By CC";
|
||||
this.btnPaidCC.UseVisualStyleBackColor = true;
|
||||
this.btnPaidCC.Click += new System.EventHandler(this.btnPaidCC_Click);
|
||||
//
|
||||
// btnPaidCash
|
||||
//
|
||||
this.btnPaidCash.Location = new System.Drawing.Point(952, 649);
|
||||
this.btnPaidCash.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnPaidCash.Name = "btnPaidCash";
|
||||
this.btnPaidCash.Size = new System.Drawing.Size(173, 144);
|
||||
this.btnPaidCash.TabIndex = 5;
|
||||
this.btnPaidCash.Text = "Paid";
|
||||
this.btnPaidCash.UseVisualStyleBackColor = true;
|
||||
this.btnPaidCash.Click += new System.EventHandler(this.btnPaidCash_Click);
|
||||
//
|
||||
// btnBillList
|
||||
//
|
||||
this.btnBillList.Location = new System.Drawing.Point(952, 484);
|
||||
this.btnBillList.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnBillList.Name = "btnBillList";
|
||||
this.btnBillList.Size = new System.Drawing.Size(173, 158);
|
||||
this.btnBillList.TabIndex = 4;
|
||||
this.btnBillList.Text = "List Of Bills to Cancel";
|
||||
this.btnBillList.UseVisualStyleBackColor = true;
|
||||
this.btnBillList.Click += new System.EventHandler(this.btnBillList_Click);
|
||||
//
|
||||
// btnSelectBill
|
||||
//
|
||||
this.btnSelectBill.Location = new System.Drawing.Point(952, 294);
|
||||
this.btnSelectBill.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnSelectBill.Name = "btnSelectBill";
|
||||
this.btnSelectBill.Size = new System.Drawing.Size(341, 182);
|
||||
this.btnSelectBill.TabIndex = 3;
|
||||
this.btnSelectBill.Text = "Select Bill";
|
||||
this.btnSelectBill.UseVisualStyleBackColor = true;
|
||||
this.btnSelectBill.Click += new System.EventHandler(this.btnSelectBill_Click);
|
||||
//
|
||||
// btnStartBill
|
||||
//
|
||||
this.btnStartBill.Location = new System.Drawing.Point(952, 78);
|
||||
this.btnStartBill.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.btnStartBill.Name = "btnStartBill";
|
||||
this.btnStartBill.Size = new System.Drawing.Size(341, 209);
|
||||
this.btnStartBill.TabIndex = 2;
|
||||
this.btnStartBill.Text = "New Bill - F6";
|
||||
this.btnStartBill.UseVisualStyleBackColor = true;
|
||||
this.btnStartBill.Click += new System.EventHandler(this.btnStartBill_Click);
|
||||
//
|
||||
// tcPending
|
||||
//
|
||||
this.tcPending.Controls.Add(this.tpToday);
|
||||
this.tcPending.Controls.Add(this.tpWeek);
|
||||
this.tcPending.Controls.Add(this.tpAll);
|
||||
this.tcPending.Controls.Add(this.tpAlarm);
|
||||
this.tcPending.Location = new System.Drawing.Point(256, 15);
|
||||
this.tcPending.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.tcPending.Name = "tcPending";
|
||||
this.tcPending.SelectedIndex = 0;
|
||||
this.tcPending.Size = new System.Drawing.Size(361, 25);
|
||||
this.tcPending.TabIndex = 1;
|
||||
this.tcPending.SelectedIndexChanged += new System.EventHandler(this.tcPending_SelectedIndexChanged);
|
||||
//
|
||||
// tpToday
|
||||
//
|
||||
this.tpToday.Location = new System.Drawing.Point(4, 25);
|
||||
this.tpToday.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.tpToday.Name = "tpToday";
|
||||
this.tpToday.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.tpToday.Size = new System.Drawing.Size(353, 0);
|
||||
this.tpToday.TabIndex = 1;
|
||||
this.tpToday.Text = "Today";
|
||||
this.tpToday.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tpWeek
|
||||
//
|
||||
this.tpWeek.Location = new System.Drawing.Point(4, 25);
|
||||
this.tpWeek.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.tpWeek.Name = "tpWeek";
|
||||
this.tpWeek.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.tpWeek.Size = new System.Drawing.Size(353, 0);
|
||||
this.tpWeek.TabIndex = 2;
|
||||
this.tpWeek.Text = "Week";
|
||||
this.tpWeek.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tpAll
|
||||
//
|
||||
this.tpAll.Location = new System.Drawing.Point(4, 25);
|
||||
this.tpAll.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.tpAll.Name = "tpAll";
|
||||
this.tpAll.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.tpAll.Size = new System.Drawing.Size(353, 0);
|
||||
this.tpAll.TabIndex = 3;
|
||||
this.tpAll.Text = "All";
|
||||
this.tpAll.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tpAlarm
|
||||
//
|
||||
this.tpAlarm.Location = new System.Drawing.Point(4, 25);
|
||||
this.tpAlarm.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.tpAlarm.Name = "tpAlarm";
|
||||
this.tpAlarm.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.tpAlarm.Size = new System.Drawing.Size(353, 0);
|
||||
this.tpAlarm.TabIndex = 5;
|
||||
this.tpAlarm.Text = "Alarms";
|
||||
this.tpAlarm.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// lblUser
|
||||
//
|
||||
this.lblUser.Font = new System.Drawing.Font("Microsoft Sans Serif", 48F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblUser.ForeColor = System.Drawing.Color.Red;
|
||||
this.lblUser.Location = new System.Drawing.Point(192, 652);
|
||||
this.lblUser.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.lblUser.Name = "lblUser";
|
||||
this.lblUser.Size = new System.Drawing.Size(752, 140);
|
||||
this.lblUser.TabIndex = 135;
|
||||
this.lblUser.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.bindingSource.DataSource = typeof(Tanshu.Accounts.Contracts.SalesBillItemBO);
|
||||
//
|
||||
// bsWaiter
|
||||
//
|
||||
@ -952,7 +953,7 @@
|
||||
this.Controls.Add(this.pnlWaiting);
|
||||
this.Controls.Add(this.pnlBilling);
|
||||
this.KeyPreview = true;
|
||||
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "SalesForm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
@ -961,14 +962,14 @@
|
||||
this.Load += new System.EventHandler(this.SalesForm_Load);
|
||||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SalesForm_KeyDown);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvProducts)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource)).EndInit();
|
||||
this.pnlBilling.ResumeLayout(false);
|
||||
this.pnlBilling.PerformLayout();
|
||||
this.pnlWaiting.ResumeLayout(false);
|
||||
this.pnlWaiting.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvPending)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsPending)).EndInit();
|
||||
this.tcPending.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsPending)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsWaiter)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@ -712,7 +712,7 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
voidReason.ShowDialog();
|
||||
if (voidReason.SelectedItem != null)
|
||||
{
|
||||
new SaleVoucherBI().VoidBill(_billInfo.VoucherID, voidReason.SelectedItem.Description);
|
||||
new SaleVoucherBI().VoidBill(_billInfo.VoucherID, voidReason.SelectedItem.Description, CurrentUser.user.UserID);
|
||||
ClearBill();
|
||||
}
|
||||
else
|
||||
|
||||
@ -126,6 +126,9 @@
|
||||
<metadata name="bindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="Display.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="selectDataGridViewCheckBoxColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
@ -135,6 +138,18 @@
|
||||
<metadata name="bsPending.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>248, 17</value>
|
||||
</metadata>
|
||||
<metadata name="selectDataGridViewCheckBoxColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="TableID.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="bsPending.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>248, 17</value>
|
||||
</metadata>
|
||||
<metadata name="bindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="bsWaiter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>148, 17</value>
|
||||
</metadata>
|
||||
|
||||
Reference in New Issue
Block a user