123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <%--
- time:2017-06-09 10:17:02
- desc:edit the SYS_GOODS_INVENTORY
- --%>
- <%@page language="java" pageEncoding="UTF-8"%>
- <%@include file="/commons/include/html_doctype.html"%>
- <html>
- <head>
- <title>编辑 SYS_GOODS_INVENTORY</title>
- <%@include file="/commons/include/form.jsp" %>
- <script type="text/javascript" src="${ctx}/js/hotent/CustomValid.js"></script>
- <script type="text/javascript">
- $(function() {
- $("a.save").click(function() {
- $("#sysGoodsInventoryForm").attr("action","save.ht");
- $("#saveData").val(1);
- submitForm();
- });
- });
- //提交表单
- function submitForm(){
- var options={};
- if(showResponse){
- options.success=showResponse;
- }
- var frm=$('#sysGoodsInventoryForm').form();
- frm.ajaxForm(options);
- if(frm.valid()){
- frm.submit();
- }
- }
-
- function showResponse(responseText) {
- var obj = new com.hotent.form.ResultMessage(responseText);
- if(!obj.isSuccess()){
- $.ligerDialog.err("提示信息"," SYS_GOODS_INVENTORY保存失败!",obj.getMessage());
- return;
- }
- $.ligerDialog.confirm(obj.getMessage()+",是否继续操作","提示信息", function(rtn) {
- if(rtn){
- window.location.href = window.location.href;
- }else{
- window.location.href = "${ctx}/platform/system/sysGoodsInventory/list.ht";
- }
- });
- }
- </script>
- </head>
- <body>
- <div class="panel">
- <div class="panel-top">
- <div class="tbar-title">
- <c:choose>
- <c:when test="${sysGoodsInventory.id !=null}">
- <span class="tbar-label"><span></span>编辑SYS_GOODS_INVENTORY</span>
- </c:when>
- <c:otherwise>
- <span class="tbar-label"><span></span>添加SYS_GOODS_INVENTORY</span>
- </c:otherwise>
- </c:choose>
- </div>
- <div class="panel-toolbar">
- <div class="toolBar">
- <div class="group"><a class="link save" id="dataFormSave" href="#"><span></span>保存</a></div>
- <div class="l-bar-separator"></div>
- <div class="group"><a class="link back" href="list.ht"><span></span>返回</a></div>
- </div>
- </div>
- </div>
- <div class="panel-body">
- <form id="sysGoodsInventoryForm" method="post" action="save.ht">
- <table class="table-detail" cellpadding="0" cellspacing="0" border="0" type="main">
- <tr>
- <th width="20%">物品流水号: </th>
- <td><input type="text" id="productid" name="productid" value="${sysGoodsInventory.productid}" class="inputText" validate="{required:false,number:true}" /></td>
- </tr>
- <tr>
- <th width="20%">数量: </th>
- <td><input type="text" id="quantity" name="quantity" value="${sysGoodsInventory.quantity}" class="inputText" validate="{required:false,number:true}" /></td>
- </tr>
- </table>
- <input type="hidden" name="id" value="${sysGoodsInventory.id}" />
- <input type="hidden" name="saveData" id="saveData" />
- <input type="hidden" name="executeType" value="start" />
- </form>
-
- </div>
- </div>
- </body>
- </html>
|