public OrderManager(GlobalConfig.DB.FromType fromType = GlobalConfig.DB.FromType.Write) { _operationLogManager = new OperationLogManager(); _goodsOrderDal = new DAL.Implement.Order.GoodsOrder(fromType); _goodsOrderDetail = OrderInstance.GetGoodsOrderDetailDao(fromType); _goodsCenterSao = new GoodsCenterSao(); _promotionSao = new PromotionSao(); _reckoning = new Reckoning(fromType); _asynStorageRecordDao = new ASYNStorageRecordDao(fromType); _goodsStockSettleRecordBll = new GoodsStockRecordDao(); _invoice = new Invoice(fromType); _realTimeGrossSettlementDal = new RealTimeGrossSettlementDal(fromType); }
public void Launch() { if (LinkedInstance != null) { return; } LinkedInstance = new OrderInstance(ServiceLocation, Algorithm, MaxPrice, Limit, PoolData, ID, StartingPrice, StartingAmount); if (HandlerDLL.Length > 0) { try { Assembly ASS = Assembly.LoadFrom(HandlerDLL); Type T = ASS.GetType("HandlerClass"); HandlerMethod = T.GetMethod("HandleOrder"); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }
private static string DisplayOrder(OrderInstance instance) { return($"Id {instance.PublicMember.Id}, Asset {instance.PublicMember.AssetName}, Quantity {instance.PublicMember.Quantity}, Remaining {instance.PublicMember.RemainingQuantity}"); }
public GoodsOrder(GlobalConfig.DB.FromType fromType) { _goodsOrderDao = new DAL.Implement.Order.GoodsOrder(GlobalConfig.DB.FromType.Write); _goodsOrderDetailDao = OrderInstance.GetGoodsOrderDetailDao(fromType); _invoiceDao = InventoryInstance.GetInvoiceDao(fromType); }
public CheckRefund(GlobalConfig.DB.FromType fromType) { _refundDal = OrderInstance.GetCheckRefundDao(fromType); }