private void Add_toolStrip_Click(object sender, EventArgs e) { EQLingYongEdit form = new EQLingYongEdit(null, 2); form.ShowDialog(); if (selTextInpt1.Text != "" || selTextInpt1.Value != null) { refresh_toolStrip_Click(null, null); } }
private void View_toolStrip_Click(object sender, EventArgs e) { Dictionary <string, ObjItem> dr = dataGView1.getRowData(); if (dr != null) { EQLingYongEdit form = new EQLingYongEdit(dr, 0); form.ShowDialog(); if (selTextInpt1.Text != "" || selTextInpt1.Value != null) { refresh_toolStrip_Click(null, null); } } else { WJs.alert("请选择要浏览的设备领用记录!"); } }
private void Edit_toolStrip_Click(object sender, EventArgs e) { Dictionary <string, ObjItem> dr = dataGView1.getRowData(); if (dr != null) { if (dr["状态"].ToString() == "1" || dr["状态"].ToString() == "2") { EQLingYongEdit form = new EQLingYongEdit(dr, 1); form.ShowDialog(); refresh_toolStrip_Click(null, null); } else { WJs.alert("只能对等待审核与审核被拒的领用信息进行编辑!"); } } else { WJs.alert("请选择要编辑的设备领用信息!"); } }