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

67 lines
3.1 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 contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: huangjb 2017-05-06
Content: 客户凭证编码维护
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("vouchercode_auxiliary");
//doTemp.setJboFrom(" o LEFT JOIN jbo.app.VI_ENT_IND vei ON vei.INVALID='N' ");
//doTemp.setJboWhere(" vei.customerId = o.customerid AND (o.customertype LIKE '01%' AND "+
// " not exists (select 1 FROM jbo.customer.CUSTOMER_PARTNER cp where cp.customerid=O.customerid ) OR o.customertype LIKE '03%')");
doTemp.setLockCount(0);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "0"; //只读模式
dwTemp.setPageSize(12);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","保存","保存","as_save(0)","","","","btn_icon_save",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
var sUrl = "";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "";
var sPara = getItemValue(0,getRow(0),'SerialNo');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
}
//在加载完表格后调用
function afterSearch(){
for(var i=0;i<getRowCount(0);i++){
//一个项目可能对应多个合同,列出所有合同
var contract_id = getItemValue(0,i,'contract_info');
var cons = contract_id.split(",");//cons.split("##")有两个值合同主键id、业务合同编号contract_number
var innerHtml = '';
for(var j=0;j<cons.length;j++){
innerHtml += '<a class="box" onclick="javascript:showContractInfo('+cons[j].split("##")[1]+')" style={color:#000;text-decoration:underline;}><font color="blue">'+cons[j].split("##")[0]+'</font></a>'+";";
}
//var xxx = '<a class="box" onclick="javascript:showContractInfo()" style={color:#000;text-decoration:underline;}><font color="blue">'+getObj(0,i,"contract_info").innerHTML+'</font></a>';
getObj(0,i,"contract_info").innerHTML=innerHtml;//'<a class="box" onclick="javascript:showContractInfo()" style={color:#000;text-decoration:underline;}><font color="blue">'+getObj(0,i,"contract_info").innerHTML+'</font></a>';
}
}
afterSearch();
function showContractInfo(contract_id){//合同id直接由innerHtml传过来
var sPara = 'proj_id='+getItemValue(0,getRow(0),'id');
//var contract_id = getItemValue(0,getRow(0),'contract_info')
var sPara = 'id='+contract_id;
sPara = sPara+"&business_type="+getItemValue(0, getRow(0), "business_type");
// var sUrl = "/tls/leasing/comm/projectInfo/ProjApproval.jsp";
var sUrl = "/tls/leasing/comm/contractInfo/ViewContractInfo.jsp";
AsControl.OpenTab(sUrl, sPara, {title:'合同基本信息'}); //(sUrl+'?id='+sPara,'_blank','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>