Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //Session["departmentid"] = "ARTS";
            ////this employee is the approver
            //Session["employeeid"] = 104;
            //Session["ApproverID"] = 104;
            departmentCode = (string)Session["departmentcode"];
            employeeID     = (int)Session["employeeid"];
            approverID     = (int)Session["ApproverID"];
            //on page load, the Pending Requisition button is selected(green) and the dgv load requisitions with status pending

            if (!IsPostBack)
            {
                btnPendingReq.ForeColor = System.Drawing.Color.Green;
                dgvDepReq.DataSource    = BusinessLogic_Sam.getDepartmentPendingRequisition(departmentCode);
                dgvDepReq.DataBind();
            }
        }