projectServiceList.jsp 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  4. <div id="main_service_list" class="easyui-layout" fit="true">
  5. <div region="center" style="padding:0px;border:0px">
  6. <t:datagrid name="projectServiceList" checkbox="false" pageSize="20" pagination="true" sortOrder="desc" sortName="createDate" fitColumns="true" title="项目外包服务" actionUrl="projectServiceController.do?datagrid" idField="id" fit="true" queryMode="group">
  7. <t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
  8. <t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120"></t:dgCol>
  9. <t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120"></t:dgCol>
  10. <t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
  11. <t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
  12. <t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
  13. <t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
  14. <t:dgCol title="项目" field="projectid" hidden="true" queryMode="single" width="120"></t:dgCol>
  15. <t:dgCol title="项目" field="projectName" queryMode="single" dictionary="t_b_project,id,name" width="120"></t:dgCol>
  16. <t:dgCol title="服务类型" field="servicetypedetail" queryMode="single" dictionary="servicetypedetail" width="120"></t:dgCol>
  17. <t:dgCol title="服务编码" field="code" queryMode="single" width="120"></t:dgCol>
  18. <t:dgCol title="服务名称" field="name" queryMode="single" width="120"></t:dgCol>
  19. <t:dgCol title="操作" field="opt"></t:dgCol>
  20. <t:dgDelOpt title="删除" url="projectServiceController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
  21. <t:dgFunOpt funname="showDeviceList(id,projectid)" title="查看设备" urlclass="ace_button" urlfont="fa-user"></t:dgFunOpt>
  22. <t:dgToolBar title="录入" icon="icon-add" operationCode="add" url="projectServiceController.do?goAdd" funname="add"></t:dgToolBar>
  23. <t:dgToolBar title="修改" icon="icon-edit" operationCode="edit" url="projectServiceController.do?goUpdate" funname="update"></t:dgToolBar>
  24. <%-- <t:dgToolBar title="批量删除" icon="icon-remove" operationCode="remove" url="projectServiceController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar> --%>
  25. <t:dgToolBar title="查看" icon="icon-search" url="projectServiceController.do?goUpdate" funname="detail"></t:dgToolBar>
  26. <%-- <t:dgToolBar title="导入" icon="icon-putout" operationCode="put" funname="ImportXls"></t:dgToolBar>
  27. <t:dgToolBar title="导出" icon="icon-put" operationCode="put" funname="ExportXls"></t:dgToolBar>
  28. <t:dgToolBar title="模板下载" icon="icon-putout" operationCode="putout" funname="ExportXlsByT"></t:dgToolBar> --%>
  29. </t:datagrid>
  30. </div>
  31. </div>
  32. <div data-options="region:'east',
  33. title:'设备明细',
  34. collapsed:true,
  35. split:true,
  36. border:false,
  37. onExpand : function(){
  38. li_east = 1;
  39. },
  40. onCollapse : function() {
  41. li_east = 0;
  42. }"
  43. style="width: 300px; overflow: hidden;" id="eastPanel">
  44. <div class="easyui-panel" style="padding:0px;border:0px" fit="true" border="false" id="deviceListpanel"></div>
  45. </div>
  46. <div id="pinjie1">
  47. <div name="pinjie2" style="padding:3px; height: auto" class="datagrid-toolbar">
  48. <div name="searchColums" style="margin:23px 0 18px 0;margin-top: 15px;margin-bottom: 8px;">
  49. <%-- <input type="hidden" id="orgCode" name="orgCode" value="${orgCode}"> --%>
  50. <table style="padding:0px" cellpadding="0" cellspacing="1" >
  51. <tbody>
  52. <tr>
  53. <td align="right" style="width: 74px;">
  54. <label class="Validform_label">
  55. 项目名称:
  56. </label>
  57. </td>
  58. <td class="value" colspan="3">
  59. <input readonly="true" type="text" id="projectName" name=""projectName"" style="width: 157px" placeholder="请选择项目名称" onclick="openDepartmentSelect()">
  60. <input id="projectid" name="projectid" type="hidden" value="">
  61. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect()">选择</a>
  62. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean()">清空</a>
  63. </td>
  64. <td align="right" style="width: 74px;">
  65. <label class="Validform_label">
  66. 服务名称:
  67. </label>
  68. </td>
  69. <td class="value">
  70. <input id="name" name="name" type="text" style="width: 157px; " class="inputxt" placeholder="服务名称">
  71. </td>
  72. <td align="right" style="width: 74px;">
  73. <label class="Validform_label">
  74. 服务类型:
  75. </label>
  76. </td>
  77. <td class="value">
  78. <t:dictSelect field="servicetypedetail" type="list" typeGroupCode="servicetypedetail" hasLabel="false" title="服务类型"></t:dictSelect>
  79. </td>
  80. </tbody>
  81. </table>
  82. </div>
  83. </div>
  84. </div>
  85. <div id="pinjiechaxun1">
  86. <div name="pinjiechaxun2" style="padding:3px; height: auto" class="datagrid-toolbar">
  87. <span style="float:right;margin-bottom:4px;">
  88. <span>
  89. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-search" id="projectServiceListSearch" onclick="projectServiceListsearch()">查询</a>
  90. </span>
  91. <span>
  92. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-reload " id="projectServiceListRedo" onclick="searchReset('projectServiceList')">重置</a>
  93. </span>
  94. </div>
  95. </div>
  96. <script src = "webpage/cn/com/lzt/projectservice/projectServiceList.js"></script>
  97. <script type="text/javascript">
  98. $(document).ready(function(){
  99. var datagrid = $("#projectServiceListtb");
  100. datagrid.prepend($("#pinjie1 div[name='pinjie2']").html());
  101. $("#pinjie1").html('');
  102. datagrid.children(".datagrid-toolbar").children("span:first").after($("#pinjiechaxun1 div[name='pinjiechaxun2']").html());
  103. $("#pinjiechaxun1").html('');
  104. });
  105. //选择项目名称,列表================
  106. function openDepartmentSelect() {
  107. //$.dialog.setting.zIndex = getzIndex();
  108. var orgIds = $("#projectid").val();
  109. /* var orgCode = $("#orgCode").val();*/
  110. $.dialog({
  111. content: 'url:publicpageController.do?projectSelect&ids='+orgIds, zIndex: getzIndex(), title: '项目名称列表', lock: true, width: '600px', height: '350px', opacity: 0.4, button: [
  112. {name: '<t:mutiLang langKey="common.confirm"/>', callback: function (){
  113. var iframe = this.iframe.contentWindow;
  114. if(iframe.getReason().length>0){
  115. var strData=eval(iframe.getReason());
  116. for(var key in strData[0]){
  117. if(key=="strId"){
  118. $("#projectid").val(strData[0][key]);
  119. }else if(key=="strName"){
  120. $("#projectName").val(strData[0][key]);
  121. }
  122. }
  123. }
  124. }, focus: true},
  125. {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
  126. ]}).zindex();
  127. }
  128. function callbackClean(){
  129. $('#projectName').val('');
  130. $('#projectid').val('');
  131. }
  132. function showDeviceList(id,pid){
  133. var title = '设备明细';
  134. if(li_east == 0 || $('#main_service_list').layout('panel','east').panel('options').title != title){
  135. $('#main_service_list').layout('expand','east');
  136. }
  137. <%--$('#eastPanel').panel('setTitle','<t:mutiLang langKey="member.list"/>');--%>
  138. $('#main_service_list').layout('panel','east').panel('setTitle', title);
  139. $('#main_service_list').layout('panel','east').panel('resize', {width: 300});
  140. $('#deviceListpanel').panel("refresh", "projectServiceDeviceController.do?list&serviceid=" + id+"&projectid="+pid);
  141. }
  142. //导入
  143. function ImportXls() {
  144. openuploadwin('Excel导入', 'projectServiceController.do?upload', "projectServiceList");
  145. }
  146. //导出
  147. function ExportXls() {
  148. JeecgExcelExport("projectServiceController.do?exportXls","projectServiceList");
  149. }
  150. //模板下载
  151. function ExportXlsByT() {
  152. JeecgExcelExport("projectServiceController.do?exportXlsByT","projectServiceList");
  153. }
  154. </script>