| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409 |
- <%--
- Created by IntelliJ IDEA.
- User: EDZ
- Date: 2021/6/19
- Time: 11:08
- To change this template use File | Settings | File Templates.
- --%>
- <%@ 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">
- //编写自定义JS代码
- function beforeSubmit() {
- $("#signingTime").val($("#signingTime").val().replace(" ","T"));
- return true;
- }
- function openManagerSelect() {
- var windowapi;
- try {
- windowapi = frameElement.api, W = windowapi.opener;
- } catch (e) {
- }
- //$.dialog.setting.zIndex = getzIndex();
- var orgIds = $("#orgIds").val();
- if(typeof(windowapi) == 'undefined'){
- $.dialog({content: 'url:publicpageController.do?userSelect&orgIds='+orgIds, zIndex: getzIndex(), title: '员工列表', lock: true, width: '1000px', height: '600px', opacity: 0.4, button: [
- {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackManagerSelect, focus: true},
- //update-by yulong.zhao 改为function中调用close方法否则多层弹出框,遮罩效果会关闭一个窗口后消失
- //{name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
- {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){close();}}
- ]})
- }else{
- $.dialog({content: 'url:publicpageController.do?userSelect&orgIds='+orgIds, zIndex: getzIndex(), title: '员工列表', lock: true,parent : windowapi,width: '1000px', height: '600px', opacity: 0.4,button: [
- {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackManagerSelect, focus: true},
- //update-by yulong.zhao 改为function中调用close方法否则多层弹出框,遮罩效果会关闭一个窗口后消失
- //{name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
- {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){close();}}
- ]}).zindex();
- }
- }
- function callbackManagerSelect() {
- var iframe = this.iframe.contentWindow;
- if(iframe.getReason().length>0){
- var strData=eval(iframe.getReason());
- for(var key in strData[0]){
- if(key=="strId"){
- $("#managerId").val(strData[0][key]);
- $('#managerName').blur();
- }else if(key=="strName"){
- $('#managerName').val(strData[0][key]);
- }else if(key=="mobilePhone"){
- $('#mobilePhone').val(strData[0][key]);
- }
- }
- }
- }
- function openAreaSelect() {
- var windowapi;
- try {
- windowapi = frameElement.api, W = windowapi.opener;
- } catch (e) {
- }
- if(typeof(windowapi) == 'undefined'){
- $.dialog({content: 'url:archivesPlaceController.do?areaSelect&queryPoint=true', zIndex: getzIndex(), title: '元素列表', lock: true, width: '90vw', height: '90vh', opacity: 0.4, button: [
- {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackAreaSelect, focus: true},
- {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){close();localStorage.removeItem("selectRowsData");}}
- ]})
- }else{
- $.dialog({content: 'url:archivesPlaceController.do?areaSelect&queryPoint=true', zIndex: getzIndex(), title: '元素列表', lock: true,parent : windowapi,width: '90vw', height: '90vh', opacity: 0.4,button: [
- {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackAreaSelect, focus: true},
- {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){close();localStorage.removeItem("selectRowsData");}}
- ]}).zindex();
- }
- }
- // 场所编码、场所名称、管理人员、电话号码、场所位置、经纬度、高度、所属网格化区域
- function callbackAreaSelect() {
- var iframe = this.iframe.contentWindow;
- if(iframe.getReason().length>0){
- var strData=eval(iframe.getReason());
- for(var key in strData[0]){
- if(key=="code"){
- $("#code").val(strData[0][key]);
- $('#code').blur();
- }else if(key=="name"){
- $('#name').val(strData[0][key]);
- $('#name').blur();
- $('#areaName').val(strData[0][key]);
- $('#areaName').blur();
- }else if(key=="managerId"){
- $('#managerId').val(strData[0][key]);
- $('#managerName').blur();
- }else if(key=="mobilePhone"){
- $('#mobilePhone').val(strData[0][key]);
- $('#mobilePhone').blur();
- }else if(key==='position'){
- $('#position').val(strData[0][key]);
- $('#position').blur();
- }else if(key==='longitude'){
- $('#longitude').val(strData[0][key]);
- $('#longitude').blur();
- }else if(key==='latitude'){
- $('#latitude').val(strData[0][key]);
- $('#latitude').blur();
- }else if(key==='height'){
- $('#height').val(strData[0][key]);
- $('#height').blur();
- }else if(key==='areaRegion'){
- $('#areaRegion').val(strData[0][key]);
- $('#areaRegion').blur();
- }
- }
- localStorage.removeItem("selectRowsData");
- }
- }
- function callbackClean(){
- $('#managerId').val('');
- $('#managerName').val('');
- }
- function callbackCleanArea(){
- $("#code").val('');
- $('#code').blur();
- $('#name').val('');
- $('#name').blur();
- $('#areaName').val('');
- $('#areaName').blur();
- $('#managerId').val('');
- $('#managerName').blur();
- $('#mobilePhone').val('');
- $('#mobilePhone').blur();
- $('#position').val('');
- $('#position').blur();
- $('#longitude').val('');
- $('#longitude').blur();
- $('#latitude').val('');
- $('#latitude').blur();
- $('#height').val('');
- $('#height').blur();
- $('#areaRegion').val('');
- $('#areaRegion').blur();
- }
- </script>
- </head>
- <body>
- <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="archivesPlaceController.do?doAddOrUpdate">
- <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="areaName" name="areaName" type="text" readonly="readonly" class="inputxt" onclick="openAreaSelect()"
- placeholder="请选择作业元素" value="${archivesPlace.areaName}">
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openAreaSelect()">选择</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" onclick="callbackCleanArea()">清空</a>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 场所编码:
- </label>
- </td>
- <td class="value">
- <input id="code" name="code" type="text" style="width: 150px" readonly
- placeholder="请输入"
- value='${archivesPlace.code}'/>
- <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="name" name="name" type="text" style="width: 150px" readonly
- ignore="checked" datatype="*,*1-20"
- placeholder="请输入名称"
- value='${archivesPlace.name}'/>
- <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 field="type" type="list" datatype="*" typeGroupCode="location_type" defaultVal="${archivesPlace.type}" 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="managerName" name="managerName" type="text" readonly="readonly" class="inputxt" onclick="openManagerSelect()"
- placeholder="请输入管理人员" value="${archivesPlace.managerName}">
- <input id="managerId" name="managerId" type="hidden" datatype="*" value="${archivesPlace.managerId}">
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openManagerSelect()">选择</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" onclick="callbackClean()">清空</a>
- <%-- <span class="Validform_checktip">一线员工必须选择保安部、保洁部等部门;项目经理和内勤必须选择项目</span>--%>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <font color="red"></font>电话号码:
- </label>
- </td>
- <td class="value">
- <input id="mobilePhone" name="mobilePhone" type="text" style="width: 150px" readonly
- ignore="checked" minlength="7" maxlength="11"
- placeholder="请输入"
- value='${archivesPlace.mobilePhone}'/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">电话号码</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <font color="red"> </font>场所位置:
- </label>
- </td>
- <td class="value" colspan="3">
- <input id="position" name="position" type="text" style="width: 150px"
- ignore="checked"
- placeholder="请输入"
- value='${archivesPlace.position}'/>
- <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="longitude" name="longitude" type="text" style="width: 150px" readonly
- ignore="checked" datatype="d"
- placeholder="请输入"
- value='${archivesPlace.longitude}'/>
- <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="latitude" name="latitude" type="text" style="width: 150px" readonly
- ignore="checked" datatype="d"
- placeholder="请输入"
- value='${archivesPlace.latitude}'/>
- <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="height" name="height" type="text" style="width: 150px" readonly
- placeholder="请输入"
- ignore="checked" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')"
- value='${archivesPlace.height}'/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">海拔高度</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <font color="red"> </font>管理内容:
- </label>
- </td>
- <td class="value">
- <input id="manageContent" name="manageContent" type="text" style="width: 150px"
- ignore="checked"
- placeholder="请输入"
- value='${archivesPlace.manageContent}'/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">管理内容</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <font color="red"> </font>签约时长:
- </label>
- </td>
- <td class="value">
- <input id="signingTime" name="signingTime" type="text" style="width: 150px"
- placeholder="请输入"
- class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
- value="${cf:formatDateTime(archivesPlace.signingTime, 'yyyy-MM-dd HH:mm:ss')}"/>
- <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 field="areaRegion" id="areaRegion" datatype="*" type="list" typeGroupCode="areaRegion" defaultVal="${archivesPlace.areaRegion}" 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="vehicleNo01" name="vehicleNo01" type="text" style="width: 150px"
- ignore="ignore" datatype="*,*1-20"
- placeholder="请输入气体监测设备号"
- value='${archivesPlace.vehicleNo01}'/>
- <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="vehicleNo02" name="vehicleNo02" type="text" style="width: 150px"
- ignore="ignore"
- placeholder="请输入客流监测设备号"
- value='${archivesPlace.vehicleNo02}'/>
- <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="vehicleNo03" name="vehicleNo03" type="text" style="width: 150px"
- ignore="ignore" datatype="*,*1-20"
- placeholder="请输入摄像头设备号"
- value='${archivesPlace.vehicleNo03}'/>
- <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="channelNo" name="channelNo" type="text" style="width: 150px"
- ignore="ignore" datatype="*,*1-20"
- placeholder="请输入摄像头通道号"
- value='${archivesPlace.channelNo}'/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">摄像头通道号</label>
- </td>
- </tr>
- </table>
- </t:formvalid>
- </body>
- </html>
|