apzl_leasing/WebContent/FrameCase/widget/ow/DemoInfoJBODataSource.jsp
2018-06-03 22:26:41 +08:00

29 lines
1.2 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%><%@
include file="/Frame/resources/include/include_begin_info.jspf"%><%@
page import="com.amarsoft.are.jbo.*" %><%
BizObjectManager bomOne = JBOFactory.getFactory().getManager("jbo.ui.test.TEST_CUSTOMER_INFO");
ASObjectModel doTemp = new ASObjectModel(bomOne);
doTemp.setJboWhere("SERIALNO=:SERIALNO");
doTemp.setVisible("*",false); //缺省显示全部属性,这里设置全部不显示的
doTemp.setVisible("SERIALNO,CUSTOMERNAME,TELEPHONE",true); //设置显示的
doTemp.setReadOnly("CUSTOMERNAME,TELEPHONE", false);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.ReadOnly = "0";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
{"true","All","Button","返回","返回列表","returnList2()","","","","btn_icon_return"}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function returnList2(){
var sUrl = "/FrameCase/widget/ow/DemoListCustomDataSource.jsp";
OpenPage(sUrl,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>