private void updateApprove(string if_agree, string next, BasicInfo info, bool if_back)
    {
        //更新审批流程
        int recordID           = Convert.ToInt32(Request["RecordID"]);
        BusinessTripSummary bi = BusinessTripSummary.GetBusinessTripReiByID(recordID);

        bi.ApproveProcess += info.StaffName.Trim() + "-" + if_agree + ",";
        BusinessTripSummary.SetBusinessTripApplyByID(bi, recordID);
        //更新下一审批人
        int    applyID      = Convert.ToInt32(Request["ApplyID"]);
        string nextApprover = next;

        Apply.UpdateNextApprover(applyID, nextApprover, if_back);
    }
Esempio n. 2
0
    protected void confirm_Click(object sender, EventArgs e)
    {
        BusinessTripSummary bi = new BusinessTripSummary();

        bi.StaffName      = staffName.Text;
        bi.DepartmentName = department.Text;
        bi.StartDate      = Convert.ToDateTime(startDate.Value);
        bi.EndDate        = Convert.ToDateTime(endDate.Value);

        bi.ProjectName    = projectNameList.SelectedValue;
        bi.Location       = location.Value;
        bi.Reason         = reason.Text;
        bi.Expense        = expense.Text;
        bi.Travels        = travels.Text;
        bi.Finished       = finished.Text;
        bi.Unfinished     = unfinished.Text;
        bi.ApproveProcess = "";

        BusinessTripSummary.SetBusinessTripApplyByID(bi, -1);
        Response.Redirect("~/Account/ApplyListPage.aspx");
    }