|
|
@ -32,35 +32,9 @@ public class MonitorService
|
|
|
|
var configBinInfo =
|
|
|
|
var configBinInfo =
|
|
|
|
new MapperConfiguration(cfg => cfg.CreateMap<StepModel, SwappingStateInfoResp>().ReverseMap());
|
|
|
|
new MapperConfiguration(cfg => cfg.CreateMap<StepModel, SwappingStateInfoResp>().ReverseMap());
|
|
|
|
IMapper mapperBinInfo = configBinInfo.CreateMapper();
|
|
|
|
IMapper mapperBinInfo = configBinInfo.CreateMapper();
|
|
|
|
List<SwappingStateInfoResp> stateInfoList = new List<SwappingStateInfoResp>()
|
|
|
|
|
|
|
|
{
|
|
|
|
List<SwappingStateInfoResp> stateInfoList =
|
|
|
|
new SwappingStateInfoResp()
|
|
|
|
mapperBinInfo.Map<List<SwappingStateInfoResp>>(StationSoftMgr.SwappingStateMachine.StepModel);
|
|
|
|
{
|
|
|
|
|
|
|
|
StepName = "空闲1",
|
|
|
|
|
|
|
|
StepNo = 1,
|
|
|
|
|
|
|
|
StartTime = DateTime.Now
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
new SwappingStateInfoResp()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
StepName = "空闲2",
|
|
|
|
|
|
|
|
StepNo = 2,
|
|
|
|
|
|
|
|
StartTime = DateTime.Now
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
new SwappingStateInfoResp()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
StepName = "空闲3",
|
|
|
|
|
|
|
|
StepNo = 3,
|
|
|
|
|
|
|
|
StartTime = DateTime.Now
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
new SwappingStateInfoResp()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
StepName = "空闲4",
|
|
|
|
|
|
|
|
StepNo = 4,
|
|
|
|
|
|
|
|
StartTime = DateTime.Now
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*List<SwappingStateInfoResp> stateInfoList =
|
|
|
|
|
|
|
|
mapperBinInfo.Map<List<SwappingStateInfoResp>>(StationSoftMgr.SwappingStateMachine.StepModel);*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var tboxCarInfoModel = StationSoftMgr.SwappingStateMachine.BoxCarInfoModel;
|
|
|
|
var tboxCarInfoModel = StationSoftMgr.SwappingStateMachine.BoxCarInfoModel;
|
|
|
|
|
|
|
|
|
|
|
|