Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace QuanLyQuanCafe
- {
- static class Program
- {
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main()
- {
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- Application.Run(new fLogin());
- }
- }
- }
- Code fTableManager.Designer.cs
- namespace QuanLyQuanCafe
- {
- partial class fTableManager
- {
- /// <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.menuStrip1 = new System.Windows.Forms.MenuStrip();
- this.adminToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.thôngTinTàiKhoảnToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.thôngTinCáNhânToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.đăngXuấtToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.panel2 = new System.Windows.Forms.Panel();
- this.panel3 = new System.Windows.Forms.Panel();
- this.lsvBill = new System.Windows.Forms.ListView();
- this.panel4 = new System.Windows.Forms.Panel();
- this.cbCategory = new System.Windows.Forms.ComboBox();
- this.cbFood = new System.Windows.Forms.ComboBox();
- this.btnAddFood = new System.Windows.Forms.Button();
- this.nmFoodCount = new System.Windows.Forms.NumericUpDown();
- this.flpTable = new System.Windows.Forms.FlowLayoutPanel();
- this.btnCheckOut = new System.Windows.Forms.Button();
- this.btnDiscount = new System.Windows.Forms.Button();
- this.nmDisCount = new System.Windows.Forms.NumericUpDown();
- this.btnSwitchTable = new System.Windows.Forms.Button();
- this.cbSwitchTable = new System.Windows.Forms.ComboBox();
- this.menuStrip1.SuspendLayout();
- this.panel2.SuspendLayout();
- this.panel3.SuspendLayout();
- this.panel4.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.nmFoodCount)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.nmDisCount)).BeginInit();
- this.SuspendLayout();
- //
- // menuStrip1
- //
- this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.adminToolStripMenuItem,
- this.thôngTinTàiKhoảnToolStripMenuItem});
- this.menuStrip1.Location = new System.Drawing.Point(0, 0);
- this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Size = new System.Drawing.Size(797, 24);
- this.menuStrip1.TabIndex = 1;
- this.menuStrip1.Text = "menuStrip1";
- //
- // adminToolStripMenuItem
- //
- this.adminToolStripMenuItem.Name = "adminToolStripMenuItem";
- this.adminToolStripMenuItem.Size = new System.Drawing.Size(55, 20);
- this.adminToolStripMenuItem.Text = "Admin";
- this.adminToolStripMenuItem.Click += new System.EventHandler(this.adminToolStripMenuItem_Click);
- //
- // thôngTinTàiKhoảnToolStripMenuItem
- //
- this.thôngTinTàiKhoảnToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.thôngTinCáNhânToolStripMenuItem,
- this.đăngXuấtToolStripMenuItem});
- this.thôngTinTàiKhoảnToolStripMenuItem.Name = "thôngTinTàiKhoảnToolStripMenuItem";
- this.thôngTinTàiKhoảnToolStripMenuItem.Size = new System.Drawing.Size(123, 20);
- this.thôngTinTàiKhoảnToolStripMenuItem.Text = "Thông tin tài khoản";
- //
- // thôngTinCáNhânToolStripMenuItem
- //
- this.thôngTinCáNhânToolStripMenuItem.Name = "thôngTinCáNhânToolStripMenuItem";
- this.thôngTinCáNhânToolStripMenuItem.Size = new System.Drawing.Size(171, 22);
- this.thôngTinCáNhânToolStripMenuItem.Text = "Thông tin cá nhân";
- this.thôngTinCáNhânToolStripMenuItem.Click += new System.EventHandler(this.thôngTinCáNhânToolStripMenuItem_Click);
- //
- // đăngXuấtToolStripMenuItem
- //
- this.đăngXuấtToolStripMenuItem.Name = "đăngXuấtToolStripMenuItem";
- this.đăngXuấtToolStripMenuItem.Size = new System.Drawing.Size(171, 22);
- this.đăngXuấtToolStripMenuItem.Text = "Đăng xuất";
- this.đăngXuấtToolStripMenuItem.Click += new System.EventHandler(this.đăngXuấtToolStripMenuItem_Click);
- //
- // panel2
- //
- this.panel2.Controls.Add(this.lsvBill);
- this.panel2.Location = new System.Drawing.Point(447, 85);
- this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(338, 315);
- this.panel2.TabIndex = 2;
- //
- // panel3
- //
- this.panel3.Controls.Add(this.cbSwitchTable);
- this.panel3.Controls.Add(this.btnSwitchTable);
- this.panel3.Controls.Add(this.nmDisCount);
- this.panel3.Controls.Add(this.btnDiscount);
- this.panel3.Controls.Add(this.btnCheckOut);
- this.panel3.Location = new System.Drawing.Point(447, 406);
- this.panel3.Name = "panel3";
- this.panel3.Size = new System.Drawing.Size(338, 52);
- this.panel3.TabIndex = 3;
- //
- // lsvBill
- //
- this.lsvBill.Location = new System.Drawing.Point(3, 3);
- this.lsvBill.Name = "lsvBill";
- this.lsvBill.Size = new System.Drawing.Size(332, 309);
- this.lsvBill.TabIndex = 0;
- this.lsvBill.UseCompatibleStateImageBehavior = false;
- //
- // panel4
- //
- this.panel4.Controls.Add(this.nmFoodCount);
- this.panel4.Controls.Add(this.btnAddFood);
- this.panel4.Controls.Add(this.cbFood);
- this.panel4.Controls.Add(this.cbCategory);
- this.panel4.Location = new System.Drawing.Point(447, 27);
- this.panel4.Name = "panel4";
- this.panel4.Size = new System.Drawing.Size(338, 52);
- this.panel4.TabIndex = 4;
- //
- // cbCategory
- //
- this.cbCategory.FormattingEnabled = true;
- this.cbCategory.Location = new System.Drawing.Point(3, 3);
- this.cbCategory.Name = "cbCategory";
- this.cbCategory.Size = new System.Drawing.Size(205, 21);
- this.cbCategory.TabIndex = 0;
- //
- // cbFood
- //
- this.cbFood.FormattingEnabled = true;
- this.cbFood.Location = new System.Drawing.Point(3, 28);
- this.cbFood.Name = "cbFood";
- this.cbFood.Size = new System.Drawing.Size(205, 21);
- this.cbFood.TabIndex = 1;
- //
- // btnAddFood
- //
- this.btnAddFood.Location = new System.Drawing.Point(214, 3);
- this.btnAddFood.Name = "btnAddFood";
- this.btnAddFood.Size = new System.Drawing.Size(75, 46);
- this.btnAddFood.TabIndex = 2;
- this.btnAddFood.Text = "Thêm món";
- this.btnAddFood.UseVisualStyleBackColor = true;
- //
- // nmFoodCount
- //
- this.nmFoodCount.Location = new System.Drawing.Point(296, 19);
- this.nmFoodCount.Minimum = new decimal(new int[] {
- 100,
- 0,
- 0,
- -2147483648});
- this.nmFoodCount.Name = "nmFoodCount";
- this.nmFoodCount.Size = new System.Drawing.Size(39, 20);
- this.nmFoodCount.TabIndex = 3;
- this.nmFoodCount.Value = new decimal(new int[] {
- 1,
- 0,
- 0,
- 0});
- //
- // flpTable
- //
- this.flpTable.Location = new System.Drawing.Point(12, 30);
- this.flpTable.Name = "flpTable";
- this.flpTable.Size = new System.Drawing.Size(429, 428);
- this.flpTable.TabIndex = 5;
- //
- // btnCheckOut
- //
- this.btnCheckOut.Location = new System.Drawing.Point(260, 3);
- this.btnCheckOut.Name = "btnCheckOut";
- this.btnCheckOut.Size = new System.Drawing.Size(75, 46);
- this.btnCheckOut.TabIndex = 3;
- this.btnCheckOut.Text = "Thanh toán";
- this.btnCheckOut.UseVisualStyleBackColor = true;
- //
- // btnDiscount
- //
- this.btnDiscount.Location = new System.Drawing.Point(133, 3);
- this.btnDiscount.Name = "btnDiscount";
- this.btnDiscount.Size = new System.Drawing.Size(75, 26);
- this.btnDiscount.TabIndex = 4;
- this.btnDiscount.Text = "Giảm giá";
- this.btnDiscount.UseVisualStyleBackColor = true;
- //
- // nmDisCount
- //
- this.nmDisCount.Location = new System.Drawing.Point(133, 29);
- this.nmDisCount.Name = "nmDisCount";
- this.nmDisCount.Size = new System.Drawing.Size(74, 20);
- this.nmDisCount.TabIndex = 4;
- this.nmDisCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // btnSwitchTable
- //
- this.btnSwitchTable.Location = new System.Drawing.Point(3, 3);
- this.btnSwitchTable.Name = "btnSwitchTable";
- this.btnSwitchTable.Size = new System.Drawing.Size(75, 26);
- this.btnSwitchTable.TabIndex = 5;
- this.btnSwitchTable.Text = "Chuyển bàn";
- this.btnSwitchTable.UseVisualStyleBackColor = true;
- //
- // cbSwitchTable
- //
- this.cbSwitchTable.FormattingEnabled = true;
- this.cbSwitchTable.Location = new System.Drawing.Point(3, 28);
- this.cbSwitchTable.Name = "cbSwitchTable";
- this.cbSwitchTable.Size = new System.Drawing.Size(75, 21);
- this.cbSwitchTable.TabIndex = 6;
- //
- // fTableManager
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(797, 470);
- this.Controls.Add(this.flpTable);
- this.Controls.Add(this.panel4);
- this.Controls.Add(this.panel3);
- this.Controls.Add(this.panel2);
- this.Controls.Add(this.menuStrip1);
- this.MainMenuStrip = this.menuStrip1;
- this.Name = "fTableManager";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "Phần mềm quản lý quán cafe";
- this.menuStrip1.ResumeLayout(false);
- this.menuStrip1.PerformLayout();
- this.panel2.ResumeLayout(false);
- this.panel3.ResumeLayout(false);
- this.panel4.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.nmFoodCount)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.nmDisCount)).EndInit();
- this.ResumeLayout(false);
- this.PerformLayout();
- }
- #endregion
- private System.Windows.Forms.MenuStrip menuStrip1;
- private System.Windows.Forms.ToolStripMenuItem adminToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem thôngTinTàiKhoảnToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem thôngTinCáNhânToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem đăngXuấtToolStripMenuItem;
- private System.Windows.Forms.Panel panel2;
- private System.Windows.Forms.ListView lsvBill;
- private System.Windows.Forms.Panel panel3;
- private System.Windows.Forms.Panel panel4;
- private System.Windows.Forms.NumericUpDown nmFoodCount;
- private System.Windows.Forms.Button btnAddFood;
- private System.Windows.Forms.ComboBox cbFood;
- private System.Windows.Forms.ComboBox cbCategory;
- private System.Windows.Forms.ComboBox cbSwitchTable;
- private System.Windows.Forms.Button btnSwitchTable;
- private System.Windows.Forms.NumericUpDown nmDisCount;
- private System.Windows.Forms.Button btnDiscount;
- private System.Windows.Forms.Button btnCheckOut;
- private System.Windows.Forms.FlowLayoutPanel flpTable;
- }
- }
- Code fTableManager.cs
- 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;
- namespace QuanLyQuanCafe
- {
- public partial class fTableManager : Form
- {
- public fTableManager()
- {
- InitializeComponent();
- }
- private void đăngXuấtToolStripMenuItem_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- private void thôngTinCáNhânToolStripMenuItem_Click(object sender, EventArgs e)
- {
- fAccountProfile f = new fAccountProfile();
- f.ShowDialog();
- }
- private void adminToolStripMenuItem_Click(object sender, EventArgs e)
- {
- fAdmin f = new fAdmin();
- f.ShowDialog();
- }
- }
- }
- Code fLogin.Design.cs
- namespace QuanLyQuanCafe
- {
- partial class fLogin
- {
- /// <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.panel1 = new System.Windows.Forms.Panel();
- this.panel2 = new System.Windows.Forms.Panel();
- this.label1 = new System.Windows.Forms.Label();
- this.txbUserName = new System.Windows.Forms.TextBox();
- this.panel3 = new System.Windows.Forms.Panel();
- this.txbPassWord = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.btnLogin = new System.Windows.Forms.Button();
- this.btnExit = new System.Windows.Forms.Button();
- this.panel1.SuspendLayout();
- this.panel2.SuspendLayout();
- this.panel3.SuspendLayout();
- this.SuspendLayout();
- //
- // panel1
- //
- this.panel1.Controls.Add(this.btnExit);
- this.panel1.Controls.Add(this.btnLogin);
- this.panel1.Controls.Add(this.panel3);
- this.panel1.Controls.Add(this.panel2);
- this.panel1.Location = new System.Drawing.Point(12, 12);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(400, 136);
- this.panel1.TabIndex = 0;
- //
- // panel2
- //
- this.panel2.Controls.Add(this.txbUserName);
- this.panel2.Controls.Add(this.label1);
- this.panel2.Location = new System.Drawing.Point(3, 3);
- this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(394, 44);
- this.panel2.TabIndex = 0;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label1.Location = new System.Drawing.Point(3, 9);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(130, 19);
- this.label1.TabIndex = 0;
- this.label1.Text = "Tên đăng nhập:";
- //
- // txbUserName
- //
- this.txbUserName.Location = new System.Drawing.Point(139, 10);
- this.txbUserName.Name = "txbUserName";
- this.txbUserName.Size = new System.Drawing.Size(252, 20);
- this.txbUserName.TabIndex = 1;
- //
- // panel3
- //
- this.panel3.Controls.Add(this.txbPassWord);
- this.panel3.Controls.Add(this.label2);
- this.panel3.Location = new System.Drawing.Point(3, 53);
- this.panel3.Name = "panel3";
- this.panel3.Size = new System.Drawing.Size(394, 44);
- this.panel3.TabIndex = 1;
- //
- // txbPassWord
- //
- this.txbPassWord.Location = new System.Drawing.Point(139, 10);
- this.txbPassWord.Name = "txbPassWord";
- this.txbPassWord.Size = new System.Drawing.Size(252, 20);
- this.txbPassWord.TabIndex = 1;
- this.txbPassWord.UseSystemPasswordChar = true;
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label2.Location = new System.Drawing.Point(3, 9);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(84, 19);
- this.label2.TabIndex = 0;
- this.label2.Text = "Mật khẩu:";
- //
- // btnLogin
- //
- this.btnLogin.Location = new System.Drawing.Point(238, 103);
- this.btnLogin.Name = "btnLogin";
- this.btnLogin.Size = new System.Drawing.Size(75, 23);
- this.btnLogin.TabIndex = 2;
- this.btnLogin.Text = "Đăng nhập";
- this.btnLogin.UseVisualStyleBackColor = true;
- this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);
- //
- // btnExit
- //
- this.btnExit.Location = new System.Drawing.Point(319, 103);
- this.btnExit.Name = "btnExit";
- this.btnExit.Size = new System.Drawing.Size(75, 23);
- this.btnExit.TabIndex = 3;
- this.btnExit.Text = "Thoát";
- this.btnExit.UseVisualStyleBackColor = true;
- this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
- //
- // fLogin
- //
- this.AcceptButton = this.btnLogin;
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.CancelButton = this.btnExit;
- this.ClientSize = new System.Drawing.Size(424, 157);
- this.Controls.Add(this.panel1);
- this.Name = "fLogin";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "Đăng nhập";
- this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.fLogin_FormClosing);
- this.panel1.ResumeLayout(false);
- this.panel2.ResumeLayout(false);
- this.panel2.PerformLayout();
- this.panel3.ResumeLayout(false);
- this.panel3.PerformLayout();
- this.ResumeLayout(false);
- }
- #endregion
- private System.Windows.Forms.Panel panel1;
- private System.Windows.Forms.Panel panel3;
- private System.Windows.Forms.TextBox txbPassWord;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Panel panel2;
- private System.Windows.Forms.TextBox txbUserName;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Button btnExit;
- private System.Windows.Forms.Button btnLogin;
- }
- }
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- Code fLogin.cs
- 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;
- namespace QuanLyQuanCafe
- {
- public partial class fLogin : Form
- {
- public fLogin()
- {
- InitializeComponent();
- }
- private void btnLogin_Click(object sender, EventArgs e)
- {
- fTableManager f = new fTableManager();
- this.Hide();
- f.ShowDialog();
- this.Show();
- }
- private void btnExit_Click(object sender, EventArgs e)
- {
- Application.Exit();
- }
- private void fLogin_FormClosing(object sender, FormClosingEventArgs e)
- {
- if (MessageBox.Show("Bạn có thật sự muốn thoát chương trình?", "Thông báo", MessageBoxButtons.OKCancel) != System.Windows.Forms.DialogResult.OK)
- {
- e.Cancel = true;
- }
- }
- }
- }
- Code fAdmin.Designer.cs
- namespace QuanLyQuanCafe
- {
- partial class fAdmin
- {
- /// <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.tcAdmin = new System.Windows.Forms.TabControl();
- this.tpBill = new System.Windows.Forms.TabPage();
- this.tpFood = new System.Windows.Forms.TabPage();
- this.tbFoodCategory = new System.Windows.Forms.TabPage();
- this.tpTable = new System.Windows.Forms.TabPage();
- this.tpAccount = new System.Windows.Forms.TabPage();
- this.panel1 = new System.Windows.Forms.Panel();
- this.panel2 = new System.Windows.Forms.Panel();
- this.dtgvBill = new System.Windows.Forms.DataGridView();
- this.dtpkFromDate = new System.Windows.Forms.DateTimePicker();
- this.dtpkToDate = new System.Windows.Forms.DateTimePicker();
- this.btnViewBill = new System.Windows.Forms.Button();
- this.panel3 = new System.Windows.Forms.Panel();
- this.panel4 = new System.Windows.Forms.Panel();
- this.panel5 = new System.Windows.Forms.Panel();
- this.panel6 = new System.Windows.Forms.Panel();
- this.dtgvFood = new System.Windows.Forms.DataGridView();
- this.btnAddFood = new System.Windows.Forms.Button();
- this.btnDeleteFood = new System.Windows.Forms.Button();
- this.btnEditFood = new System.Windows.Forms.Button();
- this.btnShowFood = new System.Windows.Forms.Button();
- this.btnSearchFood = new System.Windows.Forms.Button();
- this.txbSearchFoodName = new System.Windows.Forms.TextBox();
- this.panel7 = new System.Windows.Forms.Panel();
- this.txbFoodID = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.panel8 = new System.Windows.Forms.Panel();
- this.txbFoodName = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.panel9 = new System.Windows.Forms.Panel();
- this.label3 = new System.Windows.Forms.Label();
- this.cbFoodCategory = new System.Windows.Forms.ComboBox();
- this.panel10 = new System.Windows.Forms.Panel();
- this.label4 = new System.Windows.Forms.Label();
- this.nmFoodPrice = new System.Windows.Forms.NumericUpDown();
- this.panel12 = new System.Windows.Forms.Panel();
- this.panel15 = new System.Windows.Forms.Panel();
- this.textBox2 = new System.Windows.Forms.TextBox();
- this.label7 = new System.Windows.Forms.Label();
- this.panel16 = new System.Windows.Forms.Panel();
- this.txbCategoryID = new System.Windows.Forms.TextBox();
- this.label8 = new System.Windows.Forms.Label();
- this.panel17 = new System.Windows.Forms.Panel();
- this.btnShowCategory = new System.Windows.Forms.Button();
- this.btnEditCategory = new System.Windows.Forms.Button();
- this.btnDeleteCategory = new System.Windows.Forms.Button();
- this.btnAddCategory = new System.Windows.Forms.Button();
- this.panel18 = new System.Windows.Forms.Panel();
- this.dtgvCategory = new System.Windows.Forms.DataGridView();
- this.panel11 = new System.Windows.Forms.Panel();
- this.panel13 = new System.Windows.Forms.Panel();
- this.txbTableName = new System.Windows.Forms.TextBox();
- this.label5 = new System.Windows.Forms.Label();
- this.panel14 = new System.Windows.Forms.Panel();
- this.textBox3 = new System.Windows.Forms.TextBox();
- this.label6 = new System.Windows.Forms.Label();
- this.panel19 = new System.Windows.Forms.Panel();
- this.btnShowTable = new System.Windows.Forms.Button();
- this.btnEditTable = new System.Windows.Forms.Button();
- this.btnDeleteTable = new System.Windows.Forms.Button();
- this.btnAddTable = new System.Windows.Forms.Button();
- this.panel20 = new System.Windows.Forms.Panel();
- this.dtgvTable = new System.Windows.Forms.DataGridView();
- this.panel21 = new System.Windows.Forms.Panel();
- this.label9 = new System.Windows.Forms.Label();
- this.cbTableStatus = new System.Windows.Forms.ComboBox();
- this.panel23 = new System.Windows.Forms.Panel();
- this.panel25 = new System.Windows.Forms.Panel();
- this.cbAccountType = new System.Windows.Forms.ComboBox();
- this.label11 = new System.Windows.Forms.Label();
- this.panel26 = new System.Windows.Forms.Panel();
- this.txbDisplayName = new System.Windows.Forms.TextBox();
- this.label12 = new System.Windows.Forms.Label();
- this.panel27 = new System.Windows.Forms.Panel();
- this.txbUserName = new System.Windows.Forms.TextBox();
- this.label13 = new System.Windows.Forms.Label();
- this.panel28 = new System.Windows.Forms.Panel();
- this.btnShowAccount = new System.Windows.Forms.Button();
- this.btnEditAccount = new System.Windows.Forms.Button();
- this.btnDeleteAccount = new System.Windows.Forms.Button();
- this.btnAddAccount = new System.Windows.Forms.Button();
- this.panel29 = new System.Windows.Forms.Panel();
- this.dtgvAccount = new System.Windows.Forms.DataGridView();
- this.btnResetPassword = new System.Windows.Forms.Button();
- this.tcAdmin.SuspendLayout();
- this.tpBill.SuspendLayout();
- this.tpFood.SuspendLayout();
- this.tbFoodCategory.SuspendLayout();
- this.tpTable.SuspendLayout();
- this.tpAccount.SuspendLayout();
- this.panel1.SuspendLayout();
- this.panel2.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dtgvBill)).BeginInit();
- this.panel3.SuspendLayout();
- this.panel4.SuspendLayout();
- this.panel5.SuspendLayout();
- this.panel6.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dtgvFood)).BeginInit();
- this.panel7.SuspendLayout();
- this.panel8.SuspendLayout();
- this.panel9.SuspendLayout();
- this.panel10.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.nmFoodPrice)).BeginInit();
- this.panel12.SuspendLayout();
- this.panel15.SuspendLayout();
- this.panel16.SuspendLayout();
- this.panel17.SuspendLayout();
- this.panel18.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dtgvCategory)).BeginInit();
- this.panel11.SuspendLayout();
- this.panel13.SuspendLayout();
- this.panel14.SuspendLayout();
- this.panel19.SuspendLayout();
- this.panel20.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dtgvTable)).BeginInit();
- this.panel21.SuspendLayout();
- this.panel23.SuspendLayout();
- this.panel25.SuspendLayout();
- this.panel26.SuspendLayout();
- this.panel27.SuspendLayout();
- this.panel28.SuspendLayout();
- this.panel29.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dtgvAccount)).BeginInit();
- this.SuspendLayout();
- //
- // tcAdmin
- //
- this.tcAdmin.Controls.Add(this.tpBill);
- this.tcAdmin.Controls.Add(this.tpFood);
- this.tcAdmin.Controls.Add(this.tbFoodCategory);
- this.tcAdmin.Controls.Add(this.tpTable);
- this.tcAdmin.Controls.Add(this.tpAccount);
- this.tcAdmin.Location = new System.Drawing.Point(12, 12);
- this.tcAdmin.Name = "tcAdmin";
- this.tcAdmin.SelectedIndex = 0;
- this.tcAdmin.Size = new System.Drawing.Size(658, 439);
- this.tcAdmin.TabIndex = 0;
- //
- // tpBill
- //
- this.tpBill.Controls.Add(this.panel2);
- this.tpBill.Controls.Add(this.panel1);
- this.tpBill.Location = new System.Drawing.Point(4, 22);
- this.tpBill.Name = "tpBill";
- this.tpBill.Padding = new System.Windows.Forms.Padding(3);
- this.tpBill.Size = new System.Drawing.Size(650, 413);
- this.tpBill.TabIndex = 0;
- this.tpBill.Text = "Doanh thu";
- this.tpBill.UseVisualStyleBackColor = true;
- //
- // tpFood
- //
- this.tpFood.Controls.Add(this.panel6);
- this.tpFood.Controls.Add(this.panel5);
- this.tpFood.Controls.Add(this.panel4);
- this.tpFood.Controls.Add(this.panel3);
- this.tpFood.Location = new System.Drawing.Point(4, 22);
- this.tpFood.Name = "tpFood";
- this.tpFood.Padding = new System.Windows.Forms.Padding(3);
- this.tpFood.Size = new System.Drawing.Size(650, 413);
- this.tpFood.TabIndex = 1;
- this.tpFood.Text = "Thức ăn";
- this.tpFood.UseVisualStyleBackColor = true;
- //
- // tbFoodCategory
- //
- this.tbFoodCategory.Controls.Add(this.panel12);
- this.tbFoodCategory.Controls.Add(this.panel17);
- this.tbFoodCategory.Controls.Add(this.panel18);
- this.tbFoodCategory.Location = new System.Drawing.Point(4, 22);
- this.tbFoodCategory.Name = "tbFoodCategory";
- this.tbFoodCategory.Padding = new System.Windows.Forms.Padding(3);
- this.tbFoodCategory.Size = new System.Drawing.Size(650, 413);
- this.tbFoodCategory.TabIndex = 2;
- this.tbFoodCategory.Text = "Danh mục";
- this.tbFoodCategory.UseVisualStyleBackColor = true;
- //
- // tpTable
- //
- this.tpTable.Controls.Add(this.panel11);
- this.tpTable.Controls.Add(this.panel19);
- this.tpTable.Controls.Add(this.panel20);
- this.tpTable.Location = new System.Drawing.Point(4, 22);
- this.tpTable.Name = "tpTable";
- this.tpTable.Padding = new System.Windows.Forms.Padding(3);
- this.tpTable.Size = new System.Drawing.Size(650, 413);
- this.tpTable.TabIndex = 3;
- this.tpTable.Text = "Bàn ăn";
- this.tpTable.UseVisualStyleBackColor = true;
- //
- // tpAccount
- //
- this.tpAccount.Controls.Add(this.panel23);
- this.tpAccount.Controls.Add(this.panel28);
- this.tpAccount.Controls.Add(this.panel29);
- this.tpAccount.Location = new System.Drawing.Point(4, 22);
- this.tpAccount.Name = "tpAccount";
- this.tpAccount.Padding = new System.Windows.Forms.Padding(3);
- this.tpAccount.Size = new System.Drawing.Size(650, 413);
- this.tpAccount.TabIndex = 4;
- this.tpAccount.Text = "Tài khoản";
- this.tpAccount.UseVisualStyleBackColor = true;
- //
- // panel1
- //
- this.panel1.Controls.Add(this.dtgvBill);
- this.panel1.Location = new System.Drawing.Point(6, 38);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(638, 369);
- this.panel1.TabIndex = 0;
- //
- // panel2
- //
- this.panel2.Controls.Add(this.btnViewBill);
- this.panel2.Controls.Add(this.dtpkToDate);
- this.panel2.Controls.Add(this.dtpkFromDate);
- this.panel2.Location = new System.Drawing.Point(6, 6);
- this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(638, 26);
- this.panel2.TabIndex = 1;
- //
- // dtgvBill
- //
- this.dtgvBill.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dtgvBill.Location = new System.Drawing.Point(3, 3);
- this.dtgvBill.Name = "dtgvBill";
- this.dtgvBill.Size = new System.Drawing.Size(632, 363);
- this.dtgvBill.TabIndex = 0;
- //
- // dtpkFromDate
- //
- this.dtpkFromDate.Location = new System.Drawing.Point(3, 3);
- this.dtpkFromDate.Name = "dtpkFromDate";
- this.dtpkFromDate.Size = new System.Drawing.Size(200, 20);
- this.dtpkFromDate.TabIndex = 0;
- //
- // dtpkToDate
- //
- this.dtpkToDate.Location = new System.Drawing.Point(435, 3);
- this.dtpkToDate.Name = "dtpkToDate";
- this.dtpkToDate.Size = new System.Drawing.Size(200, 20);
- this.dtpkToDate.TabIndex = 1;
- //
- // btnViewBill
- //
- this.btnViewBill.Location = new System.Drawing.Point(282, 0);
- this.btnViewBill.Name = "btnViewBill";
- this.btnViewBill.Size = new System.Drawing.Size(75, 23);
- this.btnViewBill.TabIndex = 2;
- this.btnViewBill.Text = "Thống kê";
- this.btnViewBill.UseVisualStyleBackColor = true;
- //
- // panel3
- //
- this.panel3.Controls.Add(this.dtgvFood);
- this.panel3.Location = new System.Drawing.Point(6, 61);
- this.panel3.Name = "panel3";
- this.panel3.Size = new System.Drawing.Size(349, 346);
- this.panel3.TabIndex = 0;
- //
- // panel4
- //
- this.panel4.Controls.Add(this.btnShowFood);
- this.panel4.Controls.Add(this.btnEditFood);
- this.panel4.Controls.Add(this.btnDeleteFood);
- this.panel4.Controls.Add(this.btnAddFood);
- this.panel4.Location = new System.Drawing.Point(6, 3);
- this.panel4.Name = "panel4";
- this.panel4.Size = new System.Drawing.Size(349, 52);
- this.panel4.TabIndex = 1;
- //
- // panel5
- //
- this.panel5.Controls.Add(this.panel10);
- this.panel5.Controls.Add(this.panel9);
- this.panel5.Controls.Add(this.panel8);
- this.panel5.Controls.Add(this.panel7);
- this.panel5.Location = new System.Drawing.Point(361, 61);
- this.panel5.Name = "panel5";
- this.panel5.Size = new System.Drawing.Size(285, 346);
- this.panel5.TabIndex = 2;
- //
- // panel6
- //
- this.panel6.Controls.Add(this.txbSearchFoodName);
- this.panel6.Controls.Add(this.btnSearchFood);
- this.panel6.Location = new System.Drawing.Point(361, 3);
- this.panel6.Name = "panel6";
- this.panel6.Size = new System.Drawing.Size(283, 52);
- this.panel6.TabIndex = 3;
- //
- // dtgvFood
- //
- this.dtgvFood.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dtgvFood.Location = new System.Drawing.Point(3, 3);
- this.dtgvFood.Name = "dtgvFood";
- this.dtgvFood.Size = new System.Drawing.Size(343, 340);
- this.dtgvFood.TabIndex = 0;
- //
- // btnAddFood
- //
- this.btnAddFood.Location = new System.Drawing.Point(3, 3);
- this.btnAddFood.Name = "btnAddFood";
- this.btnAddFood.Size = new System.Drawing.Size(75, 46);
- this.btnAddFood.TabIndex = 0;
- this.btnAddFood.Text = "Thêm";
- this.btnAddFood.UseVisualStyleBackColor = true;
- //
- // btnDeleteFood
- //
- this.btnDeleteFood.Location = new System.Drawing.Point(84, 3);
- this.btnDeleteFood.Name = "btnDeleteFood";
- this.btnDeleteFood.Size = new System.Drawing.Size(75, 46);
- this.btnDeleteFood.TabIndex = 1;
- this.btnDeleteFood.Text = "Xóa";
- this.btnDeleteFood.UseVisualStyleBackColor = true;
- //
- // btnEditFood
- //
- this.btnEditFood.Location = new System.Drawing.Point(165, 3);
- this.btnEditFood.Name = "btnEditFood";
- this.btnEditFood.Size = new System.Drawing.Size(75, 46);
- this.btnEditFood.TabIndex = 2;
- this.btnEditFood.Text = "Sửa";
- this.btnEditFood.UseVisualStyleBackColor = true;
- //
- // btnShowFood
- //
- this.btnShowFood.Location = new System.Drawing.Point(246, 3);
- this.btnShowFood.Name = "btnShowFood";
- this.btnShowFood.Size = new System.Drawing.Size(75, 46);
- this.btnShowFood.TabIndex = 3;
- this.btnShowFood.Text = "Xem";
- this.btnShowFood.UseVisualStyleBackColor = true;
- //
- // btnSearchFood
- //
- this.btnSearchFood.Location = new System.Drawing.Point(208, 3);
- this.btnSearchFood.Name = "btnSearchFood";
- this.btnSearchFood.Size = new System.Drawing.Size(75, 46);
- this.btnSearchFood.TabIndex = 4;
- this.btnSearchFood.Text = "Tìm";
- this.btnSearchFood.UseVisualStyleBackColor = true;
- //
- // txbSearchFoodName
- //
- this.txbSearchFoodName.Location = new System.Drawing.Point(3, 17);
- this.txbSearchFoodName.Name = "txbSearchFoodName";
- this.txbSearchFoodName.Size = new System.Drawing.Size(199, 20);
- this.txbSearchFoodName.TabIndex = 5;
- //
- // panel7
- //
- this.panel7.Controls.Add(this.txbFoodID);
- this.panel7.Controls.Add(this.label1);
- this.panel7.Location = new System.Drawing.Point(3, 3);
- this.panel7.Name = "panel7";
- this.panel7.Size = new System.Drawing.Size(279, 44);
- this.panel7.TabIndex = 1;
- //
- // txbFoodID
- //
- this.txbFoodID.Location = new System.Drawing.Point(91, 8);
- this.txbFoodID.Name = "txbFoodID";
- this.txbFoodID.ReadOnly = true;
- this.txbFoodID.Size = new System.Drawing.Size(185, 20);
- this.txbFoodID.TabIndex = 1;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label1.Location = new System.Drawing.Point(3, 9);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(31, 19);
- this.label1.TabIndex = 0;
- this.label1.Text = "ID:";
- //
- // panel8
- //
- this.panel8.Controls.Add(this.txbFoodName);
- this.panel8.Controls.Add(this.label2);
- this.panel8.Location = new System.Drawing.Point(3, 53);
- this.panel8.Name = "panel8";
- this.panel8.Size = new System.Drawing.Size(279, 44);
- this.panel8.TabIndex = 2;
- //
- // txbFoodName
- //
- this.txbFoodName.Location = new System.Drawing.Point(91, 8);
- this.txbFoodName.Name = "txbFoodName";
- this.txbFoodName.Size = new System.Drawing.Size(185, 20);
- this.txbFoodName.TabIndex = 1;
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label2.Location = new System.Drawing.Point(3, 9);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(82, 19);
- this.label2.TabIndex = 0;
- this.label2.Text = "Tên món:";
- //
- // panel9
- //
- this.panel9.Controls.Add(this.cbFoodCategory);
- this.panel9.Controls.Add(this.label3);
- this.panel9.Location = new System.Drawing.Point(3, 103);
- this.panel9.Name = "panel9";
- this.panel9.Size = new System.Drawing.Size(279, 44);
- this.panel9.TabIndex = 3;
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label3.Location = new System.Drawing.Point(3, 9);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(93, 19);
- this.label3.TabIndex = 0;
- this.label3.Text = "Danh mục:";
- //
- // cbFoodCategory
- //
- this.cbFoodCategory.FormattingEnabled = true;
- this.cbFoodCategory.Location = new System.Drawing.Point(91, 9);
- this.cbFoodCategory.Name = "cbFoodCategory";
- this.cbFoodCategory.Size = new System.Drawing.Size(185, 21);
- this.cbFoodCategory.TabIndex = 1;
- //
- // panel10
- //
- this.panel10.Controls.Add(this.nmFoodPrice);
- this.panel10.Controls.Add(this.label4);
- this.panel10.Location = new System.Drawing.Point(3, 153);
- this.panel10.Name = "panel10";
- this.panel10.Size = new System.Drawing.Size(279, 44);
- this.panel10.TabIndex = 4;
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label4.Location = new System.Drawing.Point(3, 9);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(40, 19);
- this.label4.TabIndex = 0;
- this.label4.Text = "Giá:";
- //
- // nmFoodPrice
- //
- this.nmFoodPrice.Location = new System.Drawing.Point(91, 8);
- this.nmFoodPrice.Maximum = new decimal(new int[] {
- 100000000,
- 0,
- 0,
- 0});
- this.nmFoodPrice.Name = "nmFoodPrice";
- this.nmFoodPrice.Size = new System.Drawing.Size(185, 20);
- this.nmFoodPrice.TabIndex = 1;
- //
- // panel12
- //
- this.panel12.Controls.Add(this.panel15);
- this.panel12.Controls.Add(this.panel16);
- this.panel12.Location = new System.Drawing.Point(360, 62);
- this.panel12.Name = "panel12";
- this.panel12.Size = new System.Drawing.Size(285, 346);
- this.panel12.TabIndex = 6;
- //
- // panel15
- //
- this.panel15.Controls.Add(this.textBox2);
- this.panel15.Controls.Add(this.label7);
- this.panel15.Location = new System.Drawing.Point(3, 53);
- this.panel15.Name = "panel15";
- this.panel15.Size = new System.Drawing.Size(279, 44);
- this.panel15.TabIndex = 2;
- //
- // textBox2
- //
- this.textBox2.Location = new System.Drawing.Point(125, 8);
- this.textBox2.Name = "textBox2";
- this.textBox2.Size = new System.Drawing.Size(151, 20);
- this.textBox2.TabIndex = 1;
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label7.Location = new System.Drawing.Point(3, 9);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(124, 19);
- this.label7.TabIndex = 0;
- this.label7.Text = "Tên danh mục:";
- //
- // panel16
- //
- this.panel16.Controls.Add(this.txbCategoryID);
- this.panel16.Controls.Add(this.label8);
- this.panel16.Location = new System.Drawing.Point(3, 3);
- this.panel16.Name = "panel16";
- this.panel16.Size = new System.Drawing.Size(279, 44);
- this.panel16.TabIndex = 1;
- //
- // txbCategoryID
- //
- this.txbCategoryID.Location = new System.Drawing.Point(125, 8);
- this.txbCategoryID.Name = "txbCategoryID";
- this.txbCategoryID.ReadOnly = true;
- this.txbCategoryID.Size = new System.Drawing.Size(151, 20);
- this.txbCategoryID.TabIndex = 1;
- //
- // label8
- //
- this.label8.AutoSize = true;
- this.label8.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label8.Location = new System.Drawing.Point(3, 9);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(31, 19);
- this.label8.TabIndex = 0;
- this.label8.Text = "ID:";
- //
- // panel17
- //
- this.panel17.Controls.Add(this.btnShowCategory);
- this.panel17.Controls.Add(this.btnEditCategory);
- this.panel17.Controls.Add(this.btnDeleteCategory);
- this.panel17.Controls.Add(this.btnAddCategory);
- this.panel17.Location = new System.Drawing.Point(5, 4);
- this.panel17.Name = "panel17";
- this.panel17.Size = new System.Drawing.Size(349, 52);
- this.panel17.TabIndex = 5;
- //
- // btnShowCategory
- //
- this.btnShowCategory.Location = new System.Drawing.Point(246, 3);
- this.btnShowCategory.Name = "btnShowCategory";
- this.btnShowCategory.Size = new System.Drawing.Size(75, 46);
- this.btnShowCategory.TabIndex = 3;
- this.btnShowCategory.Text = "Xem";
- this.btnShowCategory.UseVisualStyleBackColor = true;
- //
- // btnEditCategory
- //
- this.btnEditCategory.Location = new System.Drawing.Point(165, 3);
- this.btnEditCategory.Name = "btnEditCategory";
- this.btnEditCategory.Size = new System.Drawing.Size(75, 46);
- this.btnEditCategory.TabIndex = 2;
- this.btnEditCategory.Text = "Sửa";
- this.btnEditCategory.UseVisualStyleBackColor = true;
- //
- // btnDeleteCategory
- //
- this.btnDeleteCategory.Location = new System.Drawing.Point(84, 3);
- this.btnDeleteCategory.Name = "btnDeleteCategory";
- this.btnDeleteCategory.Size = new System.Drawing.Size(75, 46);
- this.btnDeleteCategory.TabIndex = 1;
- this.btnDeleteCategory.Text = "Xóa";
- this.btnDeleteCategory.UseVisualStyleBackColor = true;
- //
- // btnAddCategory
- //
- this.btnAddCategory.Location = new System.Drawing.Point(3, 3);
- this.btnAddCategory.Name = "btnAddCategory";
- this.btnAddCategory.Size = new System.Drawing.Size(75, 46);
- this.btnAddCategory.TabIndex = 0;
- this.btnAddCategory.Text = "Thêm";
- this.btnAddCategory.UseVisualStyleBackColor = true;
- //
- // panel18
- //
- this.panel18.Controls.Add(this.dtgvCategory);
- this.panel18.Location = new System.Drawing.Point(5, 62);
- this.panel18.Name = "panel18";
- this.panel18.Size = new System.Drawing.Size(349, 346);
- this.panel18.TabIndex = 4;
- //
- // dtgvCategory
- //
- this.dtgvCategory.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dtgvCategory.Location = new System.Drawing.Point(3, 3);
- this.dtgvCategory.Name = "dtgvCategory";
- this.dtgvCategory.Size = new System.Drawing.Size(343, 340);
- this.dtgvCategory.TabIndex = 0;
- //
- // panel11
- //
- this.panel11.Controls.Add(this.panel21);
- this.panel11.Controls.Add(this.panel13);
- this.panel11.Controls.Add(this.panel14);
- this.panel11.Location = new System.Drawing.Point(360, 62);
- this.panel11.Name = "panel11";
- this.panel11.Size = new System.Drawing.Size(285, 346);
- this.panel11.TabIndex = 9;
- //
- // panel13
- //
- this.panel13.Controls.Add(this.txbTableName);
- this.panel13.Controls.Add(this.label5);
- this.panel13.Location = new System.Drawing.Point(3, 53);
- this.panel13.Name = "panel13";
- this.panel13.Size = new System.Drawing.Size(279, 44);
- this.panel13.TabIndex = 2;
- //
- // txbTableName
- //
- this.txbTableName.Location = new System.Drawing.Point(125, 8);
- this.txbTableName.Name = "txbTableName";
- this.txbTableName.Size = new System.Drawing.Size(151, 20);
- this.txbTableName.TabIndex = 1;
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label5.Location = new System.Drawing.Point(3, 9);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(77, 19);
- this.label5.TabIndex = 0;
- this.label5.Text = "Tên bàn:";
- //
- // panel14
- //
- this.panel14.Controls.Add(this.textBox3);
- this.panel14.Controls.Add(this.label6);
- this.panel14.Location = new System.Drawing.Point(3, 3);
- this.panel14.Name = "panel14";
- this.panel14.Size = new System.Drawing.Size(279, 44);
- this.panel14.TabIndex = 1;
- //
- // textBox3
- //
- this.textBox3.Location = new System.Drawing.Point(125, 8);
- this.textBox3.Name = "textBox3";
- this.textBox3.ReadOnly = true;
- this.textBox3.Size = new System.Drawing.Size(151, 20);
- this.textBox3.TabIndex = 1;
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label6.Location = new System.Drawing.Point(3, 9);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(31, 19);
- this.label6.TabIndex = 0;
- this.label6.Text = "ID:";
- //
- // panel19
- //
- this.panel19.Controls.Add(this.btnShowTable);
- this.panel19.Controls.Add(this.btnEditTable);
- this.panel19.Controls.Add(this.btnDeleteTable);
- this.panel19.Controls.Add(this.btnAddTable);
- this.panel19.Location = new System.Drawing.Point(5, 4);
- this.panel19.Name = "panel19";
- this.panel19.Size = new System.Drawing.Size(349, 52);
- this.panel19.TabIndex = 8;
- //
- // btnShowTable
- //
- this.btnShowTable.Location = new System.Drawing.Point(246, 3);
- this.btnShowTable.Name = "btnShowTable";
- this.btnShowTable.Size = new System.Drawing.Size(75, 46);
- this.btnShowTable.TabIndex = 3;
- this.btnShowTable.Text = "Xem";
- this.btnShowTable.UseVisualStyleBackColor = true;
- //
- // btnEditTable
- //
- this.btnEditTable.Location = new System.Drawing.Point(165, 3);
- this.btnEditTable.Name = "btnEditTable";
- this.btnEditTable.Size = new System.Drawing.Size(75, 46);
- this.btnEditTable.TabIndex = 2;
- this.btnEditTable.Text = "Sửa";
- this.btnEditTable.UseVisualStyleBackColor = true;
- //
- // btnDeleteTable
- //
- this.btnDeleteTable.Location = new System.Drawing.Point(84, 3);
- this.btnDeleteTable.Name = "btnDeleteTable";
- this.btnDeleteTable.Size = new System.Drawing.Size(75, 46);
- this.btnDeleteTable.TabIndex = 1;
- this.btnDeleteTable.Text = "Xóa";
- this.btnDeleteTable.UseVisualStyleBackColor = true;
- //
- // btnAddTable
- //
- this.btnAddTable.Location = new System.Drawing.Point(3, 3);
- this.btnAddTable.Name = "btnAddTable";
- this.btnAddTable.Size = new System.Drawing.Size(75, 46);
- this.btnAddTable.TabIndex = 0;
- this.btnAddTable.Text = "Thêm";
- this.btnAddTable.UseVisualStyleBackColor = true;
- //
- // panel20
- //
- this.panel20.Controls.Add(this.dtgvTable);
- this.panel20.Location = new System.Drawing.Point(5, 62);
- this.panel20.Name = "panel20";
- this.panel20.Size = new System.Drawing.Size(349, 346);
- this.panel20.TabIndex = 7;
- //
- // dtgvTable
- //
- this.dtgvTable.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dtgvTable.Location = new System.Drawing.Point(3, 3);
- this.dtgvTable.Name = "dtgvTable";
- this.dtgvTable.Size = new System.Drawing.Size(343, 340);
- this.dtgvTable.TabIndex = 0;
- //
- // panel21
- //
- this.panel21.Controls.Add(this.cbTableStatus);
- this.panel21.Controls.Add(this.label9);
- this.panel21.Location = new System.Drawing.Point(3, 103);
- this.panel21.Name = "panel21";
- this.panel21.Size = new System.Drawing.Size(279, 44);
- this.panel21.TabIndex = 3;
- //
- // label9
- //
- this.label9.AutoSize = true;
- this.label9.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label9.Location = new System.Drawing.Point(3, 9);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(91, 19);
- this.label9.TabIndex = 0;
- this.label9.Text = "Trạng thái:";
- //
- // cbTableStatus
- //
- this.cbTableStatus.FormattingEnabled = true;
- this.cbTableStatus.Location = new System.Drawing.Point(125, 9);
- this.cbTableStatus.Name = "cbTableStatus";
- this.cbTableStatus.Size = new System.Drawing.Size(151, 21);
- this.cbTableStatus.TabIndex = 1;
- //
- // panel23
- //
- this.panel23.Controls.Add(this.btnResetPassword);
- this.panel23.Controls.Add(this.panel25);
- this.panel23.Controls.Add(this.panel26);
- this.panel23.Controls.Add(this.panel27);
- this.panel23.Location = new System.Drawing.Point(360, 62);
- this.panel23.Name = "panel23";
- this.panel23.Size = new System.Drawing.Size(285, 346);
- this.panel23.TabIndex = 6;
- //
- // panel25
- //
- this.panel25.Controls.Add(this.cbAccountType);
- this.panel25.Controls.Add(this.label11);
- this.panel25.Location = new System.Drawing.Point(3, 103);
- this.panel25.Name = "panel25";
- this.panel25.Size = new System.Drawing.Size(279, 44);
- this.panel25.TabIndex = 3;
- //
- // cbAccountType
- //
- this.cbAccountType.FormattingEnabled = true;
- this.cbAccountType.Location = new System.Drawing.Point(127, 9);
- this.cbAccountType.Name = "cbAccountType";
- this.cbAccountType.Size = new System.Drawing.Size(149, 21);
- this.cbAccountType.TabIndex = 1;
- //
- // label11
- //
- this.label11.AutoSize = true;
- this.label11.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label11.Location = new System.Drawing.Point(3, 9);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(116, 19);
- this.label11.TabIndex = 0;
- this.label11.Text = "Loại tài khoản";
- //
- // panel26
- //
- this.panel26.Controls.Add(this.txbDisplayName);
- this.panel26.Controls.Add(this.label12);
- this.panel26.Location = new System.Drawing.Point(3, 53);
- this.panel26.Name = "panel26";
- this.panel26.Size = new System.Drawing.Size(279, 44);
- this.panel26.TabIndex = 2;
- //
- // txbDisplayName
- //
- this.txbDisplayName.Location = new System.Drawing.Point(127, 8);
- this.txbDisplayName.Name = "txbDisplayName";
- this.txbDisplayName.Size = new System.Drawing.Size(149, 20);
- this.txbDisplayName.TabIndex = 1;
- //
- // label12
- //
- this.label12.AutoSize = true;
- this.label12.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label12.Location = new System.Drawing.Point(3, 9);
- this.label12.Name = "label12";
- this.label12.Size = new System.Drawing.Size(104, 19);
- this.label12.TabIndex = 0;
- this.label12.Text = "Tên hiển thị:";
- //
- // panel27
- //
- this.panel27.Controls.Add(this.txbUserName);
- this.panel27.Controls.Add(this.label13);
- this.panel27.Location = new System.Drawing.Point(3, 3);
- this.panel27.Name = "panel27";
- this.panel27.Size = new System.Drawing.Size(279, 44);
- this.panel27.TabIndex = 1;
- //
- // txbUserName
- //
- this.txbUserName.Location = new System.Drawing.Point(127, 8);
- this.txbUserName.Name = "txbUserName";
- this.txbUserName.ReadOnly = true;
- this.txbUserName.Size = new System.Drawing.Size(149, 20);
- this.txbUserName.TabIndex = 1;
- //
- // label13
- //
- this.label13.AutoSize = true;
- this.label13.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label13.Location = new System.Drawing.Point(3, 9);
- this.label13.Name = "label13";
- this.label13.Size = new System.Drawing.Size(118, 19);
- this.label13.TabIndex = 0;
- this.label13.Text = "Tên tài khoản:";
- //
- // panel28
- //
- this.panel28.Controls.Add(this.btnShowAccount);
- this.panel28.Controls.Add(this.btnEditAccount);
- this.panel28.Controls.Add(this.btnDeleteAccount);
- this.panel28.Controls.Add(this.btnAddAccount);
- this.panel28.Location = new System.Drawing.Point(5, 4);
- this.panel28.Name = "panel28";
- this.panel28.Size = new System.Drawing.Size(349, 52);
- this.panel28.TabIndex = 5;
- //
- // btnShowAccount
- //
- this.btnShowAccount.Location = new System.Drawing.Point(246, 3);
- this.btnShowAccount.Name = "btnShowAccount";
- this.btnShowAccount.Size = new System.Drawing.Size(75, 46);
- this.btnShowAccount.TabIndex = 3;
- this.btnShowAccount.Text = "Xem";
- this.btnShowAccount.UseVisualStyleBackColor = true;
- //
- // btnEditAccount
- //
- this.btnEditAccount.Location = new System.Drawing.Point(165, 3);
- this.btnEditAccount.Name = "btnEditAccount";
- this.btnEditAccount.Size = new System.Drawing.Size(75, 46);
- this.btnEditAccount.TabIndex = 2;
- this.btnEditAccount.Text = "Sửa";
- this.btnEditAccount.UseVisualStyleBackColor = true;
- //
- // btnDeleteAccount
- //
- this.btnDeleteAccount.Location = new System.Drawing.Point(84, 3);
- this.btnDeleteAccount.Name = "btnDeleteAccount";
- this.btnDeleteAccount.Size = new System.Drawing.Size(75, 46);
- this.btnDeleteAccount.TabIndex = 1;
- this.btnDeleteAccount.Text = "Xóa";
- this.btnDeleteAccount.UseVisualStyleBackColor = true;
- //
- // btnAddAccount
- //
- this.btnAddAccount.Location = new System.Drawing.Point(3, 3);
- this.btnAddAccount.Name = "btnAddAccount";
- this.btnAddAccount.Size = new System.Drawing.Size(75, 46);
- this.btnAddAccount.TabIndex = 0;
- this.btnAddAccount.Text = "Thêm";
- this.btnAddAccount.UseVisualStyleBackColor = true;
- //
- // panel29
- //
- this.panel29.Controls.Add(this.dtgvAccount);
- this.panel29.Location = new System.Drawing.Point(5, 62);
- this.panel29.Name = "panel29";
- this.panel29.Size = new System.Drawing.Size(349, 346);
- this.panel29.TabIndex = 4;
- //
- // dtgvAccount
- //
- this.dtgvAccount.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dtgvAccount.Location = new System.Drawing.Point(3, 3);
- this.dtgvAccount.Name = "dtgvAccount";
- this.dtgvAccount.Size = new System.Drawing.Size(343, 340);
- this.dtgvAccount.TabIndex = 0;
- //
- // btnResetPassword
- //
- this.btnResetPassword.Location = new System.Drawing.Point(204, 153);
- this.btnResetPassword.Name = "btnResetPassword";
- this.btnResetPassword.Size = new System.Drawing.Size(75, 46);
- this.btnResetPassword.TabIndex = 4;
- this.btnResetPassword.Text = "Đặt lại mật khẩu";
- this.btnResetPassword.UseVisualStyleBackColor = true;
- //
- // fAdmin
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(674, 463);
- this.Controls.Add(this.tcAdmin);
- this.Name = "fAdmin";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "Admin";
- this.tcAdmin.ResumeLayout(false);
- this.tpBill.ResumeLayout(false);
- this.tpFood.ResumeLayout(false);
- this.tbFoodCategory.ResumeLayout(false);
- this.tpTable.ResumeLayout(false);
- this.tpAccount.ResumeLayout(false);
- this.panel1.ResumeLayout(false);
- this.panel2.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.dtgvBill)).EndInit();
- this.panel3.ResumeLayout(false);
- this.panel4.ResumeLayout(false);
- this.panel5.ResumeLayout(false);
- this.panel6.ResumeLayout(false);
- this.panel6.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dtgvFood)).EndInit();
- this.panel7.ResumeLayout(false);
- this.panel7.PerformLayout();
- this.panel8.ResumeLayout(false);
- this.panel8.PerformLayout();
- this.panel9.ResumeLayout(false);
- this.panel9.PerformLayout();
- this.panel10.ResumeLayout(false);
- this.panel10.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.nmFoodPrice)).EndInit();
- this.panel12.ResumeLayout(false);
- this.panel15.ResumeLayout(false);
- this.panel15.PerformLayout();
- this.panel16.ResumeLayout(false);
- this.panel16.PerformLayout();
- this.panel17.ResumeLayout(false);
- this.panel18.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.dtgvCategory)).EndInit();
- this.panel11.ResumeLayout(false);
- this.panel13.ResumeLayout(false);
- this.panel13.PerformLayout();
- this.panel14.ResumeLayout(false);
- this.panel14.PerformLayout();
- this.panel19.ResumeLayout(false);
- this.panel20.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.dtgvTable)).EndInit();
- this.panel21.ResumeLayout(false);
- this.panel21.PerformLayout();
- this.panel23.ResumeLayout(false);
- this.panel25.ResumeLayout(false);
- this.panel25.PerformLayout();
- this.panel26.ResumeLayout(false);
- this.panel26.PerformLayout();
- this.panel27.ResumeLayout(false);
- this.panel27.PerformLayout();
- this.panel28.ResumeLayout(false);
- this.panel29.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.dtgvAccount)).EndInit();
- this.ResumeLayout(false);
- }
- #endregion
- private System.Windows.Forms.TabControl tcAdmin;
- private System.Windows.Forms.TabPage tpBill;
- private System.Windows.Forms.Panel panel2;
- private System.Windows.Forms.Panel panel1;
- private System.Windows.Forms.DataGridView dtgvBill;
- private System.Windows.Forms.TabPage tpFood;
- private System.Windows.Forms.TabPage tbFoodCategory;
- private System.Windows.Forms.TabPage tpTable;
- private System.Windows.Forms.TabPage tpAccount;
- private System.Windows.Forms.Button btnViewBill;
- private System.Windows.Forms.DateTimePicker dtpkToDate;
- private System.Windows.Forms.DateTimePicker dtpkFromDate;
- private System.Windows.Forms.Panel panel6;
- private System.Windows.Forms.TextBox txbSearchFoodName;
- private System.Windows.Forms.Button btnSearchFood;
- private System.Windows.Forms.Panel panel5;
- private System.Windows.Forms.Panel panel4;
- private System.Windows.Forms.Button btnShowFood;
- private System.Windows.Forms.Button btnEditFood;
- private System.Windows.Forms.Button btnDeleteFood;
- private System.Windows.Forms.Button btnAddFood;
- private System.Windows.Forms.Panel panel3;
- private System.Windows.Forms.DataGridView dtgvFood;
- private System.Windows.Forms.Panel panel8;
- private System.Windows.Forms.TextBox txbFoodName;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Panel panel7;
- private System.Windows.Forms.TextBox txbFoodID;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Panel panel10;
- private System.Windows.Forms.NumericUpDown nmFoodPrice;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.Panel panel9;
- private System.Windows.Forms.ComboBox cbFoodCategory;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Panel panel12;
- private System.Windows.Forms.Panel panel15;
- private System.Windows.Forms.TextBox textBox2;
- private System.Windows.Forms.Label label7;
- private System.Windows.Forms.Panel panel16;
- private System.Windows.Forms.TextBox txbCategoryID;
- private System.Windows.Forms.Label label8;
- private System.Windows.Forms.Panel panel17;
- private System.Windows.Forms.Button btnShowCategory;
- private System.Windows.Forms.Button btnEditCategory;
- private System.Windows.Forms.Button btnDeleteCategory;
- private System.Windows.Forms.Button btnAddCategory;
- private System.Windows.Forms.Panel panel18;
- private System.Windows.Forms.DataGridView dtgvCategory;
- private System.Windows.Forms.Panel panel11;
- private System.Windows.Forms.Panel panel21;
- private System.Windows.Forms.ComboBox cbTableStatus;
- private System.Windows.Forms.Label label9;
- private System.Windows.Forms.Panel panel13;
- private System.Windows.Forms.TextBox txbTableName;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Panel panel14;
- private System.Windows.Forms.TextBox textBox3;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.Panel panel19;
- private System.Windows.Forms.Button btnShowTable;
- private System.Windows.Forms.Button btnEditTable;
- private System.Windows.Forms.Button btnDeleteTable;
- private System.Windows.Forms.Button btnAddTable;
- private System.Windows.Forms.Panel panel20;
- private System.Windows.Forms.DataGridView dtgvTable;
- private System.Windows.Forms.Panel panel23;
- private System.Windows.Forms.Button btnResetPassword;
- private System.Windows.Forms.Panel panel25;
- private System.Windows.Forms.ComboBox cbAccountType;
- private System.Windows.Forms.Label label11;
- private System.Windows.Forms.Panel panel26;
- private System.Windows.Forms.TextBox txbDisplayName;
- private System.Windows.Forms.Label label12;
- private System.Windows.Forms.Panel panel27;
- private System.Windows.Forms.TextBox txbUserName;
- private System.Windows.Forms.Label label13;
- private System.Windows.Forms.Panel panel28;
- private System.Windows.Forms.Button btnShowAccount;
- private System.Windows.Forms.Button btnEditAccount;
- private System.Windows.Forms.Button btnDeleteAccount;
- private System.Windows.Forms.Button btnAddAccount;
- private System.Windows.Forms.Panel panel29;
- private System.Windows.Forms.DataGridView dtgvAccount;
- }
- }
- Code fAdmin.cs
- 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;
- namespace QuanLyQuanCafe
- {
- public partial class fAdmin : Form
- {
- public fAdmin()
- {
- InitializeComponent();
- }
- }
- }
- Code fAccountProfile.Designer.cs
- namespace QuanLyQuanCafe
- {
- partial class fAccountProfile
- {
- /// <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.panel2 = new System.Windows.Forms.Panel();
- this.txbUserName = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.panel1 = new System.Windows.Forms.Panel();
- this.txbDisplayName = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.panel3 = new System.Windows.Forms.Panel();
- this.txbPassWord = new System.Windows.Forms.TextBox();
- this.label3 = new System.Windows.Forms.Label();
- this.panel4 = new System.Windows.Forms.Panel();
- this.txbNewPass = new System.Windows.Forms.TextBox();
- this.label4 = new System.Windows.Forms.Label();
- this.panel5 = new System.Windows.Forms.Panel();
- this.txbReEnterPass = new System.Windows.Forms.TextBox();
- this.label5 = new System.Windows.Forms.Label();
- this.btnUpdate = new System.Windows.Forms.Button();
- this.btnExti = new System.Windows.Forms.Button();
- this.panel2.SuspendLayout();
- this.panel1.SuspendLayout();
- this.panel3.SuspendLayout();
- this.panel4.SuspendLayout();
- this.panel5.SuspendLayout();
- this.SuspendLayout();
- //
- // panel2
- //
- this.panel2.Controls.Add(this.txbUserName);
- this.panel2.Controls.Add(this.label1);
- this.panel2.Location = new System.Drawing.Point(12, 12);
- this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(394, 44);
- this.panel2.TabIndex = 1;
- //
- // txbUserName
- //
- this.txbUserName.Location = new System.Drawing.Point(139, 10);
- this.txbUserName.Name = "txbUserName";
- this.txbUserName.ReadOnly = true;
- this.txbUserName.Size = new System.Drawing.Size(252, 20);
- this.txbUserName.TabIndex = 1;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label1.Location = new System.Drawing.Point(3, 9);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(130, 19);
- this.label1.TabIndex = 0;
- this.label1.Text = "Tên đăng nhập:";
- //
- // panel1
- //
- this.panel1.Controls.Add(this.txbDisplayName);
- this.panel1.Controls.Add(this.label2);
- this.panel1.Location = new System.Drawing.Point(12, 62);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(394, 44);
- this.panel1.TabIndex = 2;
- //
- // txbDisplayName
- //
- this.txbDisplayName.Location = new System.Drawing.Point(139, 10);
- this.txbDisplayName.Name = "txbDisplayName";
- this.txbDisplayName.Size = new System.Drawing.Size(252, 20);
- this.txbDisplayName.TabIndex = 1;
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label2.Location = new System.Drawing.Point(3, 9);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(104, 19);
- this.label2.TabIndex = 0;
- this.label2.Text = "Tên hiển thị:";
- //
- // panel3
- //
- this.panel3.Controls.Add(this.txbPassWord);
- this.panel3.Controls.Add(this.label3);
- this.panel3.Location = new System.Drawing.Point(12, 112);
- this.panel3.Name = "panel3";
- this.panel3.Size = new System.Drawing.Size(394, 44);
- this.panel3.TabIndex = 3;
- //
- // txbPassWord
- //
- this.txbPassWord.Location = new System.Drawing.Point(139, 10);
- this.txbPassWord.Name = "txbPassWord";
- this.txbPassWord.Size = new System.Drawing.Size(252, 20);
- this.txbPassWord.TabIndex = 1;
- this.txbPassWord.UseSystemPasswordChar = true;
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label3.Location = new System.Drawing.Point(3, 9);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(84, 19);
- this.label3.TabIndex = 0;
- this.label3.Text = "Mật khẩu:";
- //
- // panel4
- //
- this.panel4.Controls.Add(this.txbNewPass);
- this.panel4.Controls.Add(this.label4);
- this.panel4.Location = new System.Drawing.Point(12, 162);
- this.panel4.Name = "panel4";
- this.panel4.Size = new System.Drawing.Size(394, 44);
- this.panel4.TabIndex = 4;
- //
- // txbNewPass
- //
- this.txbNewPass.Location = new System.Drawing.Point(139, 10);
- this.txbNewPass.Name = "txbNewPass";
- this.txbNewPass.Size = new System.Drawing.Size(252, 20);
- this.txbNewPass.TabIndex = 1;
- this.txbNewPass.UseSystemPasswordChar = true;
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label4.Location = new System.Drawing.Point(3, 9);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(117, 19);
- this.label4.TabIndex = 0;
- this.label4.Text = "Mật khẩu mới:";
- //
- // panel5
- //
- this.panel5.Controls.Add(this.txbReEnterPass);
- this.panel5.Controls.Add(this.label5);
- this.panel5.Location = new System.Drawing.Point(12, 212);
- this.panel5.Name = "panel5";
- this.panel5.Size = new System.Drawing.Size(394, 44);
- this.panel5.TabIndex = 5;
- //
- // txbReEnterPass
- //
- this.txbReEnterPass.Location = new System.Drawing.Point(139, 10);
- this.txbReEnterPass.Name = "txbReEnterPass";
- this.txbReEnterPass.Size = new System.Drawing.Size(252, 20);
- this.txbReEnterPass.TabIndex = 1;
- this.txbReEnterPass.UseSystemPasswordChar = true;
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
- this.label5.Location = new System.Drawing.Point(3, 9);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(77, 19);
- this.label5.TabIndex = 0;
- this.label5.Text = "Nhập lại:";
- //
- // btnUpdate
- //
- this.btnUpdate.Location = new System.Drawing.Point(247, 262);
- this.btnUpdate.Name = "btnUpdate";
- this.btnUpdate.Size = new System.Drawing.Size(75, 23);
- this.btnUpdate.TabIndex = 6;
- this.btnUpdate.Text = "Cập nhật";
- this.btnUpdate.UseVisualStyleBackColor = true;
- //
- // btnExti
- //
- this.btnExti.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- this.btnExti.Location = new System.Drawing.Point(328, 262);
- this.btnExti.Name = "btnExti";
- this.btnExti.Size = new System.Drawing.Size(75, 23);
- this.btnExti.TabIndex = 7;
- this.btnExti.Text = "Thoát";
- this.btnExti.UseVisualStyleBackColor = true;
- this.btnExti.Click += new System.EventHandler(this.btnExti_Click);
- //
- // fAccountProfile
- //
- this.AcceptButton = this.btnUpdate;
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.CancelButton = this.btnExti;
- this.ClientSize = new System.Drawing.Size(423, 296);
- this.Controls.Add(this.btnExti);
- this.Controls.Add(this.btnUpdate);
- this.Controls.Add(this.panel5);
- this.Controls.Add(this.panel4);
- this.Controls.Add(this.panel3);
- this.Controls.Add(this.panel1);
- this.Controls.Add(this.panel2);
- this.Name = "fAccountProfile";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "Thông tin cá nhân";
- this.panel2.ResumeLayout(false);
- this.panel2.PerformLayout();
- this.panel1.ResumeLayout(false);
- this.panel1.PerformLayout();
- this.panel3.ResumeLayout(false);
- this.panel3.PerformLayout();
- this.panel4.ResumeLayout(false);
- this.panel4.PerformLayout();
- this.panel5.ResumeLayout(false);
- this.panel5.PerformLayout();
- this.ResumeLayout(false);
- }
- #endregion
- private System.Windows.Forms.Panel panel2;
- private System.Windows.Forms.TextBox txbUserName;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Panel panel1;
- private System.Windows.Forms.TextBox txbDisplayName;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Panel panel3;
- private System.Windows.Forms.TextBox txbPassWord;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Panel panel4;
- private System.Windows.Forms.TextBox txbNewPass;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.Panel panel5;
- private System.Windows.Forms.TextBox txbReEnterPass;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Button btnUpdate;
- private System.Windows.Forms.Button btnExti;
- }
- }
- Code fAccountProfile.cs
- 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;
- namespace QuanLyQuanCafe
- {
- public partial class fAccountProfile : Form
- {
- public fAccountProfile()
- {
- InitializeComponent();
- }
- private void btnExti_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement