public ServiceOrdersModel(NewTest2ExtensionBase t2eb, NewServicemanExtensionBase smeb, string latitude, string longitude)
 {
     this.t2eb = t2eb;
     this.smeb = smeb;
     Latitude  = latitude;
     Longitude = longitude;
 }
 /// <summary>
 /// Конструктор popup-окна для отображения событий по оъекту за выбранный период
 /// </summary>
 /// <param name="_so">Заявка на ПС</param>
 /// <param name="_servicemans">Техники(список)</param>
 /// <param name="_mounters">Монтажники(список)</param>
 public EventsPopupViewModel(NewTest2ExtensionBase _so, List <NewServicemanExtensionBase> _servicemans, List <NewMounterExtensionBase> _mounters)
 {
     ServiceOrderFireAlarm = _so;
     Servicemans           = _servicemans;
     Mounters         = _mounters;
     CloseImage       = IconName("close");
     GetImage         = IconName("get");
     IndicatorVisible = false;
     OpacityForm      = 1;
     StartDateVisible = true;
     EndDateVisible   = true;
     GetButtonVisible = true;
 }
Example #3
0
        /// <summary>
        /// Конструктор для закрытия заявки на ПС
        /// </summary>
        /// <param name="soeb">Объект заявка на ПС</param>
        /// <param name="_servicemans">Техники(список)</param>
        /// <param name="_mounters">Монтажники(список)</param>
        public CloseOrderPopupPageViewModel(NewTest2ExtensionBase soeb, List <NewServicemanExtensionBase> _servicemans, List <NewMounterExtensionBase> _mounters)
        {
            sofa        = soeb;
            Servicemans = _servicemans;
            Mounters    = _mounters;
            //GetResults.ExecuteAsync(null);
            NecesseryRead  = false;
            VisibleJournal = true;
            SaveImage      = IconName("save");
            if (Application.Current.Properties.ContainsKey("ConclusionByOrder"))
            {
                ConclusionByOrder = Application.Current.Properties["ConclusionByOrder"] as string;
            }

            IsLoading(false);
        }