Esempio n. 1
0
        public void SetPrice(BidPriceModel model)
        {
            var price = Mapper.Map <BidPriceEntity>(model);

            price.UserId = BidderContext.Current.UserId;
            _bidPriceRepository.SetPrice(price);
        }
Esempio n. 2
0
 public void SetPrice(BidPriceModel price)
 {
     prices = null;
     Task.Run(() =>
     {
         price.Sn = snProvider.Provide();
         var url  = $"{ApiHttpExecutor.ApiDomian}/Price/SetPrice";
         executor.Post(url, JsonConvert.SerializeObject(price));
     });
 }
Esempio n. 3
0
 private void btnSetPrice_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(productid))
     {
         MessageBox.Show("请先选择商品");
         return;
     }
     else
     {
         FormMoney form = new FormMoney(productid);
         if (form.ShowDialog() == System.Windows.Forms.DialogResult.Cancel)
         {
             var price = new BidPriceModel()
             {
                 MaxPrice   = form.Money,
                 IdResoTemp = productid
             };
             bidPriceService.SetPrice(price);
         }
     }
 }
Esempio n. 4
0
 public void SetPrice(BidPriceModel model)
 {
     _priceService.SetPrice(model);
 }