//readonly ClientHttp http = new ClientHttp(); /// <summary> /// Конструктор popup-окна для отображения событий по оъекту за выбранный период /// </summary> /// <param name="_so">Заявка технику</param> /// <param name="_servicemans">Техники(список)</param> /// <param name="_mounters">Монтажники(список)</param> public EventsPopupViewModel(NewServiceorderExtensionBase _so, List <NewServicemanExtensionBase> _servicemans, List <NewMounterExtensionBase> _mounters) { ServiceOrder = _so; Servicemans = _servicemans; Mounters = _mounters; CloseImage = IconName("close"); GetImage = IconName("get"); IndicatorVisible = false; OpacityForm = 1; StartDateVisible = true; EndDateVisible = true; GetButtonVisible = true; }
/// <summary> /// Конструктор для закрытия заявки технику /// </summary> /// <param name="soeb">Объект Заявка технику</param> /// <param name="_servicemans">Техники(список)</param> /// <param name="_mounters">Монтажники(список)</param> public CloseOrderPopupPageViewModel(NewServiceorderExtensionBase soeb, List <NewServicemanExtensionBase> _servicemans, List <NewMounterExtensionBase> _mounters) { so = soeb; Servicemans = _servicemans; Mounters = _mounters; //GetResults.ExecuteAsync(null); NecesseryRead = false; VisibleJournal = false; SaveImage = IconName("save"); if (Application.Current.Properties.ContainsKey("ConclusionByOrder")) { ConclusionByOrder = Application.Current.Properties["ConclusionByOrder"] as string; } IsLoading(false); }