业务申请,修改业务审批表页面

This commit is contained in:
user 2018-07-01 19:08:06 +08:00
parent c62fe8b640
commit 831b9192d9

View File

@ -6,7 +6,6 @@
Content: 示例详情页面
History Log:
*/
String ishistory=CurPage.getParameter("IsHistory");
String nodeNo=CurPage.getParameter("NodeNo");
@ -19,6 +18,8 @@
String sTempletNo = "VI_BUSINESS_APPROVAL";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setHtmlEvent("firstchoice","onChange","changeFirstChoice");
doTemp.setHtmlEvent("secondchoice","onChange","changeSecondChoice");
doTemp.setHtmlEvent("thirdchoice","onChange","changeThirdChoice");
if(null!=ishistory&&ishistory.equals("true")){
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
}
@ -75,16 +76,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);
dwTemp.getDataObject().setVisible("fourchoice", true);
dwTemp.getDataObject().setVisible("fouropinion", true);
dwTemp.getDataObject().setRequired("fourchoice", true);
dwTemp.getDataObject().setRequired("fourdopinion", true);
}
dwTemp.genHTMLObjectWindow(flowunid);
@ -126,6 +120,14 @@
setItemValue(0,0,"firstopinion","");
}
function changeSecondChoice(){
setItemValue(0,0,"secondopinion","");
}
function changeThirdChoice(){
setItemValue(0,0,"thirdopinion","");
}
function save(){
var updatedFields = DisplayFields[0];
if(iV_all(0)){