Beispiel #1
0
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void butxgczy_Click(object sender, EventArgs e)
        {
            string     yhbh   = this.dgvhyf.CurrentRow.Cells[0].Value.ToString(); //获取类型
            string     yhname = this.dgvhyf.CurrentRow.Cells[1].Value.ToString(); //获取name
            FrmXtZzyTj f      = new FrmXtZzyTj();

            f.bhczy = yhbh;
            f.ShowDialog();


            //判断修改的是否是当前管理员
            if (FrmMain.ryy == yhname)
            {
                if (FrmXtZzyTj.shzbcs != 0)
                {
                    Application.ExitThread();
                    fds = new FrmLogin();
                    Thread t = new Thread(new ThreadStart(FormStart));
                    t.Start();
                    FrmLogin ff = new FrmLogin();
                    ff.Show();
                }
            }

            FrmXtSz_Load(null, null);
        }
Beispiel #2
0
        /// <summary>
        /// 添加操作员
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void butjzcy_Click(object sender, EventArgs e)
        {
            FrmXtZzyTj f = new FrmXtZzyTj();

            f.ShowDialog();
            FrmXtSz_Load(null, null);
        }