| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <div id="main_service_list" class="easyui-layout" fit="true">
- <div region="center" style="padding:0px;border:0px">
- <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">
- <t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="项目" field="projectid" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="项目" field="projectName" queryMode="single" dictionary="t_b_project,id,name" width="120"></t:dgCol>
- <t:dgCol title="服务类型" field="servicetypedetail" queryMode="single" dictionary="servicetypedetail" width="120"></t:dgCol>
- <t:dgCol title="服务编码" field="code" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="服务名称" field="name" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="操作" field="opt"></t:dgCol>
- <t:dgDelOpt title="删除" url="projectServiceController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
- <t:dgFunOpt funname="showDeviceList(id,projectid)" title="查看设备" urlclass="ace_button" urlfont="fa-user"></t:dgFunOpt>
- <t:dgToolBar title="录入" icon="icon-add" operationCode="add" url="projectServiceController.do?goAdd" funname="add"></t:dgToolBar>
- <t:dgToolBar title="修改" icon="icon-edit" operationCode="edit" url="projectServiceController.do?goUpdate" funname="update"></t:dgToolBar>
- <%-- <t:dgToolBar title="批量删除" icon="icon-remove" operationCode="remove" url="projectServiceController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar> --%>
- <t:dgToolBar title="查看" icon="icon-search" url="projectServiceController.do?goUpdate" funname="detail"></t:dgToolBar>
- <%-- <t:dgToolBar title="导入" icon="icon-putout" operationCode="put" funname="ImportXls"></t:dgToolBar>
- <t:dgToolBar title="导出" icon="icon-put" operationCode="put" funname="ExportXls"></t:dgToolBar>
- <t:dgToolBar title="模板下载" icon="icon-putout" operationCode="putout" funname="ExportXlsByT"></t:dgToolBar> --%>
- </t:datagrid>
- </div>
- </div>
- <div data-options="region:'east',
- title:'设备明细',
- collapsed:true,
- split:true,
- border:false,
- onExpand : function(){
- li_east = 1;
- },
- onCollapse : function() {
- li_east = 0;
- }"
- style="width: 300px; overflow: hidden;" id="eastPanel">
- <div class="easyui-panel" style="padding:0px;border:0px" fit="true" border="false" id="deviceListpanel"></div>
- </div>
- <div id="pinjie1">
- <div name="pinjie2" style="padding:3px; height: auto" class="datagrid-toolbar">
- <div name="searchColums" style="margin:23px 0 18px 0;margin-top: 15px;margin-bottom: 8px;">
- <%-- <input type="hidden" id="orgCode" name="orgCode" value="${orgCode}"> --%>
- <table style="padding:0px" cellpadding="0" cellspacing="1" >
- <tbody>
- <tr>
- <td align="right" style="width: 74px;">
- <label class="Validform_label">
- 项目名称:
- </label>
- </td>
- <td class="value" colspan="3">
- <input readonly="true" type="text" id="projectName" name=""projectName"" style="width: 157px" placeholder="请选择项目名称" onclick="openDepartmentSelect()">
- <input id="projectid" name="projectid" type="hidden" value="">
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect()">选择</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean()">清空</a>
- </td>
- <td align="right" style="width: 74px;">
- <label class="Validform_label">
- 服务名称:
- </label>
- </td>
- <td class="value">
- <input id="name" name="name" type="text" style="width: 157px; " class="inputxt" placeholder="服务名称">
- </td>
- <td align="right" style="width: 74px;">
- <label class="Validform_label">
- 服务类型:
- </label>
- </td>
- <td class="value">
- <t:dictSelect field="servicetypedetail" type="list" typeGroupCode="servicetypedetail" hasLabel="false" title="服务类型"></t:dictSelect>
- </td>
- </tbody>
- </table>
- </div>
- </div>
- </div>
-
- <div id="pinjiechaxun1">
- <div name="pinjiechaxun2" style="padding:3px; height: auto" class="datagrid-toolbar">
- <span style="float:right;margin-bottom:4px;">
- <span>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-search" id="projectServiceListSearch" onclick="projectServiceListsearch()">查询</a>
- </span>
- <span>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-reload " id="projectServiceListRedo" onclick="searchReset('projectServiceList')">重置</a>
- </span>
- </div>
- </div>
-
-
- <script src = "webpage/cn/com/lzt/projectservice/projectServiceList.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- var datagrid = $("#projectServiceListtb");
- datagrid.prepend($("#pinjie1 div[name='pinjie2']").html());
- $("#pinjie1").html('');
-
-
- datagrid.children(".datagrid-toolbar").children("span:first").after($("#pinjiechaxun1 div[name='pinjiechaxun2']").html());
- $("#pinjiechaxun1").html('');
- });
- //选择项目名称,列表================
- function openDepartmentSelect() {
- //$.dialog.setting.zIndex = getzIndex();
- var orgIds = $("#projectid").val();
- /* var orgCode = $("#orgCode").val();*/
- $.dialog({
- content: 'url:publicpageController.do?projectSelect&ids='+orgIds, zIndex: getzIndex(), title: '项目名称列表', lock: true, width: '600px', height: '350px', opacity: 0.4, button: [
- {name: '<t:mutiLang langKey="common.confirm"/>', callback: function (){
- var iframe = this.iframe.contentWindow;
- if(iframe.getReason().length>0){
- var strData=eval(iframe.getReason());
- for(var key in strData[0]){
- if(key=="strId"){
- $("#projectid").val(strData[0][key]);
- }else if(key=="strName"){
- $("#projectName").val(strData[0][key]);
- }
- }
- }
- }, focus: true},
- {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
-
- ]}).zindex();
- }
- function callbackClean(){
- $('#projectName').val('');
- $('#projectid').val('');
- }
- function showDeviceList(id,pid){
- var title = '设备明细';
- if(li_east == 0 || $('#main_service_list').layout('panel','east').panel('options').title != title){
- $('#main_service_list').layout('expand','east');
- }
- <%--$('#eastPanel').panel('setTitle','<t:mutiLang langKey="member.list"/>');--%>
- $('#main_service_list').layout('panel','east').panel('setTitle', title);
- $('#main_service_list').layout('panel','east').panel('resize', {width: 300});
- $('#deviceListpanel').panel("refresh", "projectServiceDeviceController.do?list&serviceid=" + id+"&projectid="+pid);
- }
-
- //导入
- function ImportXls() {
- openuploadwin('Excel导入', 'projectServiceController.do?upload', "projectServiceList");
- }
- //导出
- function ExportXls() {
- JeecgExcelExport("projectServiceController.do?exportXls","projectServiceList");
- }
- //模板下载
- function ExportXlsByT() {
- JeecgExcelExport("projectServiceController.do?exportXlsByT","projectServiceList");
- }
- </script>
|