示例#1
0
 private bool ShouldFrozen(PhysicalOrder openOrder)
 {
     return(this.PhysicalTradeSide != PhysicalTradeSide.Delivery && openOrder.PhysicalTradeSide == PhysicalTradeSide.Deposit && openOrder.PhysicalValueMatureDay > 0);
 }
        private Transaction CreateNewInstalmentTran(decimal remainLot, Transaction oldTran, PhysicalOrder oldOrder, ExecuteContext context)
        {
            var command           = AddPhysicalTransactionCommandFactory.Default.CreateInstalmentTransaction(oldTran.Owner, (PhysicalTransaction)oldTran, oldOrder.Id, oldOrder, true, true, remainLot);
            var instalmentCommand = (AddPhysicalInstalmentTransactionCommand)command;

            instalmentCommand.BaseTime = context.ExecuteTime;
            command.Execute();
            return(command.Result);
        }
示例#3
0
 internal InstalmentDetailManager(PhysicalOrder order, Instalment instalment)
 {
     _order      = order;
     _instalment = instalment;
 }