Пример #1
0
 private DS_OrderDetail CreateOrderDetail(int ProductID,int ProNum)
 {
     var productbl = new DS_ProductsDataContext(DBUtility.DbHelperSQL.Connection);
     var product = productbl.DS_Products.Single(a=>a.ID.Equals(ProductID));
     var OrderDetail = new DS_OrderDetail();
     OrderDetail.ProNum = ProNum;
     OrderDetail.ProductID = ProductID;
     OrderDetail.Price = GetPrice(product.PriceRang,ProNum);
     OrderDetail.ProName = product.Title;
     OrderDetail.ImgUrl = product.Img1;
     OrderDetail.OrderNum = string.Empty;
     OrderDetail.State = (byte)State.待卖家确认订单;
     OrderDetail.CreateDate = DateTime.Now;
     OrderDetail.Amount = Math.Round(double.Parse(ProNum.ToString()) * OrderDetail.Price);
     OrderDetail.PriceRang = GetPriceRang(product.PriceRang, ProNum);
     return OrderDetail;
 }
Пример #2
0
 partial void DeleteDS_OrderDetail(DS_OrderDetail instance);
Пример #3
0
 partial void UpdateDS_OrderDetail(DS_OrderDetail instance);
Пример #4
0
 partial void InsertDS_OrderDetail(DS_OrderDetail instance);
Пример #5
0
 partial void DeleteDS_OrderDetail(DS_OrderDetail instance);
Пример #6
0
 partial void UpdateDS_OrderDetail(DS_OrderDetail instance);
Пример #7
0
 partial void InsertDS_OrderDetail(DS_OrderDetail instance);