Пример #1
0
 public WeekDayService()
 {
     if (Repository == null)
     {
         Repository = new WeekDayRepository();
     }
 }
Пример #2
0
        public WeekDayController(IWeekDayRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.ToLong();
            this._UserId   = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog  = catalog;

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

            this.WeekDayRepository = repository;
        }
 public UnitOfWork(SixtReservationContext context,
                   IBranchRepository branchRepository,
                   IUserRepository userRepository,
                   IRoleRepository roleRepository,
                   IJobTitleRepository jobTitleRepository,
                   IReasonRepository reasonRepository,
                   IQuestionRepository questionRepository,
                   IReservationStatusRepository reservationStatusRepository,
                   IStatusStepRepository statusStepRepository,
                   IRateSegmentRepository rateSegmentRepository,
                   IRateSegmentCategoryRepository RateSegmentCategoryRepository,
                   INotificationSettingRepository notificationSettingRepository,
                   IPermissionRepository permissionRepository,
                   ICustomerRepository customerRepository,
                   IUploadLogRepository uploadLogRepository,
                   IReservationRepository reservationRepository,
                   IReservationHistoryRepository reservationHistoryRepository,
                   IActionSettingRepository actionSettingRepository,
                   IWeekDayRepository weekDayRepository,
                   INotificationRepository notificationRepository,
                   IReservationStepLogRepository reservationStepLogRepository,
                   IVReservationLogRepository vReservationLogRepository,
                   IReservationAssignmentRepository reservationAssinmentRepository,
                   IFormSubmittedRepository formSubmittedRepository,
                   IVReservationListRepository vReservationListRepository,
                   IEmailSettingRepository emailSettingRepository,
                   IVReservationHistoryRepository vReservationHistoryRepository
                   )
 {
     _context                = context;
     BranchBL                = branchRepository;
     UserBL                  = userRepository;
     RoleBL                  = roleRepository;
     JobTitleBL              = jobTitleRepository;
     ReasonBL                = reasonRepository;
     QuestionBL              = questionRepository;
     ReservationStatusBL     = reservationStatusRepository;
     StatusStepBL            = statusStepRepository;
     NotificationSettingBL   = notificationSettingRepository;
     RateSegmentBL           = rateSegmentRepository;
     RateSegmentCategoryBL   = RateSegmentCategoryRepository;
     PermissionBL            = permissionRepository;
     CustomerBL              = customerRepository;
     UploadLogBL             = uploadLogRepository;
     ReservationBL           = reservationRepository;
     ReservationHistoryBL    = reservationHistoryRepository;
     ActionSettingBL         = actionSettingRepository;
     WeekDayBL               = weekDayRepository;
     NotificationBL          = notificationRepository;
     ReservationStepLogBL    = reservationStepLogRepository;
     VReservationLogBL       = vReservationLogRepository;
     ReservationAssignmentBL = reservationAssinmentRepository;
     FormSubmittedBL         = formSubmittedRepository;
     VReservationListBL      = vReservationListRepository;
     EmailSettingBL          = emailSettingRepository;
     VReservationHistoryBL   = vReservationHistoryRepository;
 }
Пример #5
0
        public WeekDayController()
        {
            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.WeekDayRepository = new MixERP.Net.Schemas.Core.Data.WeekDay
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
        public WeekDayController()
        {
            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.WeekDayRepository = new MixERP.Net.Schemas.Core.Data.WeekDay
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }