private void cancelbt_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.taskKey)) return; string taskkey = this.taskKey; Frmreason frm = new Frmreason(this.LoginUser); DialogResult result = frm.ShowDialog(); if (result == DialogResult.OK) { string reason = frm.Reason; this.callNSPRFTM03(taskkey, reason); } }
private void canclebt_Click(object sender, EventArgs e) { //object sel=this.tasklist.SelectedItem; if (this.dataGrid1.CurrentRowIndex<0) { MessageBox.Show("请选择要取消的任务"); return; } //string line = sel.ToString(); //string[] arr = line.Split(' '); string taskkey = this.dataGrid1[dataGrid1.CurrentRowIndex,4].ToString(); Frmreason frm = new Frmreason(this.LoginUser); DialogResult result = frm.ShowDialog(); if (result == DialogResult.OK) { string reason = frm.Reason; this.callNSPRFTM03(taskkey, reason); } }