Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();

            Frmguanliyuanmain form8 = new Frmguanliyuanmain();

            form8.Show();
        }
Esempio n. 2
0
        private void 切换账号ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            guanlidl dl = new guanlidl();

            dl.Show();
            Frmguanliyuanmain main = new Frmguanliyuanmain();

            main.Close();
        }
Esempio n. 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            string dlname = this.textBox1.Text;
            string dlmima = this.textBox2.Text;

            //非空验证
            if (dlname == "" || dlmima == "")
            {
                MessageBox.Show("用户名或密码不能为空!", "验证错误:", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            string sql = string.Format(@"
SELECT [dengluname]
      ,[glmima]
      
  FROM [dbo].[guanliyuzhucexinxi]
where [dengluname]='{0}'

", dlname);

            SqlParameter[] parm = new SqlParameter[] {
                new  SqlParameter("@name", dlname),
                new  SqlParameter("@pwd", dlmima)
            };

            DataTable chaxun = DBHelper.Se("proc_adminLogin", parm);

            if (chaxun.Rows.Count == 0)
            {
                MessageBox.Show("用户名不存在!", "登录失败:", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;

                //this.Hide();
            }
            if (chaxun.Rows[0]["glmima"].ToString() != dlmima)
            {
                MessageBox.Show("密码错误!", "登录失败:", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            else if (this.textBox3.Text != this.label5.Text)
            {
                this.label7.Text = "错误";
                MessageBox.Show("验证码错误!");
            }
            else if (this.textBox3.Text == this.label5.Text)
            {
                //登录成功!
                MessageBox.Show("登录成功!");
                Conmen.SuoQuGuanLiYuanDLName = this.textBox1.Text;

                shiping shiping = new shiping();
                shiping.ShowDialog();
                Frmguanliyuanmain dl = new Frmguanliyuanmain();
                dl.Show();
                //this.Show();
            }
        }
Esempio n. 4
0
        private void button1_Click(object sender, EventArgs e)
        {
            chewei che = new chewei();

            che.Show();

            Frmguanliyuanmain Form8 = new Frmguanliyuanmain();

            Form8.Show();
        }