//点击打印 private void btnPrintfLib_Click(object sender, EventArgs e) { frmPrintf frmprintf = GenericSingleton <frmPrintf> .CreateInstrance(); showdatatable += frmprintf.GetDT; //【3】将委托变量与方法绑定 showdatatable((System.Data.DataTable)dgvselcet.DataSource); //【4】调用该方法 this.Close(); frmprintf.Show(); }
private void 修改ToolStripMenuItem_Click(object sender, EventArgs e) { if (frmNewMain.quanxianGet)//获得管理员权限后 { //弹出详细信息界面, frmRightChange frmrightchange = GenericSingleton <frmRightChange> .CreateInstrance(); //frmrightchange.Libareaname = LibAreaName; frmrightchange.Show(); } else { return; } }
//获得管理员权限后具有倒库功能 1将物料从A放到B(空位),2将物料A与物料B进行位置调换 private void 倒库ToolStripMenuItem_Click(object sender, EventArgs e) { if (frmNewMain.quanxianGet)//获得管理员权限后 { string libstate = null; orderHelper.SelectToolTip(LibAreaName, out libstate); if (libstate != "空位" && libEmptycount > 0) { //弹出详细信息界面, frmLibExchange frmlibexchange = GenericSingleton <frmLibExchange> .CreateInstrance(); frmlibexchange.Show(); } else { return; } } else { return; } }
private void 自动修改ToolStripMenuItem_Click(object sender, EventArgs e) { frmAutoAlter frmautoalter = GenericSingleton <frmAutoAlter> .CreateInstrance(); frmautoalter.Show(); }