Example #1
0
 //保存草稿
 protected void bnLeaveSaveDraft_Click(object sender, ImageClickEventArgs e)
 {
     if (TaskPage.SaveData(ProcessAction.SaveHRDraft))
     {
         MessageBox.Show(this.Page, "保存申请成功!", "/Process/TAF/HRBP/LeftEmployeeMgr.aspx");
     }
     else
     {
         MessageBox.Show(this.Page, "保存申请失败!");
     }
 }
Example #2
0
 /// <summary>
 /// 审批时保存
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btnApproveSave_Click(object sender, EventArgs e)
 {
     if (TaskPage.SaveData(ProcessAction.ApproveSave))
     {
         MessageBox.ShowAndClose(this.Page, "保存成功!");
     }
     else
     {
         MessageBox.ShowAndPop(this.Page, "此任务已不存在或您已无权处理此任务!", "/WorkSpace/MyWorklist.aspx");
     }
 }
Example #3
0
 protected void btnSaveDraftHR_Click(object sender, EventArgs e)
 {
     if (TaskPage.SaveData(ProcessAction.SaveHRDraft))
     {
         MessageBox.Show(this.Page, "保存申请成功!", "/Process/OAF/HRBP/OnBoardManage.aspx");
     }
     else
     {
         MessageBox.Show(this.Page, "保存申请失败!");
     }
 }
Example #4
0
 //只保存数据
 protected void btnleaveSave_Click(object sender, ImageClickEventArgs e)
 {
     TaskPage.Comments = txtComments.Text;
     if (TaskPage.SaveData(ProcessAction.DraftHR))
     {
         MessageBox.ShowAndPop(this.Page, "保存离职员工信息成功!", "/Process/TAF/HRBP/LeftEmployeeMgr.aspx");
     }
     //MessageBox.ShowAndClose(this.Page, "Submited process successfully!<br/>提交申请成功!");
     else
     {
         MessageBox.Show(this.Page, "保存离职员工信息失败!");
     }
 }
Example #5
0
 protected void btnSubmitMore_Click(object sender, EventArgs e)
 {
     TaskPage.Comments = txtComments.Text;
     if (TaskPage.SaveData(ProcessAction.SubmitHRBP))
     {
         MessageBox.ShowAndPop(this.Page, "提交员工信息成功!", "/Process/OAF/HRBPSubmit.aspx");
     }
     //MessageBox.ShowAndClose(this.Page, "Submited process successfully!<br/>提交申请成功!");
     else
     {
         MessageBox.Show(this.Page, "提交员工信息失败!");
     }
 }
Example #6
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     if (TaskPage.SaveData(ProcessAction.Save))
     {
         if (TaskPage.IsModifyPage)
         {
             MessageBox.Show(this.Page, "保存员工信息成功!", System.Web.HttpContext.Current.Request.Path + "?FormID=" + TaskPage.FormID);
         }
         else
         {
             MessageBox.ShowAndClose(this.Page, "保存申请成功!");
         }
     }
     else
     {
         MessageBox.Show(this.Page, "保存申请失败!");
     }
 }
Example #7
0
 protected void btnSaveDraft_Click(object sender, EventArgs e)
 {
     if (TaskPage.SaveData(ProcessAction.SaveDraft))
     {
         if (TaskPage.WorkflowID == 3)
         {
             MessageBox.ShowAndPop(this.Page, "保存成功,该任务已进入到您的‘草稿箱’中!", "/WorkSpace/MyDraft.aspx");
         }
         else
         {
             MessageBox.ShowAndReload(this.Page, "保存申请成功!");
         }
     }
     //MessageBox.Show(this.Page, "Saved process successfully!<br/>保存申请成功!", "../OAF/HRBPSubmit.aspx?FormID=" + TaskPage.FormID + "");
     else
     {
         MessageBox.Show(this.Page, "保存申请失败!");
     }
 }