| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- <%@ 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>
- <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <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/file.js"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.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 src="/shares/xheditor/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/json2.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerSpinner.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" src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js"></script>
- <link rel="stylesheet" type="text/css" href="/shares/css/yw/master1/${sessionScope.loginFrom}/jquery.jscrollpane.codrops1.css" />
- <script type="text/javascript" src="/shares/js/yw/master1/jquery.mousewheel.js"></script>
- <!-- the jScrollPane script -->
- <script type="text/javascript" src="/shares/js/yw/master1/jquery.jscrollpane.min.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/scroll-startstop.events.jquery.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/scroll.js"></script>
- <script type="text/javascript">
- //焦点
- $(document).ready(function() {
- $("input[type='text']:first").focus();
- //$("#oil_depot_id").ligerComboBox();
- //$("#oil_num_id").ligerComboBox();
- //$("#oilType").ligerComboBox();
- });
-
- function checkForm(){
- var rs = $.validate({
- name : "oil_depot_id",
- model : [ {
- type : "require",
- msg : "油库不能为空!"
- }]
- });
- rs = $.validate({
- name : "oil_num_id",
- model : [ {
- type : "require",
- msg : "油号不能为空!"
- } ]
- }) && rs;
- rs = $.validate({
- name : "oilIn.in_time",
- model : [ {
- type : "require",
- msg : "进油时间不能为空!"
- } ]
- }) && rs;
- if (rs) {
- return true;
- }else{
- return false;
- }
- }
- $(function() {
- $("#in_time").ligerDateEditor({showTime: true,labelAlign : 'left',width : 171,height : 21});
- });
- function refresh(obj){
- if(obj == "1"){
- parent.location.reload();
- }
- }
- function check(event) {
- var e = window.event || event;
- var target = e.srcElement || e.target;
- var k = e.keyCode;
- if(isFunKey(k)) {
- return true;
- }
- var c = getChar(k);
- if(target.value.length == '' && (c == '-' || c == '+')) {
- return true;
- }
- if(isNaN(target.value + getChar(k))) {
- return false;
- }
- return true;
- }
- function isFunKey(code) {
- // 8 --> Backspace
- // 35 --> End
- // 36 --> Home
- // 37 --> Left Arrow
- // 39 --> Right Arrow
- // 46 --> Delete
- // 112~123 --> F1~F12
- var funKeys = [8, 35, 36, 37, 39, 46];
- for(var i = 112; i <= 123; i++) {
- funKeys.push(i);
- }
- for(var i = 0; i < funKeys.length; i++) {
- if(funKeys[i] == code) {
- return true;
- }
- }
- return false;
- }
- function getChar(k) {
- if(k >= 48 && k <= 57) {
- return String.fromCharCode(k);
- }
- if(k >= 96 && k <= 105) {
- return String.fromCharCode(k - 48);
- }
- if(k == 110 || k == 190 || k== 188 ) {
- return ".";
- }
- if(k == 109 || k == 189) {
- return "-";
- }
- if(k == 107 || k == 187) {
- return "+";
- }
- return "#";
- }
- </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;
- }
- body {
- background: #fff;
- }
- </style>
- </head>
- <body style="background: none; overflow: hidden;" ontouchmove="event.preventDefault();">
- <%@ include file="/include/message.jsp"%>
- <form action="MTOilDepot.do" method="post" onsubmit="return checkForm()">
- <div class="s_title b10 f6">
- <img src="/shares/images/master1/gg_ico.png" width="27" height="26" /> 编辑进油
- <div class="article_title">
- <input class="art_back" style="width: 50px;" title="返回" name="" onclick="history.back();" type="button" />
- <input class="art_sub" title="保存" name="" type="submit" value=""/>
- </div>
- </div>
- <div id="jp-container" class="jp-container liuyan">
- <div class="forum-container">
- <center>
- <table class="l-table-edit line">
- <tr>
- <th colspan="4">
- 进油记录
- </th>
- </tr>
- <tr>
- <td class="l-table-edit-text" width="15%">油库<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td" width="85%" colspan="3">
- <select name="oilIn.oil_depot_id" id="oil_depot_id" class="default-select" style="width: 173px;">
- <option value="${oilIns.oil_depot_id }">${oilIns.oil_depot_name }</option>
- <c:forEach items="${depots }" var="depots">
- <c:if test="${oilIns.oil_depot_id != depots.universalid}">
- <option value="${depots.universalid }">${depots.oil_depot_name }</option>
- </c:if>
- </c:forEach>
- </select>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">油号<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td" colspan="3">
- <select name="oilIn.oil_num_id" id="oil_num_id" class="default-select" style="width: 173px;">
- <option value="${oilIns.oil_num_id }">${oilIns.dictionary_name }</option>
- <c:forEach items="${dictionaries }" var="dictionaries">
- <c:if test="${oilIns.oil_num_id != dictionaries.dictionary_code}">
- <option value="${dictionaries.dictionary_code }">${dictionaries.dictionary_name }</option>
- </c:if>
- </c:forEach>
- </select>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">进油时间<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td" colspan="3">
- <input type="text" id="in_time" name="oilIn.in_time" value="${oilIns.in_times}">
- <input type="hidden" id="in_time" name="oilIn.in_time" value="">
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">进油量<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td" colspan="3">
- <select id="oilType" name="oilType" style="width: 173px;">
- <option value="1">升</option>
- <option value="2">公斤</option>
- </select>
- <input type="text" id="oil_mass" name="oilIn.oil_mass" value="${oilIns.oil_mass }" style="ime-mode:disabled;" onpaste="return false" onkeydown="return check(event)" onkeyup="if(isNaN(this.value)||this.value<0||this.value>100000000000) this.value='0'">
- </td>
- </tr>
-
- <tr>
- <td class="l-table-edit-text">备注:</td>
- <td class="l-table-edit-td" colspan="3">
- <div style="float: left;">
- <textarea id="remark" name="oilIn.remark" rows="3" cols="61">${oilIns.remark}</textarea>
- </div>
- </td>
- </tr>
- </table>
- <input type="hidden" id="universalid" name="oilIn.universalid" value="${oilIns.universalid}">
- <input type="hidden" name="oilIn2.oil_depot_id" value="${oilIns.oil_depot_id}">
- <input type="hidden" name="oilIn2.oil_num_id" value="${oilIns.oil_num_id}">
- <input type="hidden" name="oilIn2.oil_mass" value="${oilIns.oil_mass}">
- <input type="hidden" id="task" name="task" value="doEditOilIn">
- <input type="hidden" id="tabid" name="tabid" value="${requestScope.tabid}">
- </center>
- </div>
- </div>
- </form>
- </body>
- </html>
|