示例#1
0
    protected void btnForceClose_Click(object sender, EventArgs e)
    {
        tblRequisitionTableAdapter RequisitionStatusAdapter = new tblRequisitionTableAdapter();
        //Response.Write(gvRequisitionTransaction.Rows[0].Cells[3].Text);
        decimal RequestID = Convert.ToDecimal(gvRequisitionTransaction.Rows[0].Cells[2].Text);

        if (gvRequisitionTransaction.Rows[0].Cells[3].Text != "Force Closed")
        {
            RequisitionStatusAdapter.spForceCloseRequisition(RequestID);
        }
        else
        {
            RequisitionStatusAdapter.spReactivateRequisition(RequestID);
        }
        BindGridRTransaction(RequestID);
    }