Пример #1
0
        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, "提交表单失败!");
            }
        }
Пример #2
0
 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");
     }
 }
Пример #3
0
        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, "发起会签失败!");
            }
        }