96 lines
4.2 KiB
Plaintext
96 lines
4.2 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@page import="com.tenwa.reckon.util.TbBeanTools"%>
|
||
<%@page import="com.tenwa.reckon.bean.TabCalBean"%>
|
||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||
String flowunid=CurPage.getParameter("flowunid");//流程编号
|
||
String plannumber=CurPage.getParameter("plannumber");//方案编号
|
||
String planCName=CurPage.getParameter("planCName");//项目方案 合同方案 投放编号 列名
|
||
String calType=CurPage.getParameter("calType");//项目方案 合同方案 投放编号 列名
|
||
|
||
TabCalBean tcb=TbBeanTools.getTabInfo(calType);
|
||
if(flowunid == null) flowunid = "100000";
|
||
String RightType= CurPage.getParameter("RightType");
|
||
String method= CurPage.getParameter("method");
|
||
if(method==null)method="";
|
||
String taskno=CurPage.getParameter("TaskNo");
|
||
String ishistory=CurPage.getParameter("IsHistory");
|
||
String nodeNo=CurPage.getParameter("NodeNo");
|
||
ASObjectModel doTemp = new ASObjectModel("LCRentPlanTemp");
|
||
doTemp.appendJboWhere(" and "+planCName+"='"+plannumber+"'");
|
||
if(null!=ishistory&&ishistory.equals("true")){
|
||
doTemp.setDataQueryClass("com.tenwa.lease.flow.flowarchive.calcarchive.CalcRentListArachiveShow");
|
||
}
|
||
String Distributor=CurPage.getParameter("isDistributor");
|
||
if("true".equals(Distributor)){
|
||
doTemp.setVisible("CORPUS", false);
|
||
doTemp.setVisible("INTEREST", false);
|
||
doTemp.setVisible("CORPUS_BUSINESS", false);
|
||
doTemp.setVisible("INTEREST_BUSINESS", false);
|
||
}
|
||
String orgid = CurUser.getOrgID();
|
||
if("8009012002".equals(orgid)){
|
||
doTemp.setVisible("CORPUS", false);
|
||
doTemp.setVisible("INTEREST", false);
|
||
}
|
||
CurPage.setAttribute("modelno","rent");
|
||
doTemp.setJboClass(tcb.getRentPlan_tb());
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||
dwTemp.Style="1"; //--设置为Grid风格--
|
||
dwTemp.ShowSummary="1"; //汇总
|
||
dwTemp.ReadOnly = "1"; //只读模式
|
||
dwTemp.setPageSize(100);
|
||
dwTemp.genHTMLObjectWindow(flowunid);
|
||
|
||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||
|
||
String sButtons[][] =null;
|
||
|
||
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
|
||
RightType="ReadOnly";
|
||
sButtons=new String[][] {
|
||
};
|
||
}else{
|
||
sButtons=new String[][] {
|
||
{"false","","Button","租金调整","租金调整","rentAdjust()","","","","btn_icon_set",""},
|
||
{method.equals("irregular_rent")+"","","Button","不规则导入","不规则导入","importRent()","","","","btn_icon_import",""},
|
||
{method.equals("irregular_rent")+"","","Button","模板下载","模板下载","downloadTemplate()","","","","btn_icon_down",""},
|
||
};
|
||
}
|
||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||
<script type="text/javascript">
|
||
function rentAdjust(){
|
||
//TODO
|
||
}
|
||
function importRent(){
|
||
//判断商务条件是否保存
|
||
var result = AsControl.RunJavaMethod("com.tenwa.reckon.executor.CreateTransactionExecutor","checkIsSaveCondition","flowunid=<%=flowunid%>,calType=<%=calType%>,plannumber=<%=plannumber%>,planCName=<%=planCName%>");
|
||
|
||
if(result == 'true'){
|
||
var importCondition={};//导入配置
|
||
importCondition["flowunid"]="<%=flowunid%>";
|
||
importCondition["plannumber"]="<%=plannumber%>";
|
||
importCondition["calType"]="<%=calType%>";
|
||
//增加其他配置参数
|
||
var sparam=JSON.stringify(importCondition).replace(/,/g,"@");
|
||
AsDialog.PopView("/Accounting/LoanSimulation/upload/uploadRent.jsp","importparam="+sparam,
|
||
{width:"350px",height:"40px",title:"上传租金计划"},function(sreturn){
|
||
if(sreturn=="true"){
|
||
var param="FlowUnid=<%=flowunid%>&calType=<%=calType%>&plannumber=<%=plannumber%>";
|
||
window.parent.parent.AsControl.OpenView("/Accounting/LoanSimulation/LoanBasicInfo.jsp",param, "_self");
|
||
}
|
||
});
|
||
}else{
|
||
alert('请先保存商务条件!!!');
|
||
}
|
||
|
||
}
|
||
|
||
function downloadTemplate(){
|
||
var templateId="2017051200000002";
|
||
if(!frames["downloadTemplate"]) $("<iframe name='downloadTemplate' style='display:none;'></iframe>").appendTo("body");
|
||
window.open(sWebRootPath+"/servlet/view/fileTemplateView?CompClientID=<%=sCompClientID%>&sqlString=save@"+templateId, "downloadTemplate");
|
||
}
|
||
|
||
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |