예제 #1
0
파일: User.cs 프로젝트: GianiWVL/VUYLSTEKE
 public User(PROF_IT.Common.Enumerations.TypeForm typeForm)
 {
     try
     {
         InitializeComponent();
         SetPermissions();
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             _user = new TIS.DL.Internal.User.UserObject();
         }
         else
         {
             _user = Context.User;
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
예제 #2
0
파일: User.cs 프로젝트: GianiWVL/VUYLSTEKE
 public User(PROF_IT.Common.Enumerations.TypeForm typeForm)
 {
     try
     {
         InitializeComponent();
         SetPermissions();
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             _user = new TIS.DL.Internal.User.UserObject();
         }
         else
         {
             _user = Context.User;
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
예제 #3
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");
 }