修改业务申请中的审批表显示问题
This commit is contained in:
parent
be7abd450b
commit
b22e9254ea
@ -63,7 +63,7 @@
|
||||
// dwTemp.getDataObject().setReadOnly("InterOpinion2", true);
|
||||
dwTemp.setGroupHidden("0040,0050");
|
||||
}
|
||||
}else if("0040".equals(phaseNo)||"0060".equals(phaseNo)){//复审
|
||||
}else if("0040".equals(phaseNo)||"0050".equals(phaseNo)){//复审
|
||||
dwTemp.getDataObject().setVisible("firstchoice", true);
|
||||
dwTemp.getDataObject().setVisible("firstopinion", true);
|
||||
dwTemp.getDataObject().setReadOnly("firstchoice", true);
|
||||
@ -73,7 +73,7 @@
|
||||
dwTemp.getDataObject().setRequired("secondchoice", true);
|
||||
dwTemp.getDataObject().setRequired("secondopinion", true);
|
||||
dwTemp.setGroupHidden("0040");
|
||||
if(("BACK".equals(flowstate)||"ANYBACK".equals(flowstate))&&"0060".equals(phaseNo)){
|
||||
if(("BACK".equals(flowstate)||"ANYBACK".equals(flowstate))&&"0050".equals(phaseNo)){
|
||||
dwTemp.getDataObject().setVisible("thirdchoice", true);
|
||||
dwTemp.getDataObject().setVisible("thirdopinion", true);
|
||||
dwTemp.getDataObject().setReadOnly("thirdchoice", true);
|
||||
@ -85,7 +85,7 @@
|
||||
if(CurUser.hasRole("401")){
|
||||
dwTemp.setGroupHidden("0030,0040");
|
||||
}
|
||||
}else if("0050".equals(phaseNo)){//信审
|
||||
}else if("0060".equals(phaseNo)){//信审
|
||||
if(!"true".equals(ishistory)){
|
||||
dwTemp.getDataObject().setVisible("firstchoice", true);
|
||||
dwTemp.getDataObject().setVisible("firstopinion", true);
|
||||
@ -177,8 +177,12 @@
|
||||
$(function(){
|
||||
$(".info_td_left").css("width","150px");
|
||||
$(".info_mid_line").css("width","50%");
|
||||
var selectOpinion = '';
|
||||
var proposal = '';
|
||||
switch('<%=phaseNo%>'){
|
||||
case '0030'://初审
|
||||
selectOpinion ='FIRSTOPINION';
|
||||
proposal ='FIRSTCHOICE';
|
||||
$("#A_div_1230").attr("style","display:none;");
|
||||
$("#A_div_1240").attr("style","display:none;");
|
||||
$("#A_div_1250").attr("style","display:none;");
|
||||
@ -205,6 +209,8 @@
|
||||
_user_validator[0]['messages']['FIRSTOPINION']['required0'] = "请输入审批意见";
|
||||
break;
|
||||
case '0040'://复审
|
||||
selectOpinion ='SECONDOPINION';
|
||||
proposal ='SECONDCHOICE';
|
||||
$("#A_div_1250").attr("style","display:none;");
|
||||
$("#A_div_1260").attr("style","display:none;");
|
||||
|
||||
@ -239,7 +245,9 @@
|
||||
_user_validator[0]['rules']['SECONDOPINION']['required0'] = true;
|
||||
_user_validator[0]['messages']['SECONDOPINION']['required0'] = "请输入审批意见";
|
||||
break;
|
||||
case '0060'://大于20万复审
|
||||
case '0050'://大于20万复审
|
||||
selectOpinion ='SECONDOPINION';
|
||||
proposal ='SECONDCHOICE';
|
||||
$("#A_div_1250").attr("style","display:none;");
|
||||
$("#A_div_1260").attr("style","display:none;");
|
||||
|
||||
@ -269,8 +277,9 @@
|
||||
_user_validator[0]['rules']['SECONDOPINION']['required0'] = true;
|
||||
_user_validator[0]['messages']['SECONDOPINION']['required0'] = "请输入审批意见";
|
||||
break;
|
||||
case '0050'://信审
|
||||
|
||||
case '0060'://信审
|
||||
selectOpinion ='THIRDOPINION';
|
||||
proposal ='THIRDCHOICE';
|
||||
$("#FIRSTCHOICE").attr("disabled","disabled");//初审意见
|
||||
$("#FIRSTOPINION").attr("disabled","disabled");//审批意见
|
||||
// $("#INTEROPINION1").attr("disabled","disabled");//初审内部意见
|
||||
@ -357,45 +366,71 @@
|
||||
//$("#FULLNAME").attr("style","color:red;");
|
||||
$("#CERTID").css("color","red");
|
||||
}
|
||||
var firstchoice = getItemValue(0,0,"firstchoice");
|
||||
var firstchoice = getItemValue(0,0,proposal);
|
||||
var attribute1="";
|
||||
if(firstchoice==""){
|
||||
// setItemRequired(0,"InterOpinion1",false);
|
||||
// setItemRequired(0,"DistriOpinion1",false);
|
||||
$("#FIRSTOPINION").attr("disabled","");
|
||||
// $("#FIRSTOPINION").attr("disabled","");
|
||||
}
|
||||
if(firstchoice=="0010"){
|
||||
setItemRequired(0,"A_div_1220",true);
|
||||
// setItemRequired(0,"InterOpinion1",false);
|
||||
// setItemRequired(0,"DistriOpinion1",true);
|
||||
/* setItemRequired(0,"InterOpinion1",false);
|
||||
setItemRequired(0,"DistriOpinion1",true);
|
||||
$("#FIRSTOPINION").attr("disabled","");
|
||||
$("#SECONDOPINION").attr("disabled","");
|
||||
$("#THIRDOPINION").attr("disabled","");
|
||||
var obj=document.getElementById('FIRSTOPINION');
|
||||
$("#THIRDOPINION").attr("disabled",""); */
|
||||
var obj=document.getElementById(selectOpinion);
|
||||
for(var i=0;i<7;i++){
|
||||
obj.options[i].style.display = "block";
|
||||
}
|
||||
obj.options[7].style.display = "none";
|
||||
obj.options[8].style.display = "none";
|
||||
attribute1="1";
|
||||
}
|
||||
if(firstchoice=="0030"){
|
||||
// setItemRequired(0,"InterOpinion1",true);
|
||||
// setItemRequired(0,"DistriOpinion1",false);
|
||||
$("#FIRSTOPINION").attr("disabled","");
|
||||
$("#SECONDOPINION").attr("disabled","");
|
||||
$("#THIRDOPINION").attr("disabled","");
|
||||
var obj=document.getElementById('FIRSTOPINION');
|
||||
if(firstchoice=="0020"){
|
||||
/* $("#SECONDOPINION").attr("disabled","");
|
||||
$("#THIRDOPINION").attr("disabled",""); */
|
||||
var obj=document.getElementById(selectOpinion);
|
||||
for(var i=0;i<7;i++){
|
||||
obj.options[i].style.display = "none";
|
||||
}
|
||||
obj.options[0].style.display = "block";
|
||||
obj.options[7].style.display = "block";
|
||||
obj.options[8].style.display = "none";
|
||||
attribute1="2";
|
||||
}
|
||||
if(firstchoice=="0040"||"0060"==firstchoice){
|
||||
if(firstchoice=="0030"){
|
||||
/* setItemRequired(0,"InterOpinion1",true);
|
||||
setItemRequired(0,"DistriOpinion1",false);
|
||||
$("#FIRSTOPINION").attr("disabled","");
|
||||
$("#SECONDOPINION").attr("disabled","");
|
||||
$("#THIRDOPINION").attr("disabled",""); */
|
||||
var obj=document.getElementById(selectOpinion);
|
||||
for(var i=0;i<8;i++){
|
||||
obj.options[i].style.display = "none";
|
||||
}
|
||||
obj.options[0].style.display = "block";
|
||||
attribute1="3";
|
||||
}
|
||||
if(firstchoice=="0040"||"0050"==firstchoice){
|
||||
// setItemRequired(0,"InterOpinion1",false);
|
||||
// setItemRequired(0,"DistriOpinion1",true);
|
||||
setItemValue(0,0,"firstopinion","");
|
||||
// setItemValue(0,0,"firstopinion","");
|
||||
$("#FIRSTOPINION").attr("disabled","disabled");
|
||||
$("#SECONDOPINION").attr("disabled","disabled");
|
||||
$("#THIRDOPINION").attr("disabled","disabled");
|
||||
attribute1="";
|
||||
}
|
||||
var selectOpin = getItemValue(0,getRow(),selectOpinion);
|
||||
AsControl.RunJsp('/Tenwa/Lease/Flow/Project/BusinessApplication/GetApplyNameSelect.jsp','codeno=disagreeOP&attribute1='+attribute1+'&selectOpinion='+selectOpin,function(sReturn){
|
||||
if("FALSE"!=allTrim(sReturn)){
|
||||
var sReturn = lTrim(sReturn);
|
||||
sReturn = rTrim(sReturn);
|
||||
$('#'+selectOpinion).children().remove();
|
||||
$('#'+selectOpinion).append(sReturn);
|
||||
}
|
||||
});
|
||||
if("<%=CurUser.getUserID()%>".indexOf("8006")>=0){
|
||||
$("#A_div_1130").attr("style","display:none;");
|
||||
$("#A_div_1140").attr("style","display:none;");
|
||||
@ -638,10 +673,10 @@
|
||||
if("0030" == "<%=phaseNo%>"){
|
||||
phaseChoice = getItemValue(0,0,"firstchoice");
|
||||
phaseOpinion = getItemValue(0,0,"firstopinion");
|
||||
}else if("0040" == "<%=phaseNo%>"||"0060" == "<%=phaseNo%>"){
|
||||
}else if("0040" == "<%=phaseNo%>"||"0050" == "<%=phaseNo%>"){
|
||||
phaseChoice = getItemValue(0,0,"secondchoice");
|
||||
phaseOpinion = getItemValue(0,0,"secondopinion");
|
||||
}else if("0050" == "<%=phaseNo%>"){
|
||||
}else if("0060" == "<%=phaseNo%>"){
|
||||
phaseChoice = getItemValue(0,0,"thirdchoice");
|
||||
phaseOpinion = getItemValue(0,0,"thirdopinion");
|
||||
}else if("0020" == "<%=phaseNo%>"){
|
||||
|
||||
@ -0,0 +1,25 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/IncludeBeginMDAJAX.jsp"%><%
|
||||
String codeno = CurPage.getParameter("codeno");
|
||||
String attribute1 = CurPage.getParameter("attribute1");
|
||||
String selectOpinion = CurPage.getParameter("selectOpinion");
|
||||
try{
|
||||
String sql = "select c.itemno,c.itemname from code_library c where c.codeno='"+codeno+"' and c.attribute1="+attribute1;
|
||||
ASResultSet res = Sqlca.getASResultSet(new SqlObject(sql));
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("<option value selected>---ÇëÑ¡Ôñ---</option>");
|
||||
while(res.next()){
|
||||
if(res.getString("itemno").toString().equals(selectOpinion)){
|
||||
sb.append("<option value='"+res.getString("itemno")+"' selected>"+res.getString("itemname")+"</option>");
|
||||
}else{
|
||||
sb.append("<option value='"+res.getString("itemno")+"'>"+res.getString("itemname")+"</option>");
|
||||
}
|
||||
}
|
||||
if(sb.length()>0){
|
||||
out.print(sb.toString());
|
||||
}
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
out.print("FALSE");
|
||||
}
|
||||
%><%@ include file="/IncludeEndAJAX.jsp"%>
|
||||
Loading…
x
Reference in New Issue
Block a user