1.合同基本信息页面新增字段‘has_gps’,并在第一步提交时自动清空字段里的值。(防止退回后再提交有默认值)

This commit is contained in:
zhangbb 2019-03-04 17:37:15 +08:00
parent bfedbd7844
commit 1272886518
3 changed files with 29 additions and 3 deletions

View File

@ -9,6 +9,7 @@
String flowunid = CurPage.getParameter("FlowUnid");
String contractId = CurPage.getParameter("ContractId");
String compClientID = CurPage.getParameter("CompClientID");
String phaseNo = CurPage.getParameter("PhaseNo");
String productid = Sqlca.getString("select PRODUCT_ID from LB_CONTRACT_INFO_TEMP where flowunid = '"+flowunid+"'");
String sTempletNo = "LB_CONTRACT_INFO_PAY";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
@ -22,12 +23,13 @@
String url="/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitListForContract.jsp?CompClientID=";
dwTemp.replaceColumn("GUARANTEE_LIST", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"200px\" frameborder=\"0\" src=\""+sWebRootPath+url+compClientID+"&ContractId="+contractId+"&RightType=ReadOnly\"></iframe>", CurPage.getObjectWindowOutput());
String sButtons[][] = {
{"true","","Button","保存","保存所有修改","as_save(0)","","","","btn_icon_save"},
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
//sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
window.onload = function(){
setItemValue(0,0,"CERTTYPE_CF","Ind01");
setItemValue(0,0,"CERTTYPE_CF","Ind01");
var type = getItemValue(0,0,"customertype");
if(type=="03"||type==""||type==null){
hideItem(0,"CERTTYPE_CC");
@ -42,6 +44,12 @@ window.onload = function(){
//判断是否是付款流程,如果不是隐藏扣款卡信息
if("FundPaymentCarFlow"!="<%=CurPage.getParameter("FlowNo")%>"){
$("#A_Group_0060").attr("style","display:none;");
}else{
if("<%=phaseNo%>"=="0020"){
setItemReadOnly(0,0,"has_gps", false);
// setItemValue(0, 0, "has_gps", "Y");
}
}
}
</script>

View File

@ -1049,6 +1049,7 @@
<attribute name="TRANSPORTDATE" label="道路运输许可证照有效期" TYPE="STRING" LENGTH="32"/>
<attribute name="NETCERTID" label="证照号码" TYPE="STRING" LENGTH="32"/>
<attribute name="LEGALPERSONID" label="法定代表人/经营者身份证号" TYPE="STRING" LENGTH="32"/>
<attribute name="has_gps" label="是否已安装GPS" TYPE="STRING" LENGTH="2"/>
</attributes>
<manager>
<managerProperties>

View File

@ -0,0 +1,17 @@
package com.tenwa.flow.fund.flowpayment;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.flow.baseBussion.BaseBussiness;
public class HasGPS extends BaseBussiness{
public Object run(Transaction Sqlca) throws Exception{
this.initBussinessParam(Sqlca.getTransaction());
String flowUnid=(String)this.getAttribute("ObjectNo");
String contractId = Sqlca.getString("select CONTRACT_id from lc_calc_condition_temp where flowunid = '"+flowUnid+"'");
String sql="UPDATE O SET has_gps=NULL where id='"+contractId+"'";
JBOFactory.createBizObjectQuery(LB_CONTRACT_INFO.CLASS_NAME,sql).executeUpdate();
String sMessage="true";
return sMessage;
}
}