jsp页面内容显隐总结

2024-01-29 06:48
文章标签 总结 页面 内容 jsp 显隐

本文主要是介绍jsp页面内容显隐总结,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

选中grid某条记录按钮显隐

< open:grid property ="record" caption ="查询结果" width ="100%" keylist ="zhuanjia_id" nowrap ="true" navbar ="top"  fixrow ="true" sortColumn ="*" onselect ="func_grid_select()">
function func_grid_select(){var shenhezt=getFormFieldValues("record:shenhezt" );var shenhejg=getFormFieldValues("record:shenhejg" );if((shenhezt!="02" &&shenhejg!="01") || (shenhezt!="03" &&shenhejg!="01")){$( "input[name='select-key:zhuanru']" ).attr("disabled", true);$( "input[name='select-key:zhuanjiash']" ).attr("disabled", false);return;}else{$( "input[name='select-key:zhuanru']" ).attr("disabled", false);$( "input[name='select-key:zhuanjiash']" ).attr("disabled", true);return;}
}

控制按钮显隐

$("#btn_submit").attr( "disabled" ,true);//控制按钮显隐

控制页面中某些内容显隐

var processDefinitionKey = getFormFieldValue("task-record:processDefinitionKey");
if(processDefinitionKey!=''){document.getElementById("spjl").style.display = "";
}else{document.getElementById("spjl").style.display = "none";
}<div id="spjl" style="display: none;"><div class="form-title" ><img src="<%= titleImagePath %>/i-note-dbcheck.png"/>记录</div><div class="form-body"><open:grid property="history-record" caption="流程任务" keylist="tian_spxx_id" sortColumn="tianbh"  width="100%;" style="" ><open:cell property="tianbh" caption="编号" style="width:7%" />     <open:cell property="name" caption="名称" style="width:8%" /><open:cell property="starttime" caption="开始时间" style="width:6%" /><open:cell property="createtime" caption="创建时间" style="width:6%"/><open:cell property="zhixingr" caption="执行人" style="width:7%" valueset="COMMON_YHLIST"/><open:cell property="shenpijl" caption="结论" style="width:5%" valueset="#8=同意;7=不同意;2=审批通过;4=不通过;3=提案修改"/><open:cell property="shenpiyj" caption="意见" style="width:15%"/></open:grid></div>
</div>

控制table某几行显示以及按钮内容变化

var isGaojicx=true;//高级查询//更多查询条件function func_more(){// 高级查询if(isGaojicx){$(".ycang").show();$('input[name=more]').val("默认条件");}// 简单查询else{$(".ycang").hide();$('input[name=more]').val("更多条件");}isGaojicx=!isGaojicx;
}<input type="button" name="more" class="btn btn-primary" value="更多条件" onclick="func_more()"/><tr class="ycang"><th width="10%">名称</th><td width="40%"><open:text property="famingmc" caption="名称" style="width:314px;" /></td><th width="10%">类型</th><td width="40%"><open:checkbox property="zhuanlilx" valueset="类型" /></td>
</tr>

这篇关于jsp页面内容显隐总结的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/656075

相关文章

HarmonyOS学习(七)——UI(五)常用布局总结

自适应布局 1.1、线性布局(LinearLayout) 通过线性容器Row和Column实现线性布局。Column容器内的子组件按照垂直方向排列,Row组件中的子组件按照水平方向排列。 属性说明space通过space参数设置主轴上子组件的间距,达到各子组件在排列上的等间距效果alignItems设置子组件在交叉轴上的对齐方式,且在各类尺寸屏幕上表现一致,其中交叉轴为垂直时,取值为Vert

学习hash总结

2014/1/29/   最近刚开始学hash,名字很陌生,但是hash的思想却很熟悉,以前早就做过此类的题,但是不知道这就是hash思想而已,说白了hash就是一个映射,往往灵活利用数组的下标来实现算法,hash的作用:1、判重;2、统计次数;

如何在页面调用utility bar并传递参数至lwc组件

1.在app的utility item中添加lwc组件: 2.调用utility bar api的方式有两种: 方法一,通过lwc调用: import {LightningElement,api ,wire } from 'lwc';import { publish, MessageContext } from 'lightning/messageService';import Ca

git使用的说明总结

Git使用说明 下载安装(下载地址) macOS: Git - Downloading macOS Windows: Git - Downloading Windows Linux/Unix: Git (git-scm.com) 创建新仓库 本地创建新仓库:创建新文件夹,进入文件夹目录,执行指令 git init ,用以创建新的git 克隆仓库 执行指令用以创建一个本地仓库的

二分最大匹配总结

HDU 2444  黑白染色 ,二分图判定 const int maxn = 208 ;vector<int> g[maxn] ;int n ;bool vis[maxn] ;int match[maxn] ;;int color[maxn] ;int setcolor(int u , int c){color[u] = c ;for(vector<int>::iter

整数Hash散列总结

方法:    step1  :线性探测  step2 散列   当 h(k)位置已经存储有元素的时候,依次探查(h(k)+i) mod S, i=1,2,3…,直到找到空的存储单元为止。其中,S为 数组长度。 HDU 1496   a*x1^2+b*x2^2+c*x3^2+d*x4^2=0 。 x在 [-100,100] 解的个数  const int MaxN = 3000

状态dp总结

zoj 3631  N 个数中选若干数和(只能选一次)<=M 的最大值 const int Max_N = 38 ;int a[1<<16] , b[1<<16] , x[Max_N] , e[Max_N] ;void GetNum(int g[] , int n , int s[] , int &m){ int i , j , t ;m = 0 ;for(i = 0 ;

两个月冲刺软考——访问位与修改位的题型(淘汰哪一页);内聚的类型;关于码制的知识点;地址映射的相关内容

1.访问位与修改位的题型(淘汰哪一页) 访问位:为1时表示在内存期间被访问过,为0时表示未被访问;修改位:为1时表示该页面自从被装入内存后被修改过,为0时表示未修改过。 置换页面时,最先置换访问位和修改位为00的,其次是01(没被访问但被修改过)的,之后是10(被访问了但没被修改过),最后是11。 2.内聚的类型 功能内聚:完成一个单一功能,各个部分协同工作,缺一不可。 顺序内聚:

go基础知识归纳总结

无缓冲的 channel 和有缓冲的 channel 的区别? 在 Go 语言中,channel 是用来在 goroutines 之间传递数据的主要机制。它们有两种类型:无缓冲的 channel 和有缓冲的 channel。 无缓冲的 channel 行为:无缓冲的 channel 是一种同步的通信方式,发送和接收必须同时发生。如果一个 goroutine 试图通过无缓冲 channel

9.8javaweb项目总结

1.主界面用户信息显示 登录成功后,将用户信息存储在记录在 localStorage中,然后进入界面之前通过js来渲染主界面 存储用户信息 将用户信息渲染在主界面上,并且头像设置跳转,到个人资料界面 这里数据库中还没有设置相关信息 2.模糊查找 检测输入框是否有变更,有的话调用方法,进行查找 发送检测请求,然后接收的时候设置最多显示四个类似的搜索结果