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

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