private void 添加ToolStripMenuItem_Click(object sender, EventArgs e) { if (bmtj == null) { bmtj = new 管理部门(); bmtj.MdiParent = this; bmtj.setGuanli(this); } bmtj.setVisible(0); //设置为添加页面 bmtj.BringToFront(); bmtj.Show(); }
private void 部门管理ToolStripMenuItem_Click(object sender, EventArgs e) { if (bmtj == null) { bmtj = new 管理部门(); bmtj.MdiParent = this; bmtj.setGuanli(this); } if (sjshou == null) { sjshou = new 数据显示(); sjshou.MdiParent = this; sjshou.setBmtj(bmtj); } sjshou.setBmtj(bmtj); sjshou.setWz(1); string sql = "select id as '部门号',name as '部门名称',basis as '基本工资' from department_info"; sjshou.show(sql); sjshou.BringToFront(); sjshou.Show(); }