Inital branch of Bengali Development
This commit is contained in:
@ -46,6 +46,18 @@
|
||||
this.txtTwelve2 = new System.Windows.Forms.TextBox();
|
||||
this.txtOne = new System.Windows.Forms.TextBox();
|
||||
this.txtTwo = new System.Windows.Forms.TextBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.txtFiveTwoFive2 = new System.Windows.Forms.TextBox();
|
||||
this.txtThirteenOneTwoFive2 = new System.Windows.Forms.TextBox();
|
||||
this.txtFive2 = new System.Windows.Forms.TextBox();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.label12 = new System.Windows.Forms.Label();
|
||||
this.txtFiveTwoFive1 = new System.Windows.Forms.TextBox();
|
||||
this.txtThirteenOneTwoFive1 = new System.Windows.Forms.TextBox();
|
||||
this.txtFive1 = new System.Windows.Forms.TextBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// dtpFrom
|
||||
@ -66,7 +78,7 @@
|
||||
//
|
||||
// btnGo
|
||||
//
|
||||
this.btnGo.Location = new System.Drawing.Point(12, 142);
|
||||
this.btnGo.Location = new System.Drawing.Point(12, 220);
|
||||
this.btnGo.Name = "btnGo";
|
||||
this.btnGo.Size = new System.Drawing.Size(542, 23);
|
||||
this.btnGo.TabIndex = 5;
|
||||
@ -127,7 +139,7 @@
|
||||
//
|
||||
// txtStatus
|
||||
//
|
||||
this.txtStatus.Location = new System.Drawing.Point(12, 171);
|
||||
this.txtStatus.Location = new System.Drawing.Point(12, 249);
|
||||
this.txtStatus.Name = "txtStatus";
|
||||
this.txtStatus.ReadOnly = true;
|
||||
this.txtStatus.Size = new System.Drawing.Size(542, 20);
|
||||
@ -200,11 +212,125 @@
|
||||
this.txtTwo.TabIndex = 17;
|
||||
this.txtTwo.Text = "AccountsFF";
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(286, 197);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(21, 13);
|
||||
this.label7.TabIndex = 29;
|
||||
this.label7.Text = "5%";
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(286, 171);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(48, 13);
|
||||
this.label8.TabIndex = 28;
|
||||
this.label8.Text = "13.125%";
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(286, 145);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(36, 13);
|
||||
this.label9.TabIndex = 27;
|
||||
this.label9.Text = "5.25%";
|
||||
//
|
||||
// txtFiveTwoFive2
|
||||
//
|
||||
this.txtFiveTwoFive2.Location = new System.Drawing.Point(324, 142);
|
||||
this.txtFiveTwoFive2.Name = "txtFiveTwoFive2";
|
||||
this.txtFiveTwoFive2.Size = new System.Drawing.Size(230, 20);
|
||||
this.txtFiveTwoFive2.TabIndex = 24;
|
||||
this.txtFiveTwoFive2.Text = "0";
|
||||
//
|
||||
// txtThirteenOneTwoFive2
|
||||
//
|
||||
this.txtThirteenOneTwoFive2.Location = new System.Drawing.Point(324, 168);
|
||||
this.txtThirteenOneTwoFive2.Name = "txtThirteenOneTwoFive2";
|
||||
this.txtThirteenOneTwoFive2.Size = new System.Drawing.Size(230, 20);
|
||||
this.txtThirteenOneTwoFive2.TabIndex = 25;
|
||||
this.txtThirteenOneTwoFive2.Text = "0";
|
||||
//
|
||||
// txtFive2
|
||||
//
|
||||
this.txtFive2.Location = new System.Drawing.Point(324, 194);
|
||||
this.txtFive2.Name = "txtFive2";
|
||||
this.txtFive2.Size = new System.Drawing.Size(230, 20);
|
||||
this.txtFive2.TabIndex = 26;
|
||||
this.txtFive2.Text = "0";
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(12, 197);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(21, 13);
|
||||
this.label10.TabIndex = 23;
|
||||
this.label10.Text = "5%";
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(12, 171);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(48, 13);
|
||||
this.label11.TabIndex = 22;
|
||||
this.label11.Text = "13.125%";
|
||||
//
|
||||
// label12
|
||||
//
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new System.Drawing.Point(12, 145);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(36, 13);
|
||||
this.label12.TabIndex = 21;
|
||||
this.label12.Text = "5.25%";
|
||||
//
|
||||
// txtFiveTwoFive1
|
||||
//
|
||||
this.txtFiveTwoFive1.Location = new System.Drawing.Point(50, 142);
|
||||
this.txtFiveTwoFive1.Name = "txtFiveTwoFive1";
|
||||
this.txtFiveTwoFive1.Size = new System.Drawing.Size(230, 20);
|
||||
this.txtFiveTwoFive1.TabIndex = 18;
|
||||
this.txtFiveTwoFive1.Text = "0";
|
||||
//
|
||||
// txtThirteenOneTwoFive1
|
||||
//
|
||||
this.txtThirteenOneTwoFive1.Location = new System.Drawing.Point(50, 168);
|
||||
this.txtThirteenOneTwoFive1.Name = "txtThirteenOneTwoFive1";
|
||||
this.txtThirteenOneTwoFive1.Size = new System.Drawing.Size(230, 20);
|
||||
this.txtThirteenOneTwoFive1.TabIndex = 19;
|
||||
this.txtThirteenOneTwoFive1.Text = "0";
|
||||
//
|
||||
// txtFive1
|
||||
//
|
||||
this.txtFive1.Location = new System.Drawing.Point(50, 194);
|
||||
this.txtFive1.Name = "txtFive1";
|
||||
this.txtFive1.Size = new System.Drawing.Size(230, 20);
|
||||
this.txtFive1.TabIndex = 20;
|
||||
this.txtFive1.Text = "0";
|
||||
//
|
||||
// ReplaceForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(566, 203);
|
||||
this.ClientSize = new System.Drawing.Size(566, 277);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.label8);
|
||||
this.Controls.Add(this.label9);
|
||||
this.Controls.Add(this.txtFiveTwoFive2);
|
||||
this.Controls.Add(this.txtThirteenOneTwoFive2);
|
||||
this.Controls.Add(this.txtFive2);
|
||||
this.Controls.Add(this.label10);
|
||||
this.Controls.Add(this.label11);
|
||||
this.Controls.Add(this.label12);
|
||||
this.Controls.Add(this.txtFiveTwoFive1);
|
||||
this.Controls.Add(this.txtThirteenOneTwoFive1);
|
||||
this.Controls.Add(this.txtFive1);
|
||||
this.Controls.Add(this.txtTwo);
|
||||
this.Controls.Add(this.txtOne);
|
||||
this.Controls.Add(this.label4);
|
||||
@ -250,5 +376,17 @@
|
||||
private System.Windows.Forms.TextBox txtTwelve2;
|
||||
private System.Windows.Forms.TextBox txtOne;
|
||||
private System.Windows.Forms.TextBox txtTwo;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.Label label9;
|
||||
private System.Windows.Forms.TextBox txtFiveTwoFive2;
|
||||
private System.Windows.Forms.TextBox txtThirteenOneTwoFive2;
|
||||
private System.Windows.Forms.TextBox txtFive2;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.Label label11;
|
||||
private System.Windows.Forms.Label label12;
|
||||
private System.Windows.Forms.TextBox txtFiveTwoFive1;
|
||||
private System.Windows.Forms.TextBox txtThirteenOneTwoFive1;
|
||||
private System.Windows.Forms.TextBox txtFive1;
|
||||
}
|
||||
}
|
||||
@ -31,10 +31,17 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
txtZero1.Text = GetBalance(0M, txtOne.Text, dtpFrom.Value, dtpTo.Value).ToString();
|
||||
txtFour1.Text = GetBalance(.04M, txtOne.Text, dtpFrom.Value, dtpTo.Value).ToString();
|
||||
txtTwelve1.Text = GetBalance(0.125M, txtOne.Text, dtpFrom.Value, dtpTo.Value).ToString();
|
||||
txtFive1.Text = GetBalance(0.05M, txtOne.Text, dtpFrom.Value, dtpTo.Value).ToString();
|
||||
txtFiveTwoFive1.Text = GetBalance(0.0525M, txtOne.Text, dtpFrom.Value, dtpTo.Value).ToString();
|
||||
txtThirteenOneTwoFive1.Text = GetBalance(0.13125M, txtOne.Text, dtpFrom.Value, dtpTo.Value).ToString();
|
||||
|
||||
txtZero2.Text = GetBalance(0M, txtTwo.Text, dtpFrom.Value, dtpTo.Value).ToString();
|
||||
txtFour2.Text = GetBalance(.04M, txtTwo.Text, dtpFrom.Value, dtpTo.Value).ToString();
|
||||
txtTwelve2.Text = GetBalance(0.125M, txtTwo.Text, dtpFrom.Value, dtpTo.Value).ToString();
|
||||
txtFive2.Text = GetBalance(0.05M, txtTwo.Text, dtpFrom.Value, dtpTo.Value).ToString();
|
||||
txtFiveTwoFive2.Text = GetBalance(0.0525M, txtTwo.Text, dtpFrom.Value, dtpTo.Value).ToString();
|
||||
txtThirteenOneTwoFive2.Text = GetBalance(0.13125M, txtTwo.Text, dtpFrom.Value, dtpTo.Value).ToString();
|
||||
|
||||
txtStatus.Text = "Initial Values Loaded";
|
||||
}
|
||||
else
|
||||
@ -56,6 +63,7 @@ AND i.Tax = @Tax
|
||||
con.Open();
|
||||
using (SqlCommand cmd = new SqlCommand(string.Format(query, database), con))
|
||||
{
|
||||
cmd.CommandTimeout = int.MaxValue;
|
||||
cmd.Parameters.AddWithValue("@StartDate", startDate);
|
||||
cmd.Parameters.AddWithValue("@FinishDate", finishDate);
|
||||
cmd.Parameters.AddWithValue("@Tax", tax);
|
||||
|
||||
@ -38,6 +38,12 @@
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.txtStatus = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.txtFive = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.txtFiveTwoFive = new System.Windows.Forms.TextBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.txtThirteenTwoFive = new System.Windows.Forms.TextBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// dtpFrom
|
||||
@ -56,7 +62,7 @@
|
||||
//
|
||||
// btnGo
|
||||
//
|
||||
this.btnGo.Location = new System.Drawing.Point(12, 142);
|
||||
this.btnGo.Location = new System.Drawing.Point(12, 220);
|
||||
this.btnGo.Name = "btnGo";
|
||||
this.btnGo.Size = new System.Drawing.Size(268, 23);
|
||||
this.btnGo.TabIndex = 5;
|
||||
@ -66,7 +72,7 @@
|
||||
//
|
||||
// txtTwelve
|
||||
//
|
||||
this.txtTwelve.Location = new System.Drawing.Point(50, 116);
|
||||
this.txtTwelve.Location = new System.Drawing.Point(50, 142);
|
||||
this.txtTwelve.Name = "txtTwelve";
|
||||
this.txtTwelve.Size = new System.Drawing.Size(230, 20);
|
||||
this.txtTwelve.TabIndex = 4;
|
||||
@ -109,7 +115,7 @@
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(12, 119);
|
||||
this.label3.Location = new System.Drawing.Point(12, 145);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(36, 13);
|
||||
this.label3.TabIndex = 8;
|
||||
@ -117,17 +123,74 @@
|
||||
//
|
||||
// txtStatus
|
||||
//
|
||||
this.txtStatus.Location = new System.Drawing.Point(12, 171);
|
||||
this.txtStatus.Location = new System.Drawing.Point(12, 249);
|
||||
this.txtStatus.Name = "txtStatus";
|
||||
this.txtStatus.ReadOnly = true;
|
||||
this.txtStatus.Size = new System.Drawing.Size(268, 20);
|
||||
this.txtStatus.TabIndex = 9;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(12, 119);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(21, 13);
|
||||
this.label4.TabIndex = 11;
|
||||
this.label4.Text = "5%";
|
||||
//
|
||||
// txtFive
|
||||
//
|
||||
this.txtFive.Location = new System.Drawing.Point(50, 116);
|
||||
this.txtFive.Name = "txtFive";
|
||||
this.txtFive.Size = new System.Drawing.Size(230, 20);
|
||||
this.txtFive.TabIndex = 10;
|
||||
this.txtFive.Text = "0";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(12, 171);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(36, 13);
|
||||
this.label5.TabIndex = 15;
|
||||
this.label5.Text = "5.25%";
|
||||
//
|
||||
// txtFiveTwoFive
|
||||
//
|
||||
this.txtFiveTwoFive.Location = new System.Drawing.Point(50, 168);
|
||||
this.txtFiveTwoFive.Name = "txtFiveTwoFive";
|
||||
this.txtFiveTwoFive.Size = new System.Drawing.Size(230, 20);
|
||||
this.txtFiveTwoFive.TabIndex = 14;
|
||||
this.txtFiveTwoFive.Text = "0";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(12, 197);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(48, 13);
|
||||
this.label6.TabIndex = 13;
|
||||
this.label6.Text = "13.125%";
|
||||
//
|
||||
// txtThirteenTwoFive
|
||||
//
|
||||
this.txtThirteenTwoFive.Location = new System.Drawing.Point(50, 194);
|
||||
this.txtThirteenTwoFive.Name = "txtThirteenTwoFive";
|
||||
this.txtThirteenTwoFive.Size = new System.Drawing.Size(230, 20);
|
||||
this.txtThirteenTwoFive.TabIndex = 12;
|
||||
this.txtThirteenTwoFive.Text = "0";
|
||||
//
|
||||
// UpdateForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(292, 203);
|
||||
this.ClientSize = new System.Drawing.Size(292, 279);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.txtFiveTwoFive);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.txtThirteenTwoFive);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.txtFive);
|
||||
this.Controls.Add(this.txtStatus);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label2);
|
||||
@ -157,5 +220,11 @@
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.TextBox txtStatus;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.TextBox txtFive;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.TextBox txtFiveTwoFive;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.TextBox txtThirteenTwoFive;
|
||||
}
|
||||
}
|
||||
@ -44,8 +44,14 @@ namespace Tanshu.Accounts.PointOfSale
|
||||
{
|
||||
processDelegate = new ProcessDelegate(Process);
|
||||
if (last == -1)
|
||||
processDelegate.BeginInvoke(dtpFrom.Value, dtpTo.Value, GetTextboxValue(txtThirteenTwoFive), .13125M, new AsyncCallback(CallbackMethod), null);
|
||||
if (last == .13125M)
|
||||
processDelegate.BeginInvoke(dtpFrom.Value, dtpTo.Value, GetTextboxValue(txtTwelve), .125M, new AsyncCallback(CallbackMethod), null);
|
||||
if (last == .125M)
|
||||
processDelegate.BeginInvoke(dtpFrom.Value, dtpTo.Value, GetTextboxValue(txtFiveTwoFive), .0525M, new AsyncCallback(CallbackMethod), null);
|
||||
if (last == .0525M)
|
||||
processDelegate.BeginInvoke(dtpFrom.Value, dtpTo.Value, GetTextboxValue(txtFive), .05M, new AsyncCallback(CallbackMethod), null);
|
||||
if (last == .05M)
|
||||
processDelegate.BeginInvoke(dtpFrom.Value, dtpTo.Value, GetTextboxValue(txtFour), .04M, new AsyncCallback(CallbackMethod), null);
|
||||
if (last == .04M)
|
||||
processDelegate.BeginInvoke(dtpFrom.Value, dtpTo.Value, GetTextboxValue(txtZero), 0M, new AsyncCallback(CallbackMethod), null);
|
||||
|
||||
@ -29,27 +29,14 @@
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
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();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.txtDiff = new System.Windows.Forms.TextBox();
|
||||
this.dgvPending = new System.Windows.Forms.DataGridView();
|
||||
this.selectDataGridViewItem = new System.Windows.Forms.DataGridViewButtonColumn();
|
||||
this.TableID = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.voucherIDDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.billNoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.kotDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.tableIDDataGridViewTextBoxColumn = 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.dtpFinish = new System.Windows.Forms.DateTimePicker();
|
||||
this.dtpStart = new System.Windows.Forms.DateTimePicker();
|
||||
@ -93,51 +80,38 @@
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.dgvPending.AutoGenerateColumns = false;
|
||||
this.dgvPending.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells;
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dgvPending.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dgvPending.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dgvPending.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvPending.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.selectDataGridViewItem,
|
||||
this.TableID,
|
||||
this.voucherIDDataGridViewTextBoxColumn,
|
||||
this.billNoDataGridViewTextBoxColumn,
|
||||
this.kotDataGridViewTextBoxColumn,
|
||||
this.tableIDDataGridViewTextBoxColumn,
|
||||
this.amountDataGridViewTextBoxColumn,
|
||||
this.importantDataGridViewCheckBoxColumn,
|
||||
this.alarmDataGridViewCheckBoxColumn,
|
||||
this.bookingTimeDataGridViewTextBoxColumn,
|
||||
this.lastEditedDataGridViewTextBoxColumn,
|
||||
this.waiterDataGridViewTextBoxColumn,
|
||||
this.cashierDataGridViewTextBoxColumn,
|
||||
this.printedDataGridViewCheckBoxColumn,
|
||||
this.alarmTimeDataGridViewTextBoxColumn});
|
||||
this.TableID});
|
||||
this.dgvPending.DataSource = this.bsPending;
|
||||
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvPending.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvPending.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.dgvPending.Location = new System.Drawing.Point(12, 38);
|
||||
this.dgvPending.MultiSelect = false;
|
||||
this.dgvPending.Name = "dgvPending";
|
||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dgvPending.RowHeadersDefaultCellStyle = dataGridViewCellStyle6;
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dgvPending.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.dgvPending.RowHeadersVisible = false;
|
||||
this.dgvPending.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dgvPending.Size = new System.Drawing.Size(743, 500);
|
||||
@ -161,106 +135,6 @@
|
||||
this.TableID.Name = "TableID";
|
||||
this.TableID.Width = 70;
|
||||
//
|
||||
// voucherIDDataGridViewTextBoxColumn
|
||||
//
|
||||
this.voucherIDDataGridViewTextBoxColumn.DataPropertyName = "voucherID";
|
||||
this.voucherIDDataGridViewTextBoxColumn.HeaderText = "voucherID";
|
||||
this.voucherIDDataGridViewTextBoxColumn.Name = "voucherIDDataGridViewTextBoxColumn";
|
||||
this.voucherIDDataGridViewTextBoxColumn.Visible = false;
|
||||
this.voucherIDDataGridViewTextBoxColumn.Width = 82;
|
||||
//
|
||||
// billNoDataGridViewTextBoxColumn
|
||||
//
|
||||
this.billNoDataGridViewTextBoxColumn.DataPropertyName = "BillNo";
|
||||
this.billNoDataGridViewTextBoxColumn.HeaderText = "BillNo";
|
||||
this.billNoDataGridViewTextBoxColumn.Name = "billNoDataGridViewTextBoxColumn";
|
||||
this.billNoDataGridViewTextBoxColumn.Width = 59;
|
||||
//
|
||||
// kotDataGridViewTextBoxColumn
|
||||
//
|
||||
this.kotDataGridViewTextBoxColumn.DataPropertyName = "Kot";
|
||||
this.kotDataGridViewTextBoxColumn.HeaderText = "Kot";
|
||||
this.kotDataGridViewTextBoxColumn.Name = "kotDataGridViewTextBoxColumn";
|
||||
this.kotDataGridViewTextBoxColumn.Width = 48;
|
||||
//
|
||||
// tableIDDataGridViewTextBoxColumn
|
||||
//
|
||||
this.tableIDDataGridViewTextBoxColumn.DataPropertyName = "TableID";
|
||||
this.tableIDDataGridViewTextBoxColumn.HeaderText = "TableID";
|
||||
this.tableIDDataGridViewTextBoxColumn.Name = "tableIDDataGridViewTextBoxColumn";
|
||||
this.tableIDDataGridViewTextBoxColumn.Width = 70;
|
||||
//
|
||||
// amountDataGridViewTextBoxColumn
|
||||
//
|
||||
this.amountDataGridViewTextBoxColumn.DataPropertyName = "Amount";
|
||||
this.amountDataGridViewTextBoxColumn.HeaderText = "Amount";
|
||||
this.amountDataGridViewTextBoxColumn.Name = "amountDataGridViewTextBoxColumn";
|
||||
this.amountDataGridViewTextBoxColumn.Width = 68;
|
||||
//
|
||||
// importantDataGridViewCheckBoxColumn
|
||||
//
|
||||
this.importantDataGridViewCheckBoxColumn.DataPropertyName = "Important";
|
||||
this.importantDataGridViewCheckBoxColumn.HeaderText = "Important";
|
||||
this.importantDataGridViewCheckBoxColumn.Name = "importantDataGridViewCheckBoxColumn";
|
||||
this.importantDataGridViewCheckBoxColumn.Visible = false;
|
||||
this.importantDataGridViewCheckBoxColumn.Width = 57;
|
||||
//
|
||||
// alarmDataGridViewCheckBoxColumn
|
||||
//
|
||||
this.alarmDataGridViewCheckBoxColumn.DataPropertyName = "Alarm";
|
||||
this.alarmDataGridViewCheckBoxColumn.HeaderText = "Alarm";
|
||||
this.alarmDataGridViewCheckBoxColumn.Name = "alarmDataGridViewCheckBoxColumn";
|
||||
this.alarmDataGridViewCheckBoxColumn.Visible = false;
|
||||
this.alarmDataGridViewCheckBoxColumn.Width = 39;
|
||||
//
|
||||
// bookingTimeDataGridViewTextBoxColumn
|
||||
//
|
||||
this.bookingTimeDataGridViewTextBoxColumn.DataPropertyName = "BookingTime";
|
||||
this.bookingTimeDataGridViewTextBoxColumn.HeaderText = "BookingTime";
|
||||
this.bookingTimeDataGridViewTextBoxColumn.Name = "bookingTimeDataGridViewTextBoxColumn";
|
||||
this.bookingTimeDataGridViewTextBoxColumn.Width = 94;
|
||||
//
|
||||
// lastEditedDataGridViewTextBoxColumn
|
||||
//
|
||||
this.lastEditedDataGridViewTextBoxColumn.DataPropertyName = "LastEdited";
|
||||
this.lastEditedDataGridViewTextBoxColumn.HeaderText = "LastEdited";
|
||||
this.lastEditedDataGridViewTextBoxColumn.Name = "lastEditedDataGridViewTextBoxColumn";
|
||||
this.lastEditedDataGridViewTextBoxColumn.Width = 82;
|
||||
//
|
||||
// waiterDataGridViewTextBoxColumn
|
||||
//
|
||||
this.waiterDataGridViewTextBoxColumn.DataPropertyName = "Waiter";
|
||||
this.waiterDataGridViewTextBoxColumn.HeaderText = "Waiter";
|
||||
this.waiterDataGridViewTextBoxColumn.Name = "waiterDataGridViewTextBoxColumn";
|
||||
this.waiterDataGridViewTextBoxColumn.Width = 63;
|
||||
//
|
||||
// cashierDataGridViewTextBoxColumn
|
||||
//
|
||||
this.cashierDataGridViewTextBoxColumn.DataPropertyName = "Cashier";
|
||||
this.cashierDataGridViewTextBoxColumn.HeaderText = "Cashier";
|
||||
this.cashierDataGridViewTextBoxColumn.Name = "cashierDataGridViewTextBoxColumn";
|
||||
this.cashierDataGridViewTextBoxColumn.Width = 67;
|
||||
//
|
||||
// printedDataGridViewCheckBoxColumn
|
||||
//
|
||||
this.printedDataGridViewCheckBoxColumn.DataPropertyName = "Printed";
|
||||
this.printedDataGridViewCheckBoxColumn.HeaderText = "Printed";
|
||||
this.printedDataGridViewCheckBoxColumn.Name = "printedDataGridViewCheckBoxColumn";
|
||||
this.printedDataGridViewCheckBoxColumn.Visible = false;
|
||||
this.printedDataGridViewCheckBoxColumn.Width = 46;
|
||||
//
|
||||
// alarmTimeDataGridViewTextBoxColumn
|
||||
//
|
||||
this.alarmTimeDataGridViewTextBoxColumn.DataPropertyName = "AlarmTime";
|
||||
this.alarmTimeDataGridViewTextBoxColumn.HeaderText = "AlarmTime";
|
||||
this.alarmTimeDataGridViewTextBoxColumn.Name = "alarmTimeDataGridViewTextBoxColumn";
|
||||
this.alarmTimeDataGridViewTextBoxColumn.Visible = false;
|
||||
this.alarmTimeDataGridViewTextBoxColumn.Width = 81;
|
||||
//
|
||||
// bsPending
|
||||
//
|
||||
this.bsPending.DataSource = typeof(Tanshu.Accounts.Contracts.PendingBillsBO);
|
||||
//
|
||||
// dtpFinish
|
||||
//
|
||||
this.dtpFinish.CustomFormat = "dd-MMM-yyyy";
|
||||
@ -298,10 +172,6 @@
|
||||
this.btnShowBill.UseVisualStyleBackColor = true;
|
||||
this.btnShowBill.Click += new System.EventHandler(this.btnShowBill_Click);
|
||||
//
|
||||
// bindingSource
|
||||
//
|
||||
this.bindingSource.DataSource = typeof(Tanshu.Accounts.Contracts.SalesBillItemBO);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
@ -335,7 +205,10 @@
|
||||
this.cmbTax.Items.AddRange(new object[] {
|
||||
"0%",
|
||||
"4%",
|
||||
"12.5%"});
|
||||
"5%",
|
||||
"5.25%",
|
||||
"12.5%",
|
||||
"13.125%"});
|
||||
this.cmbTax.Location = new System.Drawing.Point(371, 10);
|
||||
this.cmbTax.Name = "cmbTax";
|
||||
this.cmbTax.Size = new System.Drawing.Size(53, 21);
|
||||
@ -383,19 +256,19 @@
|
||||
private System.Windows.Forms.BindingSource bindingSource;
|
||||
private System.Windows.Forms.DataGridViewButtonColumn selectDataGridViewItem;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn TableID;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn voucherIDDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn billNoDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn kotDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn tableIDDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn amountDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn importantDataGridViewCheckBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn alarmDataGridViewCheckBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn bookingTimeDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn lastEditedDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn waiterDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn cashierDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn printedDataGridViewCheckBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn alarmTimeDataGridViewTextBoxColumn;
|
||||
//private System.Windows.Forms.DataGridViewTextBoxColumn voucherIDDataGridViewTextBoxColumn;
|
||||
//private System.Windows.Forms.DataGridViewTextBoxColumn billNoDataGridViewTextBoxColumn;
|
||||
//private System.Windows.Forms.DataGridViewTextBoxColumn kotDataGridViewTextBoxColumn;
|
||||
//private System.Windows.Forms.DataGridViewTextBoxColumn tableIDDataGridViewTextBoxColumn;
|
||||
//private System.Windows.Forms.DataGridViewTextBoxColumn amountDataGridViewTextBoxColumn;
|
||||
//private System.Windows.Forms.DataGridViewCheckBoxColumn importantDataGridViewCheckBoxColumn;
|
||||
//private System.Windows.Forms.DataGridViewCheckBoxColumn alarmDataGridViewCheckBoxColumn;
|
||||
//private System.Windows.Forms.DataGridViewTextBoxColumn bookingTimeDataGridViewTextBoxColumn;
|
||||
//private System.Windows.Forms.DataGridViewTextBoxColumn lastEditedDataGridViewTextBoxColumn;
|
||||
//private System.Windows.Forms.DataGridViewTextBoxColumn waiterDataGridViewTextBoxColumn;
|
||||
//private System.Windows.Forms.DataGridViewTextBoxColumn cashierDataGridViewTextBoxColumn;
|
||||
//private System.Windows.Forms.DataGridViewCheckBoxColumn printedDataGridViewCheckBoxColumn;
|
||||
//private System.Windows.Forms.DataGridViewTextBoxColumn alarmTimeDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox txtTarget;
|
||||
private System.Windows.Forms.Label label3;
|
||||
|
||||
@ -31,7 +31,11 @@ namespace Tanshu.Accounts.PointOfSale.Updates
|
||||
tax = 0;
|
||||
else if (cmbTax.Text == "4%")
|
||||
tax = .04M;
|
||||
else if (cmbTax.Text == "12.5%")
|
||||
else if (cmbTax.Text == "5%")
|
||||
tax = .05M;
|
||||
else if (cmbTax.Text == "5.25%")
|
||||
tax = .05M;
|
||||
else if (cmbTax.Text == "13.125%")
|
||||
tax = .125M;
|
||||
decimal target = Convert.ToDecimal(txtTarget.Text);
|
||||
decimal existing = new ManagementBI().GetBalance(tax, dtpStart.Value, dtpFinish.Value);
|
||||
|
||||
Reference in New Issue
Block a user