Advertisement
Jokingggg

Untitled

Nov 28th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 87.47 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using System.Windows.Forms;
  6.  
  7. namespace QuanLyQuanCafe
  8. {
  9. static class Program
  10. {
  11. /// <summary>
  12. /// The main entry point for the application.
  13. /// </summary>
  14. [STAThread]
  15. static void Main()
  16. {
  17. Application.EnableVisualStyles();
  18. Application.SetCompatibleTextRenderingDefault(false);
  19. Application.Run(new fLogin());
  20. }
  21. }
  22. }
  23.  
  24. Code fTableManager.Designer.cs
  25.  
  26. namespace QuanLyQuanCafe
  27. {
  28. partial class fTableManager
  29. {
  30. /// <summary>
  31. /// Required designer variable.
  32. /// </summary>
  33. private System.ComponentModel.IContainer components = null;
  34.  
  35. /// <summary>
  36. /// Clean up any resources being used.
  37. /// </summary>
  38. /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
  39. protected override void Dispose(bool disposing)
  40. {
  41. if (disposing && (components != null))
  42. {
  43. components.Dispose();
  44. }
  45. base.Dispose(disposing);
  46. }
  47.  
  48. #region Windows Form Designer generated code
  49.  
  50. /// <summary>
  51. /// Required method for Designer support - do not modify
  52. /// the contents of this method with the code editor.
  53. /// </summary>
  54. private void InitializeComponent()
  55. {
  56. this.menuStrip1 = new System.Windows.Forms.MenuStrip();
  57. this.adminToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  58. this.thôngTinTàiKhoảnToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  59. this.thôngTinCáNhânToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  60. this.đăngXuấtToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  61. this.panel2 = new System.Windows.Forms.Panel();
  62. this.panel3 = new System.Windows.Forms.Panel();
  63. this.lsvBill = new System.Windows.Forms.ListView();
  64. this.panel4 = new System.Windows.Forms.Panel();
  65. this.cbCategory = new System.Windows.Forms.ComboBox();
  66. this.cbFood = new System.Windows.Forms.ComboBox();
  67. this.btnAddFood = new System.Windows.Forms.Button();
  68. this.nmFoodCount = new System.Windows.Forms.NumericUpDown();
  69. this.flpTable = new System.Windows.Forms.FlowLayoutPanel();
  70. this.btnCheckOut = new System.Windows.Forms.Button();
  71. this.btnDiscount = new System.Windows.Forms.Button();
  72. this.nmDisCount = new System.Windows.Forms.NumericUpDown();
  73. this.btnSwitchTable = new System.Windows.Forms.Button();
  74. this.cbSwitchTable = new System.Windows.Forms.ComboBox();
  75. this.menuStrip1.SuspendLayout();
  76. this.panel2.SuspendLayout();
  77. this.panel3.SuspendLayout();
  78. this.panel4.SuspendLayout();
  79. ((System.ComponentModel.ISupportInitialize)(this.nmFoodCount)).BeginInit();
  80. ((System.ComponentModel.ISupportInitialize)(this.nmDisCount)).BeginInit();
  81. this.SuspendLayout();
  82. //
  83. // menuStrip1
  84. //
  85. this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
  86. this.adminToolStripMenuItem,
  87. this.thôngTinTàiKhoảnToolStripMenuItem});
  88. this.menuStrip1.Location = new System.Drawing.Point(0, 0);
  89. this.menuStrip1.Name = "menuStrip1";
  90. this.menuStrip1.Size = new System.Drawing.Size(797, 24);
  91. this.menuStrip1.TabIndex = 1;
  92. this.menuStrip1.Text = "menuStrip1";
  93. //
  94. // adminToolStripMenuItem
  95. //
  96. this.adminToolStripMenuItem.Name = "adminToolStripMenuItem";
  97. this.adminToolStripMenuItem.Size = new System.Drawing.Size(55, 20);
  98. this.adminToolStripMenuItem.Text = "Admin";
  99. this.adminToolStripMenuItem.Click += new System.EventHandler(this.adminToolStripMenuItem_Click);
  100. //
  101. // thôngTinTàiKhoảnToolStripMenuItem
  102. //
  103. this.thôngTinTàiKhoảnToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
  104. this.thôngTinCáNhânToolStripMenuItem,
  105. this.đăngXuấtToolStripMenuItem});
  106. this.thôngTinTàiKhoảnToolStripMenuItem.Name = "thôngTinTàiKhoảnToolStripMenuItem";
  107. this.thôngTinTàiKhoảnToolStripMenuItem.Size = new System.Drawing.Size(123, 20);
  108. this.thôngTinTàiKhoảnToolStripMenuItem.Text = "Thông tin tài khoản";
  109. //
  110. // thôngTinCáNhânToolStripMenuItem
  111. //
  112. this.thôngTinCáNhânToolStripMenuItem.Name = "thôngTinCáNhânToolStripMenuItem";
  113. this.thôngTinCáNhânToolStripMenuItem.Size = new System.Drawing.Size(171, 22);
  114. this.thôngTinCáNhânToolStripMenuItem.Text = "Thông tin cá nhân";
  115. this.thôngTinCáNhânToolStripMenuItem.Click += new System.EventHandler(this.thôngTinCáNhânToolStripMenuItem_Click);
  116. //
  117. // đăngXuấtToolStripMenuItem
  118. //
  119. this.đăngXuấtToolStripMenuItem.Name = "đăngXuấtToolStripMenuItem";
  120. this.đăngXuấtToolStripMenuItem.Size = new System.Drawing.Size(171, 22);
  121. this.đăngXuấtToolStripMenuItem.Text = "Đăng xuất";
  122. this.đăngXuấtToolStripMenuItem.Click += new System.EventHandler(this.đăngXuấtToolStripMenuItem_Click);
  123. //
  124. // panel2
  125. //
  126. this.panel2.Controls.Add(this.lsvBill);
  127. this.panel2.Location = new System.Drawing.Point(447, 85);
  128. this.panel2.Name = "panel2";
  129. this.panel2.Size = new System.Drawing.Size(338, 315);
  130. this.panel2.TabIndex = 2;
  131. //
  132. // panel3
  133. //
  134. this.panel3.Controls.Add(this.cbSwitchTable);
  135. this.panel3.Controls.Add(this.btnSwitchTable);
  136. this.panel3.Controls.Add(this.nmDisCount);
  137. this.panel3.Controls.Add(this.btnDiscount);
  138. this.panel3.Controls.Add(this.btnCheckOut);
  139. this.panel3.Location = new System.Drawing.Point(447, 406);
  140. this.panel3.Name = "panel3";
  141. this.panel3.Size = new System.Drawing.Size(338, 52);
  142. this.panel3.TabIndex = 3;
  143. //
  144. // lsvBill
  145. //
  146. this.lsvBill.Location = new System.Drawing.Point(3, 3);
  147. this.lsvBill.Name = "lsvBill";
  148. this.lsvBill.Size = new System.Drawing.Size(332, 309);
  149. this.lsvBill.TabIndex = 0;
  150. this.lsvBill.UseCompatibleStateImageBehavior = false;
  151. //
  152. // panel4
  153. //
  154. this.panel4.Controls.Add(this.nmFoodCount);
  155. this.panel4.Controls.Add(this.btnAddFood);
  156. this.panel4.Controls.Add(this.cbFood);
  157. this.panel4.Controls.Add(this.cbCategory);
  158. this.panel4.Location = new System.Drawing.Point(447, 27);
  159. this.panel4.Name = "panel4";
  160. this.panel4.Size = new System.Drawing.Size(338, 52);
  161. this.panel4.TabIndex = 4;
  162. //
  163. // cbCategory
  164. //
  165. this.cbCategory.FormattingEnabled = true;
  166. this.cbCategory.Location = new System.Drawing.Point(3, 3);
  167. this.cbCategory.Name = "cbCategory";
  168. this.cbCategory.Size = new System.Drawing.Size(205, 21);
  169. this.cbCategory.TabIndex = 0;
  170. //
  171. // cbFood
  172. //
  173. this.cbFood.FormattingEnabled = true;
  174. this.cbFood.Location = new System.Drawing.Point(3, 28);
  175. this.cbFood.Name = "cbFood";
  176. this.cbFood.Size = new System.Drawing.Size(205, 21);
  177. this.cbFood.TabIndex = 1;
  178. //
  179. // btnAddFood
  180. //
  181. this.btnAddFood.Location = new System.Drawing.Point(214, 3);
  182. this.btnAddFood.Name = "btnAddFood";
  183. this.btnAddFood.Size = new System.Drawing.Size(75, 46);
  184. this.btnAddFood.TabIndex = 2;
  185. this.btnAddFood.Text = "Thêm món";
  186. this.btnAddFood.UseVisualStyleBackColor = true;
  187. //
  188. // nmFoodCount
  189. //
  190. this.nmFoodCount.Location = new System.Drawing.Point(296, 19);
  191. this.nmFoodCount.Minimum = new decimal(new int[] {
  192. 100,
  193. 0,
  194. 0,
  195. -2147483648});
  196. this.nmFoodCount.Name = "nmFoodCount";
  197. this.nmFoodCount.Size = new System.Drawing.Size(39, 20);
  198. this.nmFoodCount.TabIndex = 3;
  199. this.nmFoodCount.Value = new decimal(new int[] {
  200. 1,
  201. 0,
  202. 0,
  203. 0});
  204. //
  205. // flpTable
  206. //
  207. this.flpTable.Location = new System.Drawing.Point(12, 30);
  208. this.flpTable.Name = "flpTable";
  209. this.flpTable.Size = new System.Drawing.Size(429, 428);
  210. this.flpTable.TabIndex = 5;
  211. //
  212. // btnCheckOut
  213. //
  214. this.btnCheckOut.Location = new System.Drawing.Point(260, 3);
  215. this.btnCheckOut.Name = "btnCheckOut";
  216. this.btnCheckOut.Size = new System.Drawing.Size(75, 46);
  217. this.btnCheckOut.TabIndex = 3;
  218. this.btnCheckOut.Text = "Thanh toán";
  219. this.btnCheckOut.UseVisualStyleBackColor = true;
  220. //
  221. // btnDiscount
  222. //
  223. this.btnDiscount.Location = new System.Drawing.Point(133, 3);
  224. this.btnDiscount.Name = "btnDiscount";
  225. this.btnDiscount.Size = new System.Drawing.Size(75, 26);
  226. this.btnDiscount.TabIndex = 4;
  227. this.btnDiscount.Text = "Giảm giá";
  228. this.btnDiscount.UseVisualStyleBackColor = true;
  229. //
  230. // nmDisCount
  231. //
  232. this.nmDisCount.Location = new System.Drawing.Point(133, 29);
  233. this.nmDisCount.Name = "nmDisCount";
  234. this.nmDisCount.Size = new System.Drawing.Size(74, 20);
  235. this.nmDisCount.TabIndex = 4;
  236. this.nmDisCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
  237. //
  238. // btnSwitchTable
  239. //
  240. this.btnSwitchTable.Location = new System.Drawing.Point(3, 3);
  241. this.btnSwitchTable.Name = "btnSwitchTable";
  242. this.btnSwitchTable.Size = new System.Drawing.Size(75, 26);
  243. this.btnSwitchTable.TabIndex = 5;
  244. this.btnSwitchTable.Text = "Chuyển bàn";
  245. this.btnSwitchTable.UseVisualStyleBackColor = true;
  246. //
  247. // cbSwitchTable
  248. //
  249. this.cbSwitchTable.FormattingEnabled = true;
  250. this.cbSwitchTable.Location = new System.Drawing.Point(3, 28);
  251. this.cbSwitchTable.Name = "cbSwitchTable";
  252. this.cbSwitchTable.Size = new System.Drawing.Size(75, 21);
  253. this.cbSwitchTable.TabIndex = 6;
  254. //
  255. // fTableManager
  256. //
  257. this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
  258. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  259. this.ClientSize = new System.Drawing.Size(797, 470);
  260. this.Controls.Add(this.flpTable);
  261. this.Controls.Add(this.panel4);
  262. this.Controls.Add(this.panel3);
  263. this.Controls.Add(this.panel2);
  264. this.Controls.Add(this.menuStrip1);
  265. this.MainMenuStrip = this.menuStrip1;
  266. this.Name = "fTableManager";
  267. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  268. this.Text = "Phần mềm quản lý quán cafe";
  269. this.menuStrip1.ResumeLayout(false);
  270. this.menuStrip1.PerformLayout();
  271. this.panel2.ResumeLayout(false);
  272. this.panel3.ResumeLayout(false);
  273. this.panel4.ResumeLayout(false);
  274. ((System.ComponentModel.ISupportInitialize)(this.nmFoodCount)).EndInit();
  275. ((System.ComponentModel.ISupportInitialize)(this.nmDisCount)).EndInit();
  276. this.ResumeLayout(false);
  277. this.PerformLayout();
  278.  
  279. }
  280.  
  281. #endregion
  282.  
  283. private System.Windows.Forms.MenuStrip menuStrip1;
  284. private System.Windows.Forms.ToolStripMenuItem adminToolStripMenuItem;
  285. private System.Windows.Forms.ToolStripMenuItem thôngTinTàiKhoảnToolStripMenuItem;
  286. private System.Windows.Forms.ToolStripMenuItem thôngTinCáNhânToolStripMenuItem;
  287. private System.Windows.Forms.ToolStripMenuItem đăngXuấtToolStripMenuItem;
  288. private System.Windows.Forms.Panel panel2;
  289. private System.Windows.Forms.ListView lsvBill;
  290. private System.Windows.Forms.Panel panel3;
  291. private System.Windows.Forms.Panel panel4;
  292. private System.Windows.Forms.NumericUpDown nmFoodCount;
  293. private System.Windows.Forms.Button btnAddFood;
  294. private System.Windows.Forms.ComboBox cbFood;
  295. private System.Windows.Forms.ComboBox cbCategory;
  296. private System.Windows.Forms.ComboBox cbSwitchTable;
  297. private System.Windows.Forms.Button btnSwitchTable;
  298. private System.Windows.Forms.NumericUpDown nmDisCount;
  299. private System.Windows.Forms.Button btnDiscount;
  300. private System.Windows.Forms.Button btnCheckOut;
  301. private System.Windows.Forms.FlowLayoutPanel flpTable;
  302. }
  303. }
  304.  
  305. Code fTableManager.cs
  306.  
  307. using System;
  308. using System.Collections.Generic;
  309. using System.ComponentModel;
  310. using System.Data;
  311. using System.Drawing;
  312. using System.Linq;
  313. using System.Text;
  314. using System.Threading.Tasks;
  315. using System.Windows.Forms;
  316.  
  317. namespace QuanLyQuanCafe
  318. {
  319. public partial class fTableManager : Form
  320. {
  321. public fTableManager()
  322. {
  323. InitializeComponent();
  324. }
  325.  
  326. private void đăngXuấtToolStripMenuItem_Click(object sender, EventArgs e)
  327. {
  328. this.Close();
  329. }
  330.  
  331. private void thôngTinCáNhânToolStripMenuItem_Click(object sender, EventArgs e)
  332. {
  333. fAccountProfile f = new fAccountProfile();
  334. f.ShowDialog();
  335. }
  336.  
  337. private void adminToolStripMenuItem_Click(object sender, EventArgs e)
  338. {
  339. fAdmin f = new fAdmin();
  340. f.ShowDialog();
  341. }
  342. }
  343. }
  344.  
  345. Code fLogin.Design.cs
  346.  
  347. namespace QuanLyQuanCafe
  348. {
  349. partial class fLogin
  350. {
  351. /// <summary>
  352. /// Required designer variable.
  353. /// </summary>
  354. private System.ComponentModel.IContainer components = null;
  355.  
  356. /// <summary>
  357. /// Clean up any resources being used.
  358. /// </summary>
  359. /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
  360. protected override void Dispose(bool disposing)
  361. {
  362. if (disposing && (components != null))
  363. {
  364. components.Dispose();
  365. }
  366. base.Dispose(disposing);
  367. }
  368.  
  369. #region Windows Form Designer generated code
  370.  
  371. /// <summary>
  372. /// Required method for Designer support - do not modify
  373. /// the contents of this method with the code editor.
  374. /// </summary>
  375. private void InitializeComponent()
  376. {
  377. this.panel1 = new System.Windows.Forms.Panel();
  378. this.panel2 = new System.Windows.Forms.Panel();
  379. this.label1 = new System.Windows.Forms.Label();
  380. this.txbUserName = new System.Windows.Forms.TextBox();
  381. this.panel3 = new System.Windows.Forms.Panel();
  382. this.txbPassWord = new System.Windows.Forms.TextBox();
  383. this.label2 = new System.Windows.Forms.Label();
  384. this.btnLogin = new System.Windows.Forms.Button();
  385. this.btnExit = new System.Windows.Forms.Button();
  386. this.panel1.SuspendLayout();
  387. this.panel2.SuspendLayout();
  388. this.panel3.SuspendLayout();
  389. this.SuspendLayout();
  390. //
  391. // panel1
  392. //
  393. this.panel1.Controls.Add(this.btnExit);
  394. this.panel1.Controls.Add(this.btnLogin);
  395. this.panel1.Controls.Add(this.panel3);
  396. this.panel1.Controls.Add(this.panel2);
  397. this.panel1.Location = new System.Drawing.Point(12, 12);
  398. this.panel1.Name = "panel1";
  399. this.panel1.Size = new System.Drawing.Size(400, 136);
  400. this.panel1.TabIndex = 0;
  401. //
  402. // panel2
  403. //
  404. this.panel2.Controls.Add(this.txbUserName);
  405. this.panel2.Controls.Add(this.label1);
  406. this.panel2.Location = new System.Drawing.Point(3, 3);
  407. this.panel2.Name = "panel2";
  408. this.panel2.Size = new System.Drawing.Size(394, 44);
  409. this.panel2.TabIndex = 0;
  410. //
  411. // label1
  412. //
  413. this.label1.AutoSize = true;
  414. this.label1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  415. this.label1.Location = new System.Drawing.Point(3, 9);
  416. this.label1.Name = "label1";
  417. this.label1.Size = new System.Drawing.Size(130, 19);
  418. this.label1.TabIndex = 0;
  419. this.label1.Text = "Tên đăng nhập:";
  420. //
  421. // txbUserName
  422. //
  423. this.txbUserName.Location = new System.Drawing.Point(139, 10);
  424. this.txbUserName.Name = "txbUserName";
  425. this.txbUserName.Size = new System.Drawing.Size(252, 20);
  426. this.txbUserName.TabIndex = 1;
  427. //
  428. // panel3
  429. //
  430. this.panel3.Controls.Add(this.txbPassWord);
  431. this.panel3.Controls.Add(this.label2);
  432. this.panel3.Location = new System.Drawing.Point(3, 53);
  433. this.panel3.Name = "panel3";
  434. this.panel3.Size = new System.Drawing.Size(394, 44);
  435. this.panel3.TabIndex = 1;
  436. //
  437. // txbPassWord
  438. //
  439. this.txbPassWord.Location = new System.Drawing.Point(139, 10);
  440. this.txbPassWord.Name = "txbPassWord";
  441. this.txbPassWord.Size = new System.Drawing.Size(252, 20);
  442. this.txbPassWord.TabIndex = 1;
  443. this.txbPassWord.UseSystemPasswordChar = true;
  444. //
  445. // label2
  446. //
  447. this.label2.AutoSize = true;
  448. this.label2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  449. this.label2.Location = new System.Drawing.Point(3, 9);
  450. this.label2.Name = "label2";
  451. this.label2.Size = new System.Drawing.Size(84, 19);
  452. this.label2.TabIndex = 0;
  453. this.label2.Text = "Mật khẩu:";
  454. //
  455. // btnLogin
  456. //
  457. this.btnLogin.Location = new System.Drawing.Point(238, 103);
  458. this.btnLogin.Name = "btnLogin";
  459. this.btnLogin.Size = new System.Drawing.Size(75, 23);
  460. this.btnLogin.TabIndex = 2;
  461. this.btnLogin.Text = "Đăng nhập";
  462. this.btnLogin.UseVisualStyleBackColor = true;
  463. this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);
  464. //
  465. // btnExit
  466. //
  467. this.btnExit.Location = new System.Drawing.Point(319, 103);
  468. this.btnExit.Name = "btnExit";
  469. this.btnExit.Size = new System.Drawing.Size(75, 23);
  470. this.btnExit.TabIndex = 3;
  471. this.btnExit.Text = "Thoát";
  472. this.btnExit.UseVisualStyleBackColor = true;
  473. this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
  474. //
  475. // fLogin
  476. //
  477. this.AcceptButton = this.btnLogin;
  478. this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
  479. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  480. this.CancelButton = this.btnExit;
  481. this.ClientSize = new System.Drawing.Size(424, 157);
  482. this.Controls.Add(this.panel1);
  483. this.Name = "fLogin";
  484. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  485. this.Text = "Đăng nhập";
  486. this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.fLogin_FormClosing);
  487. this.panel1.ResumeLayout(false);
  488. this.panel2.ResumeLayout(false);
  489. this.panel2.PerformLayout();
  490. this.panel3.ResumeLayout(false);
  491. this.panel3.PerformLayout();
  492. this.ResumeLayout(false);
  493.  
  494. }
  495.  
  496. #endregion
  497.  
  498. private System.Windows.Forms.Panel panel1;
  499. private System.Windows.Forms.Panel panel3;
  500. private System.Windows.Forms.TextBox txbPassWord;
  501. private System.Windows.Forms.Label label2;
  502. private System.Windows.Forms.Panel panel2;
  503. private System.Windows.Forms.TextBox txbUserName;
  504. private System.Windows.Forms.Label label1;
  505. private System.Windows.Forms.Button btnExit;
  506. private System.Windows.Forms.Button btnLogin;
  507. }
  508. }
  509.  
  510. 0
  511. 1
  512. 2
  513. 3
  514. 4
  515. 5
  516. 6
  517. 7
  518. 8
  519. 9
  520. 10
  521. 11
  522. 12
  523. 13
  524. 14
  525. 15
  526. 16
  527. 17
  528. 18
  529. 19
  530. 20
  531. 21
  532. 22
  533. 23
  534. 24
  535. 25
  536. 26
  537. 27
  538. 28
  539. 29
  540. 30
  541. 31
  542. 32
  543. 33
  544. 34
  545. 35
  546. 36
  547. 37
  548. 38
  549. 39
  550. 40
  551. 41
  552. 42
  553. 43
  554. 44
  555. 45
  556. 46
  557. 47
  558. 48
  559. 49
  560. 50
  561. 51
  562. 52
  563. 53
  564. 54
  565. 55
  566. 56
  567. 57
  568. 58
  569. 59
  570. 60
  571. 61
  572. 62
  573. 63
  574. 64
  575. 65
  576. 66
  577. 67
  578. 68
  579. 69
  580. 70
  581. 71
  582. 72
  583. 73
  584. 74
  585. 75
  586. 76
  587. 77
  588. 78
  589. 79
  590. 80
  591. 81
  592. 82
  593. 83
  594. 84
  595. 85
  596. 86
  597. 87
  598. 88
  599. 89
  600. 90
  601. 91
  602. 92
  603. 93
  604. 94
  605. 95
  606. 96
  607. 97
  608. 98
  609. 99
  610. 100
  611. 101
  612. 102
  613. 103
  614. 104
  615. 105
  616. 106
  617. 107
  618. 108
  619. 109
  620. 110
  621. 111
  622. 112
  623. 113
  624. 114
  625. 115
  626. 116
  627. 117
  628. 118
  629. 119
  630. 120
  631. 121
  632. 122
  633. 123
  634. 124
  635. 125
  636. 126
  637. 127
  638. 128
  639. 129
  640. 130
  641. 131
  642. 132
  643. 133
  644. 134
  645. 135
  646. 136
  647. 137
  648. 138
  649. 139
  650. 140
  651. 141
  652. 142
  653. 143
  654. 144
  655. 145
  656. 146
  657. 147
  658. 148
  659. 149
  660. 150
  661. 151
  662. 152
  663. 153
  664. 154
  665. 155
  666. 156
  667. 157
  668. 158
  669. 159
  670. 160
  671. 161
  672. 162
  673. 163
  674. Code fLogin.cs
  675.  
  676. using System;
  677. using System.Collections.Generic;
  678. using System.ComponentModel;
  679. using System.Data;
  680. using System.Drawing;
  681. using System.Linq;
  682. using System.Text;
  683. using System.Threading.Tasks;
  684. using System.Windows.Forms;
  685.  
  686. namespace QuanLyQuanCafe
  687. {
  688. public partial class fLogin : Form
  689. {
  690. public fLogin()
  691. {
  692. InitializeComponent();
  693. }
  694.  
  695. private void btnLogin_Click(object sender, EventArgs e)
  696. {
  697. fTableManager f = new fTableManager();
  698. this.Hide();
  699. f.ShowDialog();
  700. this.Show();
  701. }
  702.  
  703. private void btnExit_Click(object sender, EventArgs e)
  704. {
  705. Application.Exit();
  706. }
  707.  
  708. private void fLogin_FormClosing(object sender, FormClosingEventArgs e)
  709. {
  710. 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)
  711. {
  712. e.Cancel = true;
  713. }
  714. }
  715. }
  716. }
  717.  
  718. Code fAdmin.Designer.cs
  719.  
  720. namespace QuanLyQuanCafe
  721. {
  722. partial class fAdmin
  723. {
  724. /// <summary>
  725. /// Required designer variable.
  726. /// </summary>
  727. private System.ComponentModel.IContainer components = null;
  728.  
  729. /// <summary>
  730. /// Clean up any resources being used.
  731. /// </summary>
  732. /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
  733. protected override void Dispose(bool disposing)
  734. {
  735. if (disposing && (components != null))
  736. {
  737. components.Dispose();
  738. }
  739. base.Dispose(disposing);
  740. }
  741.  
  742. #region Windows Form Designer generated code
  743.  
  744. /// <summary>
  745. /// Required method for Designer support - do not modify
  746. /// the contents of this method with the code editor.
  747. /// </summary>
  748. private void InitializeComponent()
  749. {
  750. this.tcAdmin = new System.Windows.Forms.TabControl();
  751. this.tpBill = new System.Windows.Forms.TabPage();
  752. this.tpFood = new System.Windows.Forms.TabPage();
  753. this.tbFoodCategory = new System.Windows.Forms.TabPage();
  754. this.tpTable = new System.Windows.Forms.TabPage();
  755. this.tpAccount = new System.Windows.Forms.TabPage();
  756. this.panel1 = new System.Windows.Forms.Panel();
  757. this.panel2 = new System.Windows.Forms.Panel();
  758. this.dtgvBill = new System.Windows.Forms.DataGridView();
  759. this.dtpkFromDate = new System.Windows.Forms.DateTimePicker();
  760. this.dtpkToDate = new System.Windows.Forms.DateTimePicker();
  761. this.btnViewBill = new System.Windows.Forms.Button();
  762. this.panel3 = new System.Windows.Forms.Panel();
  763. this.panel4 = new System.Windows.Forms.Panel();
  764. this.panel5 = new System.Windows.Forms.Panel();
  765. this.panel6 = new System.Windows.Forms.Panel();
  766. this.dtgvFood = new System.Windows.Forms.DataGridView();
  767. this.btnAddFood = new System.Windows.Forms.Button();
  768. this.btnDeleteFood = new System.Windows.Forms.Button();
  769. this.btnEditFood = new System.Windows.Forms.Button();
  770. this.btnShowFood = new System.Windows.Forms.Button();
  771. this.btnSearchFood = new System.Windows.Forms.Button();
  772. this.txbSearchFoodName = new System.Windows.Forms.TextBox();
  773. this.panel7 = new System.Windows.Forms.Panel();
  774. this.txbFoodID = new System.Windows.Forms.TextBox();
  775. this.label1 = new System.Windows.Forms.Label();
  776. this.panel8 = new System.Windows.Forms.Panel();
  777. this.txbFoodName = new System.Windows.Forms.TextBox();
  778. this.label2 = new System.Windows.Forms.Label();
  779. this.panel9 = new System.Windows.Forms.Panel();
  780. this.label3 = new System.Windows.Forms.Label();
  781. this.cbFoodCategory = new System.Windows.Forms.ComboBox();
  782. this.panel10 = new System.Windows.Forms.Panel();
  783. this.label4 = new System.Windows.Forms.Label();
  784. this.nmFoodPrice = new System.Windows.Forms.NumericUpDown();
  785. this.panel12 = new System.Windows.Forms.Panel();
  786. this.panel15 = new System.Windows.Forms.Panel();
  787. this.textBox2 = new System.Windows.Forms.TextBox();
  788. this.label7 = new System.Windows.Forms.Label();
  789. this.panel16 = new System.Windows.Forms.Panel();
  790. this.txbCategoryID = new System.Windows.Forms.TextBox();
  791. this.label8 = new System.Windows.Forms.Label();
  792. this.panel17 = new System.Windows.Forms.Panel();
  793. this.btnShowCategory = new System.Windows.Forms.Button();
  794. this.btnEditCategory = new System.Windows.Forms.Button();
  795. this.btnDeleteCategory = new System.Windows.Forms.Button();
  796. this.btnAddCategory = new System.Windows.Forms.Button();
  797. this.panel18 = new System.Windows.Forms.Panel();
  798. this.dtgvCategory = new System.Windows.Forms.DataGridView();
  799. this.panel11 = new System.Windows.Forms.Panel();
  800. this.panel13 = new System.Windows.Forms.Panel();
  801. this.txbTableName = new System.Windows.Forms.TextBox();
  802. this.label5 = new System.Windows.Forms.Label();
  803. this.panel14 = new System.Windows.Forms.Panel();
  804. this.textBox3 = new System.Windows.Forms.TextBox();
  805. this.label6 = new System.Windows.Forms.Label();
  806. this.panel19 = new System.Windows.Forms.Panel();
  807. this.btnShowTable = new System.Windows.Forms.Button();
  808. this.btnEditTable = new System.Windows.Forms.Button();
  809. this.btnDeleteTable = new System.Windows.Forms.Button();
  810. this.btnAddTable = new System.Windows.Forms.Button();
  811. this.panel20 = new System.Windows.Forms.Panel();
  812. this.dtgvTable = new System.Windows.Forms.DataGridView();
  813. this.panel21 = new System.Windows.Forms.Panel();
  814. this.label9 = new System.Windows.Forms.Label();
  815. this.cbTableStatus = new System.Windows.Forms.ComboBox();
  816. this.panel23 = new System.Windows.Forms.Panel();
  817. this.panel25 = new System.Windows.Forms.Panel();
  818. this.cbAccountType = new System.Windows.Forms.ComboBox();
  819. this.label11 = new System.Windows.Forms.Label();
  820. this.panel26 = new System.Windows.Forms.Panel();
  821. this.txbDisplayName = new System.Windows.Forms.TextBox();
  822. this.label12 = new System.Windows.Forms.Label();
  823. this.panel27 = new System.Windows.Forms.Panel();
  824. this.txbUserName = new System.Windows.Forms.TextBox();
  825. this.label13 = new System.Windows.Forms.Label();
  826. this.panel28 = new System.Windows.Forms.Panel();
  827. this.btnShowAccount = new System.Windows.Forms.Button();
  828. this.btnEditAccount = new System.Windows.Forms.Button();
  829. this.btnDeleteAccount = new System.Windows.Forms.Button();
  830. this.btnAddAccount = new System.Windows.Forms.Button();
  831. this.panel29 = new System.Windows.Forms.Panel();
  832. this.dtgvAccount = new System.Windows.Forms.DataGridView();
  833. this.btnResetPassword = new System.Windows.Forms.Button();
  834. this.tcAdmin.SuspendLayout();
  835. this.tpBill.SuspendLayout();
  836. this.tpFood.SuspendLayout();
  837. this.tbFoodCategory.SuspendLayout();
  838. this.tpTable.SuspendLayout();
  839. this.tpAccount.SuspendLayout();
  840. this.panel1.SuspendLayout();
  841. this.panel2.SuspendLayout();
  842. ((System.ComponentModel.ISupportInitialize)(this.dtgvBill)).BeginInit();
  843. this.panel3.SuspendLayout();
  844. this.panel4.SuspendLayout();
  845. this.panel5.SuspendLayout();
  846. this.panel6.SuspendLayout();
  847. ((System.ComponentModel.ISupportInitialize)(this.dtgvFood)).BeginInit();
  848. this.panel7.SuspendLayout();
  849. this.panel8.SuspendLayout();
  850. this.panel9.SuspendLayout();
  851. this.panel10.SuspendLayout();
  852. ((System.ComponentModel.ISupportInitialize)(this.nmFoodPrice)).BeginInit();
  853. this.panel12.SuspendLayout();
  854. this.panel15.SuspendLayout();
  855. this.panel16.SuspendLayout();
  856. this.panel17.SuspendLayout();
  857. this.panel18.SuspendLayout();
  858. ((System.ComponentModel.ISupportInitialize)(this.dtgvCategory)).BeginInit();
  859. this.panel11.SuspendLayout();
  860. this.panel13.SuspendLayout();
  861. this.panel14.SuspendLayout();
  862. this.panel19.SuspendLayout();
  863. this.panel20.SuspendLayout();
  864. ((System.ComponentModel.ISupportInitialize)(this.dtgvTable)).BeginInit();
  865. this.panel21.SuspendLayout();
  866. this.panel23.SuspendLayout();
  867. this.panel25.SuspendLayout();
  868. this.panel26.SuspendLayout();
  869. this.panel27.SuspendLayout();
  870. this.panel28.SuspendLayout();
  871. this.panel29.SuspendLayout();
  872. ((System.ComponentModel.ISupportInitialize)(this.dtgvAccount)).BeginInit();
  873. this.SuspendLayout();
  874. //
  875. // tcAdmin
  876. //
  877. this.tcAdmin.Controls.Add(this.tpBill);
  878. this.tcAdmin.Controls.Add(this.tpFood);
  879. this.tcAdmin.Controls.Add(this.tbFoodCategory);
  880. this.tcAdmin.Controls.Add(this.tpTable);
  881. this.tcAdmin.Controls.Add(this.tpAccount);
  882. this.tcAdmin.Location = new System.Drawing.Point(12, 12);
  883. this.tcAdmin.Name = "tcAdmin";
  884. this.tcAdmin.SelectedIndex = 0;
  885. this.tcAdmin.Size = new System.Drawing.Size(658, 439);
  886. this.tcAdmin.TabIndex = 0;
  887. //
  888. // tpBill
  889. //
  890. this.tpBill.Controls.Add(this.panel2);
  891. this.tpBill.Controls.Add(this.panel1);
  892. this.tpBill.Location = new System.Drawing.Point(4, 22);
  893. this.tpBill.Name = "tpBill";
  894. this.tpBill.Padding = new System.Windows.Forms.Padding(3);
  895. this.tpBill.Size = new System.Drawing.Size(650, 413);
  896. this.tpBill.TabIndex = 0;
  897. this.tpBill.Text = "Doanh thu";
  898. this.tpBill.UseVisualStyleBackColor = true;
  899. //
  900. // tpFood
  901. //
  902. this.tpFood.Controls.Add(this.panel6);
  903. this.tpFood.Controls.Add(this.panel5);
  904. this.tpFood.Controls.Add(this.panel4);
  905. this.tpFood.Controls.Add(this.panel3);
  906. this.tpFood.Location = new System.Drawing.Point(4, 22);
  907. this.tpFood.Name = "tpFood";
  908. this.tpFood.Padding = new System.Windows.Forms.Padding(3);
  909. this.tpFood.Size = new System.Drawing.Size(650, 413);
  910. this.tpFood.TabIndex = 1;
  911. this.tpFood.Text = "Thức ăn";
  912. this.tpFood.UseVisualStyleBackColor = true;
  913. //
  914. // tbFoodCategory
  915. //
  916. this.tbFoodCategory.Controls.Add(this.panel12);
  917. this.tbFoodCategory.Controls.Add(this.panel17);
  918. this.tbFoodCategory.Controls.Add(this.panel18);
  919. this.tbFoodCategory.Location = new System.Drawing.Point(4, 22);
  920. this.tbFoodCategory.Name = "tbFoodCategory";
  921. this.tbFoodCategory.Padding = new System.Windows.Forms.Padding(3);
  922. this.tbFoodCategory.Size = new System.Drawing.Size(650, 413);
  923. this.tbFoodCategory.TabIndex = 2;
  924. this.tbFoodCategory.Text = "Danh mục";
  925. this.tbFoodCategory.UseVisualStyleBackColor = true;
  926. //
  927. // tpTable
  928. //
  929. this.tpTable.Controls.Add(this.panel11);
  930. this.tpTable.Controls.Add(this.panel19);
  931. this.tpTable.Controls.Add(this.panel20);
  932. this.tpTable.Location = new System.Drawing.Point(4, 22);
  933. this.tpTable.Name = "tpTable";
  934. this.tpTable.Padding = new System.Windows.Forms.Padding(3);
  935. this.tpTable.Size = new System.Drawing.Size(650, 413);
  936. this.tpTable.TabIndex = 3;
  937. this.tpTable.Text = "Bàn ăn";
  938. this.tpTable.UseVisualStyleBackColor = true;
  939. //
  940. // tpAccount
  941. //
  942. this.tpAccount.Controls.Add(this.panel23);
  943. this.tpAccount.Controls.Add(this.panel28);
  944. this.tpAccount.Controls.Add(this.panel29);
  945. this.tpAccount.Location = new System.Drawing.Point(4, 22);
  946. this.tpAccount.Name = "tpAccount";
  947. this.tpAccount.Padding = new System.Windows.Forms.Padding(3);
  948. this.tpAccount.Size = new System.Drawing.Size(650, 413);
  949. this.tpAccount.TabIndex = 4;
  950. this.tpAccount.Text = "Tài khoản";
  951. this.tpAccount.UseVisualStyleBackColor = true;
  952. //
  953. // panel1
  954. //
  955. this.panel1.Controls.Add(this.dtgvBill);
  956. this.panel1.Location = new System.Drawing.Point(6, 38);
  957. this.panel1.Name = "panel1";
  958. this.panel1.Size = new System.Drawing.Size(638, 369);
  959. this.panel1.TabIndex = 0;
  960. //
  961. // panel2
  962. //
  963. this.panel2.Controls.Add(this.btnViewBill);
  964. this.panel2.Controls.Add(this.dtpkToDate);
  965. this.panel2.Controls.Add(this.dtpkFromDate);
  966. this.panel2.Location = new System.Drawing.Point(6, 6);
  967. this.panel2.Name = "panel2";
  968. this.panel2.Size = new System.Drawing.Size(638, 26);
  969. this.panel2.TabIndex = 1;
  970. //
  971. // dtgvBill
  972. //
  973. this.dtgvBill.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
  974. this.dtgvBill.Location = new System.Drawing.Point(3, 3);
  975. this.dtgvBill.Name = "dtgvBill";
  976. this.dtgvBill.Size = new System.Drawing.Size(632, 363);
  977. this.dtgvBill.TabIndex = 0;
  978. //
  979. // dtpkFromDate
  980. //
  981. this.dtpkFromDate.Location = new System.Drawing.Point(3, 3);
  982. this.dtpkFromDate.Name = "dtpkFromDate";
  983. this.dtpkFromDate.Size = new System.Drawing.Size(200, 20);
  984. this.dtpkFromDate.TabIndex = 0;
  985. //
  986. // dtpkToDate
  987. //
  988. this.dtpkToDate.Location = new System.Drawing.Point(435, 3);
  989. this.dtpkToDate.Name = "dtpkToDate";
  990. this.dtpkToDate.Size = new System.Drawing.Size(200, 20);
  991. this.dtpkToDate.TabIndex = 1;
  992. //
  993. // btnViewBill
  994. //
  995. this.btnViewBill.Location = new System.Drawing.Point(282, 0);
  996. this.btnViewBill.Name = "btnViewBill";
  997. this.btnViewBill.Size = new System.Drawing.Size(75, 23);
  998. this.btnViewBill.TabIndex = 2;
  999. this.btnViewBill.Text = "Thống kê";
  1000. this.btnViewBill.UseVisualStyleBackColor = true;
  1001. //
  1002. // panel3
  1003. //
  1004. this.panel3.Controls.Add(this.dtgvFood);
  1005. this.panel3.Location = new System.Drawing.Point(6, 61);
  1006. this.panel3.Name = "panel3";
  1007. this.panel3.Size = new System.Drawing.Size(349, 346);
  1008. this.panel3.TabIndex = 0;
  1009. //
  1010. // panel4
  1011. //
  1012. this.panel4.Controls.Add(this.btnShowFood);
  1013. this.panel4.Controls.Add(this.btnEditFood);
  1014. this.panel4.Controls.Add(this.btnDeleteFood);
  1015. this.panel4.Controls.Add(this.btnAddFood);
  1016. this.panel4.Location = new System.Drawing.Point(6, 3);
  1017. this.panel4.Name = "panel4";
  1018. this.panel4.Size = new System.Drawing.Size(349, 52);
  1019. this.panel4.TabIndex = 1;
  1020. //
  1021. // panel5
  1022. //
  1023. this.panel5.Controls.Add(this.panel10);
  1024. this.panel5.Controls.Add(this.panel9);
  1025. this.panel5.Controls.Add(this.panel8);
  1026. this.panel5.Controls.Add(this.panel7);
  1027. this.panel5.Location = new System.Drawing.Point(361, 61);
  1028. this.panel5.Name = "panel5";
  1029. this.panel5.Size = new System.Drawing.Size(285, 346);
  1030. this.panel5.TabIndex = 2;
  1031. //
  1032. // panel6
  1033. //
  1034. this.panel6.Controls.Add(this.txbSearchFoodName);
  1035. this.panel6.Controls.Add(this.btnSearchFood);
  1036. this.panel6.Location = new System.Drawing.Point(361, 3);
  1037. this.panel6.Name = "panel6";
  1038. this.panel6.Size = new System.Drawing.Size(283, 52);
  1039. this.panel6.TabIndex = 3;
  1040. //
  1041. // dtgvFood
  1042. //
  1043. this.dtgvFood.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
  1044. this.dtgvFood.Location = new System.Drawing.Point(3, 3);
  1045. this.dtgvFood.Name = "dtgvFood";
  1046. this.dtgvFood.Size = new System.Drawing.Size(343, 340);
  1047. this.dtgvFood.TabIndex = 0;
  1048. //
  1049. // btnAddFood
  1050. //
  1051. this.btnAddFood.Location = new System.Drawing.Point(3, 3);
  1052. this.btnAddFood.Name = "btnAddFood";
  1053. this.btnAddFood.Size = new System.Drawing.Size(75, 46);
  1054. this.btnAddFood.TabIndex = 0;
  1055. this.btnAddFood.Text = "Thêm";
  1056. this.btnAddFood.UseVisualStyleBackColor = true;
  1057. //
  1058. // btnDeleteFood
  1059. //
  1060. this.btnDeleteFood.Location = new System.Drawing.Point(84, 3);
  1061. this.btnDeleteFood.Name = "btnDeleteFood";
  1062. this.btnDeleteFood.Size = new System.Drawing.Size(75, 46);
  1063. this.btnDeleteFood.TabIndex = 1;
  1064. this.btnDeleteFood.Text = "Xóa";
  1065. this.btnDeleteFood.UseVisualStyleBackColor = true;
  1066. //
  1067. // btnEditFood
  1068. //
  1069. this.btnEditFood.Location = new System.Drawing.Point(165, 3);
  1070. this.btnEditFood.Name = "btnEditFood";
  1071. this.btnEditFood.Size = new System.Drawing.Size(75, 46);
  1072. this.btnEditFood.TabIndex = 2;
  1073. this.btnEditFood.Text = "Sửa";
  1074. this.btnEditFood.UseVisualStyleBackColor = true;
  1075. //
  1076. // btnShowFood
  1077. //
  1078. this.btnShowFood.Location = new System.Drawing.Point(246, 3);
  1079. this.btnShowFood.Name = "btnShowFood";
  1080. this.btnShowFood.Size = new System.Drawing.Size(75, 46);
  1081. this.btnShowFood.TabIndex = 3;
  1082. this.btnShowFood.Text = "Xem";
  1083. this.btnShowFood.UseVisualStyleBackColor = true;
  1084. //
  1085. // btnSearchFood
  1086. //
  1087. this.btnSearchFood.Location = new System.Drawing.Point(208, 3);
  1088. this.btnSearchFood.Name = "btnSearchFood";
  1089. this.btnSearchFood.Size = new System.Drawing.Size(75, 46);
  1090. this.btnSearchFood.TabIndex = 4;
  1091. this.btnSearchFood.Text = "Tìm";
  1092. this.btnSearchFood.UseVisualStyleBackColor = true;
  1093. //
  1094. // txbSearchFoodName
  1095. //
  1096. this.txbSearchFoodName.Location = new System.Drawing.Point(3, 17);
  1097. this.txbSearchFoodName.Name = "txbSearchFoodName";
  1098. this.txbSearchFoodName.Size = new System.Drawing.Size(199, 20);
  1099. this.txbSearchFoodName.TabIndex = 5;
  1100. //
  1101. // panel7
  1102. //
  1103. this.panel7.Controls.Add(this.txbFoodID);
  1104. this.panel7.Controls.Add(this.label1);
  1105. this.panel7.Location = new System.Drawing.Point(3, 3);
  1106. this.panel7.Name = "panel7";
  1107. this.panel7.Size = new System.Drawing.Size(279, 44);
  1108. this.panel7.TabIndex = 1;
  1109. //
  1110. // txbFoodID
  1111. //
  1112. this.txbFoodID.Location = new System.Drawing.Point(91, 8);
  1113. this.txbFoodID.Name = "txbFoodID";
  1114. this.txbFoodID.ReadOnly = true;
  1115. this.txbFoodID.Size = new System.Drawing.Size(185, 20);
  1116. this.txbFoodID.TabIndex = 1;
  1117. //
  1118. // label1
  1119. //
  1120. this.label1.AutoSize = true;
  1121. this.label1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1122. this.label1.Location = new System.Drawing.Point(3, 9);
  1123. this.label1.Name = "label1";
  1124. this.label1.Size = new System.Drawing.Size(31, 19);
  1125. this.label1.TabIndex = 0;
  1126. this.label1.Text = "ID:";
  1127. //
  1128. // panel8
  1129. //
  1130. this.panel8.Controls.Add(this.txbFoodName);
  1131. this.panel8.Controls.Add(this.label2);
  1132. this.panel8.Location = new System.Drawing.Point(3, 53);
  1133. this.panel8.Name = "panel8";
  1134. this.panel8.Size = new System.Drawing.Size(279, 44);
  1135. this.panel8.TabIndex = 2;
  1136. //
  1137. // txbFoodName
  1138. //
  1139. this.txbFoodName.Location = new System.Drawing.Point(91, 8);
  1140. this.txbFoodName.Name = "txbFoodName";
  1141. this.txbFoodName.Size = new System.Drawing.Size(185, 20);
  1142. this.txbFoodName.TabIndex = 1;
  1143. //
  1144. // label2
  1145. //
  1146. this.label2.AutoSize = true;
  1147. this.label2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1148. this.label2.Location = new System.Drawing.Point(3, 9);
  1149. this.label2.Name = "label2";
  1150. this.label2.Size = new System.Drawing.Size(82, 19);
  1151. this.label2.TabIndex = 0;
  1152. this.label2.Text = "Tên món:";
  1153. //
  1154. // panel9
  1155. //
  1156. this.panel9.Controls.Add(this.cbFoodCategory);
  1157. this.panel9.Controls.Add(this.label3);
  1158. this.panel9.Location = new System.Drawing.Point(3, 103);
  1159. this.panel9.Name = "panel9";
  1160. this.panel9.Size = new System.Drawing.Size(279, 44);
  1161. this.panel9.TabIndex = 3;
  1162. //
  1163. // label3
  1164. //
  1165. this.label3.AutoSize = true;
  1166. this.label3.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1167. this.label3.Location = new System.Drawing.Point(3, 9);
  1168. this.label3.Name = "label3";
  1169. this.label3.Size = new System.Drawing.Size(93, 19);
  1170. this.label3.TabIndex = 0;
  1171. this.label3.Text = "Danh mục:";
  1172. //
  1173. // cbFoodCategory
  1174. //
  1175. this.cbFoodCategory.FormattingEnabled = true;
  1176. this.cbFoodCategory.Location = new System.Drawing.Point(91, 9);
  1177. this.cbFoodCategory.Name = "cbFoodCategory";
  1178. this.cbFoodCategory.Size = new System.Drawing.Size(185, 21);
  1179. this.cbFoodCategory.TabIndex = 1;
  1180. //
  1181. // panel10
  1182. //
  1183. this.panel10.Controls.Add(this.nmFoodPrice);
  1184. this.panel10.Controls.Add(this.label4);
  1185. this.panel10.Location = new System.Drawing.Point(3, 153);
  1186. this.panel10.Name = "panel10";
  1187. this.panel10.Size = new System.Drawing.Size(279, 44);
  1188. this.panel10.TabIndex = 4;
  1189. //
  1190. // label4
  1191. //
  1192. this.label4.AutoSize = true;
  1193. this.label4.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1194. this.label4.Location = new System.Drawing.Point(3, 9);
  1195. this.label4.Name = "label4";
  1196. this.label4.Size = new System.Drawing.Size(40, 19);
  1197. this.label4.TabIndex = 0;
  1198. this.label4.Text = "Giá:";
  1199. //
  1200. // nmFoodPrice
  1201. //
  1202. this.nmFoodPrice.Location = new System.Drawing.Point(91, 8);
  1203. this.nmFoodPrice.Maximum = new decimal(new int[] {
  1204. 100000000,
  1205. 0,
  1206. 0,
  1207. 0});
  1208. this.nmFoodPrice.Name = "nmFoodPrice";
  1209. this.nmFoodPrice.Size = new System.Drawing.Size(185, 20);
  1210. this.nmFoodPrice.TabIndex = 1;
  1211. //
  1212. // panel12
  1213. //
  1214. this.panel12.Controls.Add(this.panel15);
  1215. this.panel12.Controls.Add(this.panel16);
  1216. this.panel12.Location = new System.Drawing.Point(360, 62);
  1217. this.panel12.Name = "panel12";
  1218. this.panel12.Size = new System.Drawing.Size(285, 346);
  1219. this.panel12.TabIndex = 6;
  1220. //
  1221. // panel15
  1222. //
  1223. this.panel15.Controls.Add(this.textBox2);
  1224. this.panel15.Controls.Add(this.label7);
  1225. this.panel15.Location = new System.Drawing.Point(3, 53);
  1226. this.panel15.Name = "panel15";
  1227. this.panel15.Size = new System.Drawing.Size(279, 44);
  1228. this.panel15.TabIndex = 2;
  1229. //
  1230. // textBox2
  1231. //
  1232. this.textBox2.Location = new System.Drawing.Point(125, 8);
  1233. this.textBox2.Name = "textBox2";
  1234. this.textBox2.Size = new System.Drawing.Size(151, 20);
  1235. this.textBox2.TabIndex = 1;
  1236. //
  1237. // label7
  1238. //
  1239. this.label7.AutoSize = true;
  1240. this.label7.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1241. this.label7.Location = new System.Drawing.Point(3, 9);
  1242. this.label7.Name = "label7";
  1243. this.label7.Size = new System.Drawing.Size(124, 19);
  1244. this.label7.TabIndex = 0;
  1245. this.label7.Text = "Tên danh mục:";
  1246. //
  1247. // panel16
  1248. //
  1249. this.panel16.Controls.Add(this.txbCategoryID);
  1250. this.panel16.Controls.Add(this.label8);
  1251. this.panel16.Location = new System.Drawing.Point(3, 3);
  1252. this.panel16.Name = "panel16";
  1253. this.panel16.Size = new System.Drawing.Size(279, 44);
  1254. this.panel16.TabIndex = 1;
  1255. //
  1256. // txbCategoryID
  1257. //
  1258. this.txbCategoryID.Location = new System.Drawing.Point(125, 8);
  1259. this.txbCategoryID.Name = "txbCategoryID";
  1260. this.txbCategoryID.ReadOnly = true;
  1261. this.txbCategoryID.Size = new System.Drawing.Size(151, 20);
  1262. this.txbCategoryID.TabIndex = 1;
  1263. //
  1264. // label8
  1265. //
  1266. this.label8.AutoSize = true;
  1267. this.label8.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1268. this.label8.Location = new System.Drawing.Point(3, 9);
  1269. this.label8.Name = "label8";
  1270. this.label8.Size = new System.Drawing.Size(31, 19);
  1271. this.label8.TabIndex = 0;
  1272. this.label8.Text = "ID:";
  1273. //
  1274. // panel17
  1275. //
  1276. this.panel17.Controls.Add(this.btnShowCategory);
  1277. this.panel17.Controls.Add(this.btnEditCategory);
  1278. this.panel17.Controls.Add(this.btnDeleteCategory);
  1279. this.panel17.Controls.Add(this.btnAddCategory);
  1280. this.panel17.Location = new System.Drawing.Point(5, 4);
  1281. this.panel17.Name = "panel17";
  1282. this.panel17.Size = new System.Drawing.Size(349, 52);
  1283. this.panel17.TabIndex = 5;
  1284. //
  1285. // btnShowCategory
  1286. //
  1287. this.btnShowCategory.Location = new System.Drawing.Point(246, 3);
  1288. this.btnShowCategory.Name = "btnShowCategory";
  1289. this.btnShowCategory.Size = new System.Drawing.Size(75, 46);
  1290. this.btnShowCategory.TabIndex = 3;
  1291. this.btnShowCategory.Text = "Xem";
  1292. this.btnShowCategory.UseVisualStyleBackColor = true;
  1293. //
  1294. // btnEditCategory
  1295. //
  1296. this.btnEditCategory.Location = new System.Drawing.Point(165, 3);
  1297. this.btnEditCategory.Name = "btnEditCategory";
  1298. this.btnEditCategory.Size = new System.Drawing.Size(75, 46);
  1299. this.btnEditCategory.TabIndex = 2;
  1300. this.btnEditCategory.Text = "Sửa";
  1301. this.btnEditCategory.UseVisualStyleBackColor = true;
  1302. //
  1303. // btnDeleteCategory
  1304. //
  1305. this.btnDeleteCategory.Location = new System.Drawing.Point(84, 3);
  1306. this.btnDeleteCategory.Name = "btnDeleteCategory";
  1307. this.btnDeleteCategory.Size = new System.Drawing.Size(75, 46);
  1308. this.btnDeleteCategory.TabIndex = 1;
  1309. this.btnDeleteCategory.Text = "Xóa";
  1310. this.btnDeleteCategory.UseVisualStyleBackColor = true;
  1311. //
  1312. // btnAddCategory
  1313. //
  1314. this.btnAddCategory.Location = new System.Drawing.Point(3, 3);
  1315. this.btnAddCategory.Name = "btnAddCategory";
  1316. this.btnAddCategory.Size = new System.Drawing.Size(75, 46);
  1317. this.btnAddCategory.TabIndex = 0;
  1318. this.btnAddCategory.Text = "Thêm";
  1319. this.btnAddCategory.UseVisualStyleBackColor = true;
  1320. //
  1321. // panel18
  1322. //
  1323. this.panel18.Controls.Add(this.dtgvCategory);
  1324. this.panel18.Location = new System.Drawing.Point(5, 62);
  1325. this.panel18.Name = "panel18";
  1326. this.panel18.Size = new System.Drawing.Size(349, 346);
  1327. this.panel18.TabIndex = 4;
  1328. //
  1329. // dtgvCategory
  1330. //
  1331. this.dtgvCategory.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
  1332. this.dtgvCategory.Location = new System.Drawing.Point(3, 3);
  1333. this.dtgvCategory.Name = "dtgvCategory";
  1334. this.dtgvCategory.Size = new System.Drawing.Size(343, 340);
  1335. this.dtgvCategory.TabIndex = 0;
  1336. //
  1337. // panel11
  1338. //
  1339. this.panel11.Controls.Add(this.panel21);
  1340. this.panel11.Controls.Add(this.panel13);
  1341. this.panel11.Controls.Add(this.panel14);
  1342. this.panel11.Location = new System.Drawing.Point(360, 62);
  1343. this.panel11.Name = "panel11";
  1344. this.panel11.Size = new System.Drawing.Size(285, 346);
  1345. this.panel11.TabIndex = 9;
  1346. //
  1347. // panel13
  1348. //
  1349. this.panel13.Controls.Add(this.txbTableName);
  1350. this.panel13.Controls.Add(this.label5);
  1351. this.panel13.Location = new System.Drawing.Point(3, 53);
  1352. this.panel13.Name = "panel13";
  1353. this.panel13.Size = new System.Drawing.Size(279, 44);
  1354. this.panel13.TabIndex = 2;
  1355. //
  1356. // txbTableName
  1357. //
  1358. this.txbTableName.Location = new System.Drawing.Point(125, 8);
  1359. this.txbTableName.Name = "txbTableName";
  1360. this.txbTableName.Size = new System.Drawing.Size(151, 20);
  1361. this.txbTableName.TabIndex = 1;
  1362. //
  1363. // label5
  1364. //
  1365. this.label5.AutoSize = true;
  1366. this.label5.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1367. this.label5.Location = new System.Drawing.Point(3, 9);
  1368. this.label5.Name = "label5";
  1369. this.label5.Size = new System.Drawing.Size(77, 19);
  1370. this.label5.TabIndex = 0;
  1371. this.label5.Text = "Tên bàn:";
  1372. //
  1373. // panel14
  1374. //
  1375. this.panel14.Controls.Add(this.textBox3);
  1376. this.panel14.Controls.Add(this.label6);
  1377. this.panel14.Location = new System.Drawing.Point(3, 3);
  1378. this.panel14.Name = "panel14";
  1379. this.panel14.Size = new System.Drawing.Size(279, 44);
  1380. this.panel14.TabIndex = 1;
  1381. //
  1382. // textBox3
  1383. //
  1384. this.textBox3.Location = new System.Drawing.Point(125, 8);
  1385. this.textBox3.Name = "textBox3";
  1386. this.textBox3.ReadOnly = true;
  1387. this.textBox3.Size = new System.Drawing.Size(151, 20);
  1388. this.textBox3.TabIndex = 1;
  1389. //
  1390. // label6
  1391. //
  1392. this.label6.AutoSize = true;
  1393. this.label6.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1394. this.label6.Location = new System.Drawing.Point(3, 9);
  1395. this.label6.Name = "label6";
  1396. this.label6.Size = new System.Drawing.Size(31, 19);
  1397. this.label6.TabIndex = 0;
  1398. this.label6.Text = "ID:";
  1399. //
  1400. // panel19
  1401. //
  1402. this.panel19.Controls.Add(this.btnShowTable);
  1403. this.panel19.Controls.Add(this.btnEditTable);
  1404. this.panel19.Controls.Add(this.btnDeleteTable);
  1405. this.panel19.Controls.Add(this.btnAddTable);
  1406. this.panel19.Location = new System.Drawing.Point(5, 4);
  1407. this.panel19.Name = "panel19";
  1408. this.panel19.Size = new System.Drawing.Size(349, 52);
  1409. this.panel19.TabIndex = 8;
  1410. //
  1411. // btnShowTable
  1412. //
  1413. this.btnShowTable.Location = new System.Drawing.Point(246, 3);
  1414. this.btnShowTable.Name = "btnShowTable";
  1415. this.btnShowTable.Size = new System.Drawing.Size(75, 46);
  1416. this.btnShowTable.TabIndex = 3;
  1417. this.btnShowTable.Text = "Xem";
  1418. this.btnShowTable.UseVisualStyleBackColor = true;
  1419. //
  1420. // btnEditTable
  1421. //
  1422. this.btnEditTable.Location = new System.Drawing.Point(165, 3);
  1423. this.btnEditTable.Name = "btnEditTable";
  1424. this.btnEditTable.Size = new System.Drawing.Size(75, 46);
  1425. this.btnEditTable.TabIndex = 2;
  1426. this.btnEditTable.Text = "Sửa";
  1427. this.btnEditTable.UseVisualStyleBackColor = true;
  1428. //
  1429. // btnDeleteTable
  1430. //
  1431. this.btnDeleteTable.Location = new System.Drawing.Point(84, 3);
  1432. this.btnDeleteTable.Name = "btnDeleteTable";
  1433. this.btnDeleteTable.Size = new System.Drawing.Size(75, 46);
  1434. this.btnDeleteTable.TabIndex = 1;
  1435. this.btnDeleteTable.Text = "Xóa";
  1436. this.btnDeleteTable.UseVisualStyleBackColor = true;
  1437. //
  1438. // btnAddTable
  1439. //
  1440. this.btnAddTable.Location = new System.Drawing.Point(3, 3);
  1441. this.btnAddTable.Name = "btnAddTable";
  1442. this.btnAddTable.Size = new System.Drawing.Size(75, 46);
  1443. this.btnAddTable.TabIndex = 0;
  1444. this.btnAddTable.Text = "Thêm";
  1445. this.btnAddTable.UseVisualStyleBackColor = true;
  1446. //
  1447. // panel20
  1448. //
  1449. this.panel20.Controls.Add(this.dtgvTable);
  1450. this.panel20.Location = new System.Drawing.Point(5, 62);
  1451. this.panel20.Name = "panel20";
  1452. this.panel20.Size = new System.Drawing.Size(349, 346);
  1453. this.panel20.TabIndex = 7;
  1454. //
  1455. // dtgvTable
  1456. //
  1457. this.dtgvTable.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
  1458. this.dtgvTable.Location = new System.Drawing.Point(3, 3);
  1459. this.dtgvTable.Name = "dtgvTable";
  1460. this.dtgvTable.Size = new System.Drawing.Size(343, 340);
  1461. this.dtgvTable.TabIndex = 0;
  1462. //
  1463. // panel21
  1464. //
  1465. this.panel21.Controls.Add(this.cbTableStatus);
  1466. this.panel21.Controls.Add(this.label9);
  1467. this.panel21.Location = new System.Drawing.Point(3, 103);
  1468. this.panel21.Name = "panel21";
  1469. this.panel21.Size = new System.Drawing.Size(279, 44);
  1470. this.panel21.TabIndex = 3;
  1471. //
  1472. // label9
  1473. //
  1474. this.label9.AutoSize = true;
  1475. this.label9.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1476. this.label9.Location = new System.Drawing.Point(3, 9);
  1477. this.label9.Name = "label9";
  1478. this.label9.Size = new System.Drawing.Size(91, 19);
  1479. this.label9.TabIndex = 0;
  1480. this.label9.Text = "Trạng thái:";
  1481. //
  1482. // cbTableStatus
  1483. //
  1484. this.cbTableStatus.FormattingEnabled = true;
  1485. this.cbTableStatus.Location = new System.Drawing.Point(125, 9);
  1486. this.cbTableStatus.Name = "cbTableStatus";
  1487. this.cbTableStatus.Size = new System.Drawing.Size(151, 21);
  1488. this.cbTableStatus.TabIndex = 1;
  1489. //
  1490. // panel23
  1491. //
  1492. this.panel23.Controls.Add(this.btnResetPassword);
  1493. this.panel23.Controls.Add(this.panel25);
  1494. this.panel23.Controls.Add(this.panel26);
  1495. this.panel23.Controls.Add(this.panel27);
  1496. this.panel23.Location = new System.Drawing.Point(360, 62);
  1497. this.panel23.Name = "panel23";
  1498. this.panel23.Size = new System.Drawing.Size(285, 346);
  1499. this.panel23.TabIndex = 6;
  1500. //
  1501. // panel25
  1502. //
  1503. this.panel25.Controls.Add(this.cbAccountType);
  1504. this.panel25.Controls.Add(this.label11);
  1505. this.panel25.Location = new System.Drawing.Point(3, 103);
  1506. this.panel25.Name = "panel25";
  1507. this.panel25.Size = new System.Drawing.Size(279, 44);
  1508. this.panel25.TabIndex = 3;
  1509. //
  1510. // cbAccountType
  1511. //
  1512. this.cbAccountType.FormattingEnabled = true;
  1513. this.cbAccountType.Location = new System.Drawing.Point(127, 9);
  1514. this.cbAccountType.Name = "cbAccountType";
  1515. this.cbAccountType.Size = new System.Drawing.Size(149, 21);
  1516. this.cbAccountType.TabIndex = 1;
  1517. //
  1518. // label11
  1519. //
  1520. this.label11.AutoSize = true;
  1521. this.label11.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1522. this.label11.Location = new System.Drawing.Point(3, 9);
  1523. this.label11.Name = "label11";
  1524. this.label11.Size = new System.Drawing.Size(116, 19);
  1525. this.label11.TabIndex = 0;
  1526. this.label11.Text = "Loại tài khoản";
  1527. //
  1528. // panel26
  1529. //
  1530. this.panel26.Controls.Add(this.txbDisplayName);
  1531. this.panel26.Controls.Add(this.label12);
  1532. this.panel26.Location = new System.Drawing.Point(3, 53);
  1533. this.panel26.Name = "panel26";
  1534. this.panel26.Size = new System.Drawing.Size(279, 44);
  1535. this.panel26.TabIndex = 2;
  1536. //
  1537. // txbDisplayName
  1538. //
  1539. this.txbDisplayName.Location = new System.Drawing.Point(127, 8);
  1540. this.txbDisplayName.Name = "txbDisplayName";
  1541. this.txbDisplayName.Size = new System.Drawing.Size(149, 20);
  1542. this.txbDisplayName.TabIndex = 1;
  1543. //
  1544. // label12
  1545. //
  1546. this.label12.AutoSize = true;
  1547. this.label12.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1548. this.label12.Location = new System.Drawing.Point(3, 9);
  1549. this.label12.Name = "label12";
  1550. this.label12.Size = new System.Drawing.Size(104, 19);
  1551. this.label12.TabIndex = 0;
  1552. this.label12.Text = "Tên hiển thị:";
  1553. //
  1554. // panel27
  1555. //
  1556. this.panel27.Controls.Add(this.txbUserName);
  1557. this.panel27.Controls.Add(this.label13);
  1558. this.panel27.Location = new System.Drawing.Point(3, 3);
  1559. this.panel27.Name = "panel27";
  1560. this.panel27.Size = new System.Drawing.Size(279, 44);
  1561. this.panel27.TabIndex = 1;
  1562. //
  1563. // txbUserName
  1564. //
  1565. this.txbUserName.Location = new System.Drawing.Point(127, 8);
  1566. this.txbUserName.Name = "txbUserName";
  1567. this.txbUserName.ReadOnly = true;
  1568. this.txbUserName.Size = new System.Drawing.Size(149, 20);
  1569. this.txbUserName.TabIndex = 1;
  1570. //
  1571. // label13
  1572. //
  1573. this.label13.AutoSize = true;
  1574. this.label13.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1575. this.label13.Location = new System.Drawing.Point(3, 9);
  1576. this.label13.Name = "label13";
  1577. this.label13.Size = new System.Drawing.Size(118, 19);
  1578. this.label13.TabIndex = 0;
  1579. this.label13.Text = "Tên tài khoản:";
  1580. //
  1581. // panel28
  1582. //
  1583. this.panel28.Controls.Add(this.btnShowAccount);
  1584. this.panel28.Controls.Add(this.btnEditAccount);
  1585. this.panel28.Controls.Add(this.btnDeleteAccount);
  1586. this.panel28.Controls.Add(this.btnAddAccount);
  1587. this.panel28.Location = new System.Drawing.Point(5, 4);
  1588. this.panel28.Name = "panel28";
  1589. this.panel28.Size = new System.Drawing.Size(349, 52);
  1590. this.panel28.TabIndex = 5;
  1591. //
  1592. // btnShowAccount
  1593. //
  1594. this.btnShowAccount.Location = new System.Drawing.Point(246, 3);
  1595. this.btnShowAccount.Name = "btnShowAccount";
  1596. this.btnShowAccount.Size = new System.Drawing.Size(75, 46);
  1597. this.btnShowAccount.TabIndex = 3;
  1598. this.btnShowAccount.Text = "Xem";
  1599. this.btnShowAccount.UseVisualStyleBackColor = true;
  1600. //
  1601. // btnEditAccount
  1602. //
  1603. this.btnEditAccount.Location = new System.Drawing.Point(165, 3);
  1604. this.btnEditAccount.Name = "btnEditAccount";
  1605. this.btnEditAccount.Size = new System.Drawing.Size(75, 46);
  1606. this.btnEditAccount.TabIndex = 2;
  1607. this.btnEditAccount.Text = "Sửa";
  1608. this.btnEditAccount.UseVisualStyleBackColor = true;
  1609. //
  1610. // btnDeleteAccount
  1611. //
  1612. this.btnDeleteAccount.Location = new System.Drawing.Point(84, 3);
  1613. this.btnDeleteAccount.Name = "btnDeleteAccount";
  1614. this.btnDeleteAccount.Size = new System.Drawing.Size(75, 46);
  1615. this.btnDeleteAccount.TabIndex = 1;
  1616. this.btnDeleteAccount.Text = "Xóa";
  1617. this.btnDeleteAccount.UseVisualStyleBackColor = true;
  1618. //
  1619. // btnAddAccount
  1620. //
  1621. this.btnAddAccount.Location = new System.Drawing.Point(3, 3);
  1622. this.btnAddAccount.Name = "btnAddAccount";
  1623. this.btnAddAccount.Size = new System.Drawing.Size(75, 46);
  1624. this.btnAddAccount.TabIndex = 0;
  1625. this.btnAddAccount.Text = "Thêm";
  1626. this.btnAddAccount.UseVisualStyleBackColor = true;
  1627. //
  1628. // panel29
  1629. //
  1630. this.panel29.Controls.Add(this.dtgvAccount);
  1631. this.panel29.Location = new System.Drawing.Point(5, 62);
  1632. this.panel29.Name = "panel29";
  1633. this.panel29.Size = new System.Drawing.Size(349, 346);
  1634. this.panel29.TabIndex = 4;
  1635. //
  1636. // dtgvAccount
  1637. //
  1638. this.dtgvAccount.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
  1639. this.dtgvAccount.Location = new System.Drawing.Point(3, 3);
  1640. this.dtgvAccount.Name = "dtgvAccount";
  1641. this.dtgvAccount.Size = new System.Drawing.Size(343, 340);
  1642. this.dtgvAccount.TabIndex = 0;
  1643. //
  1644. // btnResetPassword
  1645. //
  1646. this.btnResetPassword.Location = new System.Drawing.Point(204, 153);
  1647. this.btnResetPassword.Name = "btnResetPassword";
  1648. this.btnResetPassword.Size = new System.Drawing.Size(75, 46);
  1649. this.btnResetPassword.TabIndex = 4;
  1650. this.btnResetPassword.Text = "Đặt lại mật khẩu";
  1651. this.btnResetPassword.UseVisualStyleBackColor = true;
  1652. //
  1653. // fAdmin
  1654. //
  1655. this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
  1656. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  1657. this.ClientSize = new System.Drawing.Size(674, 463);
  1658. this.Controls.Add(this.tcAdmin);
  1659. this.Name = "fAdmin";
  1660. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  1661. this.Text = "Admin";
  1662. this.tcAdmin.ResumeLayout(false);
  1663. this.tpBill.ResumeLayout(false);
  1664. this.tpFood.ResumeLayout(false);
  1665. this.tbFoodCategory.ResumeLayout(false);
  1666. this.tpTable.ResumeLayout(false);
  1667. this.tpAccount.ResumeLayout(false);
  1668. this.panel1.ResumeLayout(false);
  1669. this.panel2.ResumeLayout(false);
  1670. ((System.ComponentModel.ISupportInitialize)(this.dtgvBill)).EndInit();
  1671. this.panel3.ResumeLayout(false);
  1672. this.panel4.ResumeLayout(false);
  1673. this.panel5.ResumeLayout(false);
  1674. this.panel6.ResumeLayout(false);
  1675. this.panel6.PerformLayout();
  1676. ((System.ComponentModel.ISupportInitialize)(this.dtgvFood)).EndInit();
  1677. this.panel7.ResumeLayout(false);
  1678. this.panel7.PerformLayout();
  1679. this.panel8.ResumeLayout(false);
  1680. this.panel8.PerformLayout();
  1681. this.panel9.ResumeLayout(false);
  1682. this.panel9.PerformLayout();
  1683. this.panel10.ResumeLayout(false);
  1684. this.panel10.PerformLayout();
  1685. ((System.ComponentModel.ISupportInitialize)(this.nmFoodPrice)).EndInit();
  1686. this.panel12.ResumeLayout(false);
  1687. this.panel15.ResumeLayout(false);
  1688. this.panel15.PerformLayout();
  1689. this.panel16.ResumeLayout(false);
  1690. this.panel16.PerformLayout();
  1691. this.panel17.ResumeLayout(false);
  1692. this.panel18.ResumeLayout(false);
  1693. ((System.ComponentModel.ISupportInitialize)(this.dtgvCategory)).EndInit();
  1694. this.panel11.ResumeLayout(false);
  1695. this.panel13.ResumeLayout(false);
  1696. this.panel13.PerformLayout();
  1697. this.panel14.ResumeLayout(false);
  1698. this.panel14.PerformLayout();
  1699. this.panel19.ResumeLayout(false);
  1700. this.panel20.ResumeLayout(false);
  1701. ((System.ComponentModel.ISupportInitialize)(this.dtgvTable)).EndInit();
  1702. this.panel21.ResumeLayout(false);
  1703. this.panel21.PerformLayout();
  1704. this.panel23.ResumeLayout(false);
  1705. this.panel25.ResumeLayout(false);
  1706. this.panel25.PerformLayout();
  1707. this.panel26.ResumeLayout(false);
  1708. this.panel26.PerformLayout();
  1709. this.panel27.ResumeLayout(false);
  1710. this.panel27.PerformLayout();
  1711. this.panel28.ResumeLayout(false);
  1712. this.panel29.ResumeLayout(false);
  1713. ((System.ComponentModel.ISupportInitialize)(this.dtgvAccount)).EndInit();
  1714. this.ResumeLayout(false);
  1715.  
  1716. }
  1717.  
  1718. #endregion
  1719.  
  1720. private System.Windows.Forms.TabControl tcAdmin;
  1721. private System.Windows.Forms.TabPage tpBill;
  1722. private System.Windows.Forms.Panel panel2;
  1723. private System.Windows.Forms.Panel panel1;
  1724. private System.Windows.Forms.DataGridView dtgvBill;
  1725. private System.Windows.Forms.TabPage tpFood;
  1726. private System.Windows.Forms.TabPage tbFoodCategory;
  1727. private System.Windows.Forms.TabPage tpTable;
  1728. private System.Windows.Forms.TabPage tpAccount;
  1729. private System.Windows.Forms.Button btnViewBill;
  1730. private System.Windows.Forms.DateTimePicker dtpkToDate;
  1731. private System.Windows.Forms.DateTimePicker dtpkFromDate;
  1732. private System.Windows.Forms.Panel panel6;
  1733. private System.Windows.Forms.TextBox txbSearchFoodName;
  1734. private System.Windows.Forms.Button btnSearchFood;
  1735. private System.Windows.Forms.Panel panel5;
  1736. private System.Windows.Forms.Panel panel4;
  1737. private System.Windows.Forms.Button btnShowFood;
  1738. private System.Windows.Forms.Button btnEditFood;
  1739. private System.Windows.Forms.Button btnDeleteFood;
  1740. private System.Windows.Forms.Button btnAddFood;
  1741. private System.Windows.Forms.Panel panel3;
  1742. private System.Windows.Forms.DataGridView dtgvFood;
  1743. private System.Windows.Forms.Panel panel8;
  1744. private System.Windows.Forms.TextBox txbFoodName;
  1745. private System.Windows.Forms.Label label2;
  1746. private System.Windows.Forms.Panel panel7;
  1747. private System.Windows.Forms.TextBox txbFoodID;
  1748. private System.Windows.Forms.Label label1;
  1749. private System.Windows.Forms.Panel panel10;
  1750. private System.Windows.Forms.NumericUpDown nmFoodPrice;
  1751. private System.Windows.Forms.Label label4;
  1752. private System.Windows.Forms.Panel panel9;
  1753. private System.Windows.Forms.ComboBox cbFoodCategory;
  1754. private System.Windows.Forms.Label label3;
  1755. private System.Windows.Forms.Panel panel12;
  1756. private System.Windows.Forms.Panel panel15;
  1757. private System.Windows.Forms.TextBox textBox2;
  1758. private System.Windows.Forms.Label label7;
  1759. private System.Windows.Forms.Panel panel16;
  1760. private System.Windows.Forms.TextBox txbCategoryID;
  1761. private System.Windows.Forms.Label label8;
  1762. private System.Windows.Forms.Panel panel17;
  1763. private System.Windows.Forms.Button btnShowCategory;
  1764. private System.Windows.Forms.Button btnEditCategory;
  1765. private System.Windows.Forms.Button btnDeleteCategory;
  1766. private System.Windows.Forms.Button btnAddCategory;
  1767. private System.Windows.Forms.Panel panel18;
  1768. private System.Windows.Forms.DataGridView dtgvCategory;
  1769. private System.Windows.Forms.Panel panel11;
  1770. private System.Windows.Forms.Panel panel21;
  1771. private System.Windows.Forms.ComboBox cbTableStatus;
  1772. private System.Windows.Forms.Label label9;
  1773. private System.Windows.Forms.Panel panel13;
  1774. private System.Windows.Forms.TextBox txbTableName;
  1775. private System.Windows.Forms.Label label5;
  1776. private System.Windows.Forms.Panel panel14;
  1777. private System.Windows.Forms.TextBox textBox3;
  1778. private System.Windows.Forms.Label label6;
  1779. private System.Windows.Forms.Panel panel19;
  1780. private System.Windows.Forms.Button btnShowTable;
  1781. private System.Windows.Forms.Button btnEditTable;
  1782. private System.Windows.Forms.Button btnDeleteTable;
  1783. private System.Windows.Forms.Button btnAddTable;
  1784. private System.Windows.Forms.Panel panel20;
  1785. private System.Windows.Forms.DataGridView dtgvTable;
  1786. private System.Windows.Forms.Panel panel23;
  1787. private System.Windows.Forms.Button btnResetPassword;
  1788. private System.Windows.Forms.Panel panel25;
  1789. private System.Windows.Forms.ComboBox cbAccountType;
  1790. private System.Windows.Forms.Label label11;
  1791. private System.Windows.Forms.Panel panel26;
  1792. private System.Windows.Forms.TextBox txbDisplayName;
  1793. private System.Windows.Forms.Label label12;
  1794. private System.Windows.Forms.Panel panel27;
  1795. private System.Windows.Forms.TextBox txbUserName;
  1796. private System.Windows.Forms.Label label13;
  1797. private System.Windows.Forms.Panel panel28;
  1798. private System.Windows.Forms.Button btnShowAccount;
  1799. private System.Windows.Forms.Button btnEditAccount;
  1800. private System.Windows.Forms.Button btnDeleteAccount;
  1801. private System.Windows.Forms.Button btnAddAccount;
  1802. private System.Windows.Forms.Panel panel29;
  1803. private System.Windows.Forms.DataGridView dtgvAccount;
  1804. }
  1805. }
  1806.  
  1807. Code fAdmin.cs
  1808.  
  1809. using System;
  1810. using System.Collections.Generic;
  1811. using System.ComponentModel;
  1812. using System.Data;
  1813. using System.Drawing;
  1814. using System.Linq;
  1815. using System.Text;
  1816. using System.Threading.Tasks;
  1817. using System.Windows.Forms;
  1818.  
  1819. namespace QuanLyQuanCafe
  1820. {
  1821. public partial class fAdmin : Form
  1822. {
  1823. public fAdmin()
  1824. {
  1825. InitializeComponent();
  1826. }
  1827. }
  1828. }
  1829.  
  1830. Code fAccountProfile.Designer.cs
  1831.  
  1832. namespace QuanLyQuanCafe
  1833. {
  1834. partial class fAccountProfile
  1835. {
  1836. /// <summary>
  1837. /// Required designer variable.
  1838. /// </summary>
  1839. private System.ComponentModel.IContainer components = null;
  1840.  
  1841. /// <summary>
  1842. /// Clean up any resources being used.
  1843. /// </summary>
  1844. /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
  1845. protected override void Dispose(bool disposing)
  1846. {
  1847. if (disposing && (components != null))
  1848. {
  1849. components.Dispose();
  1850. }
  1851. base.Dispose(disposing);
  1852. }
  1853.  
  1854. #region Windows Form Designer generated code
  1855.  
  1856. /// <summary>
  1857. /// Required method for Designer support - do not modify
  1858. /// the contents of this method with the code editor.
  1859. /// </summary>
  1860. private void InitializeComponent()
  1861. {
  1862. this.panel2 = new System.Windows.Forms.Panel();
  1863. this.txbUserName = new System.Windows.Forms.TextBox();
  1864. this.label1 = new System.Windows.Forms.Label();
  1865. this.panel1 = new System.Windows.Forms.Panel();
  1866. this.txbDisplayName = new System.Windows.Forms.TextBox();
  1867. this.label2 = new System.Windows.Forms.Label();
  1868. this.panel3 = new System.Windows.Forms.Panel();
  1869. this.txbPassWord = new System.Windows.Forms.TextBox();
  1870. this.label3 = new System.Windows.Forms.Label();
  1871. this.panel4 = new System.Windows.Forms.Panel();
  1872. this.txbNewPass = new System.Windows.Forms.TextBox();
  1873. this.label4 = new System.Windows.Forms.Label();
  1874. this.panel5 = new System.Windows.Forms.Panel();
  1875. this.txbReEnterPass = new System.Windows.Forms.TextBox();
  1876. this.label5 = new System.Windows.Forms.Label();
  1877. this.btnUpdate = new System.Windows.Forms.Button();
  1878. this.btnExti = new System.Windows.Forms.Button();
  1879. this.panel2.SuspendLayout();
  1880. this.panel1.SuspendLayout();
  1881. this.panel3.SuspendLayout();
  1882. this.panel4.SuspendLayout();
  1883. this.panel5.SuspendLayout();
  1884. this.SuspendLayout();
  1885. //
  1886. // panel2
  1887. //
  1888. this.panel2.Controls.Add(this.txbUserName);
  1889. this.panel2.Controls.Add(this.label1);
  1890. this.panel2.Location = new System.Drawing.Point(12, 12);
  1891. this.panel2.Name = "panel2";
  1892. this.panel2.Size = new System.Drawing.Size(394, 44);
  1893. this.panel2.TabIndex = 1;
  1894. //
  1895. // txbUserName
  1896. //
  1897. this.txbUserName.Location = new System.Drawing.Point(139, 10);
  1898. this.txbUserName.Name = "txbUserName";
  1899. this.txbUserName.ReadOnly = true;
  1900. this.txbUserName.Size = new System.Drawing.Size(252, 20);
  1901. this.txbUserName.TabIndex = 1;
  1902. //
  1903. // label1
  1904. //
  1905. this.label1.AutoSize = true;
  1906. this.label1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1907. this.label1.Location = new System.Drawing.Point(3, 9);
  1908. this.label1.Name = "label1";
  1909. this.label1.Size = new System.Drawing.Size(130, 19);
  1910. this.label1.TabIndex = 0;
  1911. this.label1.Text = "Tên đăng nhập:";
  1912. //
  1913. // panel1
  1914. //
  1915. this.panel1.Controls.Add(this.txbDisplayName);
  1916. this.panel1.Controls.Add(this.label2);
  1917. this.panel1.Location = new System.Drawing.Point(12, 62);
  1918. this.panel1.Name = "panel1";
  1919. this.panel1.Size = new System.Drawing.Size(394, 44);
  1920. this.panel1.TabIndex = 2;
  1921. //
  1922. // txbDisplayName
  1923. //
  1924. this.txbDisplayName.Location = new System.Drawing.Point(139, 10);
  1925. this.txbDisplayName.Name = "txbDisplayName";
  1926. this.txbDisplayName.Size = new System.Drawing.Size(252, 20);
  1927. this.txbDisplayName.TabIndex = 1;
  1928. //
  1929. // label2
  1930. //
  1931. this.label2.AutoSize = true;
  1932. this.label2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1933. this.label2.Location = new System.Drawing.Point(3, 9);
  1934. this.label2.Name = "label2";
  1935. this.label2.Size = new System.Drawing.Size(104, 19);
  1936. this.label2.TabIndex = 0;
  1937. this.label2.Text = "Tên hiển thị:";
  1938. //
  1939. // panel3
  1940. //
  1941. this.panel3.Controls.Add(this.txbPassWord);
  1942. this.panel3.Controls.Add(this.label3);
  1943. this.panel3.Location = new System.Drawing.Point(12, 112);
  1944. this.panel3.Name = "panel3";
  1945. this.panel3.Size = new System.Drawing.Size(394, 44);
  1946. this.panel3.TabIndex = 3;
  1947. //
  1948. // txbPassWord
  1949. //
  1950. this.txbPassWord.Location = new System.Drawing.Point(139, 10);
  1951. this.txbPassWord.Name = "txbPassWord";
  1952. this.txbPassWord.Size = new System.Drawing.Size(252, 20);
  1953. this.txbPassWord.TabIndex = 1;
  1954. this.txbPassWord.UseSystemPasswordChar = true;
  1955. //
  1956. // label3
  1957. //
  1958. this.label3.AutoSize = true;
  1959. this.label3.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1960. this.label3.Location = new System.Drawing.Point(3, 9);
  1961. this.label3.Name = "label3";
  1962. this.label3.Size = new System.Drawing.Size(84, 19);
  1963. this.label3.TabIndex = 0;
  1964. this.label3.Text = "Mật khẩu:";
  1965. //
  1966. // panel4
  1967. //
  1968. this.panel4.Controls.Add(this.txbNewPass);
  1969. this.panel4.Controls.Add(this.label4);
  1970. this.panel4.Location = new System.Drawing.Point(12, 162);
  1971. this.panel4.Name = "panel4";
  1972. this.panel4.Size = new System.Drawing.Size(394, 44);
  1973. this.panel4.TabIndex = 4;
  1974. //
  1975. // txbNewPass
  1976. //
  1977. this.txbNewPass.Location = new System.Drawing.Point(139, 10);
  1978. this.txbNewPass.Name = "txbNewPass";
  1979. this.txbNewPass.Size = new System.Drawing.Size(252, 20);
  1980. this.txbNewPass.TabIndex = 1;
  1981. this.txbNewPass.UseSystemPasswordChar = true;
  1982. //
  1983. // label4
  1984. //
  1985. this.label4.AutoSize = true;
  1986. this.label4.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  1987. this.label4.Location = new System.Drawing.Point(3, 9);
  1988. this.label4.Name = "label4";
  1989. this.label4.Size = new System.Drawing.Size(117, 19);
  1990. this.label4.TabIndex = 0;
  1991. this.label4.Text = "Mật khẩu mới:";
  1992. //
  1993. // panel5
  1994. //
  1995. this.panel5.Controls.Add(this.txbReEnterPass);
  1996. this.panel5.Controls.Add(this.label5);
  1997. this.panel5.Location = new System.Drawing.Point(12, 212);
  1998. this.panel5.Name = "panel5";
  1999. this.panel5.Size = new System.Drawing.Size(394, 44);
  2000. this.panel5.TabIndex = 5;
  2001. //
  2002. // txbReEnterPass
  2003. //
  2004. this.txbReEnterPass.Location = new System.Drawing.Point(139, 10);
  2005. this.txbReEnterPass.Name = "txbReEnterPass";
  2006. this.txbReEnterPass.Size = new System.Drawing.Size(252, 20);
  2007. this.txbReEnterPass.TabIndex = 1;
  2008. this.txbReEnterPass.UseSystemPasswordChar = true;
  2009. //
  2010. // label5
  2011. //
  2012. this.label5.AutoSize = true;
  2013. this.label5.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
  2014. this.label5.Location = new System.Drawing.Point(3, 9);
  2015. this.label5.Name = "label5";
  2016. this.label5.Size = new System.Drawing.Size(77, 19);
  2017. this.label5.TabIndex = 0;
  2018. this.label5.Text = "Nhập lại:";
  2019. //
  2020. // btnUpdate
  2021. //
  2022. this.btnUpdate.Location = new System.Drawing.Point(247, 262);
  2023. this.btnUpdate.Name = "btnUpdate";
  2024. this.btnUpdate.Size = new System.Drawing.Size(75, 23);
  2025. this.btnUpdate.TabIndex = 6;
  2026. this.btnUpdate.Text = "Cập nhật";
  2027. this.btnUpdate.UseVisualStyleBackColor = true;
  2028. //
  2029. // btnExti
  2030. //
  2031. this.btnExti.DialogResult = System.Windows.Forms.DialogResult.Cancel;
  2032. this.btnExti.Location = new System.Drawing.Point(328, 262);
  2033. this.btnExti.Name = "btnExti";
  2034. this.btnExti.Size = new System.Drawing.Size(75, 23);
  2035. this.btnExti.TabIndex = 7;
  2036. this.btnExti.Text = "Thoát";
  2037. this.btnExti.UseVisualStyleBackColor = true;
  2038. this.btnExti.Click += new System.EventHandler(this.btnExti_Click);
  2039. //
  2040. // fAccountProfile
  2041. //
  2042. this.AcceptButton = this.btnUpdate;
  2043. this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
  2044. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  2045. this.CancelButton = this.btnExti;
  2046. this.ClientSize = new System.Drawing.Size(423, 296);
  2047. this.Controls.Add(this.btnExti);
  2048. this.Controls.Add(this.btnUpdate);
  2049. this.Controls.Add(this.panel5);
  2050. this.Controls.Add(this.panel4);
  2051. this.Controls.Add(this.panel3);
  2052. this.Controls.Add(this.panel1);
  2053. this.Controls.Add(this.panel2);
  2054. this.Name = "fAccountProfile";
  2055. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  2056. this.Text = "Thông tin cá nhân";
  2057. this.panel2.ResumeLayout(false);
  2058. this.panel2.PerformLayout();
  2059. this.panel1.ResumeLayout(false);
  2060. this.panel1.PerformLayout();
  2061. this.panel3.ResumeLayout(false);
  2062. this.panel3.PerformLayout();
  2063. this.panel4.ResumeLayout(false);
  2064. this.panel4.PerformLayout();
  2065. this.panel5.ResumeLayout(false);
  2066. this.panel5.PerformLayout();
  2067. this.ResumeLayout(false);
  2068.  
  2069. }
  2070.  
  2071. #endregion
  2072.  
  2073. private System.Windows.Forms.Panel panel2;
  2074. private System.Windows.Forms.TextBox txbUserName;
  2075. private System.Windows.Forms.Label label1;
  2076. private System.Windows.Forms.Panel panel1;
  2077. private System.Windows.Forms.TextBox txbDisplayName;
  2078. private System.Windows.Forms.Label label2;
  2079. private System.Windows.Forms.Panel panel3;
  2080. private System.Windows.Forms.TextBox txbPassWord;
  2081. private System.Windows.Forms.Label label3;
  2082. private System.Windows.Forms.Panel panel4;
  2083. private System.Windows.Forms.TextBox txbNewPass;
  2084. private System.Windows.Forms.Label label4;
  2085. private System.Windows.Forms.Panel panel5;
  2086. private System.Windows.Forms.TextBox txbReEnterPass;
  2087. private System.Windows.Forms.Label label5;
  2088. private System.Windows.Forms.Button btnUpdate;
  2089. private System.Windows.Forms.Button btnExti;
  2090.  
  2091. }
  2092. }
  2093.  
  2094. Code fAccountProfile.cs
  2095.  
  2096. using System;
  2097. using System.Collections.Generic;
  2098. using System.ComponentModel;
  2099. using System.Data;
  2100. using System.Drawing;
  2101. using System.Linq;
  2102. using System.Text;
  2103. using System.Threading.Tasks;
  2104. using System.Windows.Forms;
  2105.  
  2106. namespace QuanLyQuanCafe
  2107. {
  2108. public partial class fAccountProfile : Form
  2109. {
  2110. public fAccountProfile()
  2111. {
  2112. InitializeComponent();
  2113. }
  2114.  
  2115. private void btnExti_Click(object sender, EventArgs e)
  2116. {
  2117. this.Close();
  2118. }
  2119. }
  2120. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement