| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <%-- <%@ include file="/include/head.jsp"%> --%>
- <%@ page contentType="text/html;charset=GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <HEAD>
- <TITLE>新增司机</TITLE>
- <link href="main.css" rel="stylesheet" type="text/css"></link>
- <link href="./liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css"></link>
- <script type="text/javascript" src="/shares/js/jquery-1.3.2.min.js"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/file.js"></script>
- <script src="/shares/xheditor/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js" type="text/javascript" ></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $("input[type='text']:first").focus();
- });
- function selectStoreDepot(){
- var obj = window.top;
- var checkValue = $("#counter\\.sdepot_id").val();
- if (obj != undefined && obj != null) {
- obj.$.ligerDialog.open({
- title : '选择承运方',
- width : 900,
- height : 370,
- url : 'erpEndProdStoreDepotAction.do?task=toList&lookup=lookup&checkbox=true&checkValue='+checkValue,
- buttons : [ {
- text : '确定',
- onclick : f_selectStoreDepotOK
- },{
- text : '取消',
- onclick : f_selectStoreDepotCancel
- } ]
- });
- }
- }
- function f_selectStoreDepotOK(item,dialog){
- var rows = dialog.frame.f_select();
- $("#counter\\.sdepot_id").val(rows[0].universalid);
- $("#counter\\.sdepot_name").val(rows[0].sdepot_name);
- dialog.close();
- }
- function f_selectStoreDepotCancel(item,dialog){
- dialog.close();
- }
- function addCounterEntry(){
- var rs = $.validate({name:"counter.counter_no",model:[{type:"require",msg:"点包机编号不能为空!"}]});
- rs &= $.validate({name:"counter.counter_name",model:[{type:"require",msg:"点包机名称不能为空!"}]});
- rs &= $.validate({name:"counter.sdepot_name",model:[{type:"require",msg:"发料仓库不能为空!"}]});
- if(!rs)return;
- $("#addCounterEntryForm").submit();
- }
- </script>
- <style type="text/css">
- body {
- padding: 5px;
- margin: 0;
- }
- #layout1 {
- width: 99.5%;
- margin: 0;
- padding: 0;
- }
- .l-button {
- margin-left: 1px;
- }
- #deptBtn {
- width: 100%;
- background: #e5ecf9;
- text-align: center;
- height: 25px;
- padding-top: 3px
- }
- #leftBtn{
- width: 100%;
- background: #e5ecf9;
- height: 25px;
- padding-top: 3px
- }
- .l-layout-left {
- overflow-y: auto;
- }
- #displayMoneyDiv{
- font-family: "楷体_GB2312";
- /* "宋体",, "黑体",Arial,Helvetica, sans-serif */
- /* color:#000000; */
- color:red;
- font-size: 13px;
- }
- </style>
- </HEAD>
- <BODY>
- <%@ include file="/include/button.jsp"%>
- <%@ include file="/include/message.jsp"%>
- <div class="l-content">
- <form id="addCounterEntryForm" name="addCounterEntryForm" method="post" action="erpEndProdCounterAction.do?task=addCounterEntry">
- <div id="layout1">
- <div position="center" id="center" title="" class="forum-container">
- <input id="tabid" name="tabid" value="${param.tabid }" type="hidden"/>
- <div id="title" class="form-button">
- <input type="button" value="保存" class="l-button" onclick="addCounterEntry()" id="addCounterEntryBtn" />
- </div>
- <table border="0" cellspacing="1" cellpadding="0" class="l-table-edit line">
- <tr>
- <td class="l-table-edit-text">点包机编号<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input id="counter.counter_no" name="counter.counter_no" type='text' value="${counter.counter_no }" />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">点包机名称<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input id="counter.counter_name" name="counter.counter_name" type='text' value="${counter.counter_name }" style="width:260px;"/>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">发料仓库<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="hidden" id="counter.sdepot_id" name="counter.sdepot_id" value="${counter.sdepot_id }" />
- <input id="counter.sdepot_name" name="counter.sdepot_name" type='text' value="${counter.sdepot_name }" style="width:260px;" readonly="readonly"/>
- <input type="button" id="selectStoreDepotBtn" value="选择发料仓库" class="l-button" onclick="selectStoreDepot()" style="width:100px;"/>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </form>
- </div>
- </BODY>
- </HTML>
|