public ActionResult ChangeButtonStyle(string actionType, Guid?id)
        {
            ToolboxViewModel toolboxVM  = new ToolboxViewModel();
            AppUA            appUA      = Session["AppUA"] as AppUA;
            Permission       permission = _pSASysCommon.GetSecurityCode(appUA.UserName, "Enquiry");

            switch (actionType)
            {
            case "List":
                toolboxVM.addbtn.Visible = true;
                toolboxVM.addbtn.Text    = "Add";
                toolboxVM.addbtn.Title   = "Add New";
                toolboxVM.addbtn.Event   = "AddEnquiry();";

                toolboxVM.ExportBtn.Visible = true;
                toolboxVM.ExportBtn.Text    = "Export";
                toolboxVM.ExportBtn.Title   = "Export to excel";
                toolboxVM.ExportBtn.Event   = "ExportEnquiryData()";

                toolboxVM.resetbtn.Visible = true;
                toolboxVM.resetbtn.Text    = "Reset";
                toolboxVM.resetbtn.Title   = "Reset";
                toolboxVM.resetbtn.Event   = "ResetEnquiryList();";

                break;

            case "Edit":
                toolboxVM.addbtn.Visible = true;
                toolboxVM.addbtn.Text    = "Add";
                toolboxVM.addbtn.Title   = "Add New";
                toolboxVM.addbtn.Event   = "AddEnquiry();";

                toolboxVM.savebtn.Visible = true;
                toolboxVM.savebtn.Text    = "Save";
                toolboxVM.savebtn.Title   = "Save";
                toolboxVM.savebtn.Event   = "SaveEnquiry();";

                toolboxVM.CloseBtn.Visible = true;
                toolboxVM.CloseBtn.Text    = "Close";
                toolboxVM.CloseBtn.Title   = "Close";
                toolboxVM.CloseBtn.Event   = "closeNav();";

                toolboxVM.resetbtn.Visible = true;
                toolboxVM.resetbtn.Text    = "Reset";
                toolboxVM.resetbtn.Title   = "Reset";
                toolboxVM.resetbtn.Event   = "ResetEnquiry();";

                toolboxVM.TimeLine.Visible = true;
                toolboxVM.TimeLine.Text    = "TimeLn";
                toolboxVM.TimeLine.Title   = "TimeLine";
                toolboxVM.TimeLine.Event   = "GetTimeLine('" + id.ToString() + "','ENQ');";

                toolboxVM.HistoryBtn.Visible = true;
                toolboxVM.HistoryBtn.Text    = "History";
                toolboxVM.HistoryBtn.Title   = "Document History";
                toolboxVM.HistoryBtn.Event   = "ApprovalHistoryList('" + id.ToString() + "','ENQ');";

                if (_commonBusiness.CheckDocumentIsDeletable("ENQ", id))
                {
                    toolboxVM.deletebtn.Visible       = true;
                    toolboxVM.deletebtn.Disable       = true;
                    toolboxVM.deletebtn.Text          = "Delete";
                    toolboxVM.deletebtn.Title         = "Delete";
                    toolboxVM.deletebtn.DisableReason = "Document Used";
                    toolboxVM.deletebtn.Event         = "";
                }
                else
                {
                    toolboxVM.deletebtn.Visible = true;
                    toolboxVM.deletebtn.Text    = "Delete";
                    toolboxVM.deletebtn.Title   = "Delete";
                    toolboxVM.deletebtn.Event   = "DeleteEnquiry();";
                }


                break;

            case "LockDocument":
                toolboxVM.addbtn.Visible = true;
                toolboxVM.addbtn.Text    = "Add";
                toolboxVM.addbtn.Title   = "Add New";
                toolboxVM.addbtn.Event   = "AddEnquiry();";

                toolboxVM.savebtn.Visible       = true;
                toolboxVM.savebtn.Text          = "Save";
                toolboxVM.savebtn.Title         = "Save";
                toolboxVM.savebtn.Disable       = true;
                toolboxVM.savebtn.DisableReason = "Document Locked";
                toolboxVM.savebtn.Event         = "";

                toolboxVM.CloseBtn.Visible = true;
                toolboxVM.CloseBtn.Text    = "Close";
                toolboxVM.CloseBtn.Title   = "Close";
                toolboxVM.CloseBtn.Event   = "closeNav();";

                toolboxVM.resetbtn.Visible       = true;
                toolboxVM.resetbtn.Text          = "Reset";
                toolboxVM.resetbtn.Title         = "Reset";
                toolboxVM.resetbtn.Disable       = true;
                toolboxVM.resetbtn.DisableReason = "Document Locked";
                toolboxVM.resetbtn.Event         = "";

                toolboxVM.TimeLine.Visible = true;
                toolboxVM.TimeLine.Text    = "TimeLn";
                toolboxVM.TimeLine.Title   = "TimeLine";
                toolboxVM.TimeLine.Event   = "GetTimeLine('" + id.ToString() + "','ENQ');";

                toolboxVM.HistoryBtn.Visible = true;
                toolboxVM.HistoryBtn.Text    = "History";
                toolboxVM.HistoryBtn.Title   = "Document History";
                toolboxVM.HistoryBtn.Event   = "ApprovalHistoryList('" + id.ToString() + "','ENQ');";

                toolboxVM.deletebtn.Visible       = true;
                toolboxVM.deletebtn.Text          = "Delete";
                toolboxVM.deletebtn.Title         = "Delete";
                toolboxVM.deletebtn.Disable       = true;
                toolboxVM.deletebtn.DisableReason = "Document Locked";
                toolboxVM.deletebtn.Event         = "";
                break;

            case "Add":

                toolboxVM.savebtn.Visible = true;
                toolboxVM.savebtn.Text    = "Save";
                toolboxVM.savebtn.Title   = "Save";
                toolboxVM.savebtn.Event   = "SaveEnquiry();";

                toolboxVM.CloseBtn.Visible = true;
                toolboxVM.CloseBtn.Text    = "Close";
                toolboxVM.CloseBtn.Title   = "Close";
                toolboxVM.CloseBtn.Event   = "closeNav();";

                toolboxVM.resetbtn.Visible = true;
                toolboxVM.resetbtn.Text    = "Reset";
                toolboxVM.resetbtn.Title   = "Reset";
                toolboxVM.resetbtn.Event   = "ResetEnquiry();";

                break;

            case "AddSub":

                break;

            case "tab1":

                break;

            case "tab2":

                break;

            default:
                return(Content("Nochange"));
            }
            toolboxVM = _tool.SetToolbarAccess(toolboxVM, permission);
            return(PartialView("ToolboxView", toolboxVM));
        }