public void btnCancel_Click(object sender, EventArgs e) { TaskPage.Comments = txtComments.Text; if (TaskPage.ApproveProcess(ProcessAction.Cancel)) { MessageBox.ShowAndPop(this.Page, "取消成功,该任务已进入到您的‘已处理的任务’中!", "/WorkSpace/MyWorklist.aspx"); } else { MessageBox.Show(this.Page, "取消申请失败!"); } }
protected void btnConfirm_Click(object sender, EventArgs e) { TaskPage.Comments = txtComments.Text; if (TaskPage.ApproveProcess(ProcessAction.Confirm)) { MessageBox.ShowAndPop(this.Page, "确认成功!", "/WorkSpace/MyWorklist.aspx"); } // MessageBox.ShowAndClose(this.Page, "Confirm process successfully!<br/>确认成功!"); else { // MessageBox.Show(this.Page, "确认失败!"); MessageBox.Show(this.Page, "此任务已被他人处理!"); } }
protected void btnSubmitOnboard_Click(object sender, EventArgs e) { TaskPage.Comments = txtComments.Text; TaskPage.DoProcessAction(ProcessAction.Submit, e); if (TaskPage.ApproveProcess(ProcessAction.Submit)) { MessageBox.ShowAndClose(this.Page, "提交表单成功!"); } else { MessageBox.Show(this.Page, "提交表单失败!"); } }
protected void btnRework_Click(object sender, EventArgs e) { if (TaskPage.ApproveProcess(ProcessAction.Rework)) { if (TaskPage.WorkflowID == 3) { MessageBox.ShowAndPop(this.Page, "提交申请成功!", "/WorkSpace/MyWorklist.aspx"); } else { MessageBox.ShowAndClose(this.Page, "提交申请成功!"); } } else { MessageBox.Show(this.Page, "提交申请失败!"); } }
protected void btnReject_Click(object sender, EventArgs e) { TaskPage.Comments = txtComments.Text; TaskPage.DoProcessAction(ProcessAction.Reject, e); if (TaskPage.ApproveProcess(ProcessAction.Reject)) { if (TaskPage.WorkflowID == 3) { MessageBox.ShowAndPop(this.Page, "拒绝成功!该任务已进入到您的‘已处理的任务’中!", "/WorkSpace/MyWorklist.aspx"); } else { MessageBox.ShowAndClose(this.Page, "拒绝申请成功!"); } } else { MessageBox.ShowAndPop(this.Page, "此任务已不存在或您已无权处理此任务!", "/WorkSpace/MyWorklist.aspx"); } }
protected void btnStartCounter_Click(object sender, ImageClickEventArgs e) { TaskPage.Comments = txtComments.Text; TaskPage.DoProcessAction(ProcessAction.Approve, e); if (TaskPage.ApproveProcess(ProcessAction.StartCounter, "会签")) { if (TaskPage.WorkflowID == 3) { MessageBox.ShowAndPop(this.Page, "发起会签成功!", "/WorkSpace/MyWorklist.aspx"); } else { MessageBox.ShowAndClose(this.Page, "审批申请成功!"); } } else { MessageBox.Show(this.Page, "发起会签失败!"); } }