public void getTagModelDataList(ActionMap 請求映射, ActionFormForm 請求回應,Ht. {
ITagModelManager tagmgr = this.getPkgServer().getDriver().getOperateServer().getTagModelManager() ;
List>; models = new ArrayList>();
String tagModelKeyword = request.getParameter("tagModelKeyword");
List; tagModels ;
tagModels = tagmgr.getEssTagModels() ;
int resultSize = 0 ;
> resultSize = tagModels.size() ;
String start = request.getParameter("start") ;
String perPage = request.getParameter("limit") ;
String esType =""
> if (null != start && null != perPage){
int fromIdx = Integer.parseInt(start);
int per = Integer.parseInt(perPage);
int toIdx = fromIdx per ;
if (toIdx > resultSize) toIdx = resultSize ;
tagModels = tagModels.subList(fromIdx,toIdx) ;
}
map = new HashMap();
map.put("id", Long.toString(etm.getId())) ;
map.put("esidentifier", etm.getEsidentifier( )) ;
map.put("estype", etm.getEstype()) ;
map.put("esdescription", etm.getEsdescription()) ; Long.toString(etm.getEsorder())) ;
map.put("metadata", etm.getMetadata()) ;
models.add(map) ;
} > JSONObject json = new JSONObject();
JSONArray ary = new JSONArray(models);
json.put("taglList", ary);
writeJson(response, json.toString()) ;
}
public void getParams(ActionMapping 映射, ActionForm actionform,HttpServletRequest 請求, HttpSerallet, HttmSeralsed Tags = new LinkedHashMap() ;
tags.put("id", "id") ;
tags.put("esidentifier", "字段") ;
tags.put ("estype", "型別") ;
tags.put("esdescription", "描述") ;
tags.put("esorder", "順序") ;
tags.put(" metadata", "元資料") ;
tags.put("esisnull", "是否為必填項") ;
tags.put("eslength", "欄位長度") ;
tags .put("esdotlength", "小數字點裝飾") ;
tags.put("esissystem", "是否為系統欄位") ;
JSONObject json = new JSONObject();
json. put ("record", getJsonRecord(tags)) ;
json.put("tagModelManager_tagModelColumnModels", getJsonColumnModel(tags)) ;
writeJson(response,json.toString());