protected void Approve_Transaction(int type)
        {
            try
            {
                BECommon objBECommon = new BECommon();
                BCommon  objBCommon  = new BCommon();
                objBECommon.IntTransID    = Convert.ToInt64(lblTransactionID.Text);
                objBECommon.IntEmployeeID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID]);
                objBECommon.IntType       = type;

                objBCommon.BAutoProcInboxApproveOrReject(objBECommon);

                if (type == 1 && objBECommon.IntResult > 0)
                {
                    img.Visible        = true;
                    imgConfirm.Visible = false;
                    //btnReject.Visible = false;
                    imgBack.Visible  = false;
                    btnInbox.Visible = true;
                    //lblSuccess.Text = "Transaction is Approved Successfully.";
                    lblSuccess.Text = Resources.ResMessages.Audit_TransApprove;
                    //ScriptManager.RegisterStartupScript(this, this.GetType(), "ShowSuccess", "alert('Transaction is Approved')", true);
                    //Response.Redirect("AuditorConfirmation.aspx?type=1&" + Request.QueryString.ToString(), false);
                }
                else
                if (type == 0 && objBECommon.IntResult > 0)
                {
                    img.Visible = true;
                    //btnReject.Visible = false;
                    imgConfirm.Visible = false;
                    imgBack.Visible    = false;
                    btnInbox.Visible   = true;
                    lblSuccess.Text    = Resources.ResMessages.Audit_TransReject;
                    //ScriptManager.RegisterStartupScript(this, this.GetType(), "ShowSuccess", "alert('Transaction is Rejected')", true);
                    // Response.Redirect("AuditorConfirmation.aspx?type=0&" + Request.QueryString.ToString(), false);
                }
                else
                {
                    img.Visible        = true;
                    imgConfirm.Visible = false;
                    imgBack.Visible    = false;
                    //lblSuccess.Text = "Approval/Rejection Failed.Please try again";
                    lblSuccess.Text  = Resources.ResMessages.Audit_TransFail;
                    btnInbox.Visible = true;
                    //ScriptManager.RegisterStartupScript(this, this.GetType(), "ShowSuccess", "alert('Approval/Rejection Failed.Please try again')", true);
                }
            }
            catch (Exception)
            {
            }
        }