|
|
@@ -0,0 +1,131 @@
|
|
|
+<%@ page language="java" contentType="text/html;charset=UTF-8"
|
|
|
+ pageEncoding="UTF-8"%>
|
|
|
+ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
|
|
+<% String documentId = "";%>
|
|
|
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
+<title>修改考勤设备配置</title>
|
|
|
+<link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
|
|
|
+<link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
|
|
|
+<script type="text/javascript" src="/shares/js/jquery-1.3.2.min.js"></script>
|
|
|
+<script type="text/javascript" src="/shares/js/constant.js"></script>
|
|
|
+<script type="text/javascript" src="/shares/js/common.js"></script>
|
|
|
+<link href="main.css" rel="stylesheet" type="text/css" />
|
|
|
+<link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
|
|
|
+<script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
|
|
|
+<script type="text/javascript" src="/shares/js/file.js"></script>
|
|
|
+<script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath }/ueditor1_4_3-gbk-jsp/ueditor.config.js"></script>
|
|
|
+<script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath }/ueditor1_4_3-gbk-jsp/ueditor.all.min.js"> </script>
|
|
|
+<script type="text/javascript" src="/shares/js/yw/master1/page.js"></script>
|
|
|
+<script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
|
|
|
+<script type="text/javascript">
|
|
|
+function checkForm(){
|
|
|
+ var rs = $.validate({
|
|
|
+ name : "faceEquipment.serialname",
|
|
|
+ model : [ {
|
|
|
+ type : "require",
|
|
|
+ msg : "设备名称不能为空!"
|
|
|
+ } ]
|
|
|
+ });
|
|
|
+ if(!rs)return;
|
|
|
+ if(!checkSerialname()){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $("#theForm").submit();
|
|
|
+}
|
|
|
+function checkSerialnameProcess(data){
|
|
|
+ if(data != null && data !=""){
|
|
|
+ addFieldErrors("serialname","该用户名已存在!");
|
|
|
+ flag=false ;
|
|
|
+ }else{
|
|
|
+ flag=true;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+function checkSerialname(){
|
|
|
+ clearSingelMsg("serialname");
|
|
|
+ var serialname = $("#serialname").val();
|
|
|
+ var initserialname = $("#initserialname").val();
|
|
|
+ var id = $("#id").val();
|
|
|
+ var url = "faceEquipmentConfig.do?&task=checkSerialname&id=" + id;
|
|
|
+ if (serialname != initserialname) {
|
|
|
+ var param = {'serialname':serialname, 'id':id};
|
|
|
+ sendAjaxParam(param,url,"text",checkSerialnameProcess);
|
|
|
+ }else{
|
|
|
+ flag=true;
|
|
|
+ }
|
|
|
+ return flag;
|
|
|
+}
|
|
|
+</script>
|
|
|
+<style type="text/css">
|
|
|
+/* .container-layout {
|
|
|
+ width: 100%;
|
|
|
+} */
|
|
|
+</style>
|
|
|
+</head>
|
|
|
+<Body>
|
|
|
+ <%@ include file="/include/message.jsp"%>
|
|
|
+ <FORM method="post" name="theForm" id="theForm" action="mtFaceEquipmentAction.do" >
|
|
|
+ <div class="s_title b10 f6" style="text-align: left;">
|
|
|
+ <img src="/shares/images/master1/gg_ico.png" width="27" height="26" /> 修考勤设备配置
|
|
|
+ <div class="article_title" style="margin-left: -30px;">
|
|
|
+ <input class="art_back" title="返回" name="" onclick="history.back(-1);" type="button" style="width:40px;" />
|
|
|
+ <input class="art_sub" title="保存" name="" type="button" value="" onclick="checkForm()" style="width:40px;"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="container-layout" style="margin-top: 50px;">
|
|
|
+ <div class="forum-container">
|
|
|
+ <!-- <div id="titles" class="form-button">
|
|
|
+ <input type="button" id="message_save" class="l-button tijiao" onclick="checkForm();" value="提交" style="width: 90px"/>
|
|
|
+ </div> -->
|
|
|
+ <Table border="0" cellspacing="1" cellpadding="0" class="l-table-edit line">
|
|
|
+ <tr><th colspan="2">修改人脸设备</th></tr>
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">设备编号:</td>
|
|
|
+ <td class="l-table-edit-td">
|
|
|
+ ${faceEquipment.serialno }
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">设备名称:</td>
|
|
|
+ <td class="l-table-edit-td">
|
|
|
+ <input type="text" name="faceEquipment.serialname" id="serialname" value='${faceEquipment.serialname }' width="300" />
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">设备地点:</td>
|
|
|
+ <td class="l-table-edit-td">
|
|
|
+ <input type="text" name="faceEquipment.serialplace" id="serialplace" value='${faceEquipment.serialplace }' width="200" />
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">设备ip:</td>
|
|
|
+ <td class="l-table-edit-td">
|
|
|
+ <input type="text" name="faceEquipment.ip" id="ip" value='${faceEquipment.ip }' width="200" />
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">设备端口:</td>
|
|
|
+ <td class="l-table-edit-td">
|
|
|
+ <input type="text" name="faceEquipment.port" id="port" value='${faceEquipment.port }' width="200" />
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">设备密码:</td>
|
|
|
+ <td class="l-table-edit-td">
|
|
|
+ <input type="text" name="faceEquipment.secretkey" id="secretkey" value="${faceEquipment.secretkey }" width="200" />
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <input type="hidden" id="id" name="faceEquipment.id" value="${faceEquipment.id }">
|
|
|
+ <input type="hidden" id="initserialname" value="${faceEquipment.serialname }">
|
|
|
+ <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
|
|
|
+ <input type="hidden" id="task" name="task" value="editFaceEquipment">
|
|
|
+ <input type="hidden" id="type" name="type" value="${type}">
|
|
|
+ </TABLE>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </FORM>
|
|
|
+</BODY>
|
|
|
+</html>
|