public void start(SCApplication app)
        {
            mapBLL         = app.MapBLL;
            sectionBLL     = app.SectionBLL;
            vehicleService = app.VehicleService;

            RegisterReleaseAddressOfKeySection();
        }
Beispiel #2
0
        public ActionResult GetMessageList(string phone)
        {
            var data = MapBLL.GetMessageList(phone);

            return(new JsonResult
            {
                Data = data
            });
        }
Beispiel #3
0
        /// <summary>
        /// 获取最新的定位信息
        /// </summary>
        /// <param name="objectNames"></param>
        /// <returns></returns>
        public ActionResult GetNewGpsInfo(string objectNames)
        {
            var data = MapBLL.GetNewGpsInfo(objectNames.Split(';'));

            return(new JsonResult
            {
                Data = data
            });
        }
Beispiel #4
0
        /// <summary>
        /// 获取所有信息
        /// </summary>
        /// <returns></returns>
        public ActionResult GetAllInfo()
        {
            var data = MapBLL.GetAllInfo();

            return(new JsonResult
            {
                Data = data
            });
        }
Beispiel #5
0
        /// <summary>
        /// 获取人员车辆树结构
        /// </summary>
        /// <returns></returns>
        public ActionResult GetMapTree()
        {
            var data = MapBLL.GetTree();

            return(new JsonResult
            {
                Data = data
            });
        }
Beispiel #6
0
 public void start(SCApplication app)
 {
     mapBLL          = app.MapBLL;
     sectionBLL      = app.SectionBLL;
     vehicleService  = app.VehicleService;
     reserveBLL      = app.ReserveBLL;
     blockControlBLL = app.BlockControlBLL;
     RegisterReleaseAddressOfKeySection();
     RegisterBlockLeaveEventForBlockRelease();
 }
Beispiel #7
0
        /// <summary>
        /// 新增报警信息
        /// </summary>
        /// <returns></returns>
        public ActionResult AddAlarmInfo(string info, string alarmAddress, string alarmObjectName, string alarmType, string alarmTime, string objectName)
        {
            INFO_ALARMINFO alarmInfo = new INFO_ALARMINFO();

            alarmInfo.ALARMINFO       = info;
            alarmInfo.ALARMADDRESS    = alarmAddress;
            alarmInfo.ALARMOBJECTNAME = alarmObjectName;
            alarmInfo.ALARMTYPE       = Convert.ToInt32(alarmType);
            alarmInfo.ALARMTIME       = DateTime.Parse(alarmTime);
            var isSuccess = AlarmBLL.Add(alarmInfo);

            MapBLL.UpdateGpsInfo(objectName);
            return(new JsonResult
            {
                Data = isSuccess
            });
        }
        public WindownApplication()
        {
            ViewerID         = getString("Viewer_ID", "");
            webClientManager = WebClientManager.getInstance();

            ObjCacheManager = new ObjCacheManager(this);

            elasticSearchManager = new ElasticSearchManager();

            RailDao             = new RAILDao();
            AddressDao          = new ADDRESSDao();
            PortIconDao         = new PortIconDao();
            PointDao            = new POINTDao();
            GroupRailDao        = new GROUPRAILSDao();
            SegmentDao          = new SegmentDao();
            SectionDao          = new SectionDao();
            PortDao             = new PortDao();
            VehicleDao          = new VehicleDao();
            UserDao             = new UserDao();
            UserGroupDao        = new UserGroupDao();
            UserFuncDao         = new UserFuncDao();
            FunctionCodeDao     = new FunctionCodeDao();
            CMD_OHTCDao         = new CMD_OHTCDao();
            CMD_MCSDao          = new CMD_MCSDao();
            VCMD_MCSDao         = new VCMD_MCSDao();
            PortStationDao      = new PortStationDao();
            AlarmDao            = new AlarmDao();
            MapBLL              = new MapBLL(this);
            UserBLL             = new UserBLL(this);
            OperationHistoryBLL = new OperationHistoryBLL(this);
            CmdBLL              = new CmdBLL(this);
            AlarmBLL            = new AlarmBLL(this);
            PortStationBLL      = new PortStationBLL(this);
            SegmentBLL          = new SegmentBLL(this);
            ObjCacheManager.start();
            ID = ObjCacheManager.MapId;

            LineBLL             = new LineBLL(this);
            VehicleBLL          = new VehicleBLL(this);
            SysExcuteQualityBLL = new SysExcuteQualityBLL(this);

            dBTableWatcher = new EventAction.DBTableWatcher(this);
            dBTableWatcher.initStart();
            // setEFConnectionString(ObjCacheManager.EFConnectionString);



            SysExcuteQualityQueryService = new SysExcuteQualityQueryService(this);
            //initBackgroundWork();
            //  SysExcuteQualityQueryService = new SysExcuteQualityQueryService();
            switch (WindownApplication.OHxCFormMode)
            {
            case OHxCFormMode.CurrentPlayer:
                natsManager       = new NatsManager(ID, "nats-cluster", ViewerID);
                redisCacheManager = new RedisCacheManager(ID);
                SubscriberNatsEvent();
                SubscriberDBTableWatcherEvent();
                //SysExcuteQualityQueryService.start();
                break;

            case OHxCFormMode.HistoricalPlayer:
                HistoricalReplyService = new HistoricalReplyService(this);
                //HistoricalReplyService.loadVhHistoricalInfo();
                break;
            }
            //VehicleBLL.ReguestViewerUpdate();
        }