Example #1
0
  public static Mapx init(Mapx params) {
    String position = params.getString("Position");
    params.put("Political", HtmlUtil.mapxToOptions(Political_MAP, true));
    params.put("EduLevel", HtmlUtil.mapxToOptions(EduLevel_MAP, true));
    params.put("Gender", HtmlUtil.mapxToRadios("Gender", Gender_MAP, "M"));
    params.put("Ethnicity", HtmlUtil.codeToOptions("Ethnicity"));
    params.put("District", "");
    params.put("Position", position);

    Mapx district =
        new QueryBuilder("select code,name from zddistrict where treelevel=1")
            .executeDataTable()
            .toMapx(0, 1);
    params.put("NativePlace", HtmlUtil.mapxToOptions(district));
    return params;
  }