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

47 lines
1.9 KiB
Plaintext
Raw 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 import="com.tenwa.comm.dataRightmanager.DataRightManager"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
<%
ASObjectModel doTemp = new ASObjectModel("ProjectEnd");
String otherWhere=DataRightManager.getRightCondition(CurUser,"O","proj");
doTemp.appendJboWhere(otherWhere);
List<String> filter=new ArrayList<String>();
filter.add("PROJ_MANAGE");
filter.add("PROJ_REGISTRAR");
filter.add("PROJ_ASSIST");
doTemp.setFilterCustomWhereClauses(new com.tenwa.list.filtersql.projectInfoAllViewListFilter(filter));
doTemp.setDataQueryClass("com.tenwa.list.filtersql.CustomerFilterDefaultListHtmlGenerator");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] =new String[][] {
{"true","","Button","标注项目结束","标注项目结束","viewAllFlow()","","","","btn_icon_detail",""}
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function viewAllFlow(){
var id=getItemValue(0,getRow(0),"id");
if(typeof(id)=="undefined" || id.length==0 ){
alert("请选择!");
return ;
}
var result=RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.ProjectEndAction","isEnd","id="+id);
if(result=="false"){
alert("操作失败,你选择项目包含的合同的合同状态不是合同结束状态,请先走合同结束流程。");
}else{
if(confirm("是否标注项目为结束?")){
RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.ProjectEndAction","UpdateProjectStatus","id="+id);
alert("操作成功");
reloadSelf();
}
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>