87 lines
2.7 KiB
Plaintext
87 lines
2.7 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include
|
|
file="/Frame/resources/include/include_begin_list.jspf"%>
|
|
<%
|
|
//通过显示模版产生模型对象doTemp
|
|
ASObjectModel doTemp = new ASObjectModel("APP_FLOW_SHOW_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","新增","新增app显示流程","newRecord()", "", "", "", "" },
|
|
{ "true", "", "Button", "详情", "查看版本信息",
|
|
"viewAndEdit()", "", "", "", "" },
|
|
{ "true", "", "Button", "删除", "删除该版本",
|
|
"deleteRecord()", "", "", "", "" }, };
|
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
<script type="text/javascript">
|
|
|
|
function viewAndEdit(){
|
|
var id1 = getItemValue(0, getRow(), "ID");
|
|
if (typeof (id1) == "undefined" || id1.length == 0) {
|
|
alert(getMessageText('AWEW1001'));//请选择一条信息!
|
|
return;
|
|
}
|
|
|
|
AsDialog.PopView("/AppConfig/AppFlowShow/AppFlowShowInfo.jsp", "id="
|
|
+ id1, {
|
|
width : "600px",
|
|
height : "450px",
|
|
title : "查看编辑群组"
|
|
}, function(sReturn) {
|
|
if (true) {
|
|
reloadSelf();
|
|
}
|
|
});
|
|
/* var id = getItemValue(0,getRow(),"ID");
|
|
if (typeof(fn)=="undefined" || fn.length==0){
|
|
alert(getMessageText('AWEW1001'));//请选择一条信息!
|
|
return;
|
|
}
|
|
var sUrl = "/AppConfig/AppFlowShow/AppFlowShowInfo.jsp";
|
|
var sparm="id="+id;
|
|
AsControl.OpenView(sUrl, sparm, '_self', ''); */
|
|
}
|
|
|
|
function newRecord() {
|
|
AsDialog.PopView("/AppConfig/AppFlowShow/AppFlowShowInfo.jsp", "", {
|
|
width : "600px",
|
|
height : "450px",
|
|
title : "添加流程配置"
|
|
}, function(sReturn) {
|
|
reloadSelf();
|
|
});
|
|
/*
|
|
var sUrl = "/AppConfig/AppFlowShow/AppFlowShowInfo.jsp";
|
|
AsControl.OpenView(sUrl, '', '_self', ''); */
|
|
}
|
|
|
|
function deleteRecord() {
|
|
var uid = getItemValue(0, getRow(), "ID");
|
|
if(typeof(uid)=="undefined" || uid.length==0 ) {
|
|
alert("请选择一条数据!");
|
|
return ;
|
|
}
|
|
var getParam = "uid="+uid;
|
|
if(confirm('确实要删除吗?')) {
|
|
var sRet = AsControl.RunJavaMethodTrans("com.amarsoft.app.flow.FlowAction","removeAppFlow",getParam);
|
|
alert(sRet);
|
|
var sUrl = "/AppConfig/AppFlowShow/AppFlowShowList.jsp";
|
|
AsControl.OpenView(sUrl, '', '_self', '');
|
|
}
|
|
|
|
/* var id1 = getItemValue(0, getRow(), "ID");
|
|
if (typeof (id1) == "undefined" || id1.length == 0) {
|
|
alert(getMessageText('AWEW1001'));//请选择一条信息!
|
|
return;
|
|
}
|
|
if (confirm(getMessageText("ALS70902"))) {
|
|
as_delete("myiframe0");
|
|
} */
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |