예제 #1
0
    private void updateApprove(string if_agree, string next, BasicInfo info, bool if_back)
    {
        Users    usr      = (Users)Session["Identify"];
        int      recordID = Convert.ToInt32(Request["RecordID"]);
        OverTime oi       = OverTime.GetOverTimeByID(recordID);

        oi.ApproveProcess += info.StaffName.Trim() + "-" + if_agree + ",";
        OverTime.SetOverTimeByID(recordID, oi, proManager.Text);

        string nextApprover = next;
        int    applyID      = Convert.ToInt32(Request["ApplyID"]);

        Apply.UpdateNextApprover(applyID, nextApprover, if_back);
    }
예제 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        int      recordID = Convert.ToInt32(Request["RecordID"]);
        OverTime oi       = OverTime.GetOverTimeByID(recordID);

        staffName.Text  = oi.StaffName;
        department.Text = oi.Department;
        reason.Text     = oi.Reason;
        applyDate.Text  = oi.ApplyDate.ToShortDateString();
        TimeSpan span = oi.EndDate - oi.StartDate;

        durings.Text = "从" + oi.StartDate.ToShortDateString() + "到" + oi.EndDate.ToShortDateString() + "共" + span.Days + "天" + span.Hours + "时";

        processShow.Text = oi.ApproveProcess;
    }