private void 修改申请ToolStripMenuItem_Click(object sender, EventArgs e) { if (listview.SelectedItems.Count <= 0 || listview.SelectedItems[0].SubItems[1].Text == "") { MessageBox.Show("未选中任何一条服务!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { if (listview.SelectedItems[0].SubItems[5].Text == "已受理" || listview.SelectedItems[0].SubItems[4].Text == "已完成") { MessageBox.Show("该申请已处于受理或完成状态,无法修改!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { Fuwu_Form fw = new Fuwu_Form(); fw.Text = "修改服务申请"; fw.Form_Type = 5; fw.fwid = listview.SelectedItems[0].SubItems[1].Text; fw.yzid = yzid.ToString(); fw.ShowDialog(); if (fw.Form_OK == 1) { treeview_AfterSelect(sender, e); MessageBox.Show("修改服务申请成功!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } } } }
private void 添加申请ToolStripMenuItem_Click(object sender, EventArgs e) { Fuwu_Form fw = new Fuwu_Form(); fw.Text = "添加服务申请"; fw.Form_Type = 4; fw.yzid = yzid.ToString(); fw.ShowDialog(); if (fw.Form_OK == 1) { treeview_AfterSelect(sender, e); MessageBox.Show("添加服务申请成功!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } }