Example #1
0
 public static string GetAuthentication(Enumeration.EnumViews.Application view, TIS.DL.Internal.User.UserObject user)
 {
     try
     {
         switch (((int)view))
         {
         case 1:
             return(user.Security.Application.AuthUser);
         }
     }
     catch (Exception exception1)
     {
         throw new Exception(MethodBase.GetCurrentMethod().Name, exception1);
     }
     return("000");
 }
Example #2
0
        public static bool AllowGeneralDelete(Enumeration.EnumViews.Application view)
        {
            bool flag;

            try
            {
                switch (((int)view))
                {
                case 1:
                    return(AllowDelete(Context.User.Security.Application.AuthUser));
                }
                return(flag = false);
            }
            catch (Exception exception1)
            {
                throw new Exception(MethodBase.GetCurrentMethod().Name, exception1);
            }
        }
Example #3
0
        public static bool AllowGeneralMaintain(Enumeration.EnumViews.Application View)
        {
            bool flag;

            try
            {
                switch (((int)View))
                {
                case 1:
                    if (!AllowMaintain(Context.User.Security.Application.AuthUser))
                    {
                        break;
                    }
                    return(true);
                }
                return(flag = false);
            }
            catch (Exception exception1)
            {
                throw new Exception(MethodBase.GetCurrentMethod().Name, exception1);
            }
        }