54 lines
2.9 KiB
Plaintext
54 lines
2.9 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 = "";
|
|
if(fts.size()>0){
|
|
flowUnid = fts.get(0).getAttribute("objectno").getString();
|
|
}
|
|
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=FundPaymentFlow"+"&FlowUnid="+flowUnid+"\"></iframe>", CurPage.getObjectWindowOutput());
|
|
String sButtons[][] =new String[][] {
|
|
{"true","","Button","럿쀼","럿쀼","goBack()","","","","btn_icon_return"},
|
|
{"true","","Button","백도깻럿쀼","백도깻럿쀼","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("도갭백도","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"%> |