sysGoodsInventoryEdit.jsp 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <%--
  2. time:2017-06-09 10:17:02
  3. desc:edit the SYS_GOODS_INVENTORY
  4. --%>
  5. <%@page language="java" pageEncoding="UTF-8"%>
  6. <%@include file="/commons/include/html_doctype.html"%>
  7. <html>
  8. <head>
  9. <title>编辑 SYS_GOODS_INVENTORY</title>
  10. <%@include file="/commons/include/form.jsp" %>
  11. <script type="text/javascript" src="${ctx}/js/hotent/CustomValid.js"></script>
  12. <script type="text/javascript">
  13. $(function() {
  14. $("a.save").click(function() {
  15. $("#sysGoodsInventoryForm").attr("action","save.ht");
  16. $("#saveData").val(1);
  17. submitForm();
  18. });
  19. });
  20. //提交表单
  21. function submitForm(){
  22. var options={};
  23. if(showResponse){
  24. options.success=showResponse;
  25. }
  26. var frm=$('#sysGoodsInventoryForm').form();
  27. frm.ajaxForm(options);
  28. if(frm.valid()){
  29. frm.submit();
  30. }
  31. }
  32. function showResponse(responseText) {
  33. var obj = new com.hotent.form.ResultMessage(responseText);
  34. if(!obj.isSuccess()){
  35. $.ligerDialog.err("提示信息"," SYS_GOODS_INVENTORY保存失败!",obj.getMessage());
  36. return;
  37. }
  38. $.ligerDialog.confirm(obj.getMessage()+",是否继续操作","提示信息", function(rtn) {
  39. if(rtn){
  40. window.location.href = window.location.href;
  41. }else{
  42. window.location.href = "${ctx}/platform/system/sysGoodsInventory/list.ht";
  43. }
  44. });
  45. }
  46. </script>
  47. </head>
  48. <body>
  49. <div class="panel">
  50. <div class="panel-top">
  51. <div class="tbar-title">
  52. <c:choose>
  53. <c:when test="${sysGoodsInventory.id !=null}">
  54. <span class="tbar-label"><span></span>编辑SYS_GOODS_INVENTORY</span>
  55. </c:when>
  56. <c:otherwise>
  57. <span class="tbar-label"><span></span>添加SYS_GOODS_INVENTORY</span>
  58. </c:otherwise>
  59. </c:choose>
  60. </div>
  61. <div class="panel-toolbar">
  62. <div class="toolBar">
  63. <div class="group"><a class="link save" id="dataFormSave" href="#"><span></span>保存</a></div>
  64. <div class="l-bar-separator"></div>
  65. <div class="group"><a class="link back" href="list.ht"><span></span>返回</a></div>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="panel-body">
  70. <form id="sysGoodsInventoryForm" method="post" action="save.ht">
  71. <table class="table-detail" cellpadding="0" cellspacing="0" border="0" type="main">
  72. <tr>
  73. <th width="20%">物品流水号: </th>
  74. <td><input type="text" id="productid" name="productid" value="${sysGoodsInventory.productid}" class="inputText" validate="{required:false,number:true}" /></td>
  75. </tr>
  76. <tr>
  77. <th width="20%">数量: </th>
  78. <td><input type="text" id="quantity" name="quantity" value="${sysGoodsInventory.quantity}" class="inputText" validate="{required:false,number:true}" /></td>
  79. </tr>
  80. </table>
  81. <input type="hidden" name="id" value="${sysGoodsInventory.id}" />
  82. <input type="hidden" name="saveData" id="saveData" />
  83. <input type="hidden" name="executeType" value="start" />
  84. </form>
  85. </div>
  86. </div>
  87. </body>
  88. </html>