addCounterEntry.jsp 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <%-- <%@ include file="/include/head.jsp"%> --%>
  2. <%@ page contentType="text/html;charset=GBK"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <HEAD>
  6. <TITLE>新增司机</TITLE>
  7. <link href="main.css" rel="stylesheet" type="text/css"></link>
  8. <link href="./liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css"></link>
  9. <script type="text/javascript" src="/shares/js/jquery-1.3.2.min.js"></script>
  10. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  11. <script type="text/javascript" src="/shares/js/common.js"></script>
  12. <script type="text/javascript" src="/shares/js/constant.js"></script>
  13. <script type="text/javascript" src="/shares/js/file.js"></script>
  14. <script src="/shares/xheditor/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js" type="text/javascript" ></script>
  15. <script type="text/javascript">
  16. $(document).ready(function(){
  17. $("input[type='text']:first").focus();
  18. });
  19. function selectStoreDepot(){
  20. var obj = window.top;
  21. var checkValue = $("#counter\\.sdepot_id").val();
  22. if (obj != undefined && obj != null) {
  23. obj.$.ligerDialog.open({
  24. title : '选择承运方',
  25. width : 900,
  26. height : 370,
  27. url : 'erpEndProdStoreDepotAction.do?task=toList&lookup=lookup&checkbox=true&checkValue='+checkValue,
  28. buttons : [ {
  29. text : '确定',
  30. onclick : f_selectStoreDepotOK
  31. },{
  32. text : '取消',
  33. onclick : f_selectStoreDepotCancel
  34. } ]
  35. });
  36. }
  37. }
  38. function f_selectStoreDepotOK(item,dialog){
  39. var rows = dialog.frame.f_select();
  40. $("#counter\\.sdepot_id").val(rows[0].universalid);
  41. $("#counter\\.sdepot_name").val(rows[0].sdepot_name);
  42. dialog.close();
  43. }
  44. function f_selectStoreDepotCancel(item,dialog){
  45. dialog.close();
  46. }
  47. function addCounterEntry(){
  48. var rs = $.validate({name:"counter.counter_no",model:[{type:"require",msg:"点包机编号不能为空!"}]});
  49. rs &= $.validate({name:"counter.counter_name",model:[{type:"require",msg:"点包机名称不能为空!"}]});
  50. rs &= $.validate({name:"counter.sdepot_name",model:[{type:"require",msg:"发料仓库不能为空!"}]});
  51. if(!rs)return;
  52. $("#addCounterEntryForm").submit();
  53. }
  54. </script>
  55. <style type="text/css">
  56. body {
  57. padding: 5px;
  58. margin: 0;
  59. }
  60. #layout1 {
  61. width: 99.5%;
  62. margin: 0;
  63. padding: 0;
  64. }
  65. .l-button {
  66. margin-left: 1px;
  67. }
  68. #deptBtn {
  69. width: 100%;
  70. background: #e5ecf9;
  71. text-align: center;
  72. height: 25px;
  73. padding-top: 3px
  74. }
  75. #leftBtn{
  76. width: 100%;
  77. background: #e5ecf9;
  78. height: 25px;
  79. padding-top: 3px
  80. }
  81. .l-layout-left {
  82. overflow-y: auto;
  83. }
  84. #displayMoneyDiv{
  85. font-family: "楷体_GB2312";
  86. /* "宋体",, "黑体",Arial,Helvetica, sans-serif */
  87. /* color:#000000; */
  88. color:red;
  89. font-size: 13px;
  90. }
  91. </style>
  92. </HEAD>
  93. <BODY>
  94. <%@ include file="/include/button.jsp"%>
  95. <%@ include file="/include/message.jsp"%>
  96. <div class="l-content">
  97. <form id="addCounterEntryForm" name="addCounterEntryForm" method="post" action="erpEndProdCounterAction.do?task=addCounterEntry">
  98. <div id="layout1">
  99. <div position="center" id="center" title="" class="forum-container">
  100. <input id="tabid" name="tabid" value="${param.tabid }" type="hidden"/>
  101. <div id="title" class="form-button">
  102. <input type="button" value="保存" class="l-button" onclick="addCounterEntry()" id="addCounterEntryBtn" />
  103. </div>
  104. <table border="0" cellspacing="1" cellpadding="0" class="l-table-edit line">
  105. <tr>
  106. <td class="l-table-edit-text">点包机编号<FONT COLOR="red">*</FONT>:</td>
  107. <td class="l-table-edit-td">
  108. <input id="counter.counter_no" name="counter.counter_no" type='text' value="${counter.counter_no }" />
  109. </td>
  110. </tr>
  111. <tr>
  112. <td class="l-table-edit-text">点包机名称<FONT COLOR="red">*</FONT>:</td>
  113. <td class="l-table-edit-td">
  114. <input id="counter.counter_name" name="counter.counter_name" type='text' value="${counter.counter_name }" style="width:260px;"/>
  115. </td>
  116. </tr>
  117. <tr>
  118. <td class="l-table-edit-text">发料仓库<FONT COLOR="red">*</FONT>:</td>
  119. <td class="l-table-edit-td">
  120. <input type="hidden" id="counter.sdepot_id" name="counter.sdepot_id" value="${counter.sdepot_id }" />
  121. <input id="counter.sdepot_name" name="counter.sdepot_name" type='text' value="${counter.sdepot_name }" style="width:260px;" readonly="readonly"/>
  122. <input type="button" id="selectStoreDepotBtn" value="选择发料仓库" class="l-button" onclick="selectStoreDepot()" style="width:100px;"/>
  123. </td>
  124. </tr>
  125. </table>
  126. </div>
  127. </div>
  128. </form>
  129. </div>
  130. </BODY>
  131. </HTML>