| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>动作列表</title>
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
- <script type="text/javascript" src="/shares/js/yw/bpm/form/formSerial.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/yw/bpm/promptDefine.js"></script>
- <script type="text/javascript">
- var grid = null;
- $(function () {
- grid = $("#maingrid4").ligerGrid({
- columns: [
- { display: '动作名称', name: 'formulaName', width: 120 },
- { display: '动作表达式', name: 'formulaText', width: 200 },
- { display: '备注', name: 'remark', width: 150 },
- { display: '动作类型', name: 'type.dataName', width: 150,render: function (row){
- var html = row.type.dataName;
- return html;
- } },
- {
- display: '操作', isAllowHide: false,
- render: function (row)
- {
- var html = '<a href=\"#\" onclick=\"window.parent.parent.f_addTab(new Date().getTime(), \'修改动作\', \'${pageContext.request.contextPath }/FormFormulaAction.do?task=toEdit&formulaId='
- + row.formulaId + '&formId=' + row.formId + '&tabid='+getCurrentTabId()+'\');\">编辑</a> ';
- html += '<a href=\"#\" onclick=\"window.parent.parent.f_addTab(new Date().getTime(), \'查看动作\', \'${pageContext.request.contextPath }/FormFormulaAction.do?task=info&formulaId='
- + row.formulaId + '&formId=' + row.formId + '&tabid='+getCurrentTabId()+'\');\">查看</a> ';
- html += '<a href=\"#\" onclick=\"if(confirm(\'确定删除该动作?\')){deleteFormula('+row.formulaId+','+row.formId+');}\">删除</a>';
- return html;
- }
- }
- ],
- pageSize:20,
- url: 'FormFormulaAction.do?task=listFormula&time=' + new Date().getTime()+'&formId=${requestScope.formId}',
- parms: [{name: "formulaName", value: ""}],
- pageParmName: 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
- width: '99.9%',
- height: '99%',//getParentHeight()-67,
- onError: function(){alert("数据加载失败,请刷新页面!");}
- });
- $("#pageloading").hide();
- });
-
- function searchByKword(){
- grid.set("parms", [{name: "formulaName", value: encodeURI($("#formulaName").val())}]);
- grid.set("newPage", "1");
- grid.loadData(true);
- }
- function searchAll() {
- $("#formulaName").val("");
- searchByKword();
- }
- function deleteFormula(formulaId,formId){
- operate("FormFormulaAction.do", {"task": "delete", "formulaId": formulaId, "formId": formId});
- }
- </script>
- </head>
- <body>
- <div class="container-layout">
- <div id="title" class="form-button" style="width: 100%;">
- <input type="button" class="l-button" style="width: 100px;" value="创建动作" onclick="window.parent.parent.f_addTab(new Date().getTime(), '创建动作', '${pageContext.request.contextPath }/FormFormulaAction.do?task=toCreate&formId=${requestScope.formId}&tabid=' + getCurrentTabId());"/>
- </div>
- <div class="default_search" style="margin: 0; width: 100%;">
- <ul class="list_search">
- <li class="title" style="width: 90px;">动作名称:</li>
- <li class="text">
- <input type="text" id="formulaName" name="formulaName" value="">
- </li>
- </ul>
- <ul>
- <li class="search-button">
- <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
- <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
- </li>
- </ul>
- </div><div style="clear: both;">
- <div id="maingrid4" style="margin:0; padding:0"></div>
- </div>
- <div style="display:none;">
- <!-- g data total ttt -->
- </div>
- </div>
- <%@ include file="/include/message.jsp"%>
- </body>
- </html>
|