public ActionResult Index()
        {
            var model = new TrnSpbViewModel();

            model.ListData = Mapper.Map <List <TrnSpbModel> >(_trnSpbBLL.GetAll());

            model.CurrentUser = CurrentUser;
            model.Menu        = "Surat Permintaan Barang (SPB)";

            return(View(model));
        }
Ejemplo n.º 2
0
        public JsonResult GetSpbList()
        {
            var model = new List <string>();

            model = _trnSpbBLL.GetAll()
                    .Select(x => x.NO_SPB)
                    .ToList();

            return(Json(model, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 3
0
        public JsonResult GetSpbList()
        {
            var model = _trnSpbBLL
                        .GetAll()
                        .Select(x
                                => new
            {
                DATA = x.NO_SPB
            })
                        .OrderBy(X => X.DATA)
                        .ToList();

            return(Json(model, JsonRequestBehavior.AllowGet));
        }