Beispiel #1
0
        //删除opc内容
        // OPC opc = new OPC();
        // List<OpcHelperItem> opcItemList = new List<OpcHelperItem>();

        public HomeController(ISB_UserServices userser, IRE_SysRoleUserServices sysser, IRE_SysRolePageServices syspageser,
                              ISB_PageServices pser, ISB_SysRoleServices sroleser, IAP_Factory_RealServices factoryser,
                              IPG_Area_RealServices areaser, IBB_InstrumentServices InstrumentSer, IBB_ThresholdServices thresholdser, ISB_WarnLogServices warnlogser,
                              IAP_Factory_HistoryServices factory_hisser, IAP_Factory_StatisticsServices factory_staticser,
                              IAP_Station_RealServices station_realser, IAP_Centrifuge_RealServices centri_realser,
                              IAP_Centrifuge_StatisticsServices centri_staticser, IAP_Station_HistoryServices stahisser,
                              IPG_Area_HistoryServices areahisser, IAP_Centrifuge_HistoryServices cenhisser, IOpcHelperItemServices opcHelperItemSer,
                              IUPIEnergyServices upienergyser)
        {
            userSer               = userser;
            sysroleuserSer        = sysser;
            sysrolepageSer        = syspageser;
            pageSer               = pser;
            sysroleSer            = sroleser;
            instrumentSer         = InstrumentSer;
            thresholdSer          = thresholdser;
            warnlogSer            = warnlogser;
            factory_realSer       = factoryser;
            factory_hisSer        = factory_hisser;
            factory_staticSer     = factory_staticser;
            station_realSer       = station_realser;
            centri_realSer        = centri_realser;
            centri_staticSer      = centri_staticser;
            area_realSer          = areaser;
            stahisSer             = stahisser;
            areahisSer            = areahisser;
            cenhisSer             = cenhisser;
            opcHelperItemServices = opcHelperItemSer;
            upienergySer          = upienergyser;
        }
Beispiel #2
0
 public EnergyFormController(IBB_StationServices StationSer, IAP_Station_RealServices Station_realSer, IAP_Station_StatisticsServices Station_statistSer
                             , IAP_Factory_StatisticsServices Factory_statistSer, IAP_Factory_HistoryServices Factory_hisSer, IAP_Station_HistoryServices Station_hisSer)
 {
     stationSer         = StationSer;
     station_realSer    = Station_realSer;
     station_statistSer = Station_statistSer;
     factory_statistSer = Factory_statistSer;
     factory_hisSer     = Factory_hisSer;
     station_hisSer     = Station_hisSer;
 }
        log4net.ILog log = log4net.LogManager.GetLogger("testApp.Logging");//获取一个日志记录器

        /// <summary>
        /// Initializes a new instance of the <see cref="EfficiencyAnalysisController"/> class.
        /// 构造函数注入参数
        /// </summary>
        /// <param name="factoryser">工厂对象</param>
        /// <param name="stationser">空压站对象</param>
        /// <param name="areaser">区域对象</param>
        /// <param name="factorystaser">工厂统计对象</param>
        /// <param name="centrifugeser">空压机对象</param>
        public EfficiencyAnalysisController(
            IAP_Factory_RealServices factoryser,
            IAP_Station_RealServices stationser,
            IPG_Area_RealServices areaser,
            IAP_Factory_StatisticsServices factorystaser,
            IAP_Centrifuge_RealServices centrifugeser,
            IBB_StationServices bstationser, IAP_Station_HistoryServices stationHisser,
            IAP_Factory_HistoryServices factionHisser,
            IAP_Centrifuge_HistoryServices centrifugeHisser, IAP_Station_StatisticsServices stationStatisticser,
            IAP_Centrifuge_StatisticsServices centriStatisticser, IAP_Factory_HistoryServices hisser)
        {
            factoryRealSer      = factoryser;
            stationRealSer      = stationser;
            areaRealSer         = areaser;
            factoryStatisticSer = factorystaser;
            centrifugeRealSer   = centrifugeser;
            bbstationSer        = bstationser;
            stationHisSer       = stationHisser;
            factionHisSer       = factionHisser;
            centrifugeHisSer    = centrifugeHisser;
            stationStatisticSer = stationStatisticser;
            centriStatisticSer  = centriStatisticser;
            hisSer = hisser;
        }