2018-06-03 22:26:41 +08:00

73 lines
2.7 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK"%><%@
include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*群组列表*/
//通过显示模版产生模型对象doTemp
ASObjectModel doTemp = new ASObjectModel("APP_BUSINESS_GROUP_CONF_LIST");
doTemp.setVisible("ACTION", true);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //设置DW风格 1:Grid 2:Freeform
dwTemp.ReadOnly = "1"; //设置是否只读 1:只读 0:可写
dwTemp.setPageSize(20);
dwTemp.genHTMLObjectWindow("");
String sButtons[][] = {
{"true","","Button","新增","新增一个群组","newRecord()","","","",""},
{"true","","Button","详情","查看群组情况","viewAndEdit()","","","",""},
{"true","","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""},
{"true","","Button","数据配置","数据配置表","confRecord()","","","",""}
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function TreeViewOnClick(){
var sGroupID = getItemValue(0,getRow(),"GROUP_CODE");
//alert("第一步页面");
var sparam="GROUP_CODE="+sGroupID;
menuObject["数据配置信息"]={"url":"/AppConfig/AppFlowInfoGroupManager/DonoList.jsp","param":sparam};
//如果tviTemp.TriggerClickEvent=true则在单击时触发本函数
var sCurItemID = getCurTVItem().id;
var sCurItemname = getCurTVItem().name;
AsControl.OpenView(menuObject[sCurItemname].url,menuObject[sCurItemname].param,"right");
setTitle(getCurTVItem().name);
}
function confRecord() {
// APP_BUSINESS_TEMPLATE
var sGroupID = getItemValue(0,getRow(),"GROUP_CODE");
if (typeof(sGroupID)=="undefined" || sGroupID.length==0){
alert(getMessageText('AWEW1001'));//请选择一条信息!
return;
}
var sUrl = "/AppConfig/AppFlowInfoGroupManager/DonoList.jsp";
AsControl.OpenView(sUrl,"GROUP_CODE="+sGroupID,'_self','');
}
function newRecord(){
var sUrl = "/AppConfig/AppFlowInfoGroupManager/GroupInfo.jsp";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sGroupID = getItemValue(0,getRow(),"GROUP_CODE");
if (typeof(sGroupID)=="undefined" || sGroupID.length==0){
alert(getMessageText('AWEW1001'));//请选择一条信息!
return;
}
var sUrl = "/AppConfig/AppFlowInfoGroupManager/GroupInfo.jsp";
var sparm="GROUP_CODE="+sGroupID;
AsControl.OpenView(sUrl,sparm,'_self','');
}
function deleteRecord() {
var sPara = getItemValue(0,getRow(0),'GROUP_CODE');
if(typeof(sPara)=="undefined" || sPara.length==0 ) {
alert("请选择一条数据!");
return ;
}
var GROUP_CODE = "GROUP_CODE="+sPara;
if(confirm('确实要删除吗?')) as_delete(0,'');
AsControl.RunJavaMethodTrans("com.amarsoft.app.flow.FlowAction","removeAppGroupChild",GROUP_CODE);
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>