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); } }
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"); }