private void tspDelete_Click(object sender, EventArgs e)
{
if (MessageBox.Show("主题为【" + this.txtSubject.Text + "】" + "\n" + "的工作流实例即将被删除!", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.OK)
{
WF_APP app = WorkFlow.NewInstance.GetWFappByWFID(this.wfAppID);
app.LASTUPDATEDATE = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
app.LASTUPDATEUSER = CommonFuns.NewInstance.LoginInfo.LoginID;
app.DEL_FLAG = "Y";
try
{
app.Update();
this.txtSubject.ReadOnly = false;
this.txtSubject.Text = "";
this.btnSubmit.Enabled = true;
this.btnModify.Enabled = true;
this.txtSubject.Focus();
this.txtSubject.Focus();
this.gpFlowDetail.Controls.Clear();
this.tspDelete.Enabled = false;
}
catch (Exception ex)
{
MessageBox.Show("删除失败:" + "\n" + ex.Message.ToString(), "工作流实例建立向导提示您:", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
return;
}
}
// this.WfAppID
}