private void BuildTran(Commands.AddBookTransactionCommandBase command)
        {
            Transaction tran = command.CreateTransaction();

            foreach (var eachOrderData in command.TranData.Orders)
            {
                var addOrderCommand = this.CreateAddOrderCommand(command.AddOrderCommandFactory, tran, eachOrderData, command.TranData.TradeDay);
                addOrderCommand.Execute();
            }
        }
        private void ParseTransactionCommon(Commands.AddBookTransactionCommandBase command)
        {
            TransactionConstructParams constructParams = command.ConstructParams;

            constructParams.OperationType = Framework.OperationType.AsNewRecord;
            constructParams.Fill(command.TranData);
            constructParams.Code          = command.GenerateTransactionCode(constructParams.OrderType);
            constructParams.Phase         = command.TranData.Phase;
            constructParams.ConstractSize = command.TranData.ContractSize;
            constructParams.ExecuteTime   = command.TranData.ExecuteTime;
            constructParams.ApproveId     = command.TranData.ApproverId.Value;
        }