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

50 lines
1.9 KiB
Plaintext

<%@page import="jbo.com.tenwa.entity.comm.taxinfo.TAX_INFO"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%
String sTempletNo = "TaxInfoDetails";//--模板号--
String id = CurPage.getParameter("ID");
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setHtmlEvent("ASSET_TYPE", "onchange", "changeLeaseForm");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow(id);
String sButtons[][] = {
{"true","","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
{"true","","Button","返回","返回列表页面","goBack()","","","","btn_icon_return"}
};
%>
<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
window.onload=function(){
if(typeof('<%=id%>')!=undefined && '<%=id%>'!=""){
var beforeAfter = getItemValue(0,getRow(),"BEFORE_AFTER");
if(typeof(beforeAfter)!=undefined && beforeAfter!=''){
$("input[name='time'][value='"+beforeAfter+"']").attr("checked",true);
}
}
}
function goBack(){
AsControl.OpenView("/Tenwa/Core/TaxInfo/TaxInfoList.jsp", "","_self","");
}
function saveRecord(){
as_save("myiframe0");
}
function setContractTime(param){
setItemValue(0,getRow(),"BEFORE_AFTER",param);
var contractTime = getItemValue(0,getRow(),'CONTRACT_DATE');
if(typeof(contractTime)==undefined || contractTime==''){
alert('请选择合同时间');
return;
}
}
function changeLeaseForm(){
var assetType = getItemValue(0,getRow(),'ASSET_TYPE');
if(typeof(assetType)!=undefined && assetType=='asset_type02'){
setItemRequired(0, "LEASE_FORM", false);
}else if(typeof(assetType)!=undefined && assetType=='asset_type01'){
setItemRequired(0, "LEASE_FORM", true);
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>