private void updateApprove(string if_agree, string next, BasicInfo info, bool if_back) { Users usr = (Users)Session["Identify"]; int recordID = Convert.ToInt32(Request["RecordID"]); OfficeSupplyApply oi = OfficeSupplyApply.GetOfficeSupplyApplyByID(recordID); oi.ApproveProcess += info.StaffName.Trim() + "-" + if_agree + ","; OfficeSupplyApply.SetOfficeSupplyApplyByID(recordID, oi, proManager.Text); string nextApprover = next; int applyID = Convert.ToInt32(Request["ApplyID"]); Apply.UpdateNextApprover(applyID, nextApprover, if_back); }
protected void confirm_Click(object sender, EventArgs e) { OfficeSupplyApply oi = new OfficeSupplyApply(); oi.StaffName = staffName.Text; oi.Department = department.Text; oi.ApplyDate = DateTime.Today; oi.Reason = reason.Text; oi.ApproveProcess = ""; int recordid = OfficeSupplyApply.SetOfficeSupplyApplyByID(-1, oi, ProjectInfo.getProjectInfoByCode(projectCodeList.SelectedValue).Manager); double allExpense = 0.0; List <OfficeSupplySingle> supplyList = getSupplyList(ref allExpense); OfficeSupplySingle.SetOfficeSupplySingle(supplyList, recordid); oi.AllExpensive = allExpense; OfficeSupplyApply.SetOfficeSupplyApplyByID(recordid, oi, ProjectInfo.getProjectInfoByCode(projectCodeList.SelectedValue).Manager); Response.Redirect("~/Account/ApplyListPage.aspx"); }