Пример #1
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);
 }
Пример #2
0
 public static string FormatTickForRenewAccount(string message, string serialNo, Site site, Account account, AccountUser owner, AccountType accountType, User @operator)
 {
     message = MessageFormator.FormatForSerialNo(message, serialNo);
     message = MessageFormator.Format(message, site);
     message = MessageFormator.Format(message, owner);
     message = MessageFormator.Format(message, account);
     message = MessageFormator.Format(message, accountType);
     message = MessageFormator.FormatForOperator(message, @operator);
     return(message);
 }
Пример #3
0
 public static string FormatMessageForShopDeal(string message, string serialNo, Site site, User owner, User @operator, Shop shop, SystemDealLog systemDealLog)
 {
     message = MessageFormator.FormatForSerialNo(message, serialNo);
     message = MessageFormator.Format(message, site);
     message = MessageFormator.Format(message, owner);
     message = MessageFormator.Format(message, shop);
     message = MessageFormator.Format(message, systemDealLog);
     message = MessageFormator.FormatForOperator(message, @operator);
     return(message);
 }
Пример #4
0
 public static string FormatTickForRecharging(string message, Site site, bool hasReceipt, decimal amount, string howToDeal, DealLog deal, Account account, AccountType accountType, AccountUser owner, User @operator)
 {
     message = MessageFormator.Format(message, account);
     message = MessageFormator.Format(message, amount);
     //message = MessageFormator.Format(message, owner);
     //message = MessageFormator.Format(message, site);
     //message = hasReceipt ? message.Replace("#is-recharged#", "发票已开据") : message.Replace("#is-recharged#", "");
     //message = MessageFormator.FormatForOperator(message, @operator);
     message = MessageFormator.Format(message, owner);
     //message = MessageFormator.Format(message, accountType);
     message = MessageFormator.Format(message, deal);
     //message = MessageFormator.FormatHowToDeal(message, howToDeal);
     return(message);
 }