public void Reject(WCFRequisition requisition)
    {
        Requisition r = new Requisition()
        {
            RequisitionID = Convert.ToInt32(requisition.RequisitionNo),
            ApprovedBy    = Convert.ToInt32(requisition.ApprovedBy),
            Remarks       = requisition.Remarks,
        };

        RequisitionControl.rejectRequisition(Convert.ToInt32(requisition.RequisitionNo), requisition.Remarks, Convert.ToInt32(r.ApprovedBy));
    }
    protected void BtnReject_Click(object sender, EventArgs e)
    {
        if (Request.QueryString["id"] != null && Session["emp"] != null)
        {
            Employee emp = (Employee)Session["emp"];
            id = Convert.ToInt32(Request.QueryString["id"]);
            string reason = txtReason.Value;
            RequisitionControl.rejectRequisition(id, reason, emp.EmpID);

            Page.Response.Redirect(Page.Request.Url.ToString(), true);

            approveSuccess.Text = "You Rejected the requisition requested by " + lblReqname.Text + " Successfully";
        }
        else
        {
            approveSuccess.Text = "Process Failed , Please contact server admininstration";
        }
    }