| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234 |
- <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title>工作计划</title>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <script type="text/javascript">
- </script>
- </head>
- <body>
- <t:formvalid formid="formobj" dialog="false" usePlugin="password" layout="table" action="projectTaskPlanController.do?doAdd" tiptype="1" callback="callback" >
- <input id="id" name="id" type="hidden" value="${projectTaskPlanPage.id }"/>
- <input id="status" name="status" type="hidden" value="1"/>
- <input id="tasktype" name="tasktype" type="hidden" value="${projectTaskPlanPage.tasktype}"/>
- <%-- <t:dictSelect field="status" type="hidden" extendJson="{class:'form-control'}" typeGroupCode="billstatus" hasLabel="false" title="计划状态"></t:dictSelect> --%>
- <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
- <tr>
- <td align="right">
- <label class="Validform_label">
- 计划编码:
- </label>
- </td>
- <td class="value">
- <input id="code" name="code" type="text" style="width: 150px" class="inputxt" ignore="ignore" readonly="readonly" />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" >提交后系统自动生成</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>计划名称:
- </label>
- </td>
- <td class="value">
- <input id="name" name="name" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="ignore" />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">计划名称</label>
- </td>
- </tr>
- <%-- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span> 计划类型:
- </label>
- </td>
- <td class="value">
- <t:dictSelect id="tasktype" field="tasktype" type="list" typeGroupCode="tasktype" defaultVal="${projectTaskPlanPage.tasktype}" hasLabel="false" title="计划类型" ></t:dictSelect>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">计划类型</label>
- </td>
- </tr> --%>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span> 计划工作时间:
- </label>
- </td>
- <td class="value">
- <input id="cron" name="cron" type="text" style="width: 150px" class="inputxt" datatype="*" readonly="readonly" ignore="ignore" />
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="cronSetting" onclick="openCronSetting()">设置</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="cronRedo" onclick="cleanCron()">清空</a>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">计划工作时间</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span> 提醒时间:提前
- </label>
- </td>
- <td class="value">
- <input id="msgAdvanceQuantity" name="msgAdvanceQuantity" type="text" class="inputxt" datatype="n" ignore="checked" value="${msgAdvanceQuantity}">
- <%-- <span class="Validform_checktip" style="display: none;">提前量</span> --%>
- <t:dictSelect field="msgAdvanceType" type="list" extendJson="{class:'form-control'}" typeGroupCode="msgTipType" hasLabel="false" title="消息提醒时间类型"></t:dictSelect>
- <label class="Validform_label"> 提醒 </label>
- </td>
- </tr>
- <tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span> 每日生成工作数量上限:
- </label>
- </td>
- <td class="value">
- <input id="taskquantity" name="taskquantity" type="text" class="inputxt" datatype="n" ignore="checked" value="${taskquantity}">
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span> 工作所属角色:
- </label>
- </td>
- <td class="value">
- <t:dictSelect field="ownerrole" type="list" dictTable="t_s_role" dictField="id" dictText="rolename" datatype="*" defaultVal="${projectTaskPlanPage.ownerrole}" hasLabel="false" title="工作所属角色" dictCondition=" where rolecode like 'T_%'"></t:dictSelect>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">工作所属角色</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label"> 分配项目: </label>
- </td>
- <td class="value">
- <%-- <input id="projectnames" name="projectnames" type="text" readonly="readonly" class="inputxt" value="${projectTaskPlanPage.projectnames}"> --%>
- <textarea id="projectnames" name="projectnames" ignore="ignore" style="width: 280px" rows="6" readonly="readonly" >${projectTaskPlanPage.projectnames}</textarea>
- <input id="projectids" name="projectids" type="hidden" value="${projectTaskPlanPage.projectids}">
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="jzdepartSearch" onclick="openDepartmentSelectjz()">选择</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="jzdepartRedo" onclick="callbackCleanjz()">清空</a>
- <span class="Validform_checktip" style="display: none;">分配项目</span>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 计划详述:
- </label>
- </td>
- <td class="value" >
- <textarea id="description" name="description" ignore="ignore" style="width: 280px" rows="6" placeholder="请输入计划描述(最多输入文字数200)" ></textarea>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">计划详述</label>
- </td>
- </tr>
-
-
- <tr>
- <td height="50px" align="center" colspan="8">
- <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
- <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">提交</a>
- <a style="margin-left:20px" href="#" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back" onclick="btn_back()">返回</a>
- </td>
- </tr>
-
- </table>
- </t:formvalid>
-
- <%-- <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
- <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">提交</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-return" onclick="backOnClick()">返回</a>
- </div> --%>
- </body>
- <script src = "webpage/com/xcgl/projecttaskplan/projectTaskPlan.js"></script>
- <script>
- $(document).ready(function(){
- /* if($("#tasktype").val().length == 0)
- document.getElementById("tasktype").readonly=false; */
-
- });
- function btn_ok(){
- $("#btnsub").click();
- }
- function callback(data){
- if(data.success){
- layer.alert(data.msg, function(index){
- window.location.href="projectTaskPlanController.do?list&type="+$("#tasktype").val();
- layer.close(index);
- });
- }
- else{
- layer.alert(data.msg);
- }
- }
- function btn_back(){
- var url = 'projectTaskPlanController.do?list&type='+$("#tasktype").val();
- window.location.href=url;
- }
- //项目多选
- function openDepartmentSelectjz() {
- $.dialog.setting.zIndex = getzIndex();
- var projectIds = $("#projectids").val();
- $.dialog({content: 'url:projectTaskPlanController.do?jzdepartSelect&jzorgIds='+projectIds, zIndex: 2100, title: '项目列表', lock: true, width: '400px', height: '350px', opacity: 0.4, button: [
- {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDepartmentSelectjz, focus: true},
- {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
- ]}).zindex();
- }
-
- function callbackDepartmentSelectjz() {
- var iframe = this.iframe.contentWindow;
- var treeObj = iframe.$.fn.zTree.getZTreeObj("jzdepartSelect");
- var nodes = treeObj.getCheckedNodes(true);
- if(nodes.length>0){
- var ids='',names='';
- for(i=0;i<nodes.length;i++){
- var node = nodes[i];
- ids += node.id+',';
- names += node.name+',';
- }
- // 把最后的逗号去掉
- names = names.substring(0,names.length - 1);
-
- $('#projectnames').val(names);
- $('#projectnames').blur();
- $('#projectids').val(ids);
-
-
- }
- }
- function callbackCleanjz(){
- $('#projectnames').val('');
- $('#projectids').val('');
- }
-
- function openCronSetting(){
- $.dialog.setting.zIndex = getzIndex();
- var cron = $("#cron").val();
- $.dialog({id:'cronsetting', content: 'url:projectTaskPlanController.do?cronsetting&cron='+cron, zIndex: 2100, title: '工作计划启动时间设置', lock: true, width: '950px', height: '600px', opacity: 0.4, button: [
- {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackCronSetting
- , focus: true},
- {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
- ]}).zindex();
- }
- function callbackCronSetting(){
- var iframe = this.iframe.contentWindow;
- var cron = iframe.getCron();
- if(cron.indexOf('false') == 0){
- alert(cron.substring(5));
- return false;
- }else{
- $('#cron').val(cron);
- return true;
- }
- }
-
- function cleanCron(){
- $('#cron').val('');
- }
- </script>
|