From a5dad2e6eaf2703e893064a7ad0057318e33157c Mon Sep 17 00:00:00 2001 From: amarsoft Date: Mon, 25 Jun 2018 01:08:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=89=B9=E6=84=8F=E8=A7=81=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessApplication/ApprovalForm.jsp | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp index 004b2905d..c02ec32e4 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp @@ -74,6 +74,9 @@ dwTemp.getDataObject().setVisible("thirdchoice", true); dwTemp.getDataObject().setVisible("thirdopinion", true); dwTemp.getDataObject().setRequired("thirdchoice", true); + + + dwTemp.getDataObject().setRequired("thirdopinion", true); dwTemp.getDataObject().setReadOnly("thirdchoice", true); dwTemp.getDataObject().setReadOnly("thirdopinion", true); @@ -177,5 +180,50 @@ resetDWDialog("保存失败!",false); } } + + //index,要删除选项的序号,这里取当前选中选项的序号 + function chosefirstchoice(){ + var obj=document.getElementById('FIRSTOPINION'); + for(var i=0;i<8;i++){ + obj.options[i].style.display = "block"; + } + var firstchoice=getItemValue(0, 0, "firstchoice"); + if(firstchoice=="disagree"){ + obj.options[7].style.display = "none"; + }else{ + for(var i=0;i<7;i++){ + obj.options[i].style.display = "none"; + } + } + } + + function chosesecondchoice(){ + var obj=document.getElementById('SECONDOPINION'); + for(var i=0;i<8;i++){ + obj.options[i].style.display = "block"; + } + var firstchoice=getItemValue(0, 0, "secondchoice"); + if(firstchoice=="disagree"){ + obj.options[7].style.display = "none"; + }else{ + for(var i=0;i<7;i++){ + obj.options[i].style.display = "none"; + } + } + } + function chosethirdchoice(){ + var obj=document.getElementById('THIRDOPINION'); + for(var i=0;i<8;i++){ + obj.options[i].style.display = "block"; + } + var firstchoice=getItemValue(0, 0, "thirdchoice"); + if(firstchoice=="disagree"){ + obj.options[7].style.display = "none"; + }else{ + for(var i=0;i<7;i++){ + obj.options[i].style.display = "none"; + } + } + } <%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file