Ejemplo n.º 1
0
        //物料竞价
        public void MaterialQuote(ItemQuoteDto model)
        {
            var entity = Mapper.Map <ItemQuoteDto, ItemQuote>(model);

            entity.InputTime = DateTime.Now;

            if (entity.Id != 0)
            {
                _unitOfWork.RegisterDirty(entity);
            }
            else
            {
                _unitOfWork.RegisterNew(entity);
            }

            _unitOfWork.Commit();
        }
Ejemplo n.º 2
0
 public ActionResult MaterialQuote(ItemQuoteDto model)
 {
     model.SupplierId = UserId;
     _supplierService.MaterialQuote(model);
     return(Json(new { message = "竞价成功!", code = 200 }));
 }