<%@ page contentType="text/html; charset=GBK"%> <%@ include file="/Frame/resources/include/include_begin_simplelist.jspf"%> <%@ page import="com.tenwa.doc.action.DocListInitAction" %> <% /* Author: undefined 2016-09-01 Content: History Log: */ String custid=CurPage.getParameter("customerid");//客户ID String mainType= CurPage.getParameter("mainType"); String docClassItemno=""; if("Customer".equals(mainType)){ docClassItemno="001001"; }else if("Guarantee".equals(mainType)){ docClassItemno="001002"; } String compClientID = request.getParameter("CompClientID"); BizObject ent=JBOFactory.createBizObjectQuery("jbo.app.tenwa.customer.CUSTOMER_COMPANY","CUSTOMERID=:customerid").setParameter("customerid", custid).getSingleResult(false); BizObject person=JBOFactory.createBizObjectQuery("jbo.app.tenwa.customer.CUSTOMER_PERSON","CUSTOMERID=:customerid").setParameter("customerid", custid).getSingleResult(false); if(ent!=null){ docClassItemno+="001"; }else if(person!=null){ docClassItemno+="002"; } Map docParam=new HashMap(); Map other=new HashMap(); docParam.put("ObjectType","Customer"); docParam.put("cust_id",custid); //判断是否存在,不存在就从配置表倒到临时表 DocListInitAction.initDocList(docParam,other,docClassItemno,CurConfig); String sRightType= CurPage.getParameter("RightType"); ASObjectModel doTemp = new ASObjectModel("CustomerDocList"); doTemp.appendJboWhere(" and O.doc_Class_Itemno='"+docClassItemno+"' and rela.cust_id='"+custid+"' and rela.ObjectType='Customer'"); doTemp.setLockCount(2); if("ReadOnly".equals(sRightType)){ doTemp.setVisible("operation", false); } ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); dwTemp.Style="1"; //--设置为Grid风格-- dwTemp.ReadOnly = "0"; dwTemp.setPageSize(50); dwTemp.genHTMLObjectWindow(""); //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 String sButtons[][] =null; sButtons=new String[][]{ /* {"true","All","Button","新增","新增","newRecord()","","","",""}, {"true","All","Button","修改","修改","viewAndEdit()","","","","btn_icon_edit"}, {"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""}, */ }; %><%@include file="/Frame/resources/include/ui/include_list.jspf"%> <%@ include file="/Frame/resources/include/include_end.jspf"%>