コード例 #1
0
    protected void BtnCancel_Click(object sender, EventArgs e)
    {
        try
        {
            id = Convert.ToInt32(Request.QueryString["requisitionNo"]);
            RequisitionControl.cancelRejectRequisition(id);

            Response.Redirect(LoginController.RequisitionListDepRepURI);
            //Response.Write("<script language='javascript'>alert('Requisition has been cancelled');</script>");
        }
        catch (Exception)
        {
            Utility.DisplayAlertMessage("Error! Retry.");
        }
    }