コード例 #1
0
        public static string QueryPoInspectItemListALL()
        {
            string jsonStr = "[]";
            List <mg_PoInspectItemModel> list = null;
            string total = "0";

            list = QueryListALL(out total);
            mg_PoInspectItemPageModel model = new mg_PoInspectItemPageModel();

            model.total = total;
            model.rows  = list;
            jsonStr     = JSONTools.ScriptSerialize <mg_PoInspectItemPageModel>(model);
            return(jsonStr);
        }
コード例 #2
0
        public static string QueryPoInspectItemList(string page, string pagesize)
        {
            string jsonStr = "[]";
            List <mg_PoInspectItemModel> list = null;
            string total = "0";

            if (page == "1")
            {
                list = QueryListForFirstPage(pagesize, out total);
            }
            else
            {
                list = QueryListForPaging(page, pagesize, out total);
            }

            mg_PoInspectItemPageModel model = new mg_PoInspectItemPageModel();

            model.total = total;
            model.rows  = list;
            jsonStr     = JSONTools.ScriptSerialize <mg_PoInspectItemPageModel>(model);
            return(jsonStr);
        }