在合同审批通过后,不允许删除合同模板和生成

This commit is contained in:
tangfutang 2018-11-05 14:00:22 +08:00
parent 8140fb6346
commit d0f06f5882
4 changed files with 8 additions and 4 deletions

View File

@ -44,6 +44,9 @@
if("01".equals(customertype)&&!"合同变更流程".equals(flowName)){
falg = "false";
}
if(RightType.equals("ReadOnly")){
falg = "false";
}
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][]=new String[][]{
{"false","","Button","新增","新增","newRecord()","","","","btn_icon_add",""},

View File

@ -124,17 +124,17 @@
//isShowButton=false;
String compClientID = request.getParameter("CompClientID");
String sparm="";
dwTemp.replaceColumn("LBContractTemplateList", "<iframe id=\"LBContractTemplateList\" type='iframe' name=\"LBContractTemplateList\" width=\"100%\" height=\"260\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/Comm/LBContractTemplate/LBContractTemplateList.jsp?FlowUnid="+flowunid+"&TaskNo="+taskno+"&IsHistory="+ishistory+"&NodeNo="+nodeNo+"&TempletNo=LBContractTemplateList"+"&CompClientID="+sCompClientID+"\"></iframe>", CurPage.getObjectWindowOutput());
dwTemp.replaceColumn("LBContractTemplateList", "<iframe id=\"LBContractTemplateList\" type='iframe' name=\"LBContractTemplateList\" width=\"100%\" height=\"260\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/Comm/LBContractTemplate/LBContractTemplateList.jsp?FlowUnid="+flowunid+"&TaskNo="+taskno+"&IsHistory="+ishistory+"&NodeNo="+nodeNo+"&RightType="+RightType+"&TempletNo=LBContractTemplateList"+"&CompClientID="+sCompClientID+"\"></iframe>", CurPage.getObjectWindowOutput());
String sButtons[][] = null;
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
dwTemp.ReadOnly = "-2";
sButtons=new String[][]{
{phaseno.equals("0010")?"true":"false","","Button","生成合同","生成合同","createContractByTemplate()","","","","btn_icon_up",""}
{phaseno.equals("0010")&&(!RightType.equals("ReadOnly"))?"true":"false","","Button","生成合同","生成合同","createContractByTemplate()","","","","btn_icon_up",""}
};
}else{
sButtons=new String[][] {
{phaseno.equals("0010")?"true":"false","","Button","生成合同","生成合同","createContractByTemplate()","","","","btn_icon_up",""}
{phaseno.equals("0010")&&(!RightType.equals("ReadOnly"))?"true":"false","","Button","生成合同","生成合同","createContractByTemplate()","","","","btn_icon_up",""}
};
}
dwTemp.replaceColumn("contracttemplate", "<div id=\"filetemplatemodel\" style=\"heigth:100%,width:100px\">请稍等。。。。。。</div>", CurPage.getObjectWindowOutput());

View File

@ -20,8 +20,9 @@
var customertype = sReturn[6];
var leasform = sReturn[7];
var carAttributes = sReturn[8];
var isNetCar = sReturn[9];
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
sParams =sParams+",carAttributes="+carAttributes+",leasform="+leasform+",customertype="+customertype+",ProjectId="+project_id+",FlowKey="+contract_number+",ProductId="+product_id+",ProjectNo="+project_no+",ContractId="+contract_id+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
sParams =sParams+",isNetCar="+isNetCar+",carAttributes="+carAttributes+",leasform="+leasform+",customertype="+customertype+",ProjectId="+project_id+",FlowKey="+contract_number+",ProductId="+product_id+",ProjectNo="+project_no+",ContractId="+contract_id+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
var sReturnInfos=sReturnInfo.split("@");