|
|
@ -41,14 +41,23 @@ public class ManualSuccState : IState
|
|
|
|
_CommonMgr.UpdateSwapOrder(machine);
|
|
|
|
_CommonMgr.UpdateSwapOrder(machine);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_manualOperationRecordRepository.Insert(new ManualOperationRecord()
|
|
|
|
var manualOperationRecord = new ManualOperationRecord()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Type = 2,
|
|
|
|
Type = 1,
|
|
|
|
CreatedBy = UserManager.Account,
|
|
|
|
CreatedBy = UserManager.Account,
|
|
|
|
UpdatedBy = UserManager.Account,
|
|
|
|
UpdatedBy = UserManager.Account,
|
|
|
|
Operator = machine.OperateModel.Operator,
|
|
|
|
Operator = machine.OperateModel.Operator,
|
|
|
|
Reason = machine.OperateModel.Reason,
|
|
|
|
Reason = machine.OperateModel.Reason,
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
if (machine.SwapOrder != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
manualOperationRecord.SwapOrderSn = machine.SwapOrder.Sn;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_manualOperationRecordRepository.Insert(manualOperationRecord);
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
machine.Reset();
|
|
|
|
machine.Reset();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception e)
|
|
|
|
catch (Exception e)
|
|
|
|