예제 #1
0
 public MainViewModel(IMessageService <bool> messageService, IDataServiceProxy dataServiceProxy
                      , IAuthServiceProxy authServiceProxy, ISettingService settingService) : base(messageService)
 {
     _dataServiceProxy = dataServiceProxy;
     _authProxy        = authServiceProxy;
     _settingService   = settingService;
 }
예제 #2
0
 public ContactViewModel(IMessageService <bool> messageService, IDataServiceProxy dataServiceProxy,
                         IMailService mailService, IImageManager <ImageType> imageManager) : base(messageService)
 {
     _dataProxy    = dataServiceProxy;
     _mailService  = mailService;
     _imageManager = imageManager;
 }
        public NewAcceptanceWorkingViewModel(IDataServiceProxy dataServiceProxy,
                                             IEntityViewModelFactory entityViewModelFactory, IDocumentManagerService documentManagerService)
            : base(Working.EntityType, dataServiceProxy, entityViewModelFactory, documentManagerService)
        {
            _entityViewModelFactory = entityViewModelFactory;

            IsReadOnly         = false;
            NewItemRowPosition = NewItemRowPosition.Bottom;
        }
        public OrganizationCardViewModel(IMessageService <bool> messageService, IDataServiceProxy dataServiceProxy,
                                         OrganizationDto organization) : this(messageService, dataServiceProxy)
        {
            Region       = organization.City.Region;
            City         = organization.City;
            Organization = organization;

            ViewTitle  = organization.Name;
            ButtonName = "Изменить";
        }
        public OrganizationCardViewModel(IMessageService <bool> messageService, IDataServiceProxy dataServiceProxy,
                                         CityDto city) : this(messageService, dataServiceProxy)
        {
            Organization         = new OrganizationDto();
            Organization.City_Id = city.Id;

            Region = city.Region;
            City   = city;

            ViewTitle  = "Новая запись";
            ButtonName = "Сохранить";
        }
        public EntityJournalHistoryViewModel(string entityType, IDataServiceProxy dataServiceProxy,
                                             IEntityViewModelFactory entityViewModelFactory, IDocumentManagerService documentManagerService)
            : base(entityType, dataServiceProxy, entityViewModelFactory, documentManagerService)
        {
            _entityViewModelFactory    = entityViewModelFactory;
            IsAllowAutoLoadStoreOnInit = false;

            _archFilter = new MLC.Ext.Common.Model.Filter
            {
                Property = "IsArchive",
                Operator = JsFilterOperator.EQ,
                Value    = false
            };
        }
예제 #7
0
 public CityViewModel(IMessageService <bool> messageService, IDataServiceProxy dataServiceProxy,
                      IMailService mailService, IImageManager <ImageType> imageManager)
     : base(messageService, dataServiceProxy, mailService, imageManager)
 {
 }
 public OrganizationCardViewModel(IMessageService <bool> messageService, IDataServiceProxy dataServiceProxy)
     : base(messageService)
 {
     _dataProxy = dataServiceProxy;
 }
 public OrganizationViewModel(IMessageService <bool> messageService, IDataServiceProxy dataServiceProxy,
                              IMailService mailService, IImageManager <ImageType> imageManager,
                              OrganizationDto organization) : base(messageService, dataServiceProxy, mailService, imageManager)
 {
     SelectedOrganization = organization;
 }
예제 #10
0
 public ProjectViewModel(IMessageService <bool> messageService, IDataServiceProxy dataServiceProxy,
                         IImageManager <ImageType> imageManager) : base(messageService)
 {
     _dataProxy    = dataServiceProxy;
     _imageManager = imageManager;
 }