Example #1
0
        /// <summary>
        /// Specify your "Views" here
        /// </summary>
        /// <returns></returns>
        protected string GetCustomControlToLoad()
        {
            ViewNames view = ViewNames.Default;

            if (RequestedView != "")
            {
                view = Enum <ViewNames> .Parse(RequestedView);
            }

            // Specify your Views here
            switch (view)
            {
            case ViewNames.BasicView:
                return("Views/BasicView.ascx");

            case ViewNames.CustomTitles:
                return("Views/CustomTitles.ascx");

            case ViewNames.FriendlyPage:
                return("Views/FriendlyPage.ascx");

            // DEFAULT
            default:
                return("Views/Default.ascx");
            }
        }
Example #2
0
        public static string UrlForView(ViewNames view, string[] queryParams)
        {
            List <string> paramList = new List <string>(queryParams);

            paramList.Add("view=" + view);

            return(Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "", paramList.ToArray()));
        }
 /// <summary>
 /// Evaluates whether the field should be shown or hidden. If this method returns null, the next filter attribute will be evaluated.
 /// </summary>
 public VisibilityMode?CanShow(IViewContext viewContext)
 {
     if (ViewNames.Contains(viewContext.ViewName, StringComparer.CurrentCultureIgnoreCase))
     {
         return(Mode);
     }
     return(null);
 }
Example #4
0
        public async override void OnNavigatedTo(INavigationParameters parameters)
        {
            base.OnNavigatedTo(parameters);

            await Task.Delay(10);

            await NavigationService.NavigateAsync(ViewNames.GetMainMasterPage());
        }
        protected override void ProcessRecord()
        {
            var qb = new QuerystringBuilder();

            qb.Add("includeInactive", IncludeInactive);

            if (MatchAliasNames.IsPresent)
            {
                qb.Add("matchAliasNames", true.ToString());
            }

            if (ViewNames != null && ViewNames.Any())
            {
                qb.Add("viewNames", ViewNames);
            }

            if (ViewBoxIds != null && ViewBoxIds.Any())
            {
                qb.Add("viewBoxIds", ViewBoxIds);
            }

            if (ViewBoxNames != null && ViewBoxNames.Any())
            {
                qb.Add("viewBoxNames", ViewBoxNames);
            }

            if (MatchPartialNames.IsPresent)
            {
                qb.Add("matchPartialNames", true.ToString());
            }

            if (MaxCount.HasValue)
            {
                qb.Add("maxCount", MaxCount.Value);
            }

            if (MaxViewId.HasValue)
            {
                qb.Add("maxViewId", MaxViewId.Value);
            }

            if (JobIds != null && JobIds.Any())
            {
                qb.Add("jobIds", JobIds);
            }

            if (SortByLogicalUsage.IsPresent)
            {
                qb.Add("SortByLogicalUsage", true.ToString());
            }

            var preparedUrl = $"/public/views{qb.Build()}";
            var result      = Session.ApiClient.Get <GetViewsResult>(preparedUrl);

            WriteObject(result.Views, true);
        }
Example #6
0
        public override string ToString()
        {
            string output = "SaveName:" + SaveName + ";\n";

            if (ViewNames.Count == 0)
            {
                ViewNames.Add("ActiveView");
            }
            string vName = "ViewNames:" + string.Join(",", ViewNames) + ";\n";

            output += vName;
            output += "Width:" + Width.ToString() + ";\n";
            output += "Height:" + Height.ToString() + ";";

            return(output);
        }
Example #7
0
        public async override void OnNavigatedTo(INavigationParameters parameters)
        {
            base.OnNavigatedTo(parameters);
            await Task.Delay(1000);

            var isSessionValid = await _authManager.IsSessionValid();

            if (isSessionValid)
            {
                await PageNavigator.NavigateAsync($"../{ViewNames.GetMainMasterPage()}");

                return;
            }

            await PageNavigator.NavigateAsync($"../{ViewNames.LoginPage}");
        }
        public ABaseController(IConfiguration config, IDbSettingsReader settings, ILogger logger) : base()
        {
            this.Settings    = settings;
            this.Config      = config;
            this.Views       = new ViewNames();
            this.Logger      = logger;
            this.Controllers = new ControllerNames
            {
                DashboardController = Settings.GetAppDashboardControllerName(),
                MyProfileController = Settings.GetAppMyProfileControllerName(),
                AccountController   = Settings.GetAccountControllerName(),
                UninstallController = Settings.GetAppUninstallControllerName()
            };

            this.VersionInfo = new Versions()
            {
                AppVersion                 = settings.GetAppVersion(),
                FrameWorkVersion           = AppSettingsAccessor.GetFrameWorkBuildNumber(),
                DataSeederFrameworkVersion = Settings.GetDataSeederFrameworkVersion()
            };
        }
        public DialogBoxResult ShowUserDialog(string title, ViewNames viewName)
        {
            var dialogBoxWindow = new DialogBoxWindow();
            dialogBoxWindow.Title = title;
            switch (viewName)
            {
                case ViewNames.ReservationView:
                    break;
                case ViewNames.ReservationDetailsView:
                    var reservationDetailsView = _container.Resolve<IReservationDetailsView>();
                    if (reservationDetailsView != null)
                    {
                        dialogBoxWindow.Content = reservationDetailsView;
                    }
                    break;
            }

            this._currentWindow = dialogBoxWindow;
            dialogBoxWindow.ShowDialog();
            return DialogBoxResult.OK;
        }
Example #10
0
        /// <summary>
        /// Specify your "Views" here
        /// </summary>
        /// <returns></returns>
        protected string GetCustomControlToLoad()
        {
            ViewNames view = ViewNames.Default;

            if (RequestedView != "")
            {
                view = Enum <ViewNames> .Parse(RequestedView);
            }

            // Specify your Views here
            switch (view)
            {
            case ViewNames.CareAvailability:
                return("Views/CareAvailability.ascx");

            case ViewNames.UnassignedRequests:
                return("Views/UnassignedRequests.ascx");

            default:
                return("Views/Default.ascx");
            }
        }
 public DialogBoxResult ShowUserDialog(string title, ViewNames viewName, DialogBoxButtons dialogBoxButtons)
 {
     throw new NotImplementedException();
 }
Example #12
0
 internal AssignWorklowStepsPage(MVCGridViewType listViewType, Table table, Tables selectedTables, string webAppRootDirectory, string webAppName, string apiName, ViewNames viewNames, string viewName, string jqueryUITheme, GeneratedSqlType generatedSqlType, AppendAddEditRecordContentType appendAddEditRecordContentType, ApplicationVersion appVersion = ApplicationVersion.ProfessionalPlus, bool isUseWebApi = false, bool isUseAuditLogging = false, string webApiBaseAddress = "")
 {
     this._table                          = table;
     this._selectedTables                 = selectedTables;
     this._webAppRootDirectory            = webAppRootDirectory + "Pages\\";
     this._webAppName                     = webAppName;
     this._apiName                        = apiName;
     this._viewName                       = viewName.Trim();
     this._directory                      = webAppRootDirectory + MyConstants.DirectoryRazorPage + this._table.Name + "\\";
     this._appendAddEditRecordContentType = appendAddEditRecordContentType;
     this._appVersion                     = appVersion;
     this.Generate();
 }
Example #13
0
 public static string UrlForViewFriendly(ViewNames view, string csvParams, string friendlyPagePath)
 {
     return(UrlForTabFriendly(PortalSettings.ActiveTab.TabID, string.Format("view={0},{1}", view, csvParams), friendlyPagePath));
 }
Example #14
0
 public static string UrlForView(ViewNames view)
 {
     return(UrlForView(view, new string[] { }));
 }
Example #15
0
 public static string UrlForView(ViewNames view, string csvParams)
 {
     return(UrlForView(view, csvParams.Split(',')));
 }
Example #16
0
 public static string UrlForViewFriendly(ViewNames view, string csvParams, string friendlyPagePath)
 {
     return UrlForTabFriendly(PortalSettings.ActiveTab.TabID, string.Format("view={0},{1}", view, csvParams), friendlyPagePath);
 }
Example #17
0
 /// <summary>
 /// Initializes a new instance of the TabModelInformation class.
 /// </summary>
 /// <param name="tabHeader">The tab header.</param>
 /// <param name="viewName">Name of the view.</param>
 public TabModelInformation(string tabHeader, ViewNames viewName)
     : this(tabHeader, viewName, null)
 {
 }
Example #18
0
        public static string UrlForView(ViewNames view, string[] queryParams)
        {
            List<string> paramList = new List<string>(queryParams);
            paramList.Add("view=" + view);

            return Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "", paramList.ToArray());
        }
Example #19
0
 public static string UrlForView(ViewNames view, string csvParams)
 {
     return UrlForView(view, csvParams.Split(','));
 }
Example #20
0
 public static string UrlForView(ViewNames view)
 {
     return UrlForView(view, new string[] { });
 }
Example #21
0
 /// <summary>
 /// Initializes a new instance of the TabModelInformation class.
 /// </summary>
 /// <param name="viewName">Name of the view.</param>
 /// <param name="parameters">The parameters.</param>
 public TabModelInformation(ViewNames viewName, NavigationParameters parameters = null)
     : this(viewName.ToString(), viewName, parameters)
 {
 }
Example #22
0
 /// <summary>
 /// Initializes a new instance of the TabModelInformation class.
 /// </summary>
 /// <param name="tabHeader">The tab header.</param>
 /// <param name="viewName">Name of the view.</param>
 /// <param name="parameters">The parameters.</param>
 public TabModelInformation(string tabHeader, ViewNames viewName, NavigationParameters parameters)
 {
     TabHeader  = tabHeader;
     ViewName   = viewName;
     Parameters = parameters;
 }