<%@page import="com.amarsoft.app.base.util.ObjectWindowHelper"%> <%@page import="com.amarsoft.app.base.businessobject.*"%> <%@page import="com.amarsoft.are.util.json.JSONObject"%> <%@page import="com.amarsoft.are.util.json.JSONDecoder"%> <%@ page contentType="text/html; charset=GBK"%><%@ include file="/Frame/resources/include/include_begin_list.jspf"%><% String sDoNo = CurPage.getParameter("DoNo"); String sParameters = CurPage.getParameter("Parameters"); String sFields = CurPage.getParameter("Fields"); boolean isMulti = "true".equals(CurPage.getParameter("IsMulti")); if(sParameters == null) sParameters = ""; String[] tFields = sFields.split("@"); List fields = new ArrayList(); for(String field : tFields){ if(StringX.isSpace(field)) continue; fields.add(field); } ASDataObject doTemp; ASObjectWindow dwTemp; try { JSONObject inputParameters=JSONDecoder.decode(sParameters); dwTemp = ObjectWindowHelper.createObjectWindow_List(sDoNo, BusinessObject.createBusinessObject(), CurPage, request); doTemp=dwTemp.getDataObject(); for (int i = 0; i < inputParameters.getElementTable().size(); ++i) { com.amarsoft.are.lang.Element localElement = (com.amarsoft.are.lang.Element)inputParameters.getElementTable().get(i); if (localElement.isNull()) continue; CurPage.setAttribute(localElement.getName(), (String)localElement.getValue()); } if(!StringX.isEmpty(CurPage.getParameter("BusinessProcess"))) { doTemp.setBusinessProcess(CurPage.getParameter("BusinessProcess")); } sParameters = ""; }catch(Exception ex) { doTemp = new ASObjectModel(sDoNo); dwTemp = new ASObjectWindow(CurPage ,(ASObjectModel)doTemp,request); } int visible = 0; for(int i = 0; i < doTemp.Columns.size(); i++){ ASColumn col = (ASColumn)doTemp.Columns.get(i); if("1".equals(col.getAttribute("ColVisible"))) visible++; } if(visible < 2) doTemp.setLockCount(0); if(!isMulti) doTemp.setHtmlEvent("","ondblclick","doSure"); dwTemp.ConvertCode2Title = "1"; dwTemp.MultiSelect = isMulti; dwTemp.setPageSize(10); dwTemp.genHTMLObjectWindow(sParameters); String sDoName = doTemp.getDoName(); if("".equals(sDoName)) sDoName = "列表选择器"; String[][] sButtons = { /* {"true", "", "Button", "确定", "", "doSure()", "", "", "", ""}, {"true", "", "Button", "清空", "", "doClear()", "", "", "", ""}, {"true", "", "Button", "取消", "", "doCancel()", "", "", "", ""}, */ }; %><%@include file="/Frame/resources/include/ui/include_list.jspf" %><%@page import="com.amarsoft.are.lang.StringX"%> <%@ include file="/Frame/resources/include/include_end.jspf"%>