private void View_toolStrip_Click(object sender, EventArgs e) { Dictionary <string, ObjItem> drZ = dataGView1.getRowData(); Dictionary <string, ObjItem> drX = dataGView2.getRowData(); if (drZ == null || drX == null) { WJs.alert("请选择要浏览的设备变动信息!"); return; } EQChangeManagEdit form = new EQChangeManagEdit(drZ, drX, 0); form.ShowDialog(); }
private void Add_toolStrip_Click(object sender, EventArgs e) { Dictionary <string, ObjItem> drZ = dataGView1.getRowData(); if (drZ == null) { WJs.alert("请选择要新增设备变动的卡片信息!"); return; } //新增 全能 状态 if (drZ["状态"].ToString() == "2") { EQChangeManagEdit form = new EQChangeManagEdit(drZ, null, 2); form.ShowDialog(); refresh_toolStrip_Click(null, null); } else { WJs.alert("只能对已启用的卡片设备添加变动信息!"); return; } }
private void Edit_toolStrip_Click(object sender, EventArgs e) { Dictionary <string, ObjItem> drZ = dataGView1.getRowData(); Dictionary <string, ObjItem> drX = dataGView2.getRowData(); if (drZ == null || drX == null) { WJs.alert("请选择要编辑的设备变动信息!"); return; } if (drX["状态"].ToString() == "1" || drX["状态"].ToString() == "2") { EQChangeManagEdit form = new EQChangeManagEdit(drZ, drX, 1); form.ShowDialog(); refresh_toolStrip_Click(null, null); } else { WJs.alert("只能对等待审核或审核被拒的设备变动信息进行编辑!"); return; } }