|
|
|
@ -32,35 +32,9 @@ public class MonitorService
|
|
|
|
|
var configBinInfo =
|
|
|
|
|
new MapperConfiguration(cfg => cfg.CreateMap<StepModel, SwappingStateInfoResp>().ReverseMap());
|
|
|
|
|
IMapper mapperBinInfo = configBinInfo.CreateMapper();
|
|
|
|
|
List<SwappingStateInfoResp> stateInfoList = new List<SwappingStateInfoResp>()
|
|
|
|
|
{
|
|
|
|
|
new SwappingStateInfoResp()
|
|
|
|
|
{
|
|
|
|
|
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);*/
|
|
|
|
|
|
|
|
|
|
List<SwappingStateInfoResp> stateInfoList =
|
|
|
|
|
mapperBinInfo.Map<List<SwappingStateInfoResp>>(StationSoftMgr.SwappingStateMachine.StepModel);
|
|
|
|
|
|
|
|
|
|
var tboxCarInfoModel = StationSoftMgr.SwappingStateMachine.BoxCarInfoModel;
|
|
|
|
|
|
|
|
|
|