62,046
社区成员
发帖
与我相关
我的任务
分享
try
{
string processtemplate = GetProcessTemplate(BaseISO.TABLE_BP);
string processname = this.txtNum.Text.Trim();
if (String.IsNullOrEmpty(processtemplate)) return;
if (String.IsNullOrEmpty(processname)) return;
CreateProcInstInPortal(processtemplate, processname);
SaveDataBindIntoDB(BaseISO.TABLE_BP, BaseISO.TABLE_BP_KEY, this.txtNum.Text);
BaseISO.SequenceAddOne(BaseISO.TABLE_BP);
string url = null;
if (Request[CONST_TASKLISTURL] != null)
{
url = Request[CONST_TASKLISTURL];
Response.Redirect(url);
}
if (Request[CONST_RETURN_URL] != null)
{
url = Request[CONST_RETURN_URL];
Response.Redirect(url);
}
if (Request[BaseISO.CONST_RETURN_MENU] != null)
{
url = BaseISO.CONST_RETURN_BLANK;
Response.Redirect(url);
}
else
{
Response.Redirect("../AgilePoint/TasksPage.aspx");
Response.Write("<script language='javascript'>window.close();</script>");
}
}
catch (Exception ex)
{
ShowMessage(ex.Message);
}