90 lines
4.0 KiB
Plaintext
90 lines
4.0 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
|
||
<%@ page import="java.util.List" %>
|
||
<%@ page import="java.util.Map" %>
|
||
<%@ page import="com.amarsoft.app.util.ProductParamUtil" %>
|
||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||
/*
|
||
Author: undefined 2019-07-15
|
||
Content: ʾÀýÏêÇéÒ³Ãæ
|
||
History Log:
|
||
*/
|
||
String RightType= CurPage.getParameter("RightType");
|
||
String sFlowunid = CurPage.getParameter("FlowUnid");
|
||
String sFlowNo= CurPage.getParameter("FlowNo");
|
||
String PhaseNo= CurPage.getParameter("PhaseNo");
|
||
String userName = CurUser.getUserName();
|
||
String isHistory = CurPage.getParameter("IsHistory");
|
||
sFlowNo = "MortgageFileMailFlow";
|
||
BizObject flow=GetFlowAction.getFlowBussinessObject(sFlowunid);
|
||
String product=CurPage.getParameter("productId");
|
||
List<Object> list=ProductParamUtil.getProductDocInfo(product,"PRD0412");
|
||
String type="";
|
||
String docList="";
|
||
for(int i=0;i<list.size();i++){
|
||
Map<String,Object> map=(Map<String,Object>)list.get(i);
|
||
if(sFlowNo.equals(map.get("FLOW_INFO").toString())){
|
||
type=map.get("TYPE").toString();
|
||
if("SingleRow".equals(type)){
|
||
docList=map.get("DOCLIST").toString();
|
||
}else{
|
||
List l=(List)map.get("DOCCONFIG");
|
||
docList=l.toString();
|
||
}
|
||
}
|
||
}
|
||
String ObjectNo = CurPage.getParameter("ObjectNo");
|
||
String contract_id = CurPage.getParameter("contract_id");
|
||
String compClientID = CurPage.getParameter("CompClientID");
|
||
String id = CurPage.getParameter("id");
|
||
System.out.println(id);
|
||
String sTempletNo = "LBPlaceFileTempInfo";//--Ä£°åºÅ--
|
||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||
if("0020".equals(PhaseNo)){
|
||
doTemp.setDefaultValue("ARCHIVING_PERSON", CurUser.getUserName());
|
||
|
||
}
|
||
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||
dwTemp.Style = "2";//freeform
|
||
//dwTemp.ReadOnly = "-2";//Ö»¶Áģʽ
|
||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
|
||
dwTemp.replaceColumn("placefile", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"300px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Apzl/FileUpload/LBMailArchivingList.jsp?CompClientID="+sCompClientID+"&docList="+docList+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||
dwTemp.replaceColumn("opinion", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"300px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Apzl/FileUpload/LmApprovaloppinionDocTempList.jsp?CompClientID="+sCompClientID+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||
|
||
String sButtons[][] = {
|
||
{"true","All","Button","±£´æ","±£´æËùÓÐÐÞ¸Ä","save()","","","",""},
|
||
{"false","All","Button","·µ»Ø","·µ»ØÁбí","returnList()","","","",""},
|
||
{"0020".equals(CurPage.getParameter("PhaseNo"))&&!"true".equals(isHistory)?"true":"false","All","Button","Ò»¼ü¹éµµ","Ò»¼ü¹éµµ","guidang()","","","",""},
|
||
|
||
};
|
||
// sButtonPosition = "south";
|
||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||
<script type="text/javascript">
|
||
// function save(){
|
||
<%-- var sParams = "userid=<%CurPage.getUserId()%>&EXPCOMPANY="+getItemValue(0,0,'ARCHIVING_CABINET_NO')+"&contractid=<%=contract_id%>"; --%>
|
||
// var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.DocMailAction","savePlaceFileInfo",sParams);
|
||
// }
|
||
$(function(){
|
||
var gdperson = getItemValue(0, 0, "ARCHIVING_PERSON");
|
||
if("0020"=="<%=PhaseNo%>" && ""== gdperson){
|
||
setItemValue(0, 0, "ARCHIVING_PERSON","<%=userName%>");
|
||
}
|
||
})
|
||
function save(){
|
||
if("0020"=="<%=PhaseNo%>"){
|
||
//frame_list.window.checkfile(); IEä¯ÀÀÆ÷²»Æð×÷ÓÃ
|
||
$("#frame_list")[0].contentWindow.checkfile();
|
||
//$(window.parent.document).contents().find("#frame_list")[0].contentWindow.checkfile();
|
||
|
||
}
|
||
//as_save(0,'frame_list.window.saveRecordForApprove()'); IEä¯ÀÀÆ÷²»Æð×÷ÓÃ
|
||
as_save(0,'$("#frame_list")[0].contentWindow.saveAcrhivingStatus();');
|
||
}
|
||
|
||
function guidang(){
|
||
$("#frame_list")[0].contentWindow.doAcrhiving();
|
||
|
||
}
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |