70 lines
2.6 KiB
Plaintext
70 lines
2.6 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
|
ASObjectModel doTemp = new ASObjectModel("APP_BUSINESS_GROUP_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("");
|
|
|
|
String sButtons[][] = {
|
|
{"true","","Button","新增新模板分组","新增新模板分组","newRecord()","","","","btn_icon_add"},
|
|
{"true","","Button","取消模板分组","取消模板分组","if(confirm('确实要删除吗?'))del()","","","","btn_icon_delete"},
|
|
{"true","","Button","编辑模板分组","编辑模板分组","viewAndEdit()","","","","btn_icon_edit"},
|
|
{"true","","Button","模板分组配置","模板分组配置","templateConfig()","","","","btn_icon_workflow"},
|
|
};
|
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
<script type="text/javascript">
|
|
function newRecord() {
|
|
var sUrl = "/AppConfig/AppPage/AppLibraryAdd.jsp";
|
|
AsDialog.PopView(sUrl, "", "dialogWidth=600px;dialogHeight=450px;",
|
|
function(message) {
|
|
reloadSelf();
|
|
}, "新模板分组配置");
|
|
}
|
|
|
|
function viewAndEdit() {
|
|
var sUrl = "/AppConfig/AppPage/AppLibraryGroupInfo.jsp";
|
|
var GROUP_CODE = getItemValue(0, getRow(0), 'GROUP_CODE');
|
|
|
|
if (GROUP_CODE == "" || typeof (GROUP_CODE) == "undefined") {
|
|
alert("请选择一条分组!");
|
|
return false;
|
|
}
|
|
AsDialog.PopView(sUrl, "GROUP_CODE=" + GROUP_CODE + "&dono=''",
|
|
"dialogWidth=600px;dialogHeight=450px;", function(message) {
|
|
reloadSelf();
|
|
}, "模板分组配置");
|
|
}
|
|
|
|
function del() {
|
|
var GROUP_CODE = getItemValue(0, getRow(0), 'GROUP_CODE');
|
|
|
|
if (GROUP_CODE == "" || typeof (GROUP_CODE) == "undefined") {
|
|
alert("请选择一条分组!");
|
|
return false;
|
|
}
|
|
|
|
var sResult = AsControl.RunJavaMethodTrans(
|
|
"com.amarsoft.app.check.AppFlow", "delDonoGroup", "groupCode="+GROUP_CODE);
|
|
|
|
alert(sResult);
|
|
reloadSelf();
|
|
}
|
|
|
|
function templateConfig() {
|
|
var GROUP_CODE = getItemValue(0, getRow(0), 'GROUP_CODE');
|
|
if (GROUP_CODE == "" || typeof (GROUP_CODE) == "undefined") {
|
|
alert("请选择一条分组!");
|
|
return false;
|
|
}
|
|
var flowNo = getItemValue(0, getRow(0), 'flowno');
|
|
var phaseNo = getItemValue(0, getRow(0), 'phaseno');
|
|
var sUrl = "/AppConfig/AppPage/AppLibraryTemplateList.jsp";
|
|
AsControl.OpenTab(sUrl, "GROUP_CODE=" + GROUP_CODE, {title : "模板分组配置"});
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |