Ejemplo n.º 1
0
        //
        // GET: /ReceiveDetail/Create

        public virtual ActionResult Create()
        {
            ViewBag.CommodityID      = new SelectList(_commodityService.GetAllCommodity(), "CommodityID", "Name");
            ViewBag.CommodityGradeID = new SelectList(_commodityGradeService.GetAllCommodityGrade(), "CommodityGradeID", "Name");
            ViewBag.ReceiveID        = new SelectList(_receiveService.GetAllReceive(), "ReceiveID", "SINumber");
            ViewBag.UnitID           = new SelectList(_unitService.GetAllUnit(), "UnitID", "Name");
            return(View());
        }
Ejemplo n.º 2
0
        public ActionResult CommodityGrade_Read([DataSourceRequest] DataSourceRequest request)
        {
            var commodityGrades          = _commodityGradeService.GetAllCommodityGrade();
            var commodityGradesViewModel = CommodityGradeViewModelBinder.BindListCommodityGradeViewModel(commodityGrades);

            return(Json(commodityGradesViewModel.ToDataSourceResult(request), JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 3
0
        //
        // GET: /CommodityGrade/

        public ViewResult Index()
        {
            return(View("Index", _commodityGradeService.GetAllCommodityGrade().ToList()));
        }