| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <!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=GBK">
-
- <title>编辑设备信息</title>
- <script src="/shares/js/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/file.js"></script>
- <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
- <script src="/shares/xheditor/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js" type="text/javascript" ></script>
- <link href="./liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css"
- rel="stylesheet" type="text/css"></link>
- <script src="./liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="./liger/lib/ligerUI/js/plugins/ligerLayout.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDateEditor.js"
- type="text/javascript"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $("input[type='text']:first").focus();
- });
- $(function() {
- loadTypeTree("selectbutton1", {
- type : "singleuser",
- backId : "dev_buy_person",
- backName : "dev_buy_person_name",
- tab : 1
- });
- loadTypeTree("selectbutton2", {
- type : "detpusersingle",
- backId : "dev_useman",
- backName : "dev_useman_name",
- tab : 1
- });
- $("#dev_buy_date").ligerDateEditor({
- labelAlign : 'left',
- width : 150,
- height : 21,
- initValue : '${requestScope.device.dev_buy_date }'
- });
- $("#dev_stock_date").ligerDateEditor({
- labelAlign : 'left',
- width : 150,
- height : 21
- });
- $("#dev_reject_enddate").ligerDateEditor({
- labelAlign : 'left',
- width : 150,
- height : 21,
- initValue : '${requestScope.device.dev_reject_enddate }'
- });
- $("#dev_facture_date").ligerDateEditor({
- labelAlign : 'left',
- width : 150,
- height : 21,
- initValue : '${requestScope.device.dev_facture_date }'
- });
- $("#other19").ligerDateEditor({
- labelAlign : 'left',
- width : 150,
- height : 21,
- initValue : '${requestScope.device.other19 }'
- });
- $("#other20").ligerDateEditor({
- labelAlign : 'left',
- width : 150,
- height : 21,
- initValue : '${requestScope.device.other20 }'
- });
- });
-
- function checkForm(){
- var rs = $.validate({
- name : "dev_code",
- model : [ {
- type : "require",
- msg : "设备编号不能为空!"
- }, {
- type : "len",
- min : 1,
- max : 20,
- msg : "设备编号长度不能超过20个字!"
- } ]
- });
- rs = $.validate({
- name : "dev_name",
- model : [ {
- type : "require",
- msg : "设备名称不能为空!"
- } ]
- }) && rs;
- rs = $.validate({
- name : "dev_status",
- model : [ {
- type : "require",
- msg : "设备状态不能为空!"
- } ]
- }) && rs;
- rs = $.validate({
- name : "dev_stock_date",
- model : [ {
- type : "require",
- msg : "预计成交日期不能为空!"
- }]
- }) && rs;
- rs = $.validate({
- name : "dev_useman_name",
- model : [ {
- type : "require",
- msg : "责任人不能为空!"
- } ]
- }) && rs;
- if (rs) {
- return true;
- }else{
- return false;
- }
- }
- function refresh(obj){
- if(obj == "1"){
- parent.location.reload();
- }
- }
- </script>
- <style type="text/css">
- .file-style{
- width: 550px;
- }
- .file-style input[type='file'] {
- width:385px ;
- height:24px;
- line-height:22px;
- vertical-align: bottom;
- background-color: #fff;
- border: 1px solid #cccccc;
- margin-top: 2px;
- margin-bottom: 2px;
- }
- </style>
- </head>
- <body>
- <%@ include file="/include/message.jsp"%>
- <form action="deviceMgrAction.do" method="post" onsubmit="return checkForm()">
- <div id="title" class="form-button">
- <input type="submit" class="l-button" value="保存" />
- </div>
- <div class="container-layout">
- <div class="forum-container">
-
- <center>
- <table class="l-table-edit line">
- <tr>
- <th colspan="4">
- <c:if test="${device.dev_id == '' or device.dev_id == null }">添加设备信息</c:if>
- <c:if test="${device.dev_id != null }">编辑设备信息</c:if>
- </th>
- </tr>
- <tr>
- <th colspan="4">
- 基础信息
- </th>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.dev_type_name }<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td" width="30%">
- <input type="hidden" id="dev_type" name="dev_type" value="${requestScope.device.dev_type }">
- <input type="text" id="dev_type_name" name="dev_type_name" value="${requestScope.device.dev_type_name }" readonly="readonly">
- </td>
- <td class="l-table-edit-text">${customDevice.dev_code }<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" id="dev_code" name="dev_code" value="${requestScope.device.dev_code }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.dev_name }<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" id="dev_name" name="dev_name" value="${requestScope.device.dev_name }">
- </td>
- <td class="l-table-edit-text">${customDevice.dev_status }<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <select name="dev_status" id="dev_status" class="default-select" >
- <option value=""></option>
- <c:forEach items="${requestScope.devStatusList }" var="devStatus">
- <option value="${devStatus.dev_status_value }" <c:if test="${requestScope.device.dev_status == devStatus.dev_status_value }">selected="selected"</c:if> >${devStatus.dev_status_name}</option>
- </c:forEach>
- </select>
-
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.dev_brand }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="dev_brand" name="dev_brand" value="${requestScope.device.dev_brand }">
- </td>
- <td class="l-table-edit-text">${customDevice.dev_model }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="dev_model" name="dev_model" value="${requestScope.device.dev_model }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.dev_manufacturer }</td>
- <td class="l-table-edit-td">
- <input type="text" id="dev_manufacturer" name="dev_manufacturer" value="${requestScope.device.dev_manufacturer }">
- </td>
- <td class="l-table-edit-text">${customDevice.dev_supplier }</td>
- <td class="l-table-edit-td">
- <input type="text" id="dev_supplier" name="dev_supplier" value="${requestScope.device.dev_supplier }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.dev_buy_date_str }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="dev_buy_date" name="dev_buy_date" value="${requestScope.device.dev_buy_date }">
- <td class="l-table-edit-text">${customDevice.dev_use }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="dev_use" name="dev_use" value="${requestScope.device.dev_use }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.dev_buy_person_name }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="dev_buy_person_name" name="dev_buy_person_name" readonly="readonly" value="${requestScope.device.dev_buy_person_name }" />
- <input type="hidden" name="dev_buy_person" id="dev_buy_person" readonly="readonly" value="${requestScope.device.dev_buy_person }" />
- <input type="button" class="l-button" id="selectbutton1" value="选择人员" />
- </td>
- <td class="l-table-edit-text">${customDevice.dev_buy_contract }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="dev_buy_contract" name="dev_buy_contract" value="${requestScope.device.dev_buy_contract }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.dev_stock_date_str }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="dev_stock_date" name="dev_stock_date" value="${requestScope.device.dev_stock_date }" />
- <input type="hidden" name="dev_stock_date" value="${requestScope.device.dev_stock_date }" />
- </td>
- <td class="l-table-edit-text">${customDevice.dev_useman_name }<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" id="dev_useman_name" name="dev_useman_name" readonly="readonly" value="${requestScope.device.dev_useman_name }" />
- <input type="hidden" name="dev_useman" id="dev_useman" readonly="readonly" value="${requestScope.device.dev_useman }" />
- <input type="button" class="l-button" id="selectbutton2" value="选择人员" />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.dev_mainten_enddate_str }</td>
- <td class="l-table-edit-td">
- <input type="text" id="dev_mainten_enddate" name="dev_mainten_enddate" value="${requestScope.device.dev_mainten_enddate }">
- </td>
- <td class="l-table-edit-text">${customDevice.dev_reject_enddate_str }</td>
- <td class="l-table-edit-td">
- <input type="text" id="dev_reject_enddate" name="dev_reject_enddate" value="${requestScope.device.dev_reject_enddate }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.dev_price_str }:</td>
- <td class="l-table-edit-text">
- <input type="text" id="dev_price" name="dev_price" value="${requestScope.device.dev_price }">
- </td>
- <td class="l-table-edit-text">${customDevice.dev_facture_date_str }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="dev_facture_date" name="dev_facture_date" value="${requestScope.device.dev_facture_date }" />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.dev_docs }:</td>
- <td class="l-table-edit-td" colspan="3">
-
- <input type="hidden" name="dev_docs" id="dev_docs">
- <!--folder: 存储文件的文件夹名称 -->
- <!--fieldName: 后台获取文档ID的属性名称 -->
- <jsp:include page="/include/file.jsp">
- <jsp:param name="fieldName" value="documentId"/>
- <jsp:param name="folder" value="erp/device"/>
- <jsp:param name="isView" value="0"/>
- <jsp:param name="isDelFile" value="1"/>
- <jsp:param name="documentId" value=""/>
- <jsp:param name="size" value="1" />
- <jsp:param name="definedCss" value="file-style" />
- </jsp:include>
-
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.dev_remark }:</td>
- <td class="l-table-edit-td" colspan="3">
- <input type="text" id="dev_remark" name="dev_remark" value="${requestScope.device.dev_remark }">
- </td>
- </tr>
- <tr>
- <th colspan="4">
- 自定义
- </th>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.other1 }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other1" name="other1" value="${requestScope.device.other1 }">
- </td>
- <td class="l-table-edit-text">${customDevice.other2 }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other2" name="other2" value="${requestScope.device.other2 }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.other3 }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other3" name="other3" value="${requestScope.device.other3 }">
- </td>
- <td class="l-table-edit-text">${customDevice.other4 }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other4" name="other4" value="${requestScope.device.other4 }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.other5 }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other5" name="other5" value="${requestScope.device.other5 }">
- </td>
- <td class="l-table-edit-text">${customDevice.other6 }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other6" name="other6" value="${requestScope.device.other6 }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.other7 }7:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other7" name="other7" value="${requestScope.device.other7 }">
- </td>
- <td class="l-table-edit-text">${customDevice.other8 }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other8" name="other8" value="${requestScope.device.other8 }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.other9 }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other9" name="other9" value="${requestScope.device.other9 }">
- </td>
- <td class="l-table-edit-text">${customDevice.other10 }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other10" name="other10" value="${requestScope.device.other10 }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.other11 }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other11" name="other11" value="${requestScope.device.other11 }">
- </td>
- <td class="l-table-edit-text">${customDevice.other12 }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other12" name="other12" value="${requestScope.device.other12 }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.other13_str }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other13" name="other13" value="${requestScope.device.other13 }">
- </td>
- <td class="l-table-edit-text">${customDevice.other14_str }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other14" name="other14" value="${requestScope.device.other14 }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.other15_str }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other15" name="other15" value="${requestScope.device.other15 }">
- </td>
- <td class="l-table-edit-text">${customDevice.other16_str }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other16" name="other16" value="${requestScope.device.other16 }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.other17_str }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other17" name="other17" value="${requestScope.device.other17 }">
- </td>
- <td class="l-table-edit-text">${customDevice.other18_str }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other18" name="other18" value="${requestScope.device.other18 }">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">${customDevice.other19_str }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other19" name="other19" value="${requestScope.device.other19 }">
- </td>
- <td class="l-table-edit-text">${customDevice.other20_str }:</td>
- <td class="l-table-edit-td">
- <input type="text" id="other20" name="other20" value="${requestScope.device.other20 }">
- </td>
- </tr>
- </table>
- <input type="hidden" id="dev_id" name="dev_id" value="${requestScope.device.dev_id }">
- <input type="hidden" id="task" name="task" value="doEditDevice">
- <input type="hidden" id="tabid" name="tabid" value="${requestScope.tabid}">
- </center>
- </div>
- </div>
- </form>
- </body>
- </html>
|