예제 #1
0
        public MenuLocaleController(IMenuLocaleRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.ToLong();
            this._UserId = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog = catalog;

            this.MenuLocaleRepository = repository;
        }
예제 #2
0
        public MenuLocaleController(IMenuLocaleRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.ToLong();
            this._UserId   = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog  = catalog;

            this.MenuLocaleRepository = repository;
        }
예제 #3
0
        protected override void Initialize(HttpControllerContext context)
        {
            base.Initialize(context);

            if (this.MenuLocaleRepository == null)
            {
                this.MenuLocaleRepository = new Frapid.Core.DataAccess.MenuLocale
                {
                    _Catalog = this.MetaUser.Catalog,
                    _LoginId = this.MetaUser.LoginId,
                    _UserId = this.MetaUser.UserId
                };
            }
        }
예제 #4
0
        public MenuLocaleController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog = AppUsers.GetCurrentUserDB();

            this.MenuLocaleRepository = new MixERP.Net.Schemas.Core.Data.MenuLocale
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
예제 #5
0
        public MenuLocaleController()
        {
            this._LoginId  = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId   = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog  = AppUsers.GetCurrentUserDB();

            this.MenuLocaleRepository = new MixERP.Net.Schemas.Core.Data.MenuLocale
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
예제 #6
0
 public MenuLocaleController(IMenuLocaleRepository repository)
 {
     this.MenuLocaleRepository = repository;
 }