60 lines
3.3 KiB
Plaintext
60 lines
3.3 KiB
Plaintext
<%@page import="com.tenwa.comm.util.date.DateAssistant"%>
|
||
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@ page import="jbo.sys.FLOW_TASK"%>
|
||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||
|
||
String Id = CurPage.getParameter("ID");
|
||
if(Id == null)Id = "";
|
||
String curUserId = CurUser.getUserID();
|
||
BizObjectManager ftManager = JBOFactory.getBizObjectManager(FLOW_TASK.CLASS_NAME);
|
||
List<BizObject> fts = ftManager.createQuery("select * from o left join jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT fbo on o.objectno=fbo.flow_unid where fbo.contract_id=:contractid and o.flowno='FundPaymentFlow' and o.phasetype='1040' order by endtime desc").setParameter("contractid",Id).getResultList(false);
|
||
String flowUnid = "";
|
||
String flowNo = "";
|
||
if(fts.size()>0){
|
||
flowUnid = fts.get(0).getAttribute("objectno").getString();
|
||
flowNo = "FundPaymentFlow";
|
||
}else{
|
||
fts = ftManager.createQuery("select * from o left join jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT fbo on o.objectno=fbo.flow_unid where fbo.contract_id=:contractid and o.flowno='FundPaymentCarFlow' and o.phasetype='1040' order by endtime desc").setParameter("contractid",Id).getResultList(false);
|
||
flowUnid = fts.get(0).getAttribute("objectno").getString();
|
||
flowNo = "FundPaymentCarFlow";
|
||
}
|
||
ASObjectModel doTemp = new ASObjectModel("LBFileArchivingInfo");
|
||
doTemp.setDefaultValue("ARCHIVING_PERSON", curUserId);
|
||
doTemp.setDefaultValue("ARCHIVING_TIME", DateAssistant.getToday());
|
||
doTemp.setDefaultValue("CONTRACT_ID", Id);
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||
dwTemp.Style = "2";
|
||
dwTemp.genHTMLObjectWindow(Id);
|
||
String compClientID = request.getParameter("CompClientID");
|
||
dwTemp.replaceColumn("doclist", "<iframe type='iframe' name=\"doclist\" width=\"100%\" height=\"650\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/FileManager/FileArchiving/DocListView.jsp?CompClientID="+sCompClientID+"&FlowNo="+flowNo+"&FlowUnid="+flowUnid+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||
String sButtons[][] =new String[][] {
|
||
{"true","","Button","<22><><EFBFBD><EFBFBD>","<22><><EFBFBD><EFBFBD>","goBack()","","","","btn_icon_return"},
|
||
{"true","","Button","<22>鵵<EFBFBD><E9B5B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","<22>鵵<EFBFBD><E9B5B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","fileArchiving()","","","","btn_icon_edit"}
|
||
};
|
||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||
<script type="text/javascript">
|
||
function fileArchiving(){
|
||
if(!iV_all("0")) return;
|
||
var ArchivingPerson = getItemValue(0,getRow(),"ARCHIVING_PERSON");
|
||
var ArchivingTime = getItemValue(0,getRow(),"ARCHIVING_TIME");
|
||
var ArchivingCabinetNo = getItemValue(0,getRow(),"ARCHIVING_CABINET_NO");
|
||
var Demo = getItemValue(0,getRow(),"DEMO");
|
||
if(typeof(Demo)==undefined || Demo==""){
|
||
Demo="";
|
||
}
|
||
autoRiskScan("<22><><EFBFBD><EFBFBD><EFBFBD>鵵","ContractId=<%=Id%>&isAutoCommit=false&ObjectType=FlowDefaultObject","0001",function(riskMessage){
|
||
if(riskMessage != true){
|
||
return;
|
||
}
|
||
var sReturn = RunJavaMethodTrans("com.tenwa.lease.app.filearchiving.FileArchivingController", "fileArchiving", "ContractId=<%=Id%>,ArchivingPerson="+ArchivingPerson+",ArchivingTime="+ArchivingTime+",ArchivingCabinetNo="+ArchivingCabinetNo+",Demo="+Demo+",CurUserID=<%=curUserId%>");
|
||
if(sReturn=='success'){
|
||
parent.AsDialog.ClosePage();
|
||
}
|
||
});
|
||
}
|
||
function goBack(){
|
||
CHANGED=false;
|
||
parent.AsDialog.ClosePage();
|
||
}
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |