static QueryCacheDataToGateway() { _DeviceDefineService = ServiceFactory.Create <IDeviceDefineService>(); _PointDefineService = ServiceFactory.Create <IAllSystemPointDefineService>(); _NetworkModuleService = ServiceFactory.Create <INetworkModuleService>(); _ManualCrossControlService = ServiceFactory.Create <IManualCrossControlService>(); }
public ConfigService(IConfigRepository _Repository, IPointDefineService _PointDefineService, IPersonPointDefineService _PersonPointDefineService, INetworkModuleService _NetworkModuleService, IConfigCacheService _ConfigCacheService) { this._Repository = _Repository; this._PointDefineService = _PointDefineService; this._PersonPointDefineService = _PersonPointDefineService; this._NetworkModuleService = _NetworkModuleService; this._ConfigCacheService = _ConfigCacheService; }
/// <summary> /// 发送网络模块时间同步命令 /// </summary> public void SetNetworkModuleSyncTime() { try { INetworkModuleService NetworkModuleService = ServiceFactory.Create <INetworkModuleService>(); NetworkModuleService.SetNetworkModuleSyncTime(); MessageBox.Show("发送网络模块时间同步成功!"); } catch (Exception ex) { Basic.Framework.Logging.LogHelper.Error(ex); MessageBox.Show("发送网络模块时间同步失败,详细查看日志!"); } }
private void btn_cancleAlarm_Click(object sender, EventArgs e) { try { INetworkModuleService networkModuleService = ServiceFactory.Create <INetworkModuleService>(); TestAlarmRequest testAlarmRequest = new TestAlarmRequest(); testAlarmRequest.macItems = new List <Jc_MacInfo>(); testAlarmRequest.testAlarmFlag = 0; networkModuleService.TestAlarm(testAlarmRequest); } catch (Exception ex) { MessageBox.Show("操作失败,原因:" + ex.Message); } }
private NetworkModuleCache() { networkModuleService = ServiceFactory.Create <INetworkModuleService>(); positionService = ServiceFactory.Create <IPositionService>(); }
public ControlService(IPointDefineService pointDefineService, INetworkModuleService networkModuleService) { _pointDefineService = pointDefineService; _networkModuleService = networkModuleService; }