//保存草稿 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, "保存申请失败!"); } }
/// <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"); } }
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, "保存申请失败!"); } }
//只保存数据 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, "保存离职员工信息失败!"); } }
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, "提交员工信息失败!"); } }
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, "保存申请失败!"); } }
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, "保存申请失败!"); } }