コード例 #1
0
        public string Binding()
        {
            GridRequestParameters param = GridRequestParameters.Current;

            //List<Context.SalesOrder> items = RepoSalesOrder.FindAllPickUp(param.Skip, param.Take, (param.Sortings != null ? param.Sortings.ToList() : null), param.Filters);
            List <Context.SalesOrder> items     = RepoSalesOrder.FindAllPickUp();
            List <SalesOrderPickup>   ListModel = new List <SalesOrderPickup>();

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

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

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