apzl_leasing/WebContent/Accounting/LoanSimulationPlan/LCCalcPlanOnhireTempList.jsp
2018-06-03 22:26:41 +08:00

81 lines
3.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
<%
/*
Author: undefined 2017-05-12
Content:
History Log:
*/
String flowunid = CurPage.getParameter("FlowUnid");//流程
BizObject flow=GetFlowAction.getFlowBussinessObject(flowunid);
String projid=flow.getAttribute("proj_id").getString();
String contract_id=flow.getAttribute("contract_id").getString();
String ProductId=CurPage.getParameter("ProductId");//产品编号
String calType = CurPage.getParameter("calType");
String sRightType= CurPage.getParameter("RightType");
String compClientID = CurPage.getParameter("CompClientID");
String ishistory = CurPage.getParameter("IsHistory");
String nodeNo=CurPage.getParameter("NodeNo");
if(sRightType==null){
sRightType="";
}
String planCName="PROJECT_PLAN_NUMBER";
if("proj_process".equals(calType)){
planCName="PROJECT_PLAN_NUMBER";
}else if("pay_process".equals(calType)||"onHire_process".equals(calType)){
planCName="PAYMENT_NUMBER";
}else{
planCName="CONTRACT_PLAN_NUMBER";
}
ASObjectModel doTemp = new ASObjectModel("LCCalcPlanTempList");
doTemp.setVisible(planCName, true);
doTemp.setVisible("FILENAME", false);
doTemp.setVisible("INPUTTIME", false);
doTemp.setVisible("ACTION", false);
if(null!=ishistory&&ishistory.equals("true"))
{
doTemp.setDataQueryClass("com.tenwa.lease.flow.flowarchive.calcarchive.CalcListArachiveShow");
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(flowunid);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] =null;
if("ContractOnhireChangeFlow".equals(CurPage.getParameter("FlowNo"))){
sButtons=new String[][] {
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_edit"},
};
}else{
sButtons=new String[][]{
{"true","All","Button","修改","新增","viewAndEdit()","","","","btn_icon_add",""},
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_edit"},
};
}
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function viewAndEdit(){
var sUrl = "/Accounting/LoanSimulation_onhire/LoanBasicInfo.jsp";
var sPara = getItemValue(0,getRow(0),'ID');
var flowunid = getItemValue(0,getRow(0),'FLOWUNID');
var plannumber = getItemValue(0,getRow(0),'<%=planCName%>');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
var sParam="ID="+sPara+"&FlowUnid="+flowunid+"&plannumber="+plannumber+"&RightType=<%=sRightType%>&ProductId=<%=ProductId%>&calType=<%=calType%>";
sParam+="&NodeNo=<%=nodeNo%>";
AsControl.OpenView(sUrl,sParam,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>