Example #1
0
 private PointChangeNotification(int intreval)
     : base("检查服务端测点是否修改", intreval)
 {
     pointDefineService = ServiceFactory.Create <IPointDefineService>();
     largeDataAnalysisLastChangedService = ServiceFactory.Create <ILargeDataAnalysisLastChangedService>();
     pointCache = PointCache.Instance;
 }
Example #2
0
 private void Frm_CheckArea_Load(object sender, EventArgs e)
 {
     pointDefineService = ServiceFactory.Create <IPointDefineService>();
     areaService        = ServiceFactory.Create <IAreaService>();
     IniTable();
     LoadArea();
 }
Example #3
0
 private void Frm_CheckAddressType_Load(object sender, EventArgs e)
 {
     pointDefineService     = ServiceFactory.Create <IPointDefineService>();
     AddressTypeService     = ServiceFactory.Create <IKJ_AddresstypeService>();
     AddresstyperuleService = ServiceFactory.Create <IKJ_AddresstyperuleService>();
     IniTable();
     LoadAddressType();
 }
Example #4
0
 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;
 }
 public LargeDataAnalysisCacheClientService(ILargeDataAnalysisConfigCacheService largeDataAnalysisConfigCacheService,
                                            IDeviceClassCacheService deviceClassCacheService,
                                            IPointDefineService pointDefineService,
                                            IPointDefineCacheService pointDefineCacheService)
 {
     this.largeDataAnalysisConfigCacheService = largeDataAnalysisConfigCacheService;
     this.deviceClassCacheService             = deviceClassCacheService;
     this.pointDefineService      = pointDefineService;
     this.pointDefineCacheService = pointDefineCacheService;
 }
Example #6
0
 static CacheDataHelper()
 {
     networkModuleCacheService = ServiceFactory.Create <INetworkModuleCacheService>();
     pointDefineCacheService   = ServiceFactory.Create <IPointDefineCacheService>();
     pointDefineService        = ServiceFactory.Create <IPointDefineService>();
     deviceDefineCacheService  = ServiceFactory.Create <IDeviceDefineCacheService>();
     settingCacheService       = ServiceFactory.Create <ISettingCacheService>();
     automaticArticulatedDeviceCacheService = ServiceFactory.Create <IAutomaticArticulatedDeviceCacheService>();
     allSystemPointDefineService            = ServiceFactory.Create <IAllSystemPointDefineService>();
     remoteStateService = ServiceFactory.Create <IRemoteStateService>();
 }
 static KJ237CacheHelper()
 {
     rPRealCacheService        = ServiceFactory.Create <IRPRealCacheService>();
     r_PhjService              = ServiceFactory.Create <IR_PhjService>();
     r_PhistoryService         = ServiceFactory.Create <IR_PhistoryService>();
     rsyncLocalCacheService    = ServiceFactory.Create <IRsyncLocalCacheService>();
     personPointDefineService  = ServiceFactory.Create <IPersonPointDefineService>();
     rPersoninfCacheService    = ServiceFactory.Create <IRPersoninfCacheService>();
     r_PersoninfRepository     = ServiceFactory.Create <IR_PersoninfRepository>();
     rUndefinedDefCacheService = ServiceFactory.Create <IRUndefinedDefCacheService>();
     pointDefineService        = ServiceFactory.Create <IPointDefineService>();
     alarmCacheService         = ServiceFactory.Create <IAlarmCacheService>();
     alarmRecordRepository     = ServiceFactory.Create <IAlarmRecordRepository>();
     alarmTodbService          = ServiceFactory.Create <IInsertToDbService <Jc_BInfo> >();
     phjTodbService            = ServiceFactory.Create <IInsertToDbService <R_PhjInfo> >();
     phistoryTodbService       = ServiceFactory.Create <IInsertToDbService <R_PhistoryInfo> >();
     r_PBCacheService          = ServiceFactory.Create <IR_PBCacheService>();
     areaCacheService          = ServiceFactory.Create <IAreaCacheService>();
     r_PbService   = ServiceFactory.Create <IInsertToDbService <R_PbInfo> >();
     r_CallService = ServiceFactory.Create <IR_CallService>();
     r_KqbcService = ServiceFactory.Create <IR_KqbcService>();
 }
Example #8
0
 private PointCache()
 {
     pointDefineService = ServiceFactory.Create <IPointDefineService>();
 }
Example #9
0
        private void LoadData()
        {
            try
            {
                IPointDefineService service = ServiceFactory.Create <IPointDefineService>();
                var result = service.GetAllPointDefineCache();
                if (result.IsSuccess && result.Data != null)
                {
                    List <Jc_DefInfo> allDef = result.Data.OrderBy(a => a.Point).ToList();
                    List <Jc_DefInfo> tempDef;

                    //模拟量本地控制
                    tempDef = allDef.Where(a => a.DevPropertyID == 1 && a.DevClassID != 13).ToList();
                    for (int i = 0; i < tempDef.Count; i++)
                    {
                        mnlkzDt.Rows.Add(i + 1,
                                         tempDef[i].Point,
                                         tempDef[i].DevName,
                                         tempDef[i].Wz,
                                         tempDef[i].Z2,
                                         tempDef[i].Z3,
                                         tempDef[i].Z4,
                                         GetLocalControlText(tempDef[i].Fzh, tempDef[i].K1),
                                         GetLocalControlText(tempDef[i].Fzh, tempDef[i].K2),
                                         GetLocalControlText(tempDef[i].Fzh, tempDef[i].K3),
                                         GetLocalControlText(tempDef[i].Fzh, tempDef[i].K4),
                                         GetLocalControlText(tempDef[i].Fzh, tempDef[i].K7)
                                         );
                    }
                    //开关量本地控制
                    tempDef = allDef.Where(a => a.DevPropertyID == 2).ToList();
                    for (int i = 0; i < tempDef.Count; i++)
                    {
                        kglkzDt.Rows.Add(i + 1,
                                         tempDef[i].Point,
                                         tempDef[i].DevName,
                                         tempDef[i].Wz,
                                         GetLocalControlText(tempDef[i].Fzh, tempDef[i].K1),
                                         GetLocalControlText(tempDef[i].Fzh, tempDef[i].K2),
                                         GetLocalControlText(tempDef[i].Fzh, tempDef[i].K3)
                                         );
                    }
                    //交叉控制
                    tempDef = allDef.Where(a => (a.DevPropertyID == 1 || a.DevPropertyID == 2) && a.DevClassID != 13).ToList();
                    for (int i = 0; i < tempDef.Count; i++)
                    {
                        jckzDt.Rows.Add(i + 1,
                                        tempDef[i].Point,
                                        tempDef[i].DevName,
                                        tempDef[i].Wz,
                                        tempDef[i].Jckz1,
                                        tempDef[i].Jckz2,
                                        tempDef[i].Jckz3
                                        );
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Example #10
0
 public ControlService(IPointDefineService pointDefineService, INetworkModuleService networkModuleService)
 {
     _pointDefineService   = pointDefineService;
     _networkModuleService = networkModuleService;
 }