public void startupUI(frm_Query _frmquery) { try { sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); cb_HrsInterval.MouseWheel += new MouseWheelEventHandler(cb_HrsInterval_MouseWheel); this.frmquery = _frmquery; } catch (Exception ex) { logger.Error(ex, "Exception"); } }
private async void VisitLink2Async() { try { linkLabel2.LinkVisited = true; m_StartDTCbx.Value = DateTime.Now.AddMonths(-3); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); } catch (Exception ex) { logger.Error(ex, "Exception"); } }
private async void VisitLast_24hrsAsync() { try { Last_30mins.LinkVisited = true; m_StartDTCbx.Value = DateTime.Now.AddHours(-24); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); } catch (Exception ex) { logger.Error(ex, "Exception"); } }
public LogQueryForm() { InitializeComponent(); sysExcuteQualityQueryService = App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); uctl_ElasticQuery_CMDExcute_1.QueryCommandDetailEnevt += Uctl_ElasticQuery_CMDExcute_1_QueryCommandDetailEnevt; uctl_ElasticQuery_sys_process_log.QueryCommandDetailEnevt += Uctl_ElasticQuery_sys_process_log_QueryCommandDetailEnevt1; List <string> lstVh = new List <string>() { "" }; List <sc.AVEHICLE> lstEq = App.WindownApplication.getInstance().ObjCacheManager.GetVEHICLEs(); lstVh.AddRange(lstEq.Select(vh => vh.VEHICLE_ID).ToList()); string[] allVh = lstVh.ToArray(); Common.WinFromUtility.setComboboxDataSource(cb_vh_id, allVh); }
public void startupUI(frm_Query _frmquery) { try { this.Width = 1711; this.Height = 754; m_StartDTCbx.Value = DateTime.Now; m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); cb_HrsInterval.MouseWheel += new MouseEventHandler(cb_HrsInterval_MouseWheel); this.frmquery = _frmquery; } catch (Exception ex) { logger.Error(ex, "Exception"); } }
public async void startupUI(string cmdid, string vhid) { try { sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); CommunLog_MCSCmdID.Text = cmdid; CommunLog_VhID.Text = vhid; if (!(this.CommunLog_MCSCmdID.Text == string.Empty) || !(this.CommunLog_VhID.Text == string.Empty)) { await search(); } } catch (Exception ex) { logger.Error(ex, "Exception"); } }
private async void cb_HrsInterval_SelectedIndexChanged(object sender, EventArgs e) { try { switch (cb_HrsInterval.SelectedIndex) { case 0: m_StartDTCbx.Value = DateTime.Now.AddMonths(-3); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 1: m_StartDTCbx.Value = DateTime.Now.AddHours(-1); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 2: m_StartDTCbx.Value = DateTime.Now.AddHours(-2); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 3: m_StartDTCbx.Value = DateTime.Now.AddHours(-3); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 4: m_StartDTCbx.Value = DateTime.Now.AddHours(-4); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 5: m_StartDTCbx.Value = DateTime.Now.AddHours(-5); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 6: m_StartDTCbx.Value = DateTime.Now.AddHours(-6); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 7: m_StartDTCbx.Value = DateTime.Now.AddHours(-7); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 8: m_StartDTCbx.Value = DateTime.Now.AddHours(-8); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 9: m_StartDTCbx.Value = DateTime.Now.AddHours(-9); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 10: m_StartDTCbx.Value = DateTime.Now.AddHours(-10); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 11: m_StartDTCbx.Value = DateTime.Now.AddHours(-11); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 12: m_StartDTCbx.Value = DateTime.Now.AddHours(-12); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 13: m_StartDTCbx.Value = DateTime.Now.AddHours(-13); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 14: m_StartDTCbx.Value = DateTime.Now.AddHours(-14); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 15: m_StartDTCbx.Value = DateTime.Now.AddHours(-15); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 16: m_StartDTCbx.Value = DateTime.Now.AddHours(-16); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 17: m_StartDTCbx.Value = DateTime.Now.AddHours(-17); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 18: m_StartDTCbx.Value = DateTime.Now.AddHours(-18); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 19: m_StartDTCbx.Value = DateTime.Now.AddHours(-19); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 20: m_StartDTCbx.Value = DateTime.Now.AddHours(-20); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 21: m_StartDTCbx.Value = DateTime.Now.AddHours(-21); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 22: m_StartDTCbx.Value = DateTime.Now.AddHours(-22); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 23: m_StartDTCbx.Value = DateTime.Now.AddHours(-23); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; case 24: m_StartDTCbx.Value = DateTime.Now.AddHours(-24); m_EndDTCbx.Value = DateTime.Now; sysExcuteQualityQueryService = ohxc.winform.App.WindownApplication.getInstance().GetSysExcuteQualityQueryService(); await search(); break; default: break; } } catch (Exception ex) { logger.Error(ex, "Exception"); } }
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(); }