保单
This commit is contained in:
parent
18a9935367
commit
4205651c18
@ -6,10 +6,13 @@
|
||||
History Log:
|
||||
*/
|
||||
String contract_number = CurPage.getParameter("contract_number");
|
||||
String sPrevUrl = CurPage.getParameter("ID");
|
||||
if(sPrevUrl == null) sPrevUrl = "";
|
||||
String contractId = CurPage.getParameter("contractId");
|
||||
// if(sPrevUrl == null) sPrevUrl = "";
|
||||
String sTempletNo = "LBInsuranceInfoDetail";//--Ä£°åºÅ--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
doTemp.setDefaultValue("Contract_Id", contractId);
|
||||
doTemp.setDefaultValue("Contract_number", contract_number);
|
||||
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
|
||||
@ -22,10 +25,10 @@
|
||||
<script type="text/javascript">
|
||||
function goBack(){
|
||||
var sPara = "<%=contract_number%>";
|
||||
AsControl.OpenView("/Tenwa/Lease/App/BussinessOperation/InsuranceInfo/LBInsuranceInfoList.jsp", "contract_number="+sPara,"_self","");
|
||||
AsControl.OpenView("/Tenwa/Lease/App/BussinessOperation/InsuranceInfo/LBInsuranceInfoList.jsp", "contract_number="+sPara+"&contractId=<%=contractId%>","_self","");
|
||||
}
|
||||
function saveRecord(){
|
||||
as_save("myiframe0");
|
||||
as_save("myiframe0","goBack()");
|
||||
}
|
||||
|
||||
function selectContract(){
|
||||
|
||||
@ -7,9 +7,9 @@
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
ASObjectModel doTemp = new ASObjectModel("LBInsuranceInfoList");
|
||||
String otherWhere=DataRightManager.getRightCondition(CurUser,"O");
|
||||
doTemp.appendJboWhere(otherWhere);
|
||||
ASObjectModel doTemp = new ASObjectModel("LBInsuranceInfoList_new");
|
||||
// String otherWhere=DataRightManager.getRightCondition(CurUser,"O");
|
||||
// doTemp.appendJboWhere(otherWhere);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
@ -24,8 +24,9 @@
|
||||
<script type="text/javascript">
|
||||
function showNext(){
|
||||
var param = getItemValue(0,getRow(0),'CONTRACT_NUMBER');
|
||||
var id = getItemValue(0,getRow(0),'id');
|
||||
var SUrl = "/Tenwa/Lease/App/BussinessOperation/InsuranceInfo/LBInsuranceInfoList.jsp";
|
||||
AsControl.OpenView(SUrl,'contract_number=' +param ,'_self','');
|
||||
AsControl.OpenView(SUrl,'contract_number=' +param +'&contractId='+id,'_self','');
|
||||
}
|
||||
function afterSearch(){
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
|
||||
@ -6,11 +6,12 @@
|
||||
History Log:
|
||||
*/
|
||||
String contract_number = CurPage.getParameter("contract_number");
|
||||
String contractId = CurPage.getParameter("contractId");
|
||||
ASObjectModel doTemp = new ASObjectModel("LBInsuranceInfoTwoList");
|
||||
if (""!=contract_number || null==contract_number){
|
||||
doTemp.appendJboWhere("lci.CONTRACT_NUMBER='"+contract_number+"'");
|
||||
}
|
||||
|
||||
// doTemp.setDefaultValue("", contract_number);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--ÉèÖÃΪGrid·ç¸ñ--
|
||||
dwTemp.ReadOnly = "1"; //Ö»¶Áģʽ
|
||||
@ -29,7 +30,8 @@
|
||||
function newRecord(){
|
||||
var sUrl = "/Tenwa/Lease/App/BussinessOperation/InsuranceInfo/InsuranceInfoDetail.jsp";
|
||||
var contractnumber = "<%=contract_number%>";
|
||||
AsControl.OpenView(sUrl,'contract_number=' +contractnumber,'_self','');
|
||||
var contractId = '<%=contractId%>';
|
||||
AsControl.OpenView(sUrl,'contract_number=' +contractnumber+"&contractId="+contractId,'_self','');
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Lease/App/BussinessOperation/InsuranceInfo/InsuranceInfoDetail.jsp";
|
||||
|
||||
@ -1,13 +1,23 @@
|
||||
package com.amarsoft.dict.als.manage;
|
||||
|
||||
import jbo.com.tenwa.lease.comm.LB_INSURANCE_INFO;
|
||||
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.awe.res.AppManager;
|
||||
import com.amarsoft.awe.res.MenuManager;
|
||||
import com.amarsoft.awe.util.ASResultSet;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.dict.als.cache.CodeCache;
|
||||
import com.amarsoft.dict.als.cache.NameCache;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.officetempalte.util.FileOperatorUtil;
|
||||
|
||||
public class NameManager
|
||||
{
|
||||
@ -220,4 +230,28 @@ public class NameManager
|
||||
BizObject bo = JBOFactory.createBizObjectQuery(LB_PROJECT_INFO.CLASS_NAME, "ID=:ID").setParameter("ID", projectID).getSingleResult(false);
|
||||
return bo != null?bo.getAttribute("PROJECT_NAME").getString():"";
|
||||
}
|
||||
|
||||
public static String getYears(String ContractId,String i) throws Exception{
|
||||
System.out.println(ContractId+"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"+i);
|
||||
String sql = "select insurer_end_date from (SELECT @rownum ¡÷= @rownum + 1 AS rownum,insurer_end_date FROM LB_INSURANCE_INFO,(SELECT @rownum ¡÷= 0) t WHERE contract_id ='"+ContractId+"' ORDER BY insurer_start_date ) t WHERE t.rownum= '"+i+"';";
|
||||
//SqlObject asql = new SqlObject(sql);
|
||||
//
|
||||
|
||||
SqlObject so = new SqlObject(sql);
|
||||
so.setDebugSql(so.getDebugSql().replaceAll("¡÷", ":"));
|
||||
so.setOriginalSql(so.getOriginalSql().replaceAll("¡÷", ":"));
|
||||
so.setRunSql(so.getRunSql().replaceAll("¡÷", ":"));
|
||||
Transaction Sqlca = Transaction.createTransaction("als");
|
||||
ASResultSet rs = Sqlca.getASResultSet(so);
|
||||
// so.setDebugSql(so.getDebugSql().replaceAll("¡÷", ":"));
|
||||
//so.setOriginalSql(so.getOriginalSql().replaceAll("¡÷", ":"));
|
||||
// so.setRunSql(so.getRunSql().replaceAll("¡÷", ":"));
|
||||
while (rs.next()) {
|
||||
rs.getString("insurer_end_date");
|
||||
}
|
||||
// List<Map<String,String>> ds = DataOperatorUtil.getDataBySql(JBOFactory.createJBOTransaction(), sql, null);
|
||||
return "";//ds.get(0).get("INSURER_END_DATE");
|
||||
// BizObject bo=JBOFactory.createBizObjectQuery(LB_INSURANCE_INFO.CLASS_NAME, "select * from (SELECT @rownum := @rownum + 1 AS rownum,insurer_end_date FROM O,(SELECT @rownum := 0) t WHERE contract_id ='"+ContractId+"' ORDER BY insurer_start_date ) t WHERE t.rownum= '"+i+"'").getSingleResult(false);
|
||||
// return bo.getAttribute(LB_INSURANCE_INFO.INSURER_END_DATE).getString();
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user