コード例 #1
0
 public OrderMappingCacheInfo(Modules.ProductOrderMapping p)
 {
     ProductInfo       = JsonValue.Deserialize <Cnaws.Product.ProductCacheInfo>(p.ProductInfo);
     ProductId         = p.ProductId;
     Image             = p.GetImage(ProductInfo.Image);
     Price             = p.Price;
     TotalMoney        = p.TotalMoney;
     Count             = p.Count;
     Evaluation        = p.Evaluation;
     IsService         = p.IsService;
     AfterSalesOrderId = p.AfterSalesOrderId;
 }
コード例 #2
0
 public static DataStatus ModByArea(DataSource ds, ProductOrderMapping pom)
 {
     if (Db <ProductOrderMapping> .Query(ds).Update()
         .Set("Province", pom.Province)
         .Set("City", pom.City)
         .Set("County", pom.County)
         .Set("Price", pom.Price)
         .Where(W("OrderId", pom.OrderId) & W("ProductId", pom.ProductId)).Execute() > 0
         )
     {
         return(DataStatus.Success);
     }
     else
     {
         return(DataStatus.Failed);
     }
 }