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) { EQOut_Add form = new EQOut_Add(dr, 2, app);//编辑 form.ShowDialog(); this.InStatus_ytComboBox.SelectedIndex = 0; Search_button_Click(null, null); } if (dr["状态"].ToInt() == 0) { WJs.alert("该出库信息已作废,不能再修改!"); } if (dr["状态"].ToInt() == 7) { 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; } EQOut_Add form = new EQOut_Add(this.InWare_selTextInpt.Value, this.InWare_selTextInpt.Text, app); form.ShowDialog(); this.InStatus_ytComboBox.SelectedIndex = 0; Search_button_Click(null, null); }
private void scan_toolStripButton_Click(object sender, EventArgs e) { Dictionary <string, ObjItem> dr = this.dataGView1.getRowData(); if (dr != null) { EQOut_Add form = new EQOut_Add(dr, 3, app);//浏览 form.ShowDialog(); //Search_button_Click(null, null); } else { WJs.alert("请选择要浏览的出库信息!"); } }
private void check_toolStripButton_Click(object sender, EventArgs e)//审核 { Dictionary <string, ObjItem> dr = this.dataGView1.getRowData(); // List<Dictionary<string, ObjItem>> list = this.dataGView2.GetData(); if (dr != null) { if (dr["状态"].ToInt() == 1) { EQOut_Add form = new EQOut_Add(dr, 4, app);//编辑 form.Main = this; form.ShowDialog(); this.InStatus_ytComboBox.SelectedIndex = status; // this.InStatus_ytComboBox.SelectedIndex = 2; //WJs.alert("入库信息id=" + dr["入库ID"].ToString() + "审核成功!"); 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("请选择要审核的出库信息!"); } }