| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344 |
- <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <style>
- #detail_table tbody td{
- border-color:#e7e7e7;
- border-width: 0 1px 1px 0;
- border-style: solid;
- padding: 10px 8px;
- }
- </style>
- <!DOCTYPE html>
- <html>
- <head>
- <title>weeklyMeeting</title>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <script src="plug-in/layer/layer.js"></script>
- <script>
- function callback() {
- location.reload();
- }
- $(function(){
- if('${diffWeek}'!='0'){
- $('#detail_table').find('input,select').attr('disabled','disabled')
- // $('#addBtn').hide();
- // $('#removeBtn').hide();
- $('#operateSpan').hide();
- }
- $('#urgent').val('${param.urgent}');
- $('#importance').val('${param.importance}');
- $('#executionStatus').val('${param.executionStatus}');
- $('#search').find(':input').bind('keyup', function(event) {
- if (event.keyCode == "13") {
- queryList();
- }
- });
- $('#tableheader td').css('font-size',"12px");
- })
- function viewTask(taskId) {
- var url = 'projecttaskController.do?goExeTaskView&entrance=weeklyMeeting&load=detail&id='+taskId;
- createdetailwindow("查看任务",url, 800,450);
- }
- function reexecution(taskId) {
- $.post('weeklyMeetingController.do?reexecution', {"taskId" : taskId}, function (d) {
- if(d.code == 200){
- location.reload();
- }
- }, "json");
- }
- function revokeTask(taskId) {
- $.post('weeklyMeetingController.do?revokeTask', {"taskId" : taskId}, function (d) {
- if(d.code == 200){
- location.reload();
- }
- }, "json");
- }
- </script>
- </head>
- <body style="background-color:white">
- <div>
- <span id="search">
- <span>
- <span>
- 紧急度:
- </span>
- <select id="urgent" name="urgent">
- <option value="">---请选择---</option>
- <option value="1">1</option>
- <option value="2">2</option>
- <option value="3">3</option>
- <option value="4">4</option>
- <option value="5">5</option>
- </select>
- </span>
- <span>
- <span>
- 重要性:
- </span>
- <select id="importance" name="importance">
- <option value="">---请选择---</option>
- <option value="1">1</option>
- <option value="2">2</option>
- <option value="3">3</option>
- <option value="4">4</option>
- <option value="5">5</option>
- </select>
- </span>
- <span>
- <span>
- 执行状态:
- </span>
- <select id="executionStatus" name="executionStatus">
- <option value="">---请选择---</option>
- <option value="1">未完成</option>
- <option value="20">已完成</option>
- <option value="30">逾期未完成</option>
- <option value="40">逾期已完成</option>
- <option value="50">已撤销</option>
- </select>
- </span>
- </span>
- </div>
- <div style="margin-top:5px;">
- <c:if test="${generalManagerOffice}">
- <span id="operateSpan">
- <a href="#" class="easyui-linkbutton l-btn" icon="icon-add" operationCode="add" id="addBtn" onclick="addRow()">
- <span>添加</span>
- </a>
- <a href="#" class="easyui-linkbutton l-btn" icon="icon-remove" operationCode="remove" id="removeBtn" onclick="removeRow()">
- <span>删除</span>
- </a>
- <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-save" onclick="btn_ok()"> 保 存</a>
- <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-synchronization " onclick="btn_issue()"> 下 发</a>
- </span>
- </c:if>
- <span style="float:right">
- <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-left" onclick="goBefore()" id="upper">
- <span>上一周</span>
- </a>
- <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-right" onclick="goNext()" id="lower">
- <span>下一周</span>
- </a>
- <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-search" onclick="queryList()">
- <span>查询</span>
- </a>
- </span>
- </div>
- <div style="clear:both"></div>
- <div style="margin-top:5px;"></div>
- <t:formvalid formid="formobj" dialog="false" usePlugin="password" layout="table" tiptype="1" tipSweep="true"
- callback="callback"
- action="weeklyMeetingController.do?addAndModify"
- >
- <input type="hidden" id="diffWeek" name="diffWeek" value="${diffWeek}"/>
- <input type="hidden" id="watchType" name="watchType" value="${watchType}"/>
- <input type="hidden" id="weekNum" name="weekNum" value="${weekNum}"/>
- <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
- <table border="0" cellpadding="2" cellspacing="0" id="detail_table" style="width:100%">
- <tr bgcolor="#E6E6E6" style="width:100%;font-weight: bold;font-size:14px;" id="tableheader">
- <td align="center" bgcolor="#EEEEEE" style="width: 25px;">序号</td>
- <td align="center" bgcolor="#EEEEEE" style="width: 25px;">操作</td>
- <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
- 会议时间
- </td>
- <td align="left" bgcolor="#EEEEEE" >
- 会议内容
- </td>
- <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
- 紧急度
- </td>
- <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
- 重要性
- </td>
- <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
- 提出人
- </td>
- <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
- 落实人
- </td>
- <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
- 预计完成时间
- </td>
- <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
- 实际完成时间
- </td>
- <td align="left" bgcolor="#EEEEEE" style="width: 80px;">
- 执行状态
- </td>
- <td align="left" bgcolor="#EEEEEE" style="width: 160px;">
- 操作
- </td>
- </tr>
- <tbody id="add_table">
- <c:if test="${fn:length(list) > 0 }">
- <c:forEach items="${list}" var="poVal" varStatus="stuts">
- <tr id="${poVal.id}">
- <td align="center"><div style="width: 25px;" name="xh">${stuts.index+1 }</div></td>
- <td align="center">
- <input style="width:20px;" type="checkbox" name="ck" <c:if test="${poVal.issue==1||poVal.createBy!=userName}">disabled="disabled"</c:if> />
- </td>
- <td align="left">
- <input type="hidden" name="weeklyMeetingEntitiyList[${stuts.index }].id" id="id${stuts.index }" value="${poVal.id}"/>
- <input type="hidden" name="weeklyMeetingEntitiyList[${stuts.index }].weekNum" value="${poVal.weekNum}"/>
- <input name="weeklyMeetingEntitiyList[${stuts.index }].meetingTime" id="meetingTime${stuts.index }" type="text" readonly="readonly"
- style="width: 80px" class="Wdate" value="<fmt:formatDate value='${poVal.meetingTime}' pattern="yyyy-MM-dd"/>"
- <c:if test="${poVal.createBy==userName}">onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"</c:if>datatype="*" nullmsg="会议时间不可为空!" />
- <label class="Validform_label" style="display: none;">会议时间</label>
- </td>
- <td align="left">
- <input type="text" name="weeklyMeetingEntitiyList[${stuts.index }].meetingContent" id="meetingContent${stuts.index }"
- style="width:98%;" value="${poVal.meetingContent}" <c:if test="${poVal.createBy!=userName}">readonly="readonly"</c:if>/>
- <label class="Validform_label" style="display: none;">会议内容</label>
- </td>
- <td align="left">
- <select name="weeklyMeetingEntitiyList[${stuts.index }].urgent" id="urgent${stuts.index }" style="width:80px;" <c:if test="${poVal.createBy!=userName}">onfocus="this.defaultIndex=this.selectedIndex;" onchange="this.selectedIndex=this.defaultIndex;"</c:if>>
- <option value="1" <c:if test="${poVal.urgent==1}">selected="selected"</c:if>>1</option>
- <option value="2" <c:if test="${poVal.urgent==2}">selected="selected"</c:if>>2</option>
- <option value="3" <c:if test="${poVal.urgent==3}">selected="selected"</c:if>>3</option>
- <option value="4" <c:if test="${poVal.urgent==4}">selected="selected"</c:if>>4</option>
- <option value="5" <c:if test="${poVal.urgent==5}">selected="selected"</c:if>>5</option>
- </select>
- <label class="Validform_label" style="display: none;">紧急度</label>
- </td>
- <td align="left">
- <select name="weeklyMeetingEntitiyList[${stuts.index }].importance" id="importance${stuts.index }" value="${poVal.importance}" style="width:80px;" <c:if test="${poVal.createBy!=userName}">onfocus="this.defaultIndex=this.selectedIndex;" onchange="this.selectedIndex=this.defaultIndex;"</c:if>>
- <option value="1" <c:if test="${poVal.importance==1}">selected="selected"</c:if>>1</option>
- <option value="2" <c:if test="${poVal.importance==2}">selected="selected"</c:if>>2</option>
- <option value="3" <c:if test="${poVal.importance==3}">selected="selected"</c:if>>3</option>
- <option value="4" <c:if test="${poVal.importance==4}">selected="selected"</c:if>>4</option>
- <option value="5" <c:if test="${poVal.importance==5}">selected="selected"</c:if>>5</option>
- </select>
- <label class="Validform_label" style="display: none;">重要性</label>
- </td>
- <td align="left">
- <input type="hidden" name="weeklyMeetingEntitiyList[${stuts.index }].proposeId" id="proposeId${stuts.index }" value="${poVal.proposeId}"/>
- <input type="text" name="weeklyMeetingEntitiyList[${stuts.index }].proposeName" id="proposeName${stuts.index }" value="${poVal.proposeName}"
- <c:if test="${poVal.createBy==userName}">onclick="openAllSelect('propose', this.id)"</c:if> style="width:80px;" <c:if test="${poVal.createBy!=userName}">readonly="readonly"</c:if>/>
- <label class="Validform_label" style="display: none;">提出人</label>
- </td>
- <td align="left">
- <input type="hidden" name="weeklyMeetingEntitiyList[${stuts.index }].implementationId" id="implementationId${stuts.index }" value="${poVal.implementationId}"/>
- <input type="text" name="weeklyMeetingEntitiyList[${stuts.index }].implementationName" id="implementationName${stuts.index }" value="${poVal.implementationName}"
- <c:if test="${poVal.createBy==userName}">onclick="openAllSelect('implementation', this.id)"</c:if> style="width:80px;" <c:if test="${poVal.createBy!=userName}">readonly="readonly"</c:if>/>
- <label class="Validform_label" style="display: none;">落实人</label>
- </td>
- <td align="left">
- <input name="weeklyMeetingEntitiyList[${stuts.index }].expectedCompletion" id="expectedCompletion${stuts.index }" type="text" readonly="readonly" class="Wdate" <c:if test="${poVal.createBy==userName}">onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"</c:if> datatype="*" nullmsg="预计完成时间不可为空!"
- value="<fmt:formatDate value='${poVal.expectedCompletion}' pattern="yyyy-MM-dd"/>" style="width:80px;" />
- <label class="Validform_label" style="display: none;">预计完成时间</label>
- </td>
- <td align="left">
- <input name="weeklyMeetingEntitiyList[${stuts.index }].actualCompletion" id="actualCompletion${stuts.index }" type="text" disabled="disabled"
- value="<fmt:formatDate value='${poVal.actualCompletion}' pattern="yyyy-MM-dd"/>" style="width:80px;"/>
- <label class="Validform_label" style="display: none;">实际完成时间</label>
- </td>
- <td align="left">
- <select name="weeklyMeetingEntitiyList[${stuts.index }].executionStatus" id="executionStatus${stuts.index }" disabled="disabled" style="width:80px;" >
- <option value="1" <c:if test="${poVal.executionStatus==1 || poVal.executionStatus==0}">selected="selected"</c:if>>未完成</option>
- <option value="20" <c:if test="${poVal.executionStatus==20}">selected="selected"</c:if>>已完成</option>
- <option value="30" <c:if test="${poVal.executionStatus==30}">selected="selected"</c:if>>逾期未完成</option>
- <option value="40" <c:if test="${poVal.executionStatus==40}">selected="selected"</c:if>>逾期已完成</option>
- <option value="50" <c:if test="${poVal.executionStatus==50}">selected="selected"</c:if>>已撤销</option>
- </select>
- <input type="hidden" value="0" name="weeklyMeetingEntitiyList[${stuts.index }].issue" id="issue${stuts.index }"/>
- <label class="Validform_label" style="display: none;">执行状态</label>
- </td>
- <td>
- <c:if test="${not empty poVal.projectTaskId and poVal.showProjectTask}">
- <a href="#" class="ace_button" onclick="viewTask('${poVal.projectTaskId}')">
- <i class=" fa fa-search" style="margin-right:5px;"></i>查看结果
- </a>
- </c:if>
- <c:if test="${poVal.createBy==userName}">
- <c:if test="${poVal.executionStatus==20}">
- <a href="#" class="ace_button" onclick="reexecution('${poVal.projectTaskId}')">
- <i class=" fa fa-search" style="margin-right:5px;"></i>重新执行
- </a>
- </c:if>
- <c:if test="${poVal.executionStatus==0 || poVal.executionStatus==1 || poVal.executionStatus==30}">
- <a href="#" class="ace_button" onclick="revokeTask('${poVal.projectTaskId}')">
- <i class=" fa fa-search" style="margin-right:5px;"></i>撤销任务
- </a>
- </c:if>
- </c:if>
- </td>
- </tr>
- </c:forEach>
- </c:if>
- </tbody>
- </table>
- </t:formvalid>
- <table style="display:none">
- <tbody id="add_template">
- <tr>
- <td align="center"><div style="width: 25px;" name="xh"></div></td>
- <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
- <td align="left">
- <input type="hidden" name="weeklyMeetingEntitiyList[#index#].weekNum" value="${weekNum}"/>
- <input name="weeklyMeetingEntitiyList[#index#].meetingTime" id="meetingTime#index#" type="text" readonly="readonly" style="width: 80px" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" datatype="*" nullmsg="会议时间不可为空!" />
- <label class="Validform_label" style="display: none;">会议时间</label>
- </td>
- <td align="left">
- <input type="text" name="weeklyMeetingEntitiyList[#index#].meetingContent" id="meetingContent#index#" style="width: 98%;" datatype="*"/>
- <label class="Validform_label" style="display: none;">会议内容</label>
- </td>
- <td align="left">
- <select name="weeklyMeetingEntitiyList[#index#].urgent" id="urgent#index#" style="width: 80px" datatype="*">
- <option value="" selected="selected" disabled="disabled">请选择</option>
- <option value="1">1</option>
- <option value="2">2</option>
- <option value="3">3</option>
- <option value="4">4</option>
- <option value="5">5</option>
- </select>
- <label class="Validform_label" style="display: none;" style="width: 80px">紧急度</label>
- </td>
- <td align="left">
- <select name="weeklyMeetingEntitiyList[#index#].importance" id="importance#index#" style="width: 80px" datatype="*">
- <option value="" selected="selected" disabled="disabled">请选择</option>
- <option value="1">1</option>
- <option value="2">2</option>
- <option value="3">3</option>
- <option value="4">4</option>
- <option value="5">5</option>
- </select>
- <label class="Validform_label" style="display: none;">重要性</label>
- </td>
- <td align="left">
- <input type="hidden" name="weeklyMeetingEntitiyList[#index#].proposeId" id="proposeId#index#"/>
- <input type="text" name="weeklyMeetingEntitiyList[#index#].proposeName" id="proposeName#index#" onclick="openAllSelect('propose', this.id)" style="width: 80px" datatype="*" readonly="readonly"/>
- <label class="Validform_label" style="display: none;">提出人</label>
- </td>
- <td align="left">
- <input type="hidden" name="weeklyMeetingEntitiyList[#index#].implementationId" id="implementationId#index#"/>
- <input type="text" name="weeklyMeetingEntitiyList[#index#].implementationName" id="implementationName#index#" onclick="openAllSelect('implementation', this.id)" style="width: 80px" datatype="*" readonly="readonly"/>
- <label class="Validform_label" style="display: none;">落实人</label>
- </td>
- <td align="left">
- <input name="weeklyMeetingEntitiyList[#index#].expectedCompletion" id="expectedCompletion#index#" type="text" readonly="readonly" style="width: 80px" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" datatype="*" nullmsg="预计完成时间不可为空!" />
- <label class="Validform_label" style="display: none;">预计完成时间</label>
- </td>
- <td align="left">
- <input name="weeklyMeetingEntitiyList[#index#].actualCompletion" id="actualCompletion#index#" type="text" disabled="disabled" style="width: 80px"/>
- <label class="Validform_label" style="display: none;">实际完成时间</label>
- </td>
- <td align="left">
- <select name="weeklyMeetingEntitiyList[#index#].executionStatus" id="executionStatus#index#" style="width: 80px" onfocus="this.defaultIndex=this.selectedIndex;" onchange="this.selectedIndex=this.defaultIndex;">
- <option value="0" selected="selected">未完成</option>
- <option value="20">已完成</option>
- <option value="30">逾期未完成</option>
- <option value="40">逾期已完成</option>
- <option value="50">已撤销</option>
- </select>
- <input type="hidden" value="0" name="weeklyMeetingEntitiyList[#index#].issue" id="issue#index#" />
- <label class="Validform_label" style="display: none;">执行状态</label>
- </td>
- </tr>
- </tbody>
- </table>
- </body>
- <script src="webpage/cn/com/lzt/useractiviti/select_user_tools.js"></script>
- <script src = "webpage/com/xcgl/weeklyMeeting/weeklyMeeting.js"></script>
- </html>
|