public FlagTypeController(IFlagTypeRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.ToLong();
            this._UserId = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog = catalog;

            this.FlagTypeRepository = repository;
        }
        public FlagTypeController(IFlagTypeRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.ToLong();
            this._UserId   = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog  = catalog;

            this.FlagTypeRepository = repository;
        }
        public FlagTypeController()
        {
            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.FlagTypeRepository = new MixERP.Net.Schemas.Core.Data.FlagType
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
        public FlagTypeController()
        {
            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.FlagTypeRepository = new MixERP.Net.Schemas.Core.Data.FlagType
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
        protected override void Initialize(HttpControllerContext context)
        {
            base.Initialize(context);

            if (this.FlagTypeRepository == null)
            {
                this.FlagTypeRepository = new Frapid.Config.DataAccess.FlagType
                {
                    _Catalog = this.MetaUser.Catalog,
                    _LoginId = this.MetaUser.LoginId,
                    _UserId = this.MetaUser.UserId
                };
            }
        }
Beispiel #6
0
        public FlagTypeController()
        {
            this._LoginId  = AppUsers.GetCurrent().View.LoginId.To <long>();
            this._UserId   = AppUsers.GetCurrent().View.UserId.To <int>();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.To <int>();
            this._Catalog  = AppUsers.GetCatalog();

            this.FlagTypeRepository = new Frapid.Config.DataAccess.FlagType
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
Beispiel #7
0
        public FlagTypeController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.To<long>();
            this._UserId = AppUsers.GetCurrent().View.UserId.To<int>();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.To<int>();
            this._Catalog = AppUsers.GetCatalog();

            this.FlagTypeRepository = new Frapid.Config.DataAccess.FlagType
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
Beispiel #8
0
        public AttendanceSetupController(

            IAssignRosterRepository repo1,
            IAttendanceFlagRepository repo3,
            IAttendanceRequestApproverRepository repo4,
            IAttendanceRequestTypeRepository repo5,
            IFlagCategoryRepository repo6,
            IFlagEffectTypeRepository repo7,
            IFlagTypeRepository repo8,
            IFlagValueRepository repo9,
            IRosterRepository repo10,
            IShiftRepository repo11,
            IOverTimeFlagRepository repo12,
            IOverTimeTypeRepository repo13,
            IEmployeeWorkingDayOtRepository repo14,
            IEmployeeOffDayOtRepository repo15,
            IEmployeeIncomingOtRepository repo16,
            IEmployeeOutgoingOtRepository repo17,
            IShiftAttendanceFlagRepository repo18,
            IUserAssignRosterRepository repo19

            )
        {
            AssignRoster_repo = repo1;
            //AssignRosterShift_repo = repo2;
            AttendanceFlag_repo            = repo3;
            AttendanceRequestApprover_repo = repo4;
            AttendanceRequestType_repo     = repo5;
            FlagCategory_repo   = repo6;
            FlagEffectType_repo = repo7;
            FlagType_repo       = repo8;
            FlagValue_repo      = repo9;
            Roster_repo         = repo10;
            Shift_repo          = repo11;

            OverTimeFlag_repo         = repo12;
            OverTimeType_repo         = repo13;
            EmployeeWorkingDayOt_repo = repo14;
            EmployeeOffDayOt_repo     = repo15;
            EmployeeIncomingOt_repo   = repo16;
            EmployeeOutgoingOt_repo   = repo17;
            ShiftAttendanceFlag_repo  = repo18;
            UserAssignRoster_repo     = repo19;
        }
 public FlagTypeController(IFlagTypeRepository repository)
 {
     this.FlagTypeRepository = repository;
 }