53 lines
2.5 KiB
Plaintext
53 lines
2.5 KiB
Plaintext
<%@page import="jbo.app.tenwa.calc.LC_CALC_CONDITION_STATUS"%>
|
|
<%@page import="com.amarsoft.app.lc.workflow.action.GetFlowAction"%>
|
|
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
|
|
if(sFlowUnid == null)sFlowUnid = "";
|
|
String templetNo = CurPage.getParameter("TempletNo");
|
|
if(templetNo == null)templetNo = "LBFiveGradeClassifyTempInfo";
|
|
String RightType= CurPage.getParameter("RightType");
|
|
if(RightType == null) RightType = "";
|
|
String taskno=CurPage.getParameter("TaskNo");
|
|
if(taskno == null) taskno = "";
|
|
String ishistory=CurPage.getParameter("IsHistory");
|
|
String nodeNo=CurPage.getParameter("NodeNo");
|
|
if(ishistory == null) ishistory = "";
|
|
|
|
Map<String,String> flowParam = GetFlowAction.getFlowParamByFlowUnid(sFlowUnid);
|
|
String customerId = flowParam.get("CustomerId");
|
|
BizObjectManager lccsManager = JBOFactory.getBizObjectManager(LC_CALC_CONDITION_STATUS.CLASS_NAME);
|
|
List<BizObject> paymentByCustomerId = lccsManager.createQuery("select * FROM O WHERE O.CONTRACT_ID in (select lul.CONTRACT_ID FROM jbo.com.tenwa.lease.comm.LB_UNION_LESSEE lul where lul.CUSTOMER_ID=:customerid and lul.IS_MAIN ='Y') ")
|
|
.setParameter("customerid",customerId).getResultList(false);
|
|
ASObjectModel doTemp = new ASObjectModel(templetNo);
|
|
CurPage.getCurComp().setAttribute("RightType", null);
|
|
doTemp.setDefaultValue("FLOWUNID", sFlowUnid);
|
|
if(paymentByCustomerId.size()>1){
|
|
doTemp.setVisible("IS_SYNC", true);
|
|
doTemp.setRequired("IS_SYNC", true);
|
|
}else{
|
|
doTemp.setVisible("IS_SYNC", false);
|
|
doTemp.setRequired("IS_SYNC", false);
|
|
}
|
|
if(null!=ishistory&&ishistory.equals("true")){
|
|
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
|
|
}
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//
|
|
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
|
|
dwTemp.ReadOnly = "-2";//只读模式
|
|
RightType="ReadOnly";
|
|
}
|
|
dwTemp.genHTMLObjectWindow(sFlowUnid);
|
|
CurPage.getCurComp().setAttribute("RightType", RightType);
|
|
String sButtons[][] =null;
|
|
sButtons =new String[][] {
|
|
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"}
|
|
};
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
function saveRecord(){
|
|
as_save("myiframe0");
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |