private void updateApprove(string if_agree, string next, BasicInfo info, bool if_back) { Users usr = (Users)Session["Identify"]; int recordID = Convert.ToInt32(Request["RecordID"]); EntertainApply ei = EntertainApply.GetEntertainApplyByID(recordID); ei.ApproveProcess += info.StaffName.Trim() + "-" + if_agree + ","; EntertainApply.SetEntertainApplyByID(recordID, ei); string nextApprover = next; int applyID = Convert.ToInt32(Request["ApplyID"]); Apply.UpdateNextApprover(applyID, nextApprover, if_back); }
protected void confirm_Click(object sender, EventArgs e) { EntertainApply ei = new EntertainApply(); ei.StaffName = Request["staffName"]; ei.Department = depList.SelectedValue; ei.Manager = manager.Text; ei.ApplyDate = Convert.ToDateTime(applyDate.Value); ei.TreatDate = Convert.ToDateTime(treatDate.Value); ei.Reason = Request["reason"]; ei.Treated = Request["treated"]; ei.TreatStandard = Request["treatStandard"]; ei.TreatStyle = Request["treatStyle"]; ei.Budget = Convert.ToDouble(budget.Text); ei.ApproveProcess = ""; EntertainApply.SetEntertainApplyByID(-1, ei); Response.Redirect("~/Account/BasicInfo.aspx"); }