| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- <%@ 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>
- <link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css" />
- <script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.js"></script>
- <script src="plug-in/layer/layer.js"></script>
- <script>
- </script>
- <script type="text/javascript">
- //编写自定义JS代码
- </script>
- </head>
- <body>
- <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="scheduleSuperivseController.do?doAdd">
- <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>督查日期:
- </label>
- </td>
- <td class="value">
- <input id="superviseDate" name="superviseDate" type="text" style="width: 150px" class="Wdate"
- onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" datatype="*" ignore="checked"/>
- <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="userName" name="userName" type="text" readonly="readonly" class="inputxt" onclick="openManagerSelect(1)"
- placeholder="请选择" datatype="*">
- <input id="userId" name="userId" type="hidden">
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openManagerSelect(1)">选择</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" onclick="callbackClean(1)">清空</a>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>督察区域:
- </label>
- </td>
- <td class="value">
- <t:dictSelect id="area" field="area" type="list" datatype="*" typeGroupCode="superivseArea" 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">
- <t:dictSelect id="type" field="type" type="list" datatype="*" typeGroupCode="superivseType" 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">
- <t:dictSelect id="source" field="source" type="list" datatype="*" typeGroupCode="complainType" 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="location" name="location" type="text" style="width: 150px" datatype="*" ignore="checked"/>
- <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="position" name="position" type="text" style="width: 150px" datatype="*" ignore="checked"/>
- <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="context" name="context" type="text" style="width: 150px" datatype="*" ignore="checked"/>
- <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="imgUrl" name="imgUrl" type="hidden">
- <t:webUploader name="okpath" auto="true" callback="uploadSucc" showImgDiv="" type="image" dataType="*" buttonStyle="btn-green" fileNumLimit="1" url="cgUploadController.do?ajaxSaveFile"></t:webUploader>
- </td>
- <td colspan="2" id="instructionfile" class="value">
- <div id="fileShow" ></div>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>责任人:
- </label>
- </td>
- <td class="value">
- <input id="responsibleUserName" name="responsibleUserName" type="text" readonly="readonly" class="inputxt" onclick="openManagerSelect(2)"
- placeholder="请选择" datatype="*">
- <input id="responsibleUserId" name="responsibleUserId" type="hidden">
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openManagerSelect(2)">选择</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" onclick="callbackClean(2)">清空</a>
- </td>
- </tr>
- <%-- <tr>--%>
- <%-- <td align="right">--%>
- <%-- <label class="Validform_label">--%>
- <%-- 班组长:--%>
- <%-- </label>--%>
- <%-- </td>--%>
- <%-- <td class="value">--%>
- <%-- <input id="leaderUserName" name="leaderUserName" type="text" readonly="readonly" class="inputxt" onclick="openManagerSelect(3)"--%>
- <%-- placeholder="请选择">--%>
- <%-- <input id="leaderUserId" name="leaderUserId" type="hidden">--%>
- <%-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openManagerSelect(3)">选择</a>--%>
- <%-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" onclick="callbackClean(3)">清空</a>--%>
- <%-- </td>--%>
- <%-- </tr>--%>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>备注:
- </label>
- </td>
- <td class="value">
- <input value='${common.deal_remark}' id="deal_remark" name="deal_remark" type="text" style="width: 150px" datatype="*" ignore="checked"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">现场评价</label>
- </td>
- </tr>
- </table>
- </t:formvalid>
- </body>
- <script type="text/javascript">
- function uploadSucc(response){
- if(response.success){
- $('#imgUrl').val(response.attributes.url);
- }
- }
-
- function openManagerSelect(type) {
- $.dialog({
- content: 'url:publicpageController.do?userSelect', zIndex: getzIndex(), title: '员工列表', lock: true, width: '1000px', height: '650px', opacity: 0.4, button: [
- {name: '确定', callback: function (){
- var iframe = this.iframe.contentWindow;
- if(iframe.getReason().length>0){
- var strData=eval(iframe.getReason());
- setUser(type, strData);
- }
- }, focus: true},
- {name: '取消', callback: function (){}}
- ]}).zindex();
- }
- function callbackClean(type) {
- if(type == 1){
- $("#userId").val('');
- $("#userName").val('');
- }else if(type == 2){
- $("#responsibleUserId").val('');
- $("#responsibleUserName").val('');
- }else if(type == 3){
- $("#leaderUserId").val('');
- $("#leaderUserName").val('');
- }
- }
- function setUser(type, strData) {
- if(type == 1){
- $("#userId").val(strData[0].strId);
- $("#userName").val(strData[0].strName);
- }else if(type == 2){
- $("#responsibleUserId").val(strData[0].strId);
- $("#responsibleUserName").val(strData[0].strName);
- }else if(type == 3){
- $("#leaderUserId").val(strData[0].strId);
- $("#leaderUserName").val(strData[0].strName);
- }
- }
- function callbackCleanUser(type){
- if(type == 1){
- $('#userName').val('');
- $('#userId').val('');
- }else if(type == 2){
- $("#responsibleUserId").val('');
- $("#responsibleUserName").val('');
- }else if(type == 3){
- $("#leaderUserId").val('');
- $("#leaderUserName").val('');
- }
- }
- </script>
|