新增一个业务定时撤销天数的配置功能

This commit is contained in:
jianghongdong 2018-07-18 15:25:25 +08:00
parent 3725f74d0c
commit 63b45463cb
3 changed files with 76 additions and 7 deletions

View File

@ -0,0 +1,31 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-07-18
Content: 示例详情页面
History Log:
*/
// String sPrevUrl = CurPage.getParameter("PrevUrl");
// if(sPrevUrl == null) sPrevUrl = "";
String sTempletNo = "LbBusinessOverdateInfo";//--模板号--
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("SerialNo"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
// {String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
{"true","All","Button","返回","返回列表","returnList()","","","",""}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function returnList(){
AsControl.OpenView("/Tenwa/Apzl/BussinessCancel/LbBusinessOverdateList.jsp", "","_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-18
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("LbBusinessOverdateList");
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 = "/Tenwa/Apzl/BussinessCancel/LbBusinessOverdateInfo.jsp";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "/Tenwa/Apzl/BussinessCancel/LbBusinessOverdateInfo.jsp";
var sPara = getItemValue(0,getRow(0),'ID');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -3930,6 +3930,7 @@
</managerProperties>
</manager>
</class>
<class name="LB_BUSINESS_OVERDATE" label="" keyAttributes="ID">
<attributes>
<attribute name="ID" label="ID" type="STRING" length="40"/>
@ -3937,13 +3938,13 @@
<attribute name="param1" label="param1" type="STRING" length="50"/>
<attribute name="param2" label="param2" type="STRING" length="50"/>
<attribute name="param3" label="param3" type="STRING" length="50"/>
<attribute name="param4" label="param4" type="STRING" length="50"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="200"/>
<attribute name="inputorgid" label="登记部门" type="STRING" length="200"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="200"/>
<attribute name="updateuserid" label="更新人" type="STRING" length="200"/>
<attribute name="updateorgid" label="更新部门" type="STRING" length="200"/>
<attribute name="updatetime" label="更新时间" type="STRING" length="200"/>
<attribute name="param4" label="param4" type="STRING" length="50"/>
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>