protected void confirm_Click(object sender, EventArgs e) { PayAssign pi = new PayAssign(); pi.School = schoolList.SelectedValue; pi.ProjectName = projectNameList.SelectedValue; pi.StaffName = staffName.Text; pi.Payee = payee.Value; pi.Payed = Convert.ToDouble(payed.Text); pi.Income = Convert.ToDouble(income.Text); pi.Assigned = Convert.ToDouble(assigned.Text); pi.Instrument = instrument.Text; pi.Hardware = hardware.Text; pi.FundingID = fundingID.Value; pi.ToUniversity = Convert.ToDouble(toUniversity.Text); pi.ToUniversityDetail = toUniversityDetail.Value; pi.ToSchool = Convert.ToDouble(toSchool.Text); pi.ToSchoolDetail = toSchoolDetail.Value; pi.Fundings = Convert.ToDouble(fundings.Text); pi.FundingsDetail = fundingsDetail.Value; pi.Welfare = Convert.ToDouble(welfare.Text); pi.WelfareDetail = welfareDetail.Value; pi.Note = note.Text; pi.ApproveProcess = ""; PayAssign.SetPayAssignOutSchool(-1, pi); CashFlowInfo tran = new CashFlowInfo(); int recordID = Convert.ToInt32(Request["RecordID"]); tran.RecordID = recordID; tran.HappenDate = Convert.ToDateTime(DateTime.Today); tran.ProjectCode = ProjectInfo.GetProjectInfoByName(pi.ProjectName).ProjectCode; tran.ProjectAccount = ProjectInfo.GetProjectInfoByName(pi.ProjectName).ProjectAccount; tran.CashType = "到款分配-校外"; tran.Income = pi.Income; tran.Expense = 0; tran.Department = ""; tran.Summary = ""; tran.Remark = ""; tran.Handler = pi.StaffName; tran.AccountID = "应收账款"; tran.VoucherID = "暂无"; CashFlowInfo.SetCashFlow(tran, tran.RecordID); Response.Redirect("~/Account/ApplyListPage.aspx"); }
private void updateApprove(string if_agree, string next, BasicInfo info, bool if_back) { //更新审批流程 int recordID = Convert.ToInt32(Request["RecordID"]); PayAssign pi = PayAssign.GetPayAssignByID(recordID); pi.ApproveProcess += info.StaffName.Trim() + "-" + if_agree + ","; PayAssign.SetPayAssignOutSchool(recordID, pi); //更新下一审批人 int applyID = Convert.ToInt32(Request["ApplyID"]); string nextApprover = next; Apply.UpdateNextApprover(applyID, nextApprover, if_back); }