apzl_leasing/WebContent/AppConfig/FlowManage/FlowApplyMainTreePhaseList.jsp
2018-06-03 22:26:41 +08:00

45 lines
1.9 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%>
<%@ page import="jbo.sys.CODE_LIBRARY"%><%@
include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Content: 流程模型列表
*/
String sFlowNo = CurPage.getParameter("FlowNo");
if(sFlowNo==null) sFlowNo="";
ASObjectModel doTemp = new ASObjectModel("ApplyMainTreePhaseList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //设置DW风格 1:Grid 2:Freeform
dwTemp.ReadOnly = "1"; //设置是否只读 1:只读 0:可写
BizObjectManager codeManager = JBOFactory.getBizObjectManager(CODE_LIBRARY.CLASS_NAME);
String codeno = codeManager.createQuery("attribute2=:attribute2 and codeno='ApplyType' ").setParameter("attribute2",sFlowNo).getSingleResult(false).getAttribute("itemdescribe").getString();
//生成HTMLDataWindow
dwTemp.genHTMLObjectWindow(codeno);
String sButtons[][] = {
{"true","","Button","新增","新增一条记录","newRecord()","","","",""},
{"true","","Button","详情","查看/修改详情","viewAndEdit()","","","",""},
{"true","","Button","删除","删除所选中的记录","deleteRecord()","","","",""}
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
AsDialog.PopView("/AppConfig/FlowManage/FlowApplyMainTreePhaseInfo.jsp","codeno=<%=codeno%>",{width:"800px",height:"250px",title:"新增申请主树图阶段"},function(sReturn){
if(sReturn=='success'){
reloadSelf();
}
});
}
function viewAndEdit(){
var itemno = getItemValue(0,getRow(),"itemno");
AsDialog.PopView("/AppConfig/FlowManage/FlowApplyMainTreePhaseInfo.jsp","codeno=<%=codeno%>"+"&itemno="+itemno,{width:"800px",height:"250px",title:"查看申请主树图阶段"},function(sReturn){
if(sReturn=='success'){
reloadSelf();
}
});
}
function deleteRecord(){
if(confirm('确认删除吗?')){
as_delete("myiframe0");
}
}
</script>
<%@include file="/Frame/resources/include/include_end.jspf"%>