68 lines
2.4 KiB
Plaintext
68 lines
2.4 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
|
String id = CurPage.getParameter("id");
|
|
String flowNo = CurPage.getParameter("flowNo");
|
|
String phaseNo = CurPage.getParameter("phaseNo");
|
|
|
|
if (id == null) id = "";
|
|
if (null == flowNo) flowNo = "";
|
|
if (phaseNo == null) phaseNo = "";
|
|
|
|
String sUserID = CurPage.getParameter("UserID");
|
|
if (sUserID == null) sUserID = "";
|
|
|
|
ASObjectModel doTemp = new ASObjectModel("APP_MIDDLE_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(id);
|
|
|
|
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 catalogId = "<%=id%>"
|
|
var libraryId = "";
|
|
AsDialog.selectCatalogDialog("AppPageLibraryList", "", "", function(sReturn) {
|
|
if (typeof (sReturn) == "undefined" || sReturn.length == 0)
|
|
return;
|
|
sReturn = sReturn.split("@");
|
|
libraryId = sReturn[0];
|
|
var sUrl = "/AppConfig/AppFlow/MiddleInfo.jsp";
|
|
AsDialog.PopView(sUrl, "catalogId="+catalogId + "&libraryId="+libraryId, "dialogWidth=600px;dialogHeight=450px;",
|
|
function(message) {
|
|
reloadSelf();
|
|
}, "新增页签");
|
|
});
|
|
}
|
|
|
|
function viewAndEdit() {
|
|
var sUrl = "/AppConfig/AppFlow/MiddleInfo.jsp";
|
|
var catalogId = "<%=id%>"
|
|
var libraryId = getItemValue(0, getRow(0), 'APP_NODE_LIBRARY_ID');
|
|
if (catalogId == "" || typeof (catalogId) == "undefined") {
|
|
alert("请选择一条页签!");
|
|
return false;
|
|
}
|
|
if (libraryId == "" || typeof (libraryId) == "undefined") {
|
|
alert("请选择一条页签!");
|
|
return false;
|
|
}
|
|
AsDialog.PopView(sUrl, "catalogId=" + catalogId + "&libraryId="
|
|
+ libraryId, "dialogWidth=600px;dialogHeight=450px;", function(
|
|
message) {
|
|
reloadSelf();
|
|
}, "编辑页签");
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |