public string GetLocation()
        {
            List <Context.MasterPool> dbitems = new List <Context.MasterPool>();

            dbitems = RepoLocation.FindAll().ToList();
            return(new JavaScriptSerializer().Serialize(dbitems));
        }
Esempio n. 2
0
        public string Binding()
        {
            GridRequestParameters param = GridRequestParameters.Current;

            List <Context.MasterPool> items = RepoPool.FindAll(param.Skip, param.Take, (param.Sortings != null ? param.Sortings.ToList() : null), param.Filters);

            List <MasterPool> ListModel = new List <MasterPool>();

            foreach (Context.MasterPool item in items)
            {
                ListModel.Add(new MasterPool(item));
            }

            int total = RepoPool.Count(param.Filters);

            return(new JavaScriptSerializer().Serialize(new { total = total, data = ListModel }));
        }
Esempio n. 3
0
        public ActionResult Dynamic()
        {
            ViewBag.LookupCodesSPBU  = RepoLookup.FindAll().Where(d => d.LookupCodeCategories.Category == "tms_SPBU").ToList();
            ViewBag.LookupCodesKapal = RepoLookup.FindAll().Where(d => d.LookupCodeCategories.Category == "tms_penyebrangan").ToList();
            ViewBag.Pool             = RepoMasterPool.FindAll();

            return(View("Dynamic"));
        }