public GSTightenController(ScreenConfig config, Logging logger, MainViewModels viewModel)
 {
     _logger      = logger;
     tdConfig     = config;
     view         = viewModel;
     TightenDatas = new TightenDataCaChe(tdConfig.Tighten.BoltCount);
 }
示例#2
0
        public MyTightenManager(TightenConfig config, StationInfo stationInfo)
        {
            Debug.WriteLine($"MyTightenController Ctor()");
            Debug.WriteLine($"MyTightenController TightenConfig{config.Host}:{config.Port}");
            tdConfig     = config;
            StationInfo  = stationInfo;
            TightenDatas = new TightenDataCaChe();

            //Controller初始化时,就取库里读取本站、本枪对应的发动机特征码
            //TODO:考虑TAP并行
            //newTightenConfigCacahList = RFIDDBHelper.MSSQLHandler.TightenConfig.GetNewTightenConfigsByStationId(stationInfo.StationID, config.ToolId);
        }