123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <script type="text/javascript">
- var detail_load = function(rentId){
- $("#rentId_update").val(rentId);
- $.ajax({
- type: "post",//使用get方法访问后台
- dataType: "json",//返回json格式的数据
- url: "rent10Action_findById",//要访问的后台地址
- data: "rent10.id="+rentId,//要发送的数据
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){
- if(msg.success){
- $("#contractNo_update").val(msg.obj.contractNo);
- $("#billNo_update").val(msg.obj.billNo);
- $("#depositBillNo_update").val(msg.obj.depositBillNo);
- }
- }
- })
- $.ajax({
- type: "post",//使用get方法访问后台
- dataType: "json",//返回json格式的数据
- url: "rent10Action_sequenceFindById",//要访问的后台地址
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){
- if(msg.success){
- $("#sequence_update").val(msg.obj);
- }
- }
- })
- }
-
- var updateRent10_submit = function(){
- $('#updateForm').form('submit',{
- url : whzl.basePath+'/rent10Action_updateRent10ContractNo',
- success : function(result){
- var parseResult = $.parseJSON(result);
- if(parseResult.success){
- $("#updateDialog").dialog("close");
- $("#rentDataGrid4").datagrid("reload");
- }
- }
- });
- }
- </script>
- <form id="updateForm" method="post">
- <table class="mytable" style="width: 100%;">
- <tr>
- <th>合同号</th>
- <td>
- <input type="text" id="contractNo_update" name="rent10.contractNo" class="easyui-validatebox" required="true">
- <input type="hidden" id="rentId_update" name="rent10.id"/>
- </td>
- <th>最新合同序号</th>
- <td>
- <input type="text" id="sequence_update" name="rent10.remarks">
- </td>
- </tr>
- <tr>
- <th>租金票据号</th>
- <td>
- <input type="text" id="billNo_update" name="rent10.billNo" class="easyui-validatebox" required="true">
- </td>
- <th>押金票据号</th>
- <td>
- <input type="text" id="depositBillNo_update" name="rent10.depositBillNo">
- </td>
- </tr>
- </table>
- </form>
|