Esempio n. 1
0
 public MenuCreate()
 {
     InitializeComponent();
     ma       = new Manager();
     database = new DateBase();
     RefreshItem();
 }
Esempio n. 2
0
 public Waiter()
 {
     db       = new DateBase();
     ID       = null;
     Password = null;
     myorder  = new Order();
 }
Esempio n. 3
0
 public Signup(LogIn login)
 {
     InitializeComponent();
     db   = new DateBase();
     type = "0";
     log  = login;
 }
Esempio n. 4
0
 public LogIn()
 {
     InitializeComponent();
     db   = new DateBase();
     type = "0";
     Uid  = "";
 }
Esempio n. 5
0
        private void button2_Click(object sender, EventArgs e)
        {
            string SearchTime = textBox1.Text + '/' + comboBox1.Text;

            db = new DateBase();
            db.GetPerformanceBytime(SearchTime, listView1);
        }
Esempio n. 6
0
 public MenuCreate(LogIn login)
 {
     InitializeComponent();
     log      = login;
     ma       = new Manager();
     database = new DateBase();
     RefreshItem();
 }
Esempio n. 7
0
 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();
        }
Esempio n. 9
0
 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;
 }
Esempio n. 10
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;
     }
 }
Esempio n. 11
0
 public Order()
 {
     db    = new DateBase();
     order = new ListViewItem();
     menu  = new ListViewItem();
 }
Esempio n. 12
0
 public Menu()
 {
     db = new DateBase();
 }
Esempio n. 13
0
 public Waiter(string Id, string Pword)
 {
     ID       = Id;
     Password = Pword;
     db       = new DateBase();
 }
Esempio n. 14
0
 public Signup()
 {
     InitializeComponent();
     db   = new DateBase();
     type = "0";
 }
Esempio n. 15
0
 public void GetOrderByTime(string SearchTime, ListView L)
 {
     db = new DateBase();
     db.GetOrderBytime(SearchTime, L, ID);
 }
Esempio n. 16
0
 public Customer() : base()
 {
     order = new Order();
     db    = new DateBase();
 }