From 3cf7351a8b3bc4152e71d0f33ff25ac2973872bd Mon Sep 17 00:00:00 2001 From: "RKant\\TEST" Date: Mon, 3 Apr 2017 18:09:40 -0400 Subject: [PATCH] added checkout UI to waiter stations --- Enigma/Enigma.csproj | 18 +++ Enigma/Popups/checkoutTablePopup.Designer.cs | 88 ++++++++++++++ Enigma/Popups/checkoutTablePopup.cs | 26 ++++ Enigma/Popups/checkoutTablePopup.resx | 120 +++++++++++++++++++ Enigma/Popups/chequePrintPopup.Designer.cs | 114 ++++++++++++++++++ Enigma/Popups/chequePrintPopup.cs | 26 ++++ Enigma/Popups/chequePrintPopup.resx | 120 +++++++++++++++++++ 7 files changed, 512 insertions(+) create mode 100644 Enigma/Popups/checkoutTablePopup.Designer.cs create mode 100644 Enigma/Popups/checkoutTablePopup.cs create mode 100644 Enigma/Popups/checkoutTablePopup.resx create mode 100644 Enigma/Popups/chequePrintPopup.Designer.cs create mode 100644 Enigma/Popups/chequePrintPopup.cs create mode 100644 Enigma/Popups/chequePrintPopup.resx diff --git a/Enigma/Enigma.csproj b/Enigma/Enigma.csproj index 2212980..3633dd4 100644 --- a/Enigma/Enigma.csproj +++ b/Enigma/Enigma.csproj @@ -62,6 +62,18 @@ + + Form + + + checkoutTablePopup.cs + + + Form + + + chequePrintPopup.cs + Form @@ -115,6 +127,12 @@ + + checkoutTablePopup.cs + + + chequePrintPopup.cs + resAdd.cs diff --git a/Enigma/Popups/checkoutTablePopup.Designer.cs b/Enigma/Popups/checkoutTablePopup.Designer.cs new file mode 100644 index 0000000..4a5e14b --- /dev/null +++ b/Enigma/Popups/checkoutTablePopup.Designer.cs @@ -0,0 +1,88 @@ +namespace Enigma.Popups +{ + partial class checkoutTablePopup + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.metroLabel1 = new MetroFramework.Controls.MetroLabel(); + this.cancel = new MetroFramework.Controls.MetroButton(); + this.confirm = new MetroFramework.Controls.MetroButton(); + this.SuspendLayout(); + // + // metroLabel1 + // + this.metroLabel1.AutoSize = true; + this.metroLabel1.FontSize = MetroFramework.MetroLabelSize.Tall; + this.metroLabel1.Location = new System.Drawing.Point(9, 71); + this.metroLabel1.Name = "metroLabel1"; + this.metroLabel1.Size = new System.Drawing.Size(250, 25); + this.metroLabel1.TabIndex = 0; + this.metroLabel1.Text = "CREDIT OR CASH CHECKOUT"; + // + // cancel + // + this.cancel.Location = new System.Drawing.Point(9, 164); + this.cancel.Name = "cancel"; + this.cancel.Size = new System.Drawing.Size(125, 74); + this.cancel.TabIndex = 1; + this.cancel.Text = "Cancel"; + this.cancel.UseSelectable = true; + // + // confirm + // + this.confirm.Location = new System.Drawing.Point(150, 164); + this.confirm.Name = "confirm"; + this.confirm.Size = new System.Drawing.Size(125, 74); + this.confirm.TabIndex = 2; + this.confirm.Text = "Ok"; + this.confirm.UseSelectable = true; + // + // checkoutTablePopup + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(282, 253); + this.Controls.Add(this.confirm); + this.Controls.Add(this.cancel); + this.Controls.Add(this.metroLabel1); + this.DisplayHeader = false; + this.Name = "checkoutTablePopup"; + this.Padding = new System.Windows.Forms.Padding(20, 30, 20, 20); + this.Text = "checkoutTablePopup"; + this.Load += new System.EventHandler(this.checkoutTablePopup_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private MetroFramework.Controls.MetroLabel metroLabel1; + private MetroFramework.Controls.MetroButton cancel; + private MetroFramework.Controls.MetroButton confirm; + } +} \ No newline at end of file diff --git a/Enigma/Popups/checkoutTablePopup.cs b/Enigma/Popups/checkoutTablePopup.cs new file mode 100644 index 0000000..72ac31f --- /dev/null +++ b/Enigma/Popups/checkoutTablePopup.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using MetroFramework.Forms; + +namespace Enigma.Popups +{ + public partial class checkoutTablePopup : MetroForm + { + public checkoutTablePopup() + { + InitializeComponent(); + } + + private void checkoutTablePopup_Load(object sender, EventArgs e) + { + + } + } +} diff --git a/Enigma/Popups/checkoutTablePopup.resx b/Enigma/Popups/checkoutTablePopup.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Enigma/Popups/checkoutTablePopup.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Enigma/Popups/chequePrintPopup.Designer.cs b/Enigma/Popups/chequePrintPopup.Designer.cs new file mode 100644 index 0000000..6501cba --- /dev/null +++ b/Enigma/Popups/chequePrintPopup.Designer.cs @@ -0,0 +1,114 @@ +namespace Enigma.Popups +{ + partial class chequePrintPopup + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.cancel = new MetroFramework.Controls.MetroButton(); + this.printConfirm = new MetroFramework.Controls.MetroButton(); + this.metroListView1 = new MetroFramework.Controls.MetroListView(); + this.metroLabel1 = new MetroFramework.Controls.MetroLabel(); + this.metroLabel2 = new MetroFramework.Controls.MetroLabel(); + this.SuspendLayout(); + // + // cancel + // + this.cancel.Location = new System.Drawing.Point(280, 317); + this.cancel.Name = "cancel"; + this.cancel.Size = new System.Drawing.Size(86, 26); + this.cancel.TabIndex = 0; + this.cancel.Text = "Cancel"; + this.cancel.UseSelectable = true; + // + // printConfirm + // + this.printConfirm.Location = new System.Drawing.Point(372, 317); + this.printConfirm.Name = "printConfirm"; + this.printConfirm.Size = new System.Drawing.Size(86, 26); + this.printConfirm.TabIndex = 1; + this.printConfirm.Text = "Print"; + this.printConfirm.UseSelectable = true; + // + // metroListView1 + // + this.metroListView1.Font = new System.Drawing.Font("Segoe UI", 12F); + this.metroListView1.FullRowSelect = true; + this.metroListView1.Location = new System.Drawing.Point(11, 10); + this.metroListView1.Name = "metroListView1"; + this.metroListView1.OwnerDraw = true; + this.metroListView1.Size = new System.Drawing.Size(330, 229); + this.metroListView1.TabIndex = 2; + this.metroListView1.UseCompatibleStateImageBehavior = false; + this.metroListView1.UseSelectable = true; + // + // metroLabel1 + // + this.metroLabel1.AutoSize = true; + this.metroLabel1.Location = new System.Drawing.Point(11, 280); + this.metroLabel1.Name = "metroLabel1"; + this.metroLabel1.Size = new System.Drawing.Size(71, 20); + this.metroLabel1.TabIndex = 3; + this.metroLabel1.Text = "Total Cost:"; + // + // metroLabel2 + // + this.metroLabel2.AutoSize = true; + this.metroLabel2.Location = new System.Drawing.Point(11, 251); + this.metroLabel2.Name = "metroLabel2"; + this.metroLabel2.Size = new System.Drawing.Size(31, 20); + this.metroLabel2.TabIndex = 4; + this.metroLabel2.Text = "Tax:"; + // + // chequePrintPopup + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(468, 352); + this.Controls.Add(this.metroLabel2); + this.Controls.Add(this.metroLabel1); + this.Controls.Add(this.metroListView1); + this.Controls.Add(this.printConfirm); + this.Controls.Add(this.cancel); + this.DisplayHeader = false; + this.Name = "chequePrintPopup"; + this.Padding = new System.Windows.Forms.Padding(20, 30, 20, 20); + this.Text = "chequePrintPopup"; + this.Load += new System.EventHandler(this.chequePrintCheck_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private MetroFramework.Controls.MetroButton cancel; + private MetroFramework.Controls.MetroButton printConfirm; + private MetroFramework.Controls.MetroListView metroListView1; + private MetroFramework.Controls.MetroLabel metroLabel1; + private MetroFramework.Controls.MetroLabel metroLabel2; + } +} \ No newline at end of file diff --git a/Enigma/Popups/chequePrintPopup.cs b/Enigma/Popups/chequePrintPopup.cs new file mode 100644 index 0000000..a20ac98 --- /dev/null +++ b/Enigma/Popups/chequePrintPopup.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using MetroFramework.Forms; + +namespace Enigma.Popups +{ + public partial class chequePrintPopup : MetroForm + { + public chequePrintPopup() + { + InitializeComponent(); + } + + private void chequePrintCheck_Load(object sender, EventArgs e) + { + + } + } +} diff --git a/Enigma/Popups/chequePrintPopup.resx b/Enigma/Popups/chequePrintPopup.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Enigma/Popups/chequePrintPopup.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file