更新资料清单带值问题
This commit is contained in:
parent
c5e244501d
commit
1db99d214a
@ -40,13 +40,19 @@
|
||||
var docList="<%=docList%>";
|
||||
myleft.width=1;
|
||||
if("SingleRow"=="<%=type%>"){
|
||||
if("FundPaymentCarFlow"=="<%=sFlowNo%>"||"BusinessApplyFlow"=="<%=sFlowNo%>"||"MortgageFileFlow"=="<%=sFlowNo%>"||"ProjectCreditFlow"=="<%=sFlowNo%>"||"ContractSupportFlow"=="<%=sFlowNo%>"||"ProjectRecreditFlow"=="<%=sFlowNo%>"||"ProjectSupportFlow"=="<%=sFlowNo%>"||"ProjectApprovalFlow"=="<%=sFlowNo%>"||"FundPaymentFlow"=="<%=sFlowNo%>"||"ProjectCancelFlow"=="<%=sFlowNo%>"||"ContractApprovalFlow"=="<%=sFlowNo%>"){
|
||||
if("FundPaymentCarFlow"=="<%=sFlowNo%>"||"BusinessApplyFlow"=="<%=sFlowNo%>"||"MortgageFileFlow"=="<%=sFlowNo%>"||"ContractSupportFlow"=="<%=sFlowNo%>"||"ProjectRecreditFlow"=="<%=sFlowNo%>"||"ProjectSupportFlow"=="<%=sFlowNo%>"||"ProjectApprovalFlow"=="<%=sFlowNo%>"||"FundPaymentFlow"=="<%=sFlowNo%>"||"ProjectCancelFlow"=="<%=sFlowNo%>"){
|
||||
AsControl.OpenView("/Tenwa/Comm/DocList/PayDocList.jsp","docList="+docList,"right","");
|
||||
}else if("ProjectCreditFlow"=="<%=sFlowNo%>"||"ContractApprovalFlow"=="<%=sFlowNo%>"){
|
||||
AsControl.OpenView("/Tenwa/Comm/DocList/PayDocListTradition.jsp","docList="+docList,"right","");
|
||||
}else{
|
||||
AsControl.OpenView("/Tenwa/Comm/DocList/BussinessApproveDocList.jsp","docList="+docList,"right","");
|
||||
}
|
||||
}else{
|
||||
AsControl.OpenView("/Tenwa/Comm/DocList/CustomerDocTab.jsp","docList="+docList,"right","");
|
||||
if("ContractApprovalFlow"=="<%=sFlowNo%>"||"ContractChangeFlow"=="<%=sFlowNo%>"||"ProjectChangeFlow"=="<%=sFlowNo%>"){
|
||||
AsControl.OpenView("/Tenwa/Comm/DocList/PayDocListTradition.jsp","docList="+docList,"right","");
|
||||
}else{
|
||||
AsControl.OpenView("/Tenwa/Comm/DocList/CustomerDocTab.jsp","docList="+docList,"right","");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -173,7 +173,7 @@
|
||||
return o.submit();
|
||||
}
|
||||
function CheckStr(str){
|
||||
var s="jpg,jpeg,png,pdf,doc,docx,xls,xlsx";
|
||||
var s="jpg,jpeg,png,pdf,doc,docx,xls,xlsx,rar,zip";
|
||||
var flag="false";
|
||||
var s2=s.split(",");
|
||||
for(var i=0;i<s2.length;i++){
|
||||
|
||||
@ -78,7 +78,7 @@
|
||||
return o.submit();
|
||||
}
|
||||
function CheckStr(str){
|
||||
var s="jpg,jpeg,png,pdf,doc,docx,xls,xlsx,txt";
|
||||
var s="jpg,jpeg,png,pdf,doc,docx,xls,xlsx,txt,rar,zip";
|
||||
var flag="false";
|
||||
var s2=s.split(",");
|
||||
for(var i=0;i<s2.length;i++){
|
||||
|
||||
@ -159,7 +159,7 @@
|
||||
window.open(sWebRootPath+"/servlet/view/docDownloadServlet?CompClientID=<%=sCompClientID%>&sqlString=save@"+id, "downloadTemplate");
|
||||
}
|
||||
function upload(){
|
||||
deleteFile();
|
||||
// deleteFile();
|
||||
var sparam="FlowUnid=<%=flowunid%>"+",ProjId=<%=projid%>"+",DocType=001,OneClassify=001003,DocName=尽职调查报告";
|
||||
var library_id=RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateContractOfficeAction","NewCreditLibraryId",sparam);
|
||||
|
||||
|
||||
@ -158,7 +158,7 @@
|
||||
}
|
||||
|
||||
function upload(){
|
||||
deleteFile();
|
||||
// deleteFile();
|
||||
var sparam="FlowUnid=<%=flowunid%>"+",ProjId=<%=projid%>"+",DocType=001,OneClassify=001003,DocName=风控报告";
|
||||
var library_id=RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateContractOfficeAction","NewCreditLibraryId",sparam);
|
||||
|
||||
|
||||
@ -73,6 +73,10 @@
|
||||
setItemNoRequired(0,i,"ACCOUNT");
|
||||
setItemNoRequired(0,i,"ACC_NUMBER");
|
||||
}
|
||||
if("" == getItemValue(0,i,"ACCOUNTING_DATE")){
|
||||
var date = new Date().getFullYear()+"/"+(new Date().getMonth()+1)+"/"+new Date().getDate();
|
||||
document.getElementById('INPUT_myiframe0_ACCOUNTING_DATE_'+i+'_6').value=date;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@
|
||||
dwTemp.Style = "1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1";
|
||||
dwTemp.setPageSize(50);
|
||||
// dwTemp.genHTMLObjectWindow(docname+","+contract_id);
|
||||
dwTemp.genHTMLObjectWindow(flowunid);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] =null;
|
||||
@ -120,7 +120,7 @@
|
||||
tempParam["OBJECTTYPE"]="AdjustmentNotice";
|
||||
tempParam["FLOW_UNID"]="<%=flowunid%>";
|
||||
tempParam["PROJ_ID"]="<%=projid%>";
|
||||
tempParam["contract_id"]="<%=contract_id%>";
|
||||
tempParam["CONTRACT_ID"]=getItemValue(0,getRow(),"ID");
|
||||
//生成模板固定参数
|
||||
tempParam["CurUserId"]="<%=CurUser.getUserID()%>";
|
||||
tempParam["CurOrgId"]="<%=CurUser.getOrgID()%>";
|
||||
@ -131,10 +131,10 @@
|
||||
if(sparam.length>0){sparam+=",";}
|
||||
sparam+=key+"="+param[key];
|
||||
}
|
||||
// var deleteresult=RunJavaMethodTrans("com.tenwa.officetempalte.controller.RentNotinyDeleteAction","deletequtation","plan_number="+plan_number+",plan_list="+plan_list);
|
||||
// var deleteresult=RunJavaMethodTrans("com.tenwa.officetempalte.controller.RentNotinyDeleteAction","Tdeletequtation","plan_number="+getItemValue(0,getRow(),"ID"));
|
||||
var result=RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateOfficeAction","createOfficeByTemplate",sparam);
|
||||
//word转pdf
|
||||
var id = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","wordToPdfAnnex","FlowUnid=<%=flowunid%>,PLAN_LIST=AdjustmentNotice");
|
||||
<%-- var id = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","wordToPdfAnnex","FlowUnid=<%=flowunid%>,PLAN_LIST=AdjustmentNotice"); --%>
|
||||
|
||||
reloadSelf();
|
||||
|
||||
|
||||
Binary file not shown.
@ -63,5 +63,29 @@ public class RentNotinyDeleteAction {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//¸ù¾Ýǰ̨²ÎÊýÉú³ÉÎĵµ
|
||||
public void Tdeletequtation(JBOTransaction tx) throws Exception{
|
||||
BizObjectManager bom=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME);
|
||||
BizObject DOCRELATIVE=bom.createQuery("CONTRACT_ID=:contractid and OBJECTTYPE='AdjustmentNotice' ").setParameter("contractid",plan_number).getSingleResult(false);
|
||||
if(DOCRELATIVE!=null){
|
||||
String DOCRELATIVEid=DOCRELATIVE.getAttribute("id").toString();
|
||||
BizObjectManager bom1=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCLIBRARY.CLASS_NAME);
|
||||
String DOCLIBRARYid=bom1.createQuery("relative_id=:relative_id").setParameter("relative_id", DOCRELATIVEid).getSingleResult(false).getAttribute("id").toString();
|
||||
BizObjectManager bom2=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCATTRIBUTE.CLASS_NAME);
|
||||
String DOCATTRIBUTEid=bom2.createQuery("library_id=:library_id").setParameter("library_id", DOCLIBRARYid).getSingleResult(false).getAttribute("id").toString();
|
||||
Map<String,String> condtion= new HashMap<String,String>();
|
||||
condtion.put("id", DOCRELATIVEid);
|
||||
DataOperatorUtil.deleteJBOByCondtion(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME, condtion, tx);
|
||||
condtion.clear();
|
||||
condtion.put("id", DOCLIBRARYid);
|
||||
DataOperatorUtil.deleteJBOByCondtion(jbo.app.tenwa.doc.LB_DOCLIBRARY.CLASS_NAME, condtion, tx);
|
||||
condtion.clear();
|
||||
condtion.put("id", DOCATTRIBUTEid);
|
||||
DataOperatorUtil.deleteJBOByCondtion(jbo.app.tenwa.doc.LB_DOCATTRIBUTE.CLASS_NAME, condtion, tx);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
package com.tenwa.flow.fund.flowpayment;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.com.tenwa.lease.comm.LB_REPLY_IMPLEMENT_TEMP;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.dict.als.cache.CodeCache;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.template.check.DefaultBussinessCheck;
|
||||
|
||||
|
||||
/**
|
||||
* 检查付款申请批复落实情况
|
||||
*
|
||||
*/
|
||||
public class ReplyWorkableObjectCheck extends DefaultBussinessCheck {
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
String flowunid=this.getAttribute("ObjectNo").toString();
|
||||
List<BizObject> bos = JBOFactory.getBizObjectManager(LB_REPLY_IMPLEMENT_TEMP.CLASS_NAME).createQuery("flowunid=:flowunid")
|
||||
.setParameter("flowunid", flowunid).getResultList(false);
|
||||
int mun = 0;
|
||||
for (BizObject bo : bos) {
|
||||
if("implement_condition02".equals(bo.getAttribute("REPLY_IMPLEMENT").getString())){
|
||||
mun++;
|
||||
}
|
||||
}
|
||||
if(bos.size()==0){
|
||||
putMsg("没有批复落实项");
|
||||
setPass(true);
|
||||
}else if(bos.size() == mun){
|
||||
putMsg("批复已落实!");
|
||||
setPass(true);
|
||||
}else{
|
||||
putMsg("批复未落实!");
|
||||
setPass(false);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user