private void 编辑ToolStripMenuItem_Click(object sender, EventArgs e) { //获得dgv_data 当前选中行 DataGridViewRow mydr = dgv_data.CurrentRow; //构造一个jjpersoninfo JJPersonInfo myinfo = new JJPersonInfo() { _huaming = mydr.Cells["花名"].Value.ToString(), _shiming = mydr.Cells["实名"].Value.ToString(), _bumen = mydr.Cells["部门"].Value.ToString(), _zhiji = mydr.Cells["职级"].Value.ToString(), _mima = mydr.Cells["密码"].Value.ToString(), _shoujihao = mydr.Cells["手机号"].Value.ToString(), _dianziyouxiang = mydr.Cells["电子邮箱"].Value.ToString(), _zidingyizhanghao = mydr.Cells["自定义账号"].Value.ToString(), _touxiang = mydr.Cells["头像"].Value.ToString(), _gongzuozhengjianzhao = mydr.Cells["工作证件照"].Value.ToString(), _weixinhao = mydr.Cells["微信号"].Value.ToString(), _gerenqianming = mydr.Cells["个人签名"].Value.ToString() }; //构造一个wfzhuce,把jjpersoninfo传进去 WFzhuce mywin = new WFzhuce(myinfo); //刷新dgv_data if (mywin.ShowDialog() == DialogResult.OK) { UCshouquan_Load(null, null); } }
private void pb_touxiang_Click(object sender, EventArgs e) { WFzhuce mywin = new WFzhuce(_jjpi); if (mywin.ShowDialog() == DialogResult.OK) { } }
private void lbl_zhucerenyuan_Click(object sender, EventArgs e) { WFzhuce mywin = new WFzhuce(); if (mywin.ShowDialog() == DialogResult.OK) { UCshouquan_Load(null, null); } }
private void lbl_name_Click(object sender, EventArgs e) { //弹出注册窗体 WFzhuce mywin = new WFzhuce(0); if (mywin.ShowDialog() == DialogResult.OK) { } }
private void lbl_tianjiayonghu_Click(object sender, EventArgs e) { //显示注册用户窗体 WFzhuce mywin = new WFzhuce() { StartPosition = FormStartPosition.CenterParent }; if (mywin.ShowDialog() == DialogResult.OK) { //刷新人员 //显示personinfo string str_sql = $"select * from jjdbrenwutaizhang.jjperson where 删除='0'"; DataTable mydt = _mycontroller.GetDataTable(str_sql); dgv_person.DataSource = mydt; //模拟点击一次表格 dgv_person_CellMouseClick(null, null); //更新主界面的规则数据 MessageBox.Show("注册成功!"); } }
private void llbl_woyaozhuce_Click(object sender, EventArgs e) { WFzhuce mywf = new WFzhuce(); mywf.ShowDialog(); }