| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <%@ 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 type="text/javascript">
- //编写自定义JS代码
- function openManagerSelect(type) {
- $.dialog({
- content: 'url:publicpageController.do?userSelect&checkbox=true', 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 == 2){
- $("#responsibleUserId").val('');
- $("#responsibleUserName").val('');
- }else if(type == 3){
- $("#leaderUserId").val('');
- $("#leaderUserName").val('');
- }
- }
- function setUser(type, strData) {
- 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);
- }
- }
- </script>
- </head>
- <body>
- <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="complainController.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="complaintDate" name="complaintDate" type="text" style="width: 150px" class="Wdate" autocomplete="off"
- onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" 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">
- <t:dictSelect id="complaintFrom" field="complaintFrom" type="list" typeGroupCode="complaintFrom" 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" 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="complaintContext" name="complaintContext" 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="complaintLocation" name="complaintLocation" 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">
- <t:dictSelect id="area" field="area" type="list" typeGroupCode="areaRegion" hasLabel="false" title="所属网格化区域" datatype="*"></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="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">
- 备注:
- </label>
- </td>
- <td class="value">
- <input id="remark" name="remark" type="text" style="width: 150px"/>
- <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);
- }
- }
- </script>
|