예제 #1
0
 public RelayGroupByNone(CollectionsModel model)
     : base(model)
 {
     base.m_GroupByType = "None";
     base.m_PreFix = string.Empty;
     base.m_NodeImageKey = string.Empty;
 }
예제 #2
0
 public FrequencyStat(Color sfColor, Color nfColor, CollectionsModel model)
 {
     this.m_Manager = new FrequencyStatModule(sfColor, nfColor, model);
     this.m_Manager.GisINetEntity = model.GisINetEntity;
     this.m_Model = model;
     this.InitializeComponent();
 }
예제 #3
0
        public GeoNetEntityAssist(CollectionsModel model)
        {
            this.m_Model = model;
            this.m_SiteCol = model.SiteColl;
            this.m_TranceiverCol = model.TranceiverColl;
            this.m_RepCol = model.RepeaterColl;
            this.m_GeoMsgChange = model.GisINetEntity;
            this.m_antennas = model.Antennas;
            this.m_TpCol = model.TplCellCollection;
            this.m_RNCol = model.RNColl;
            this.m_SiteCol.SiteAddEvent += new EventHandler<NESiteEventArgs>(this.SiteCol_SiteAddEvent);
            this.m_SiteCol.SiteDeleteEvent += new EventHandler<NESiteEventArgs>(this.SiteCol_SiteDeleteEvent);
            this.m_SiteCol.SiteModifyEvent += new EventHandler<NESiteEventArgs>(this.SiteCol_SiteModifyEvent);
            this.m_TranceiverCol.AddEvent += new EventHandler<NETranceiverEventArgs>(this.CellCol_CellAddEvent);
            this.m_TranceiverCol.DeleteEvent += new EventHandler<NETranceiverEventArgs>(this.CellCol_CellDeleteEvent);
            this.m_TranceiverCol.ModifyEvent += new EventHandler<NETranceiverEventArgs>(this.CellCol_CellModifyEvent);
            this.m_RepCol.RepeaterAddEvent += new EventHandler<NERepeaterEventArgs>(this.RepCol_RepeaterAddEvent);
            this.m_RepCol.RepeaterDeleteEvent += new EventHandler<NERepeaterEventArgs>(this.RepCol_RepeaterDeleteEvent);
            this.m_RepCol.RepeaterModifyEvent += new EventHandler<NERepeaterEventArgs>(this.RepCol_RepeaterModifyEvent);
            this.m_antennas.ResponseEvent += new RetrunUserInfoDelegate(this.m_antennas_ResponseEvent);
            this.m_RNCol.RNAddEvent += new EventHandler<NERelayNodeEventArgs>(this.RNCol_AddEvent);
            this.m_RNCol.RNDeleteEvent += new EventHandler<NERelayNodeEventArgs>(this.RNCol_DeleteEvent);
            this.m_RNCol.RNModifyEvent += new EventHandler<NERelayNodeEventArgs>(this.RNCol_ModifyEvent);

        }
예제 #4
0
 public NetSimulationInterface(IBaseService provider, CollectionsModel model)
 {
     this.m_provider = provider;
     this.m_SiteCol = model.SiteColl;
     this.m_CellCol = model.TranceiverColl;
     this.m_CarrierCollection = model.LTECellColl;
 }
예제 #5
0
 public TranceiverValidator(CollectionsModel model)
 {
     this.m_Model = model;
     this.m_TranceiverColl = model.TranceiverColl;
     this.m_SectorValidator = new AntConfigValidator(model, true);
     this.m_UserDesc = new UserDefineDesc(model.UserItemsColl.CellExcDefList, new List<ExtDefKeyValue>());
 }
예제 #6
0
 public AntConfigValidator(CollectionsModel model, bool isMainAnt)
 {
     this.m_Model = model;
     this.m_CellColl = model.TranceiverColl;
     this.m_GeoInfo = model.GeoObserver;
     this.m_IsMainAnt = isMainAnt;
 }
예제 #7
0
 public FindNeToolTrip(CollectionsModel model)
 {
     this.InitializeComponent();
     this.m_Model = model;
     this.InitMenuItems();
     this.InitFloatWindow();
 }
        public ActionResult Index()
        {
            InitializeViewBag("Collections");
            var model = new CollectionsModel();

            model.People = new List <CollectionsPersonModel>();
            model.People.Add(new CollectionsPersonModel
            {
                Name     = "Annabelle",
                Children = new List <string> {
                    "Arnie", "Anders", "Apple"
                }
            });
            model.People.Add(new CollectionsPersonModel
            {
                Name     = "Bertie",
                Children = new List <string> {
                    "Boutros-Boutros", "Brianna", "Barbie", "Bee-bop"
                }
            });
            model.People.Add(new CollectionsPersonModel
            {
                Name     = "Charles",
                Children = new List <string> {
                    "Cayenne", "Cleopatra"
                }
            });
            return(View(model));
        }
예제 #9
0
 public BtsCfgFormEditor(CollectionsModel model, string name)
 {
     this.m_btsColl = model.BtsEquipColl;
     BtsEquipment bts = this.m_btsColl.FindBtsEquipmentByName(name);
     this.CopyFrom(bts);
     this.SetName(bts);
 }
예제 #10
0
 public GroupByUserDefine(CollectionsModel model, string userDefName, string userDefLegend) : base(model)
 {
     this.m_Name = userDefName;
     this.m_Legend = userDefLegend;
     base.m_GroupByType = userDefName;
     base.m_PreFix = userDefLegend + " : ";
     base.m_NodeImageKey = "Ne_Folder";
 }
예제 #11
0
 public RelayCellValidateTool(CollectionsModel model)
 {
     this.m_AntennaCol = model.Antennas;
     this.m_RelayCellCollection = model.RCCOll;
     this.m_RelayNodeColleciton = model.RNColl;
     this.m_Modle = model;
     this.m_PropList = model.PropagetionColl.GetPropagationModelList();
 }
예제 #12
0
 public RepeaterValidator(CollectionsModel model)
 {
     this.m_Model = model;
     this.m_CellColl = model.RepeaterColl;
     this.m_PropModelConfigDesc = new PropModelConfigDesc(model, new List<PropModelConfig>());
     this.m_CoverageAntConfigDesc = new LteRepeaterAntConfigDesc(model, new AntConfig());
     this.m_DonorAntConfigDesc = new LteRepeaterAntConfigDesc(model, new AntConfig());
 }
예제 #13
0
 public FrequencyStatModule(Color sfColor, Color nfColor, CollectionsModel model)
 {
     this.m_NFColor = nfColor;
     this.m_SFColor = sfColor;
     this.m_Model = model;
     this.m_BandList = this.m_Model.LteFreBandCol.FrequencyBandList;
     this.m_CarrierList = this.m_Model.LTECellColl.CellList;
 }
예제 #14
0
 public RCToUEAntConfigForm(CollectionsModel model,RelayCell relayCell,string oldName)
 {
     m_CollectionsModel = model;
     m_RelayCell = relayCell;
     m_OldName = oldName;
     InitializeComponent();
     FillAntConfig();
 }
예제 #15
0
 public PropagationForm(CollectionsModel colModel, IACell cell)
 {
     this.InitializeComponent();
     this.m_PropagationEditor = new PropagationEditor(colModel, cell);
     this.m_Cell = cell;
     this.InitData();
     this.btnApply.Enabled = false;
 }
예제 #16
0
 public UMTSCellNeighborForm(UMTSCell umtsCell, CollectionsModel model)
 {
     this.InitializeComponent();
     this.m_curUMTSCell = umtsCell;
     this.m_UMTSColl = model.UMTSCellColl;
     manager = new ComponentResourceManager(typeof(UMTSCellNeighborForm));
     this.dgvInter.UncheckedColHeaderText = (List<string>)manager.GetObject("dgvNeighborsListDiff.UncheckedColHeaderText");
     this.dgvInterTechnology.UncheckedColHeaderText = (List<string>)manager.GetObject("dataGridViewBase1.UncheckedColHeaderText");
 }
예제 #17
0
 public SitePropertyFormEditor(CollectionsModel model)
 {
     this.m_UserDefCol = model.UserItemsColl;
     this.m_GeoObserver = model.GeoObserver;
     this.m_SiteCol = model.SiteColl;
     this.m_btslist = model.BtsEquipColl;
     this.m_Model = model;
     this.m_UserDefineTool = new UserDefineTool(model);
 }
예제 #18
0
 public RepeaterValidateTool(CollectionsModel model)
 {
     this.m_RepeaterCollection = model.RepeaterColl;
     this.m_SiteCollection = model.SiteColl;
     this.m_CellCollection = model.TranceiverColl;
     this.m_AtennaCollction = model.Antennas;
     this.m_RepeaterEquipCollection = model.RepeaterEquipCollection;
     this.m_PropList = model.PropagetionColl.GetPropagationModelList();
 }
예제 #19
0
 public GroupByPolygon(CollectionsModel model)
 {
     this.m_Model = model;
     this.m_CellFilter = new NEFilter(null);
     base.m_GroupKeys = new Dictionary<string, List<short>>();
     base.m_GroupByType = "Polygon";
     base.m_PreFix = string.Empty;
     base.m_NodeImageKey = "Ne_Folder";
 }
예제 #20
0
 private LTECellCollection m_LteCellCollection;//add by lw 3.31
 public RelayNodeDesc(CollectionsModel collModel, RelayNode relayNode, GeoInfoObserver geoInfo)
 {
     this.m_CollectionsModel = collModel;
     this.m_Entity = relayNode;
     this.m_RNCollection = collModel.RNColl;
     this.m_GeoInfo = geoInfo;
     this.m_BtsCollection = collModel.BtsEquipColl;
     this.m_LteCellCollection = collModel.LTECellColl;//add by lw 3.31
 }
예제 #21
0
 public FindCellForm(List<Transceiver> tranceiverList, TreeNode treeNode, CollectionsModel model)
 {
     this.InitializeComponent();
     this.m_CollModel = model;
     this.m_Tranceivers = model.TranceiverColl;
     this.m_btslist = model.BtsEquipColl;
     this.m_CellFinModule = new CellFindModule(treeNode, this.m_CollModel);
     this.m_treeNode = treeNode;
     this.m_Tranceivers.DeleteEvent += new EventHandler<NETranceiverEventArgs>(this.lb_Result_CellRefresh);
 }
예제 #22
0
 public DisplayControl(CollectionsModel model, NetWorkType type)
 {
     this.InitializeComponent();
     this.m_Editor = new DisplayControlEditor(this.dgvLegend, model, type);
     this.m_UIModel = this.m_Editor.GetUIModel();
     this.InitDrawDelegate();
     this.BindDisplayTypeCombx();
     this.m_UIModel.UpdataEvent += new EventHandler<EventArgs>(this.UIModel_UpdataEvent);
     this.m_UIModel.UpdataTypeAndFieldEvent += new EventHandler<EventArgs>(this.UIModel_UpdataTypeAndFieldEvent);
 }
예제 #23
0
 public RCTemplatePropertiesFrm(CollectionsModel model,TplRelayModule tplRelayMod)
 {
     this.m_TplRelayModule = tplRelayMod;
     //this.m_TplRelayCol = new TplRelayCollection(Huawei.UNet.Frame.Interface.NetWorkType.LTE, model);
     //this.m_TplRelayModule.RelayTplCell = new RelayTplCell();             
     InitializeComponent();
     AntennasBind();
     PropBind();
     LoadData();
 }
예제 #24
0
 public FiledDisplayForm(CollectionsModel model, NetWorkType network)
 {
     this.m_DisplayControl = new DisplayControl(model, network);
     this.m_DisplayControl.EnableApplyEvent += new EventHandler<EventArgs>(this.DisplayControl_EnableApplyEvent);
     this.InitializeComponent();
     this.m_NetEntityEvent = model.GisINetEntity;
     this.m_Editor = new FiledDisplayFormEditor(model, network);
     this.BulidSiteNode();
     this.LoadData(new Huawei.UNet.NE.Model.GisDisPlay());
     this.button_Apply.Enabled = false;
 }
예제 #25
0
파일: DelNETool.cs 프로젝트: xiaoyj/Space
 public static void DelSite(object sender, List<string> siteNames, CollectionsModel model)
 {
     List<Site> sites = new List<Site>();
     foreach (string str in siteNames)
     {
         sites.Add(model.SiteColl.GetSiteByName(str));
     }
     List<Transceiver> tranceiverInSites = GetTranceiverInSites(sites, model);
     DelTranceiverAndCell(sender, tranceiverInSites, model);
     model.SiteColl.DeleteSite(sender, siteNames);
 }
예제 #26
0
파일: DelNETool.cs 프로젝트: xiaoyj/Space
 //Added by liangwenli 20110304
 public static void DelRelayNode(object sender, List<string> relayNames, CollectionsModel model)
 {
     List<RelayNode> relays = new List<RelayNode>();
     foreach (string str in relayNames)
     {
         relays.Add(model.RNColl.GetRelayNodeByName(str));
     }
     //List<RelayCell> tranceiverInRelays = GetTranceiverInSites(relays, model);
     //DelTranceiverAndCell(sender, tranceiverInRelays, model);
     model.RNColl.DeleteRN(sender, relayNames);
 }
예제 #27
0
 public FiledDisplayFormEditor(CollectionsModel model, NetWorkType type)
 {
     this.m_Model = model;
     model.SiteColl.PropLabel = this;
     model.TranceiverColl.PropLabel = this;
     this.m_NetworkType = type;
     this.m_GisDisplay = new GisDisPlay();
     this.m_GisDisplay.SiteDisPlayPara = new DisplayPara(NetEntityType.Site);
     this.m_GisDisplay.CellDisPlayPara = new DisplayPara(NetEntityType.Transceiver);
     this.m_CellTypeDic = NECommon.GetCellTypeDic();
 }
예제 #28
0
 public TplRelayCollection(CollectionsModel model)
 {
     this.TplRC = new RelayTplCell();
     this.TplRN = new RelayTplNode();
     //m_TplRC = new RelayTplCell();
     //m_TplRN = new RelayTplNode();
     //m_Antennas = model.Antennas;
     //m_TplRC.AntennaName = m_Antennas.AntennaList[1].ToString();
     ////m_TplRC.AntennaTilt = m_Antennas.AntennaList[1].a
     //m_TplRC.MainPropagModelID = (model.PropagetionColl.GetPropagationModelList())[40].PropModelID;
     ////m_TplRC.FBandName = 
 }
예제 #29
0
 public NetTrafficInterface(IBaseService baseService, CollectionsModel model)
 {
     this.baseService = baseService;
     this.m_CellCol = model.TranceiverColl;
     this.m_CarrierCollection = model.LTECellColl;
     this.m_FreBandDic = new Dictionary<NetWorkType, BaseCollection<FrequencyBand, FreDealedArgs>>();
     this.m_FreBandDic.Add(NetWorkType.LTE, model.LteFreBandCol);
     this.m_FreBandDic.Add(NetWorkType.GSM, model.GSMFreBandCol);
     this.m_FreBandDic.Add(NetWorkType.CDMA, model.CDMAFreBandColl);
     this.m_FreBandDic.Add(NetWorkType.TDSCDMA, model.TDFreBandColl);
     this.m_FreBandDic.Add(NetWorkType.UMTS, model.UMTSFreBandColl);
 }
예제 #30
0
파일: GSMTRXsDesc.cs 프로젝트: xiaoyj/Space
 public GSMTRXsDesc(CollectionsModel model, GSMTRX gsmTrxEntity, List<GSMTRX> excludeCells) : base(model, gsmTrxEntity, model.GSMFreBandCol, new GSMTRXsCollProvider(model.GSMTRXsColl))
 {
     this.m_Entity = gsmTrxEntity;
     base.m_newNames = new List<string>();
     this.m_newCells = excludeCells;
     if (excludeCells != null)
     {
         foreach (GSMTRX gsmtrx in excludeCells)
         {
             base.m_newNames.Add(gsmtrx.Name);
         }
     }
 }
예제 #31
0
 public CDMACellDesc(CollectionsModel model, CDMACell carrierEntity, List<CDMACell> excludeCarriers) : base(model, carrierEntity, model.CDMAFreBandColl, new CDMACellCollProvider(model.CDMACellColl))
 {
     this.m_Entity = carrierEntity;
     List<string> list = new List<string>();
     this.m_newCells = excludeCarriers;
     if (excludeCarriers != null)
     {
         foreach (CDMACell cell in excludeCarriers)
         {
             list.Add(cell.Name);
         }
     }
     base.m_newNames = list;
 }
예제 #32
0
        public BaseController()
        {
            ViewData["all_products"]         = new ProductsModel();
            ViewData["blogs"]                = new BlogsModel();
            ViewData["collections"]          = new CollectionsModel();
            ViewData["linklists"]            = new LinklistsModel();
            ViewData["pages"]                = new PagesModel();
            ViewData["settings"]             = new SettingsModel();
            ViewData["theme"]                = new ThemeModel();
            ViewData[ContextKey.SITE_CONFIG] = InitSiteConfiguration();
            var contentForHeaderBuilder = new ContentForHeaderBuilder();

            ViewData["content_for_header"] = contentForHeaderBuilder.Render();
            //ViewData["request.host"] = Request.Url.Host;
        }
 public ActionResult AddChild(CollectionsModel model, int index)
 {
     model.AddChild(index);
     return(Json(model));
 }
예제 #34
0
        private async void Start()
        {
            var aggregator = new MessageAggregator();

            _relay = aggregator;
            IConfigStore       configStore  = new AppDataConfigStore();
            IPreviewImageStore previewStore = new AppDataPreviewImageStore();

            _library = new Library(configStore, _previewBuilder, previewStore, _relay);
            var factory = new ImportFolderFactory(_library);

            // Main View
            var progressModel    = new ProgressModel();
            var applicationModel = new ApplicationModel(_relay);
            var searchViewModel  = new SearchModel(_library, _relay);
            var itemsViewModel   = new ItemsModel(_library, _relay);

            // Main Menu
            var importFoldersViewModel = new ImportFoldersModel(configStore, factory, _relay);
            var savedSearchesViewModel = new SavedSearchesModel(configStore, _relay);
            var collectionsViewModel   = new CollectionsModel(configStore, _relay);

            // Detail Menu
            var detailMenuModel = new DetailMenuModel(_library, _relay);

            // Dialogs
            var addSavedSearchViewModel  = new AddSavedSearchModel(_relay);
            var addImportFolderViewModel = new AddImportFolderModel(_relay);
            var applicationSettingsModel = new ApplicationSettingsModel(configStore);
            var userFeedbackModel        = new UserFeedbackModel();
            var exitingModel             = new ExitingModel(_library, OnShutdownComplete);
            var editScreenModel          = new EditScreenModel(_library);

            BindViewModels();
            BindSettings();

            // Wire up misc items
            _disposables.Add(importFoldersViewModel);
            _editScreen.MainView = _mainGroup;

            // Also restores app settings for import etc.
            await applicationSettingsModel.InitializeAsync();

            await _library.InitializeAsync();

            InitializeViewModelsAsync();

            aggregator.Subscribe(
                // Main View
                progressModel,
                searchViewModel,
                itemsViewModel,

                // Main Menu
                importFoldersViewModel,
                savedSearchesViewModel,
                collectionsViewModel,

                // DetailMenu
                detailMenuModel,

                // Dialogs
                addSavedSearchViewModel,
                addImportFolderViewModel,
                applicationSettingsModel,
                userFeedbackModel,
                exitingModel,
                editScreenModel);

            void BindViewModels()
            {
                // Main View
                _progressView.BindTo(progressModel);
                _applicationView.BindTo(applicationModel);
                _searchView.BindTo(searchViewModel);
                _libraryView.BindTo(itemsViewModel);

                // Main Menu
                _importFoldersView.BindTo(importFoldersViewModel);
                _savedSearchesView.BindTo(savedSearchesViewModel);
                _collectionsView.BindTo(collectionsViewModel);

                // Detail Menu
                _detailMenu.BindTo(detailMenuModel);

                // Dialogs
                _addImportFolderDialog.BindTo(addImportFolderViewModel);
                _addSavedSearchDialog.BindTo(addSavedSearchViewModel);
                _applicationSettingsDialog.BindTo(applicationSettingsModel);
                _userFeedbackDialog.BindTo(userFeedbackModel);
                _exitingDialog.BindTo(exitingModel);
                _editScreen.BindTo(editScreenModel);
            }

            void BindSettings()
            {
                var rt = applicationSettingsModel.RuntimeSettings;

                rt.ImportParallelism.ValueChanged += factor => _library.Parallelism = factor;
                rt.LogLevel.ValueChanged          += logLevel => UnityLogger.LogLevel = logLevel;

                rt.UiScalePercent.ValueChanged += factor =>
                {
                    foreach (var canvas in FindObjectsOfType <Canvas>())
                    {
                        canvas.scaleFactor = applicationSettingsModel.UiScalePercent / 125f;
                    }
                };

                rt.ScrollSensitivity.ValueChanged += sensitivity =>
                {
                    foreach (var area in FindObjectsOfType <ScrollRect>())
                    {
                        area.scrollSensitivity = sensitivity;
                    }
                };

                rt.PreviewResolution.ValueChanged  += res => _previewBuilder.PreviewResolution.Value = Mathf.RoundToInt(Mathf.Pow(2f, res));
                rt.PreviewJpegQuality.ValueChanged += quality => _previewBuilder.Quality = quality;
            }

            async void InitializeViewModelsAsync()
            {
                await savedSearchesViewModel.InitializeAsync();

                await importFoldersViewModel.InitializeAsync();

                await collectionsViewModel.InitializeAsync();
            }
        }
예제 #35
0
        //
        // GET: /Order/Collections

        public async Task <IActionResult> Collections(DateTime?date)
        {
            var model = new CollectionsModel();

            var queryDate = date == null ? new DateTime(1900, 1, 1) : (DateTime)date;

            var scriptsFromAllPractices = new List <CollectScript>();

            var practicesWithScriptToCollect = new List <ScriptCollection>();

            foreach (var practice in _unitOfWork.PracticeRepository.Get().Result.OrderBy(p => p.PracticeName).ToList())
            {
                // Get orders added by customer via the website that scripts need collected for
                var orderScripts = (from o in await _unitOfWork.OrderRepository.Get()
                                    join c in await _unitOfWork.CustomerRepository.Get() on o.CustomerId equals c.CustomerId
                                    join a in await _unitOfWork.AddressRepository.Get() on c.AddressId equals a.AddressId
                                    join d in await _unitOfWork.DoctorRepository.Get() on c.DoctorId equals d.DoctorId
                                    where d.PracticeId == practice.PracticeId
                                    select new
                {
                    OrderId = o.OrderId,
                    OrderDate = o.OrderDate,
                    Customer = c.Firstname + " " + c.Lastname,
                    CustomerAddress = a.AddressLine1 + " " + a.Postcode,
                    NumItems = _unitOfWork.OrderLineRepository.Get(os => os.OrderId == o.OrderId).Result.Count()
                }).ToList().Select(x => new CollectScript
                {
                    OrderId         = x.OrderId,
                    OrderDate       = x.OrderDate,
                    Customer        = x.Customer,
                    CustomerAddress = x.CustomerAddress,
                    NumItems        = x.NumItems
                }).ToList();

                // Get scripts that need collected for shops
                var shopScripts = (from col in await _unitOfWork.CollectScriptRepository.Get()
                                   join d in await _unitOfWork.DoctorRepository.Get() on col.DoctorId equals d.DoctorId
                                   join p in await _unitOfWork.PracticeRepository.Get() on d.PracticeId equals p.PracticeId
                                   where p.PracticeId == practice.PracticeId
                                   select col).ToList();

                var allScripts = orderScripts.Concat(shopScripts).OrderByDescending(s => s.OrderDate);

                // Add the customer scripts to the shop scripts
                var dateFilteredScripts = allScripts.Where(s => s.OrderDate >= queryDate);
                if (dateFilteredScripts.Count() > 0)
                {
                    var collection = new ScriptCollection();

                    collection.Practice = practice.PracticeName;
                    collection.Scripts  = _mapper.Map <IEnumerable <CollectScriptPoco> >(dateFilteredScripts);
                    practicesWithScriptToCollect.Add(collection);
                }

                // Add all the scripts to a collection so we can get the total uncollected
                var uncollectedScripts = allScripts.Where(s => s.OrderStatus == 0);

                if (uncollectedScripts.Count() > 0)
                {
                    scriptsFromAllPractices.AddRange(uncollectedScripts);
                }
            }

            model.PracticesWithScriptToCollect = practicesWithScriptToCollect;
            model.NoScriptsToday  = scriptsFromAllPractices.Where(s => s.OrderDate.Date == DateTime.Today).Count();
            model.NoScripts7Days  = scriptsFromAllPractices.Where(s => s.OrderDate.Date >= DateTime.Today.AddDays(-7)).Count();
            model.NoScripts2Weeks = scriptsFromAllPractices.Where(s => s.OrderDate.Date >= DateTime.Today.AddDays(-14)).Count();
            model.NoScriptsMonth  = scriptsFromAllPractices.Where(s => s.OrderDate.Date >= DateTime.Today.AddMonths(-1)).Count();
            model.NoScriptsOlder  = scriptsFromAllPractices.Count();

            return(View(model));
        }