设计页面只读

This commit is contained in:
tangfutang 2018-07-23 20:31:45 +08:00
parent a390671e79
commit 864f4c9df8
3 changed files with 14 additions and 4 deletions

View File

@ -8,9 +8,11 @@
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
String customertype = CurPage.getParameter("customertype");//获取客户类型,用于判断生成合同的方法
String flowunid=CurPage.getParameter("FlowUnid");
String ishistory=CurPage.getParameter("IsHistory");
String proj_id=CurPage.getParameter("proj_id");
String projectId=CurPage.getParameter("ProjectId");//获取项目projectID
String taskno=CurPage.getParameter("TaskNo");
String nodeNo=CurPage.getParameter("NodeNo");
String contractNo=CurPage.getParameter("ContractNo");
@ -204,7 +206,7 @@
alert("请勾选合同模板!");
return;
}
var message = RunJavaMethodTrans("com.tenwa.app.baseFileTemplate.handle.FileTemplateUtil","jiaoyan","templateIds="+tempids+",flowunid="+"<%=flowunid%>");
var message = RunJavaMethodTrans("com.tenwa.app.baseFileTemplate.handle.FileTemplateUtil","CheckCar","templateIds="+tempids+",flowunid="+"<%=flowunid%>");
if(""!=message){
alert(message);
location.reload();
@ -237,6 +239,12 @@
alert(sReturn0);
}else{
RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","wordToPdf","FlowUnid=<%=flowunid%>,flagType=word");
if("01"=="<%=customertype%>"){
var falg = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","compnySignIng","FlowUnid=<%=flowunid%>,flagType=word,ProjectId=<%=projectId%>");
if("success"== falg ){
}
}
alert("生成成功");
}
reloadSelf();

View File

@ -28,8 +28,9 @@
var project_name = sReturn[3];
var customertype = sReturn[4];
var leasform = sReturn[5];
var carAttributes = sReturn[6];
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
sParams =sParams+",leasform="+leasform+",ProductId="+product_id+",ProjectId="+id+",ProjectNo="+project_id+",customertype="+customertype+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
sParams =sParams+",carAttributes="+carAttributes+",leasform="+leasform+",ProductId="+product_id+",ProjectId="+id+",ProjectNo="+project_id+",customertype="+customertype+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.contract.contractapproval.ContractApprovalStartAction","initFLow",sParams);
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;

View File

@ -11,6 +11,7 @@
String dateString = formatter.format(curdate);
String sPhaseNo=CurPage.getParameter("sPhaseNo");
String flowunid = CurPage.getParameter("FlowUnid");
String FlowName = CurPage.getParameter("FlowName");//»ñÈ¡Á÷³ÌÃû³Æ
String customerid = Sqlca.getString("select customer_id from lb_union_lessee_temp where flowunid='"+flowunid+"'");
String sTempletNo = "BusinessCustomerInfo";//--Ä£°åºÅ--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
@ -32,8 +33,8 @@
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow(flowunid + "," + customerid);
CurPage.getCurComp().setAttribute("RightType", rightType);
if(rightType.equals("ReadOnly")){
dwTemp.ReadOnly = "1";//Ö»¶Áģʽ
if(rightType.equals("ReadOnly")||FlowName.equals("ºÏÍ¬ÖÆ×÷Á÷³Ì")){
dwTemp.ReadOnly = "-1";//Ö»¶Áģʽ
}
String customerType = "03";
String compClientID = request.getParameter("CompClientID");