예제 #1
0
 public static void dg1DataBind(DataGridAction dga) {
   DataTable dt =
       new QueryBuilder("select * from ZDMemberField order by AddTime desc")
           .executePagedDataTable(dga.getPageSize(), dga.getPageIndex());
   dt.decodeColumn("InputType", InputTypeMap);
   dt.decodeColumn("VerifyType", VerifyTypeMap);
   dga.bindData(dt);
 }
예제 #2
0
 public static void dg1DataBind(DataGridAction dga) {
   DataTable dt =
       new QueryBuilder(
               "select * from ZCFullText where siteid=?", ApplicationPage.getCurrentSiteID())
           .executeDataTable();
   Mapx map = new Mapx();
   map.put("Article", "文章检索");
   map.put("Image", "图片检索");
   map.put("Video", "视频检索");
   map.put("Radio", "音频检索");
   dt.decodeColumn("Type", map);
   dga.bindData(dt);
 }