private void updateApprove(string if_agree, string next, BasicInfo info, bool if_back) { Users usr = (Users)Session["Identify"]; int recordID = Convert.ToInt32(Request["RecordID"]); StaffMealApply si = StaffMealApply.GetStaffMealApplyByID(recordID); si.ApproveProcess += info.StaffName.Trim() + "-" + if_agree + ","; StaffMealApply.SetStaffMealApplyByID(recordID, si); string nextApprover = next; int applyID = Convert.ToInt32(Request["ApplyID"]); Apply.UpdateNextApprover(applyID, nextApprover, if_back); }
protected void confirm_Click(object sender, EventArgs e) { StaffMealApply si = new StaffMealApply(); si.StaffName = staffName.Text; si.DepartmentName = department.Text; si.Position = position.Text; si.Reason = reason.Value; si.Persons = Convert.ToInt16(persons.Value); si.Money = Convert.ToDouble(money.Text); si.Standard = standard.Value; si.MealDate = Convert.ToDateTime(mealDate.Value); si.Legal = Convert.ToBoolean(legal.SelectedValue); si.Style = Convert.ToBoolean(style.SelectedValue); si.ApproveProcess = ""; Users usr = (Users)Session["Identify"]; StaffMealApply.SetStaffMealApplyByID(-1, si); Response.Redirect("~/Account/ApplyListPage.aspx"); }