74 lines
2.3 KiB
Plaintext
74 lines
2.3 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include
|
|
file="/Frame/resources/include/include_begin_list.jspf"%>
|
|
<%
|
|
//通过显示模版产生模型对象doTemp
|
|
ASObjectModel doTemp = new ASObjectModel("APP_VERSION_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()","","","","btn_icon_up"},
|
|
{"true","","Button","APP应用信息","查看版本信息","viewAndEdit()","","","","btn_icon_detail"},
|
|
{"true","","Button","删除应用","删除该版本","deleteRecord()","","","","btn_icon_delete"},
|
|
{"true","","Button","下载应用","下载该版本","viewFile()","","","","btn_icon_down"}
|
|
};
|
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
<script type="text/javascript">
|
|
function viewFile() {
|
|
var id1 = getItemValue(0, getRow(), "id");
|
|
if (typeof (id1) == "undefined" || id1.length == 0) {
|
|
alert(getMessageText('AWEW1001'));//请选择一条信息!
|
|
return;
|
|
}
|
|
location.href = '<%=sWebRootPath%>/webapi/resf/files/downloadAppById?id=' + id1;
|
|
|
|
}
|
|
|
|
function newRecord() {
|
|
AsDialog.PopView("/AppConfig/Appversion/AppversionInfo.jsp", "", {
|
|
width : "600px",
|
|
height : "450px",
|
|
title : "上传版本版本配置"
|
|
}, function(sReturn) {
|
|
//if (typeof(sReturn)!='undefined' && sReturn.length!=0) {
|
|
reloadSelf();
|
|
//}
|
|
});
|
|
}
|
|
|
|
function viewAndEdit() {
|
|
var id1 = getItemValue(0, getRow(), "id");
|
|
if (typeof (id1) == "undefined" || id1.length == 0) {
|
|
alert(getMessageText('AWEW1001'));//请选择一条信息!
|
|
return;
|
|
}
|
|
|
|
AsDialog.PopView("/AppConfig/Appversion/AppversionInfoEdit.jsp", "id="
|
|
+ id1, {
|
|
width : "600px",
|
|
height : "450px",
|
|
title : "查看编辑群组"
|
|
}, function(sReturn) {
|
|
if (typeof (sReturn) != 'undefined' && sReturn.length != 0) {
|
|
reloadSelf();
|
|
}
|
|
});
|
|
}
|
|
|
|
function deleteRecord() {
|
|
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"%> |