Esempio n. 1
0
 public void CopyFromPos(PosEndPoint pos, Shop shop)
 {
     ShopId          = shop.ShopId;
     PosId           = pos.PosEndPointId;
     ShopName        = shop.Name;
     ShopDisplayName = shop.Name;
 }
Esempio n. 2
0
 public ShopDealLog(string seriaNo, int dealType, decimal amount, PosEndPoint pos, Shop sourceShop, Account account, Shop shopTo, int addin)
     : this()
 {
     SerialNo = seriaNo;
     DealType = dealType;
     Amount = amount;
     SubmitTime = DateTime.Now;
     Pos = pos;
     SourceShop = sourceShop;
     Account = account;
     Shop = shopTo;
     Addin = addin;
 }
Esempio n. 3
0
 public DistributorDealLog(string seriaNo, int dealType, decimal amount, PosEndPoint pos, Distributor sourceDistributor, Account account, Distributor distributorTo, int addin)
     : this()
 {
     SerialNo          = seriaNo;
     DealType          = dealType;
     Amount            = amount;
     SubmitTime        = DateTime.Now;
     Pos               = pos;
     SourceDistributor = sourceDistributor;
     Account           = account;
     Distributor       = distributorTo;
     Addin             = addin;
 }
Esempio n. 4
0
 public static string Format(string template, PosEndPoint pos)
 {
     if (pos == null)
     {
         return(template.Replace("#pos-name#", "")
                .Replace("#pos-no#", "")
                .Replace("#now#", DateTime.Now.ToString("yyyy年MM月dd日 HH时mm分ss秒")));
     }
     return(template
            .Replace("#pos-name#", pos.DisplayName)
            .Replace("#pos-no#", pos.Name)
            .Replace("#now#", DateTime.Now.ToString("yyyy年MM月dd日 HH时mm分ss秒")));
 }
Esempio n. 5
0
 public static string FormatTickForDeal(string message, Site site, DealLog deallog, Account account, Shop shop, PosEndPoint pos, User @operator)
 {
     message = MessageFormator.Format(message, site);
     message = MessageFormator.Format(message, account);
     message = MessageFormator.Format(message, deallog);
     message = MessageFormator.Format(message, shop);
     message = MessageFormator.Format(message, pos);
     message = MessageFormator.FormatForOperator(message, @operator);
     return(message);
 }