基本配置

This commit is contained in:
liuzhao 2018-07-19 20:40:53 +08:00
parent 2d84f83bde
commit d410505bf5
3 changed files with 91 additions and 0 deletions

View File

@ -3953,6 +3953,30 @@
</managerProperties>
</manager>
</class>
<class name="CONFIGURATE" label="" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="64"/>
<attribute name="ATTR_ID" label="属性ID" type="STRING" length="64"/>
<attribute name="ATTR_VALUE" label="属性值" type="STRING" length="64"/>
<attribute name="FIELD1" label="属性1" type="STRING" length="64"/>
<attribute name="FIELD2" label="属性2" type="STRING" length="64"/>
<attribute name="FIELD3" label="属性3" type="STRING" length="64"/>
<attribute name="FIELD4" label="属性4" type="STRING" length="64"/>
<attribute name="FIELD5" label="属性5" type="STRING" length="64"/>
<attribute name="INPUTUSERID" label="创建人" type="STRING" length="64"/>
<attribute name="INPUTORGID" label="创建所属部门" type="STRING" length="64"/>
<attribute name="INPUTTIME" label="创建时间" type="STRING" length="64"/>
<attribute name="UPDATEUSERID" label="修改人" type="STRING" length="64"/>
<attribute name="UPDATEORGID" label="修改人所属部门" type="STRING" length="64"/>
<attribute name="UPDATETIME" label="修改时间" type="STRING" length="64"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="configurate" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
</package>
<package name="jbo.com.tenwa.lease.carbrand" >
<class name="LB_CLAIMS_BOOK_DETAIL" label="索赔申请书详情表" keyAttributes="ID">

View File

@ -0,0 +1,30 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-07-19
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "/com/tenwa/apzl/configurate/ConfigurateList.jsp";
String sTempletNo = "ConfigurateInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
//doTemp.setColTips("", "测试");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function returnList(){
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,37 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-07-19
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("ConfigurateList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
var sUrl = "/com/tenwa/apzl/configurate/ConfigurateInfo.jsp";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "/com/tenwa/apzl/configurate/ConfigurateInfo.jsp";
var sPara = getItemValue(0,getRow(0),'ID');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'ID=' +sPara ,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>