Exemplo n.º 1
0
        public string Binding()
        {
            GridRequestParameters param = GridRequestParameters.Current;

            List <Context.SalesOrder>          items     = RepoSalesOrder.FindAllProsesKonsolidasi();
            List <SalesOrderProsesKonsolidasi> ListModel = new List <SalesOrderProsesKonsolidasi>();

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

            int total = RepoSalesOrder.CountProsesKonsolidasi(param.Filters);

            return(new JavaScriptSerializer().Serialize(new { total = total, data = ListModel }));
        }