private void 审核MEO创建申请单ToolStripMenuItem_Click(object sender, EventArgs e) { if (dgv2.RowCount != 0 && dgv2.SelectedRows.Count != 0) { if (MessageBox.Show("确定要审核选中的创建申请吗?", "确认信息", MessageBoxButtons.OKCancel) == DialogResult.OK) { for (int i = 0; i < dgv2.RowCount; i++) { if (dgv2.Rows[i].Selected == true) { string requireid = dgv2.Rows[i].Cells["require_id"].Value.ToString(); if (MEOmain.ApproveMEO(int.Parse(requireid), "4") != 1) { MessageBox.Show("审核MEO单据失败!!", "错误提示"); return; } } } MessageBox.Show("审核MEO单据成功!!", "操作提示"); //刷新数据 btn_query_Click(sender, e); //this.Hide(); } } }
private void toolStripMenuItem2_Click(object sender, EventArgs e) { if (dgv1.RowCount != 0) { if (MessageBox.Show("确定要退回此申请吗?", "确认信息", MessageBoxButtons.OKCancel) == DialogResult.OK) { for (int i = 0; i < dgv1.RowCount; i++) { if (dgv1.Rows[i].Selected == true) { string requireid = dgv1.Rows[i].Cells["meolineno"].Value.ToString(); string partid = dgv1.Rows[i].Cells["id"].Value.ToString(); if (MEOmain.ApproveMEO(int.Parse(requireid), "N") != 1) { MessageBox.Show("退回MEO单据成功!!", "操作提示"); return; } } } MessageBox.Show("退回MEO单据失败!!", "错误提示"); //刷新数据 btn_query_Click(sender, e); //this.Hide(); } } }