53 lines
1.8 KiB
Plaintext
53 lines
1.8 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@page import="jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO"%>
|
||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||
/*
|
||
Author: undefined 2018-10-26
|
||
Content:
|
||
History Log:
|
||
*/
|
||
String contractId = CurPage.getParameter("ContractId");
|
||
String projectid=CurPage.getParameter("ProjectId");
|
||
|
||
String sql="SELECT o.contract_status FROM lb_contract_info o WHERE id='"+contractId+"'";
|
||
String contract_status = Sqlca.getString(new SqlObject(sql));
|
||
|
||
String sTempletNo="";
|
||
if("21".equals(contract_status)){
|
||
sTempletNo="LCRentPlanQueryPro";
|
||
}else{
|
||
sTempletNo="LCRentPlanQuery";
|
||
}
|
||
|
||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||
String orgid = CurUser.getOrgID();
|
||
if(CurUser.hasRole("401")){
|
||
doTemp.setVisible("CORPUS", false);
|
||
doTemp.setVisible("INTEREST", false);
|
||
doTemp.setVisible("CORPUS_BUSINESS", false);
|
||
doTemp.setVisible("INTEREST_BUSINESS", false);
|
||
}else if(!"8009012002".equals(orgid)){
|
||
doTemp.setVisible("CORPUS", false);
|
||
doTemp.setVisible("INTEREST", false);
|
||
}
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||
dwTemp.Style="1"; //--设置为Grid风格--
|
||
dwTemp.ReadOnly = "1"; //只读模式
|
||
dwTemp.setPageSize(10);
|
||
|
||
if("21".equals(contract_status)){
|
||
dwTemp.genHTMLObjectWindow(projectid);
|
||
}else{
|
||
dwTemp.genHTMLObjectWindow(contractId);
|
||
}
|
||
|
||
|
||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||
String sButtons[][] = {
|
||
{"false","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||
};
|
||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||
<script type="text/javascript">
|
||
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |