Beispiel #1
0
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     if (TaskPage.StartProcess(ProcessAction.Submit))
     {
         MessageBox.ShowAndClose(this.Page, "提交申请成功!");
     }
     else
     {
         MessageBox.Show(this.Page, "提交申请失败!");
     }
 }
Beispiel #2
0
 //提交
 protected void btnLeaveSubmitHRBP_Click(object sender, ImageClickEventArgs e)
 {
     TaskPage.Comments = txtComments.Text;
     if (TaskPage.StartProcess(ProcessAction.SubmitHRBP, "TAF"))
     {
         MessageBox.ShowAndPop(this.Page, "发起离职流程成功!", "/Process/TAF/HRBP/LeftEmployeeMgr.aspx");
     }
     //MessageBox.ShowAndClose(this.Page, "Submited process successfully!<br/>提交申请成功!");
     else
     {
         MessageBox.Show(this.Page, "发起离职流程失败!");
     }
 }
Beispiel #3
0
        protected void btnSubmitCF_Click(object sender, EventArgs e)
        {
            //反射执行取得流程名称
            MethodInfo mi = Page.GetType().GetMethod("SetValue");

            mi.Invoke(Page, null);
            int ProcInstID = -1;

            if (TaskPage.StartProcess(ProcessAction.SubmitCF, "WF.K2\\SCF", Page.User.Identity.Name, ref ProcInstID))
            {
                MessageBox.ShowAndPop(this.Page, "提交成功,该任务已进入到您的‘我的申请’中!", "/WorkSpace/MyStarted.aspx");
            }
            else
            {
                MessageBox.Show(this.Page, "提交申请失败!");
            }
        }