public MenuCreate() { InitializeComponent(); ma = new Manager(); database = new DateBase(); RefreshItem(); }
public Waiter() { db = new DateBase(); ID = null; Password = null; myorder = new Order(); }
public Signup(LogIn login) { InitializeComponent(); db = new DateBase(); type = "0"; log = login; }
public LogIn() { InitializeComponent(); db = new DateBase(); type = "0"; Uid = ""; }
private void button2_Click(object sender, EventArgs e) { string SearchTime = textBox1.Text + '/' + comboBox1.Text; db = new DateBase(); db.GetPerformanceBytime(SearchTime, listView1); }
public MenuCreate(LogIn login) { InitializeComponent(); log = login; ma = new Manager(); database = new DateBase(); RefreshItem(); }
public CustomerSystem() { db = new DateBase(); InitializeComponent(); db.SortWithCount(listView1); uid = ""; rate = 0; }
private void button1_Click(object sender, EventArgs e) { db = new DateBase(); int result; int.TryParse(textBox1.Text, out result); waitersys.Num = result; db.InsertPM(waitersys.log.textBox1.Text, result.ToString()); this.Close(); }
public CustomerSystem(LogIn login, string id) { LoGin = new LogIn(); LoGin = login; db = new DateBase(); InitializeComponent(); db.SortWithCount(listView1); customer = new Customer(id); uid = id; rate = 0; }
private void button1_Click(object sender, EventArgs e) { if (temp <= 5) { if (textBox1.Text != "888") { MessageBox.Show("密码错误"); temp++; } else { Db = new DateBase(); if (Db.GetPassword(textBox1.Text, "1") == null) { if (Sup.textBox1.Text != "" && Sup.textBox2.Text != "") { Db.SetLogin(Sup.textBox1.Text, Sup.textBox2.Text, "1"); } else { MessageBox.Show("密码或用户名不能为空"); } } else { MessageBox.Show("用户名已存在"); } } } else { MessageBox.Show("注册已被锁定,请联系开发人员"); this.Close(); flag = 1; } }
public Order() { db = new DateBase(); order = new ListViewItem(); menu = new ListViewItem(); }
public Menu() { db = new DateBase(); }
public Waiter(string Id, string Pword) { ID = Id; Password = Pword; db = new DateBase(); }
public Signup() { InitializeComponent(); db = new DateBase(); type = "0"; }
public void GetOrderByTime(string SearchTime, ListView L) { db = new DateBase(); db.GetOrderBytime(SearchTime, L, ID); }
public Customer() : base() { order = new Order(); db = new DateBase(); }