public void CopyFromPos(PosEndPoint pos, Shop shop) { ShopId = shop.ShopId; PosId = pos.PosEndPointId; ShopName = shop.Name; ShopDisplayName = shop.Name; }
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; }
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; }
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秒"))); }
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); }