108 lines
4.8 KiB
Plaintext
108 lines
4.8 KiB
Plaintext
<%@page import="com.tenwa.reckon.product.ASObjectWindowCalc"%>
|
|
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
/*
|
|
Author: undefined 2017-07-10
|
|
Content: 示例详情页面
|
|
History Log:
|
|
*/
|
|
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
|
|
String sPhaseNo=CurPage.getParameter("PhaseNo");//阶段号
|
|
String FlowNo=CurPage.getParameter("FlowNo");//流程名称
|
|
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
|
String ishistory=CurPage.getParameter("IsHistory");
|
|
String compClientID = request.getParameter("CompClientID");
|
|
String RightType = CurPage.getParameter("RightType");//页面是否 是只读
|
|
String custype = CurPage.getParameter("customertype");//获取客户类型
|
|
String channel = CurPage.getParameter("channel");
|
|
|
|
if(sPrevUrl == null) sPrevUrl = "";
|
|
|
|
if((null!=sPhaseNo&&sPhaseNo.equals("0010")) && "BContractApproveFlow".equals(FlowNo)){
|
|
isShowButton=true;
|
|
}else{
|
|
isShowButton=false;
|
|
}
|
|
isShowButton=true;
|
|
|
|
String sTempletNo = "LBContractPersonBaseInfoTemp";//--模板号--
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
if((null!=sPhaseNo&&sPhaseNo.equals("0010")) && "BContractApproveFlow".equals(FlowNo)){
|
|
doTemp.setReadOnly("CONTRACT_NUMBER", false);
|
|
}
|
|
if(FlowNo.equals("FundPaymentFlow")){
|
|
isShowButton=false;
|
|
doTemp.setReadOnly("CONTRACT_NUMBER", true);
|
|
}
|
|
/* if(null!=ishistory&&ishistory.equals("true")){
|
|
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
|
|
} */
|
|
doTemp.setHtmlEvent("CONTRACT_NUMBER", "onChange", "copyContNumToContNo");
|
|
if("ZC".equals(channel)){
|
|
doTemp.setVisible("ZC_PROJECT_NUMBER",true);
|
|
doTemp.setRequired("ZC_PROJECT_NUMBER",true);
|
|
doTemp.setVisible("ZC_CONTRACT_NUMBER",true);
|
|
doTemp.setRequired("ZC_CONTRACT_NUMBER",true);
|
|
};
|
|
ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request);
|
|
//ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
dwTemp.setGroupHidden("0020");
|
|
dwTemp.genHTMLObjectWindow(sFlowUnid);
|
|
String userll=null;
|
|
userll="/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp?CompClientID=";
|
|
if("01".equals(custype)){
|
|
userll="/Tenwa/Customer/Lessee/Person/CustomerCompanyTempInfo.jsp?CompClientID=";
|
|
}
|
|
//dwTemp.replaceColumn("BaseInfo", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"600px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/Comm/LBContractPersonBaseInfo/CustomerInfo.jsp?CompClientID="+compClientID+"\"></iframe>", CurPage.getObjectWindowOutput());
|
|
dwTemp.replaceColumn("BaseInfo", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"630px\" frameborder=\"0\" src=\""+sWebRootPath+userll+compClientID+"\"></iframe>", CurPage.getObjectWindowOutput());
|
|
|
|
String sButtons[][] = null;
|
|
if(!"ContractOnhireCarChangeFlow".equals(FlowNo)&&!"BContractApproveFlow".equals(FlowNo)&&!"BContractChangeFlow".equals(FlowNo)){
|
|
sButtons = new String[][]{
|
|
{"true","","Button","保存","保存所有修改","saveRend()","","","",""},
|
|
};
|
|
}else{
|
|
sButtons = new String[][]{
|
|
{"false","","Button","保存","保存所有修改","saveRend()","","","",""},
|
|
};
|
|
}
|
|
sButtonPosition = "north";
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
/* 左侧样式微调 */
|
|
$("#div_1580").find("[style='display:inline-block;width:6px;']").css("width","100");
|
|
$("#div_920").find("[style='display:inline-block;width:6px;']").css("width","100");
|
|
$("#div_1410").find("[style='display:inline-block;width:6px;']").css("width","88");
|
|
$("#div_1390").find("[style='display:inline-block;width:6px;']").css("width","100");
|
|
$("#div_1054").find("[style='display:inline-block;width:6px;']").css("width","88");
|
|
$("#div_1058").find("[style='display:inline-block;width:6px;']").css("width","74");
|
|
/* 右侧 样式微调*/
|
|
$("#A_div_900").find("[style='display:inline-block;width:6px;']").css("width","86");
|
|
$("#div_930").find("[style='display:inline-block;width:6px;']").css("width","86");
|
|
|
|
function saveRend(){
|
|
//校验业务合同号唯一性
|
|
/* var sRetu = checkContractNumberOnly();
|
|
|
|
if(sRetu == "true"){
|
|
alert("业务合同号重复,请重新输入!");
|
|
return;
|
|
} */
|
|
frame_list.window.saveRecord("","");
|
|
// as_save(0);
|
|
}
|
|
|
|
<%-- function checkContractNumberOnly(){
|
|
var contNum = getItemValue(0,getRow(),"CONTRACT_NUMBER");
|
|
var sParm = "flowUnid=<%=sFlowUnid%>,contractNum="+contNum;
|
|
var sRetu = RunJavaMethodTrans("com.tenwa.comm.contract.ContractNumberOnlyCheck", "contractNumberOnlyCheck", sParm);
|
|
return sRetu;
|
|
}
|
|
--%>
|
|
function copyContNumToContNo(){
|
|
var contNum = getItemValue(0,getRow(),"CONTRACT_NUMBER");
|
|
setItemValue(0,getRow(),'CONTRACT_NO',contNum);
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |