Exemple #1
0
 internal ResetBill(Guid orderId, decimal value, ResetBillType type, DateTime tradeDay)
     : base("Bill", 20)
 {
     _id         = BusinessItemFactory.Create("ID", Guid.NewGuid(), PermissionFeature.Key, this);
     _value      = BusinessItemFactory.Create("Value", value, PermissionFeature.Sound, this);
     _tradeDay   = BusinessItemFactory.Create("TradeDay", tradeDay, PermissionFeature.ReadOnly, this);
     _type       = BusinessItemFactory.Create("Type", type, PermissionFeature.ReadOnly, this);
     _updateTime = BusinessItemFactory.Create("UpdateTime", DateTime.Now, PermissionFeature.ReadOnly, this);
     _orderId    = BusinessItemFactory.Create("OrderID", orderId, PermissionFeature.Key, this);
 }
Exemple #2
0
 internal void AddBill(Guid orderId, decimal value, ResetBillType type, DateTime tradeDay)
 {
     _bills.AddItem(new ResetBill(orderId, value, type, tradeDay), OperationType.AsNewRecord);
 }
 internal BillValueAndType(decimal value, ResetBillType type)
 {
     _value = value;
     _type  = type;
 }