listMeetingRoom.jsp 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>会议室列表</title>
  8. <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  10. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  12. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  13. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
  14. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
  15. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  16. <script type="text/javascript" src="/shares/js/constant.js"></script>
  17. <script type="text/javascript" src="/shares/js/common.js"></script>
  18. <script type="text/javascript">
  19. function deleteRow(obj)
  20. {
  21. if(confirm("确定要删除?")){
  22. window.parent.f_addTab(new Date().getTime(), '删除会议室', '${pageContext.request.contextPath }/MeetingRoomAction.do?task=del&meeting_room_id='+obj+'&tabid=' + getCurrentTabId());
  23. }
  24. }
  25. </script>
  26. <script type="text/javascript">
  27. var grid = null;
  28. $(function () {
  29. grid = $("#maingrid4").ligerGrid({
  30. columns: [
  31. { display: '会议室名称', name: 'meeting_room_name', width: 200 },
  32. { display: '创建人', name: 'name', width: 150 },
  33. { display: '会议室状态', isAllowHide: false, width: 150,
  34. render: function (row){
  35. if (row.meeting_room_type == 0){
  36. return row.desc;
  37. } else if (row.meeting_room_type == 1){
  38. return '<font color=\"red\"><b>' + row.desc + '</b><font>';
  39. }
  40. }
  41. },
  42. { display: '备注', name: 'meeting_room_remark', width: 200 },
  43. { display: '创建时间', name: 'meeting_room_create_date', width: 100 },
  44. {
  45. display: '操作', isAllowHide: false,
  46. render: function (row)
  47. {
  48. var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改会议室\', \'${pageContext.request.contextPath }/MeetingRoomAction.do?task=toEdit&meeting_room_id='
  49. + row.meeting_room_id + '&tabid=' + getCurrentTabId()+'\');\">编辑</a>&nbsp;';
  50. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看会议室\', \'${pageContext.request.contextPath }/MeetingRoomAction.do?task=info&meeting_room_id='
  51. + row.meeting_room_id + '\');\">查看</a>&nbsp;';
  52. html += '<a href=\"#\" onclick=\"deleteRow('+row.meeting_room_id+')\">删除</a>&nbsp;';
  53. return html;
  54. }
  55. }
  56. ],
  57. pageSize:20,
  58. url: 'MeetingRoomAction.do?task=list&time=' + new Date().getTime(),
  59. //where : f_getWhere(),
  60. //data: $.extend(true,{},CustomersData),
  61. //onSuccess: ,
  62. pageParmName: 'p', //页索引参数名,(提交给服务器)
  63. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  64. width: '99.9%',
  65. height: '99%'
  66. });
  67. $("#pageloading").hide();
  68. $("#sendbegin").ligerDateEditor({
  69. labelWidth : 128,
  70. labelAlign : 'right',
  71. showTime : false
  72. });
  73. $("#sendend").ligerDateEditor({
  74. labelWidth : 128,
  75. labelAlign : 'right'
  76. });
  77. loadTypeTree("managedeptButton",{type:"detpusersingle",tab:"1,2",backId:"userId",backName:"user"});
  78. $("#desc").ligerComboBox({
  79. url :'MeetingRoomAction.do?task=getData',
  80. isShowCheckBox: true,
  81. isMultiSelect: true,
  82. textField : 'desc',
  83. valueField : 'data_id',
  84. valueFieldID: 'desc_ids',
  85. split :','
  86. });
  87. });
  88. function searchByKword(){
  89. var s = "";
  90. var meeting_room_name = document.getElementById("meeting_room_name");//会议室名称
  91. var desc_ids = document.getElementById("desc_ids");//会议室状态
  92. var userId = document.getElementById("userId");
  93. var sendbegin = document.getElementById("sendbegin");
  94. var sendend = document.getElementById("sendend");
  95. if(meeting_room_name.value != "" && typeof(meeting_room_name.value) != "undefined" ){
  96. s += "&meeting_room_name=" + encodeURI(encodeURI(meeting_room_name.value));
  97. }
  98. if(desc_ids.value != "" && typeof(desc_ids.value) != "undefined" ){
  99. s += "&desc_ids=" + encodeURI(encodeURI(desc_ids.value));
  100. }
  101. if(userId.value != "" && typeof(userId.value) != "undefined" ){
  102. s += "&userId=" + encodeURI(encodeURI(userId.value));
  103. }
  104. if(sendbegin.value != "" && typeof(sendbegin.value) != "undefined" ){
  105. s += "&sendbegin=" + encodeURI(encodeURI(sendbegin.value));
  106. }
  107. if(sendend.value != "" && typeof(sendend.value) != "undefined" ){
  108. s += "&sendend=" + encodeURI(encodeURI(sendend.value));
  109. }
  110. $(function () {
  111. grid = $("#maingrid4").ligerGrid({
  112. columns: [
  113. { display: '会议室名称', name: 'meeting_room_name', width: 200 },
  114. { display: '创建人', name: 'name', width: 150 },
  115. { display: '会议室状态', isAllowHide: false, width: 150,
  116. render: function (row){
  117. if (row.meeting_room_type == 0){
  118. return row.desc;
  119. } else if (row.meeting_room_type == 1){
  120. return '<font color=\"red\"><b>' + row.desc + '</b><font>';
  121. }
  122. }
  123. },
  124. { display: '备注', name: 'meeting_room_remark', width: 200 },
  125. { display: '创建时间', name: 'meeting_room_create_date', width: 100 },
  126. {
  127. display: '操作', isAllowHide: false,
  128. render: function (row)
  129. {
  130. var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改会议室\', \'${pageContext.request.contextPath }/MeetingRoomAction.do?task=toEdit&meeting_room_id='
  131. + row.meeting_room_id + '&tabid=' + getCurrentTabId()+'\');\">编辑</a>&nbsp;';
  132. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看会议室\', \'${pageContext.request.contextPath }/MeetingRoomAction.do?task=info&meeting_room_id='
  133. + row.meeting_room_id + '\');\">查看</a>&nbsp;';
  134. html += '<a href=\"#\" onclick=\"deleteRow('+row.meeting_room_id+')\">删除</a>&nbsp;';
  135. return html;
  136. }
  137. }
  138. ],
  139. pageSize:20,
  140. url: 'MeetingRoomAction.do?task=list&time=' + new Date().getTime()+s,
  141. //where : f_getWhere(),
  142. //data: $.extend(true,{},CustomersData),
  143. //onSuccess: ,
  144. pageParmName: 'p', //页索引参数名,(提交给服务器)
  145. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  146. width: '99.9%',
  147. height: '99%'
  148. });
  149. $("#pageloading").hide();
  150. });
  151. }
  152. </script>
  153. </head>
  154. <body >
  155. <div id="title" class="form-button">
  156. <input type="button" class="l-button" value="新增会议室" onclick="window.parent.f_addTab(new Date().getTime(), '新增会议室', '${pageContext.request.contextPath }/MeetingRoomAction.do?task=toCreate&tabid=' + getCurrentTabId());"/>
  157. </div>
  158. <div class="container-layout">
  159. <div class="default_search" style="margin-bottom: 0px;">
  160. <ul class="list_search">
  161. <li class="title" >会议室名称:</li>
  162. <li class="text">
  163. <input type="text" name="meeting_room_name" id="meeting_room_name" >
  164. </li>
  165. </ul>
  166. <ul class="list_search" style="width: 400px;">
  167. <li class="title" style="width: 90px;">创建时间:</li>
  168. <li class="text" style="width: 135px;">
  169. <input type="text" id="sendbegin" name="sendbegin" style="width: 130px;" />
  170. <li class="title" style="width: 15px;">至&nbsp;&nbsp;
  171. </li>
  172. <li class="text" style="width: 135px;">
  173. <input type="text" id="sendend" name="sendend" style="width: 130px;" />
  174. </li>
  175. </ul>
  176. <ul class="list_search" style="width: 340px;">
  177. <li class="title" >创建人:</li>
  178. <li class="text" style="width: 241px;">
  179. <input type="text" name="user" id="user" readonly="readonly" style="width: 130px"readonly="readonly" style="width: 130px">
  180. <input type="hidden" name="userId" id="userId" >&nbsp;&nbsp;
  181. <input type="button" class="l-button" value="请选择" id="managedeptButton" name="managedeptButton" />
  182. </li>
  183. </ul>
  184. <ul class="list_search" style="width: 300px;">
  185. <li class="title" >会议室状态:</li>
  186. <li class="text">
  187. <input type="text" name="desc" id="desc" >
  188. <input type="hidden" name="desc_ids" id="desc_ids" >
  189. </li>
  190. </ul>
  191. <ul>
  192. <li class="search-button">
  193. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  194. </li>
  195. </ul>
  196. </div>
  197. <div id="searchbar">
  198. <div style="clear: both;margin-right: 2px;margin-bottom:0px;margin-left:0px;margin-top:0px; padding: 0">
  199. <div id="maingrid4" style="margin:0; padding:0"></div>
  200. </div>
  201. </div>
  202. </div>
  203. <%@ include file="/include/message.jsp"%>
  204. </body>
  205. </html>