Ejemplo n.º 1
0
    protected void btnApprove_Click(object sender, EventArgs e)
    {
        SPTypeDAL oSPTypeDAL = new SPTypeDAL();
        SPType    oSPType    = new SPType(hdSPTypeID.Value);

        oSPType.UserDetails = ucUserDet.UserDetail;

        Result oResult = (Result)oSPTypeDAL.Approve(oSPType);

        if (oResult.Status)
        {
            ucMessage.OpenMessage(Constants.MSG_SUCCESS_APPROVE, Constants.MSG_TYPE_SUCCESS);
        }
        else
        {
            ucMessage.OpenMessage(Constants.MSG_ERROR_APPROVE, Constants.MSG_TYPE_ERROR);
        }
    }