示例#1
0
        public void test_shape()
        {
            IEnumerable <dynamic> results = tbl.Paged(where : "objid > 1", currentPage: 1, pageSize: 20).Items;

            ExpandoObject eo = new ExpandoObject();

            string a = "Description";

            // Use delegate instance to call UppercaseString method

            //string name = "Dakota";
            //string myshape = convertMethod(name);
            // List<string> myGridData = convertMethod(results);
            List <string> myGridData = new List <string>();
            //Func<string, List<string>> convertMethod = ShapeGridRow;
            DelegateShapeGridRow convertMethod = ShapeGridRow;

            foreach (dynamic result in results)
            {
                dynamic desc = result;
                myGridData = convertMethod(result);
            }


            this.IsPending();
        }
示例#2
0
 public jgridDisplayHelper(DelegateShapeGridRow convertMethod)
 {
     this.ConvertMethod = convertMethod;
 }
示例#3
0
 public jgridDisplayHelper(DynamicModel _tbl, DelegateShapeGridRow convertMethod)
 {
     tbl = _tbl;
     this.ConvertMethod = convertMethod;
 }
示例#4
0
 public jgridDisplayHelper(DelegateShapeGridRow convertMethod)
 {
     this.ConvertMethod = convertMethod;
 }
示例#5
0
 public jgridDisplayHelper(DynamicModel _tbl, DelegateShapeGridRow convertMethod)
 {
     tbl = _tbl;
     this.ConvertMethod = convertMethod;
 }