| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264 |
- <%@ 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>
- <style type="text/css">
- .datagrid-btable .datagrid-cell{text-overflow:ellipsis;white-space: nowrap;}
- </style>
- <script type="text/javascript" src="<%=basePath%>/plug-in/jquery/jquery.jqprint.js"></script>
- <script src = "plug-in/tools/jquery.tips.js"></script>
- <%-- <script type="text/javascript" src="<%=basePath%>/plug-in/jquery/jquery-migrate-1.2.1.min.js"></script> --%>
- <div class="easyui-layout" fit="true">
- <div region="center" style="padding:0px;border:0px">
- <t:datagrid name="projecttaskList" pageSize="20" sortName="code" sortOrder="desc" checkbox="false" pagination="true" fitColumns="true" title="项目工作" actionUrl="projecttaskController.do?datagrid&tasktype=${tasktype}" idField="id" fit="true" queryMode="group" onLoadSuccess="onloaded">
- <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="code" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="工作名称" field="name" queryMode="single" width="220"></t:dgCol>
- <t:dgCol title="工作描述" field="description" queryMode="single" width="240" showLen="18"></t:dgCol>
- <t:dgCol title="工作计划" field="taskplanid" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="消息时间" field="msgtime" hidden="true" formatter="yyyy-MM-dd hh:mm" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="计划开始时间" field="planstarttime" hidden="true" formatter="yyyy-MM-dd hh:mm" queryMode="group" width="120"></t:dgCol>
- <t:dgCol title="计划完成时间" field="planendtime" formatter="yyyy-MM-dd hh:mm" queryMode="group" width="120"></t:dgCol>
- <t:dgCol title="实际开始时间" field="exestarttime" hidden="true" formatter="yyyy-MM-dd hh:mm" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="实际完成时间" field="exeendtime" formatter="yyyy-MM-dd hh:mm" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="任务所属人" field="ownername" queryMode="single" width="70"></t:dgCol>
- <t:dgCol title="执行人" field="executer" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="所属项目及部门" field="projectname" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="工作状态" field="taskstatus" queryMode="single" dictionary="taskstatus" width="70"></t:dgCol>
- <t:dgCol title="工作类型" field="tasktype" hidden="true" queryMode="single" dictionary="tasktype" width="120"></t:dgCol>
- <t:dgCol title="工作来源" field="sourceid" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="来源类型" field="sourcetype" hidden="true" queryMode="single" dictionary="tasksourcetype" width="120"></t:dgCol>
- <t:dgCol title="关闭原因" field="closemsg" hidden="true" queryMode="single" width="200"></t:dgCol>
- <t:dgCol title="操作" field="opt" ></t:dgCol>
- <%-- <t:dgDelOpt title="删除" url="projecttaskController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/> --%>
- <t:dgFunOpt exp="taskstatus#eq#0" urlclass="ace_button" urlfont="fa-cog" funname="closeTask(id)" title="关闭工作" />
- <t:dgFunOpt exp="taskstatus#ne#20" urlclass="ace_button" urlfont="fa-arrow-circle-o-right" funname="exeTask(id)" title="开始执行" />
- <t:dgOpenOpt exp="taskstatus#eq#20" width="600" height="600" url="taskResultController.do?list&taskid={id}" urlclass="ace_button" urlfont="fa-check" title="查看结果"></t:dgOpenOpt>
- <%-- <t:dgToolBar title="录入" icon="icon-add" operationCode="add" url="projecttaskController.do?goAdd" funname="add"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="修改" icon="icon-edit" operationCode="edit" url="projecttaskController.do?goUpdate" funname="update"></t:dgToolBar> --%>
- <t:dgToolBar title="查看" icon="icon-search" url="projecttaskController.do?goUpdate" funname="detail"></t:dgToolBar>
- <t:dgToolBar title="打印" icon="icon-print" operationCode="print" funname="printall"></t:dgToolBar>
- <%-- <t:dgToolBar title="导入" icon="icon-putout" operationCode="put" funname="ImportXls"></t:dgToolBar>
- <t:dgToolBar title="批量删除" icon="icon-remove" operationCode="remove" url="projecttaskController.do?doBatchDel" funname="deleteALLSelect"></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 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" colspan="3">
- <input readonly="true" type="text" id="ownername" name="ownername" style="width: 157px" placeholder="请选择人员" onclick="openUserSelect()">
- <input id="owner" name="owner" type="hidden" value="">
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="partnerSearch" onclick="openUserSelect()">选择</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="partnerRedo" onclick="callbackCleanUser()">清空</a>
- </td>
- </tr>
- <tr height="50px">
- <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">
- <input id="description" name="description" type="text" style="width: 157px; " class="inputxt" placeholder="工作描述">
- </td>
- <td align="right" style="width: 74px;">
- <label class="Validform_label">
- 计划完成时间
- </label>
- </td>
- <td class="value">
- <input id="planendtime_begin1" name="planendtime_begin1" type="text" style="width: 150px; " class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" >~
- <input id="planendtime_end2" name="planendtime_end2" type="text" style="width: 150px; " class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" >
- </td>
- </tr>
- </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="contractListSearch" onclick="projecttaskListsearch()">查询</a>
- </span>
- <span>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-reload " id="contractListRedo" onclick="searchReset('projecttaskList')">重置</a>
- </span>
- </div>
- </div>
- <script src = "webpage/com/xcgl/projecttask/projecttaskList.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $(":input[name='planendtime_begin']").css("width","150px");
- $(":input[name='planendtime_begin']").css("margin","5px");
- $(":input[name='planendtime_end']").css("width","150px");
- $(":input[name='planendtime_end']").css("margin","5px");
- $(":input[name='taskstatus']").css("width","150px");
- $(":input[name='taskstatus']").css("margin","5px");
- $(":input[name='owner']").css("width","150px");
- $(":input[name='owner']").css("margin","5px");
- $(":input[name='code']").css("width","150px");
- $(":input[name='code']").css("margin","5px");
- $(":input[name='name']").css("width","150px");
- $(":input[name='name']").css("margin","5px");
- $(":input[name='description']").css("width","150px");
- $(":input[name='description']").css("margin","5px");
- $(":input[name='projectid']").css("width","150px");
- $(":input[name='projectid']").css("margin","5px");
- var datagrid = $("#projecttaskListtb");
- 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 detail(title,url, id){
- var rowsData = $('#'+id).datagrid('getSelections');
- // if (rowData.id == '') {
- // tip('请选择查看项目');
- // return;
- // }
-
- if (!rowsData || rowsData.length == 0) {
- tip('请选择查看项目');
- return;
- }
- if (rowsData.length > 1) {
- tip('请选择一条记录再查看');
- return;
- }
- url += '&load=detail&id='+rowsData[0].id;
- createdetailwindow(title,url,'800px','700px');
- }
- //导入
- function ImportXls() {
- openuploadwin('Excel导入', 'projecttaskController.do?upload', "projecttaskList");
- }
- //导出
- function ExportXls() {
- JeecgExcelExport("projecttaskController.do?exportXls","projecttaskList");
- }
- //模板下载
- function ExportXlsByT() {
- JeecgExcelExport("projecttaskController.do?exportXlsByT","projecttaskList");
- }
- //选择项目名称,列表================
- function openDepartmentSelect() {
- var orgIds = $("#projectid").val();
- $.dialog({
- content: 'url:publicpageController.do?departSelect&ids='+orgIds, zIndex: getzIndex(), title: '所属部门列表', lock: true, width: '700px', height: '500px', 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 openUserSelect() {
- var partnerIds = $("#owner").val();
- $.dialog({
- content: 'url:publicpageController.do?userSelect&ids='+partnerIds, zIndex: getzIndex(), title: '人员列表', lock: true, width: '1000px', height: '600px', 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"){
- $("#owner").val(strData[0][key]);
- }else if(key=="strName"){
- $("#ownername").val(strData[0][key]);
- }
- }
- }
- }, focus: true},
- {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
-
- ]}).zindex();
- }
- function callbackCleanUser(){
- $('#ownername').val('');
- $('#owner').val('');
- }
- function onloaded(){
- var _grid = $('#projecttaskList');
- var tableTd = $('div.datagrid-body td[field="name"]');
- tableTd.each(function () {
- var $this = $(this);
- var index = $this.parent('tr').attr('datagrid-row-index');
- var rows = _grid.datagrid('getRows');
- var currentRow = rows[index];
- var content = '<div style="font-size:16px; max-width:700px;word-break: break-all; word-wrap: break-word;">' + currentRow.name + '</div>';
- $this.tips({ content: content, wrapColor: 'black' });
- });
- tableTd = $('div.datagrid-body td[field="description"]');
- tableTd.each(function () {
- var $this = $(this);
- var index = $this.parent('tr').attr('datagrid-row-index');
- var rows = _grid.datagrid('getRows');
- var currentRow = rows[index];
- var content = '<div style="font-size:16px; max-width:700px;word-break: break-all; word-wrap: break-word;">' + currentRow.description + '</div>';
- $this.tips({ content: content, wrapColor: 'black' });
- });
- }
- </script>
|