protected void confirmButton_Click(object sender, EventArgs e) { ContractApply ci = new ContractApply(); ci.StaffName = staffName.Text; ci.Department_str = department.Text; ci.ContractName = contractName.Value; ci.ProjectCode = projectCode.Text; ci.ProjectName = projectNameList.SelectedValue; ci.Money = Convert.ToDouble(money.Text); ci.PartyBName = partyBName.Value; ci.PartyBAddress = partyBAddress.Value; ci.PartyBContact = partyBContact.Value; ci.PartyBTelephone = partyBTelephone.Value; ci.BusinessLicense = businessLicense.Checked; ci.IndustoryLicense = industoryLicense.Checked; ci.ApproveProcess = ""; if (others.Checked) { ci.Others = Request["otherInfo"]; } else { ci.Others = ""; } Users usr = (Users)Session["Identify"]; ContractApply.SetContractApplyByID(-1, ci, usr.UserID); Response.Redirect("~/Account/ApplyListPage.aspx"); }
private void updateApprove(string if_agree, string next, BasicInfo info, bool if_back) { Users usr = (Users)Session["Identify"]; int recordID = Convert.ToInt32(Request["RecordID"]); ContractApply ci = ContractApply.GetContractApplyByID(recordID); ci.ApproveProcess += info.StaffName.Trim() + "-" + if_agree + ","; ContractApply.SetContractApplyByID(recordID, ci, usr.UserID); string nextApprover = next; int applyID = Convert.ToInt32(Request["ApplyID"]); Apply.UpdateNextApprover(applyID, nextApprover, if_back); }