Esempio n. 1
0
    private void SetHeader()
    {
        time.Attributes.Add("title", DateTime.Now.ToString(@"HH:mm:ss, G\MT zzz"));
        time.InnerText = DateTime.Now.ToString("HH:mm") + " | ";
        if (AunthUI.Handheld)
        {
            date.InnerText = DateTime.Now.ToShortDateString() + " | ";
        }
        else
        {
            date.InnerText = DateTime.Now.ToLongDateString() + " | ";
        }
        string Name = AunthUI.CurrentUser.AdminUser.Name;

        useredit.HRef      = "/logix/user-edit.aspx?UserID=" + AunthUI.CurrentUser.AdminUser.ID;
        useredit.InnerText = (Name.Length > 20 ? Name.Substring(0, 19) + "..." : Name);
        if (!string.IsNullOrEmpty(Tab_Name))
        {
            IAppMenuService     AppMenuSvc = CurrentRequest.Resolver.Resolve <IAppMenuService>();
            AMSResult <AppMenu> result     = AppMenuSvc.GetApplicationMenus(AunthUI.CurrentUser, Tab_Name, Request.QueryString);
            if (result.ResultType != AMSResultType.Success)
            {
                lblErrorMsg.Text = result.GetLocalizedMessage(AunthUI.LanguageID);
                return;
            }
            AppMenu         appMenu = result.Result;
            AppMenuEventArg e       = new AppMenuEventArg();
            e.AppMenu = appMenu;
            if (OnOverridePageMenu != null)
            {
                OnOverridePageMenu(this, e);
            }
            SetUpMenu(e.AppMenu);
        }
    }
 public AppMenuController(IAppMenuService appMenuService,
                          IMenuService menuService,
                          ICommonService commonService)
 {
     _appMenuService = appMenuService;
     _menuService    = menuService;
     _commonService  = commonService;
 }
Esempio n. 3
0
 public AppMenuController(ILogger <AppMenuController> logger, IAppMenuService menuBusinessInstance)
 {
     _menuBusinessInstance = menuBusinessInstance;
     _logger = logger;
 }
 public AppMenuController(IAppMenuService appMenuService)
 {
     _appMenuService = appMenuService;
 }
Esempio n. 5
0
 public HomeController(IAppMenuService appMenuService)
 {
     this.appMenuService = appMenuService;
 }