Example #1
0
        public void getOurCompany()
        {
            MySqlConnections conc = new MySqlConnections();

            oc = conc.getCompany();
            if (oc == null)
            {
                oc = new OurCompany();
            }
        }
Example #2
0
        private void btPrin_Click(object sender, EventArgs e)
        {
            MySqlConnections conc = new MySqlConnections();

            conc.insertBills(alId);
            //画面出力
            paymentReference pr = new paymentReference();

            this.Hide();
            pr.ShowDialog();
            this.Close();
            //オブジェクトが閉じたら
            pr.Dispose();
        }
Example #3
0
        public void getCust()
        {
            MySqlConnections conc = new MySqlConnections();

            if (_alOrder.Count != 0)
            {
                customer = conc.getCostmaer(_alOrder[0].getCustomer().ToString());
            }
            else
            {
                customer = conc.getCostmaer("1");
            }
            if (customer == null)
            {
                customer = new Customers();
            }
        }
Example #4
0
        private void btLogin_Click(object sender, EventArgs e)
        {
            cnct = new MySqlConnections();


            emp = new Employees();
            //入力値チェック
            if (!"".Equals(tbUserId.Text.ToString()) && !"".Equals(tbPassword.Text.ToString()))
            {
                try
                {
                    //テキスト取得
                    String id   = tbUserId.Text.ToString();
                    String pass = tbPassword.Text.ToString();
                    emp = this.cnct.CheckLogin(id, pass);
                    MessageBox.Show("ログイン完了 " + emp.getName(), "OK");
                }
                catch
                {
                    MessageBox.Show("ユーザー名もしくはパスワードが正しくありません ", "OK");
                    return;
                }

                customerList cL = new customerList();
                cL.ReceiveData(tbUserId.Text.ToString());
                this.Hide();
                cL.ShowDialog();
                this.Close();
                //オブジェクトが閉じたら
                cL.Dispose();
            }
            else
            {
                MessageBox.Show("ユーザー名もしくはパスワードが入力されていません", "エラー");
                return;
            }
        }