2018-08-09 21:18:40 +08:00

68 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 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);
//×âÁÞÐÎʽsetÖ»¶Á
if((null!=sPhaseNo&&sPhaseNo.equals("0010")) && ("BusinessApplyFlow".equals(FlowNo) ||"BusinessChangeFlow".equals(FlowNo))){
doTemp.setReadOnly("LEAS_FORM", true);
doTemp.setReadOnly("PROJECT_SOURCE", false);
}
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(){
var leasfrom = getItemValue(0,getRow(),"LEAS_FORM");
var projectSource = getItemValue(0,getRow(),"PROJECT_SOURCE");
var customerType = "<%=custype%>";
if(customerType=="01"){//·¨ÈË
as_save("myiframe0","frame_list.window.as_save(0);");
//as_save(0);
}
if(customerType=="03"){//×ÔÈ»ÈË
frame_list.window.saveRecord(leasfrom,projectSource);
//as_save("myiframe0","frame_list.window.as_save(0);");
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>