public Boolean ConvertToFill(String ObjectName)
        {
            BrilliantWMS.BindMenuService.iBindMenuClient objiBindMenuClient = new BrilliantWMS.BindMenuService.iBindMenuClient();
            Boolean flg = false;

            try
            {
                CustomProfile profile = CustomProfile.GetProfile();
                //objProBindMenu._constP = profile.DBConnection._constr;
                objProBindMenu.CompanyCode = profile.Personal.CompanyID;
                objProBindMenu.UserCode    = profile.Personal.UserID;
                List <ProBindMenu> objLstProBindMenu = new List <ProBindMenu> {
                };
                objProBindMenu.ObjectCode = ObjectName;
                objLstProBindMenu         = objiBindMenuClient.CheckOperaction(objProBindMenu).ToList();
                if (objLstProBindMenu.Count > 0)
                {
                    objProBindMenu = objLstProBindMenu[0];
                    flg            = objProBindMenu.BtnAdd;
                }
                return(flg);
            }
            catch (Exception ex) { Login.Profile.ErrorHandling(ex, "UCToolbarHTML", "ConvertToFill"); return(flg); }
            finally { objiBindMenuClient.Close(); }
        }
 public ProBindMenu ToolbarAccess1(string ObjectName, String eventID)
 {
     BrilliantWMS.BindMenuService.iBindMenuClient objiBindMenuClient = new BrilliantWMS.BindMenuService.iBindMenuClient();
     try
     {
         CustomProfile profile = CustomProfile.GetProfile();
         //objProBindMenu._constP = profile.DBConnection._constr;
         objProBindMenu.CompanyCode = profile.Personal.CompanyID;
         objProBindMenu.UserCode    = profile.Personal.UserID;
         List <ProBindMenu> objLstProBindMenu = new List <ProBindMenu> {
         };
         objProBindMenu.ObjectCode = ObjectName;
         objLstProBindMenu         = objiBindMenuClient.CheckOperaction(objProBindMenu).ToList();
         if (objLstProBindMenu.Count > 0)
         {
             objProBindMenu = objLstProBindMenu[0];
             objProBindMenu.ActiveButton = eventID;
             objProBindMenu = objiBindMenuClient.ActiveButtonClickEvent(objProBindMenu);
         }
         return(objProBindMenu);
     }
     catch (Exception ex) { Login.Profile.ErrorHandling(ex, "UCToolbarHTML", "ToolbarAccess1"); return(objProBindMenu); }
     finally { objiBindMenuClient.Close(); }
 }