64 lines
2.4 KiB
Plaintext
64 lines
2.4 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
|
String GROUP_CODE = CurPage.getParameter("GROUP_CODE");
|
|
if (GROUP_CODE == null)
|
|
GROUP_CODE = "";
|
|
|
|
ASObjectModel doTemp = new ASObjectModel("APP_BUSINESS_TEMPLATE_LIST");
|
|
doTemp.setLockCount(2); //锁定两列
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
|
|
|
dwTemp.Style="1"; //设置为Grid风格
|
|
dwTemp.ReadOnly = "1";//编辑模式
|
|
dwTemp.setPageSize(10);
|
|
dwTemp.ConvertCode2Title = "1";
|
|
dwTemp.genHTMLObjectWindow(GROUP_CODE);
|
|
|
|
String sButtons[][] = {
|
|
{"true","","Button","新增字段","新增字段","newRecord()","","","","btn_icon_add"},
|
|
{"true","","Button","删除字段","删除字段","if(confirm('确实要删除吗?'))as_delete(0,'')","","","","btn_icon_delete"},
|
|
{"true","","Button","编辑字段","编辑字段","viewAndEdit()","","","","btn_icon_edit"},
|
|
};
|
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
<script type="text/javascript">
|
|
|
|
function newRecord() {
|
|
var GROUP_CODE = getItemValue(0, getRow(0), 'GROUP_CODE');
|
|
var sUrl = "/AppConfig/AppPage/AppLibraryTemplateInfo.jsp";
|
|
|
|
AsDialog.PopView(sUrl,"GROUP_CODE="+GROUP_CODE,
|
|
"dialogWidth=600px;dialogHeight=450px;", function(message) {
|
|
reloadSelf();
|
|
}, "新模板分组配置");
|
|
}
|
|
|
|
function viewAndEdit() {
|
|
var sUrl = "/AppConfig/AppPage/AppLibraryTemplateInfo.jsp";
|
|
var GROUP_CODE = getItemValue(0, getRow(0), 'GROUP_CODE');
|
|
var DATA_CODE = getItemValue(0, getRow(0), 'DATA_CODE');
|
|
alert(DATA_CODE);
|
|
if (DATA_CODE == "" || typeof (DATA_CODE) == "undefined") {
|
|
alert("请选择一条分组字段!");
|
|
return false;
|
|
}
|
|
|
|
AsDialog.PopView(sUrl,"GROUP_CODE="+GROUP_CODE+"&DATA_CODE="+DATA_CODE,
|
|
"dialogWidth=600px;dialogHeight=450px;", function(message) {
|
|
reloadSelf();
|
|
}, "模板分组配置");
|
|
}
|
|
|
|
function middleConfig() {
|
|
var id = getItemValue(0, getRow(0), 'id');
|
|
if (id == "" || typeof(id) == "undefined") {
|
|
alert("请选择一条阶段!");
|
|
return false;
|
|
}
|
|
var flowNo = getItemValue(0, getRow(0), 'flowno');
|
|
var phaseNo = getItemValue(0, getRow(0), 'phaseno');
|
|
var sUrl = "/AppConfig/AppFlow/MiddleList.jsp";
|
|
AsControl.OpenTab(sUrl,"id="+id + "&flowNo="+flowNo+"&phaseNo="+phaseNo, {title:"流程页签配置"});
|
|
}
|
|
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |