2018-08-19 18:26:57 +08:00

107 lines
4.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 import="com.sun.org.apache.xalan.internal.xsltc.compiler.sym"%>
<%@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");
if(sPrevUrl == null) sPrevUrl = "";
String compClientID = CurPage.getParameter("CompClientID");
String rightType = CurPage.getParameter("RightType");
String sTempletNo = "BusinessProjectTempInfo";//--Ä£°åºÅ--
BizObject bo=JBOFactory.createBizObjectQuery("jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT", "flow_unid=:flowunid").setParameter("flowunid",sFlowUnid).getSingleResult(false);
String custype = CurPage.getParameter("CustomerType");
String customertype = CurPage.getParameter("customertype");
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setHtmlEvent("inputTel","onChange","checkTel");
//×âÁÞÐÎʽsetÖ»¶Á
if((null!=sPhaseNo&&sPhaseNo.equals("0010")) && ("BusinessApplyFlow".equals(FlowNo) ||"BusinessChangeFlow".equals(FlowNo))){
doTemp.setReadOnly("LEAS_FORM", true);
doTemp.setReadOnly("PROJECT_SOURCE", false);
}
if("ReadOnly".equals(rightType)){
doTemp.setReadOnly("INPUTNAME", true);
doTemp.setReadOnly("INPUTTEL", true);
}
String userll=null;
userll="/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp?CompClientID=";
if("01".equals(custype)||"01".equals(customertype)){
userll="/Tenwa/Customer/Lessee/Person/CustomerCompanyTempInfo.jsp?CompClientID=";
}
ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.setGroupHidden("0020");
dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid"));
dwTemp.replaceColumn("customer_info", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"500px\" frameborder=\"0\" src=\""+sWebRootPath+userll+compClientID+"&sPhaseNo="+sPhaseNo+"\"></iframe>", CurPage.getObjectWindowOutput());
String sButtons[][] = {
{"ReadOnly".equals(rightType)?"false":"true","","Button","±£´æ","±£´æ","save()","","","","btn_icon_saveNew",""}
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function() {
//È¥³ýÏîÄ¿ÉóÅúÐÅÏ¢ÄÑ¿´Ñùʽ
$("#PROJECT_NO").parent().find(".info_span").remove();
$("#PRODUCT_NAME").parent().find(".info_span").remove();
$("#LEAS_FORM").parent().find(".info_span").remove();
$(".info_td_left").css("width","150px");
$(".info_mid_line").css("width","50%");
})
function save(){
if(!checkinputName()){
return;
}
if(!checkTel()){
return ;
}
var leasfrom = getItemValue(0,getRow(),"LEAS_FORM");
var projectSource = getItemValue(0,getRow(),"PROJECT_SOURCE");
var inputName = getItemValue(0,getRow(),"inputName");
var inputTel = getItemValue(0,getRow(),"inputTel");
var customerType = "<%=custype%>";
if(customerType=="01"){//·¨ÈË
//as_save("myiframe0","frame_list.window.saveCompany();");
frame_list.window.saveCompany(inputName,inputTel);
//as_save(0);
}
if(customerType=="03"){//×ÔÈ»ÈË
frame_list.window.saveRecord(leasfrom,projectSource,inputName,inputTel);
//as_save("myiframe0","frame_list.window.as_save(0);");
}
}
function checkTel(){//УÑéÊÖ»úºÅ¸ñʽºÍ²»Îª¿ÕУÑé
var mobile = getItemValue(0,getRow(0),"inputTel");
if(mobile==""){
setErrorTips("inputTel","ÊÖ»úºÅ²»ÄÜΪ¿Õ!");
return false;
}
if(CheckPhoneCode(mobile)){
setErrorTips("inputTel","");
return true;
}else{
setErrorTips("inputTel","±¨µ¥È˵绰¸ñʽ²»ÕýÈ·!");
return false;
}
}
function checkinputName(){
var inputName = getItemValue(0,getRow(0),"inputName");
if(inputName==""){
setErrorTips("inputName","±¨µ¥È˲»ÄÜΪ¿Õ!");
return false;
}else{
setErrorTips("inputName","");
return true;
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>