private void ModifyButton_Click(object sender, EventArgs e)//修改 { Dictionary <string, ObjItem> dr = this.dataGView1.getRowData(); if (dr != null) { if (dr["状态"].ToInt() == 1 || dr["状态"].ToInt() == 2) { PurchasePlan_Add form = new PurchasePlan_Add(dr, 2, this.InWare_selTextInpt.Value, this.InWare_selTextInpt.Text);//编辑 form.ShowDialog(); //this.InStatus_ytComboBox.SelectedIndex = 0; Search_button_Click(null, null); } if (dr["状态"].ToInt() == 0) { WJs.alert("该该采购计划已删除,不能再修改!"); } if (dr["状态"].ToInt() == 6) { WJs.alert("该该采购计划已审核,不能再修改!"); } } else { WJs.alert("请选择要修改的采购计划信息!"); } }
private void check_toolStripButton_Click(object sender, EventArgs e) //审核 { Dictionary <string, ObjItem> dr = this.dataGView1.getRowData(); if (dr != null) { if (dr["状态"].ToInt() == 1) { PurchasePlan_Add form = new PurchasePlan_Add(dr, 4, this.InWare_selTextInpt.Value, this.InWare_selTextInpt.Text);//浏览 form.Main = this; form.ShowDialog(); Search_button_Click(null, null); } if (dr["状态"].ToInt() == 0) { WJs.alert("该计划已删除,不能审核!"); } if (dr["状态"].ToInt() == 2) { WJs.alert("该计划已审核被拒,不能再审核!"); } if (dr["状态"].ToInt() == 6) { WJs.alert("该计划已审核,不需要再审核!"); } } else { WJs.alert("请选择要审核的采购计划信息!"); } }
private void add_toolStripButton_Click(object sender, EventArgs e)//新增 { if (this.InWare_selTextInpt.Value == null) { WJs.alert("请选择库房!"); return; } PurchasePlan_Add form = new PurchasePlan_Add(this.InWare_selTextInpt.Value, this.InWare_selTextInpt.Text); form.ShowDialog(); Search_button_Click(null, null); }
private void scan_toolStripButton_Click(object sender, EventArgs e)//查看 { Dictionary <string, ObjItem> dr = this.dataGView1.getRowData(); if (dr != null) { PurchasePlan_Add form = new PurchasePlan_Add(dr, 3, this.InWare_selTextInpt.Value, this.InWare_selTextInpt.Text);//浏览 form.ShowDialog(); Search_button_Click(null, null); } else { WJs.alert("请选择要查看的采购计划信息!"); } }