67 lines
2.8 KiB
Plaintext
67 lines
2.8 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
/*
|
|
Author: undefined 2018-06-22
|
|
Content: 示例详情页面
|
|
History Log:
|
|
*/
|
|
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
|
String flowName = CurPage.getParameter("FlowName");
|
|
String customertype = CurPage.getParameter("customertype");
|
|
if(sPrevUrl == null) sPrevUrl = "";
|
|
|
|
String sTempletNo = "CustomerCompanyTempInfo";//--模板号--
|
|
if("01".equals(customertype)&&"合同制作流程".equals(flowName)){
|
|
sTempletNo = "MakingCustomerCompanyTempInfo";//--模板号--
|
|
}
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
doTemp.setColTips("", "");
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
//dwTemp.ReadOnly = "-2";//只读模式
|
|
dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid"));
|
|
|
|
String sButtons[][] = {
|
|
//{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
|
|
//{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
|
|
};
|
|
//sButtonPosition = "south";
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
var nameResult = checkName();
|
|
var flowName = "<%=flowName%>"
|
|
if(nameResult=="2" && "合同制作流程"!=flowName){
|
|
//$("#FULLNAME").attr("style","color:red;");
|
|
$("#ENTERPRISENAME").css("color","red");
|
|
}
|
|
var certResult = checkCertId();
|
|
if(certResult=="4" && "合同制作流程"!=flowName){
|
|
//$("#FULLNAME").attr("style","color:red;");
|
|
$("#CERTID").css("color","red");
|
|
}
|
|
})
|
|
function checkName(){
|
|
var customerType = "01";
|
|
var customerName = getItemValue(0,getRow(),"enterprisename");
|
|
//var certId = getItemValue(0,getRow(),"certid");
|
|
//var sParams = "CustomerName="+customerName+",certId="+certId+",customerType="+customerType;
|
|
var sParams = "CustomerName="+customerName+",customerType="+customerType;
|
|
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkName",sParams);
|
|
return sReturnInfo;
|
|
}
|
|
|
|
function checkCertId(){
|
|
var customerType = "01";
|
|
//var customerName = getItemValue(0,getRow(),"CustomerName");
|
|
var certId = getItemValue(0,getRow(),"certid");
|
|
//var sParams = "CustomerName="+customerName+",certId="+certId+",customerType="+customerType;
|
|
var sParams = "certId="+certId+",customerType="+customerType;
|
|
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkCertId",sParams);
|
|
return sReturnInfo;
|
|
}
|
|
function returnList(){
|
|
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |