예제 #1
0
 public ActionResult BrokerageGrid(int saleID)
 {
     Models.SaleBrokerageVM _model = new Models.SaleBrokerageVM();
     _model.BrokerageList = GetBrokerageList(saleID);
     _model.SaleID        = saleID;
     return(PartialView("_BrokerageGrid", _model));
 }
예제 #2
0
        public ActionResult Brokerage(int saleID)
        {
            Models.SaleBrokerageVM _model = new Models.SaleBrokerageVM();
            _model.SaleID = saleID;
            var _brokerList = _saleService.GetBuyerList(ClientID, 3);

            _model.BrokerList = new SelectList(_brokerList, "BuyerID", "BuyerName");

            _model.BrokerageList = GetBrokerageList(_model.SaleID);
            return(PartialView("_Brokerage", _model));
        }
예제 #3
0
 public ActionResult Brokerage(Models.SaleBrokerageVM model)
 {
     if (ModelState.IsValid)
     {
         var _bdID = _saleService.AddBrokerage(Infrastructure.BOVMMapper.Map <Models.SaleBrokerage, BO.SaleBrokerageBO>(new Models.SaleBrokerage()
         {
             SaleID    = model.SaleID,
             BrokerID  = model.BrokerID,
             Brokerage = model.Brokerage
         }));
         if (_bdID > 0)
         {
             return(BrokerageGrid(model.SaleID));
         }
     }
     return(Json(new { ErrorCode = 1 }));
 }