private void 添加员工ToolStripMenuItem_Click(object sender, EventArgs e) { if (glyg == null) { glyg = new 管理员工(); glyg.MdiParent = this; glyg.setGl(this); } glyg.setVisible(0); glyg.BringToFront(); glyg.Show(); }
private void 员工管理ToolStripMenuItem_Click(object sender, EventArgs e) { if (glyg == null) { glyg = new 管理员工(); glyg.MdiParent = this; glyg.setGl(this); } if (sjshou == null) { sjshou = new 数据显示(); sjshou.MdiParent = this; } sjshou.setWz(2); sjshou.setGlyg(glyg); string sql = "SELECT id as 员工号, name as 姓名,department_id as 部门号,password as 查询密码,sex as 性别,age as 年龄,createdate as 更新时间,post as 职位 FROM staff_info "; sjshou.show(sql); sjshou.BringToFront(); sjshou.Show(); }
public void setGlyg(管理员工 glyg) { this.glyg = glyg; }