edit.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:17k
源码类别:

PlugIns编程

开发平台:

Java

  1. <html>
  2.     <head>
  3.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  4.         <meta name="layout" content="main" />
  5.         <title><g:message code="inovice.edit" default="Edit Inovice" /></title>
  6.     </head>
  7.     <body>
  8.         <div class="nav">
  9.             <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
  10.             <span class="menuButton"><g:link class="list" action="list"><g:message code="inovice.list" default="Inovice List" /></g:link></span>
  11.             <span class="menuButton"><g:link class="create" action="create" params="${[_inoBuyname:params._inoBuyname,_inoBuycompany:params._inoBuycompany,_inoCargoname:params._inoCargoname,_inoLastchangefrom:params._inoLastchangefrom,_inoLastchangeto:params._inoLastchangeto,_inoDel:params._inoDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}"><g:message code="inovice.new" default="New Inovice" /></g:link></span>
  12.         </div>
  13.         <div class="body">
  14.             <h1><g:message code="inovice.edit" default="Edit Inovice" /></h1>
  15.             <g:if test="${flash.message}">
  16.             <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
  17.             </g:if>
  18.             <g:hasErrors bean="${inovice}">
  19.             <div class="errors">
  20.                 <g:renderErrors bean="${inovice}" as="list" />
  21.             </div>
  22.             </g:hasErrors>
  23.             <g:form method="post" >
  24.                 <input type="hidden" name="id" value="${inovice?.id}" />
  25.                 <div class="dialog">
  26.                     <table>
  27.                         <tbody>
  28.                         
  29.                             <tr class="prop">
  30.                                 <td valign="top" class="name">
  31.                                     <label for="inoId"><g:message code="inovice.inoId" default="Ino Id" />:</label>
  32.                                 </td>
  33.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoId','errors')}">
  34.                                     <input type="text" readonly="true" maxlength="16" id="inoId" name="inoId" value="${fieldValue(bean:inovice,field:'inoId')}"/>
  35.                                 </td>
  36.                             </tr> 
  37.                         
  38.                             <tr class="prop">
  39.                                 <td valign="top" class="name">
  40.                                     <label for="inoBuyname"><g:message code="inovice.inoBuyname" default="Ino Buyname" />:</label>
  41.                                 </td>
  42.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoBuyname','errors')}">
  43.                                     <input type="text" maxlength="10" id="inoBuyname" name="inoBuyname" value="${fieldValue(bean:inovice,field:'inoBuyname')}"/>
  44.                                 </td>
  45.                                 <td valign="top" class="name">
  46.                                     <label for="inoBuycompany"><g:message code="inovice.inoBuycompany" default="Ino Buycompany" />:</label>
  47.                                 </td>
  48.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoBuycompany','errors')}">
  49.                                     <input type="text" maxlength="25" id="inoBuycompany" name="inoBuycompany" value="${fieldValue(bean:inovice,field:'inoBuycompany')}"/>
  50.                                 </td>
  51.                             </tr> 
  52.                         
  53.                             <tr class="prop">
  54.                                 <td valign="top" class="name">
  55.                                     <label for="inoBuytel"><g:message code="inovice.inoBuytel" default="Ino Buytel" />:</label>
  56.                                 </td>
  57.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoBuytel','errors')}">
  58.                                     <input type="text" maxlength="20" id="inoBuytel" name="inoBuytel" value="${fieldValue(bean:inovice,field:'inoBuytel')}"/>
  59.                                 </td>
  60.                                 <td valign="top" class="name">
  61.                                     <label for="inoBuyaddress"><g:message code="inovice.inoBuyaddress" default="Ino Buyaddress" />:</label>
  62.                                 </td>
  63.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoBuyaddress','errors')}">
  64.                                     <input type="text" maxlength="50" id="inoBuyaddress" name="inoBuyaddress" value="${fieldValue(bean:inovice,field:'inoBuyaddress')}"/>
  65.                                 </td>
  66.                             </tr> 
  67.                         
  68.                             <tr class="prop">
  69.                                 <td valign="top" class="name">
  70.                                     <label for="inoCargoid"><g:message code="inovice.inoCargoid" default="Ino Cargoid" />:</label>
  71.                                 </td>
  72.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargoid','errors')}">
  73.                                     <input type="text" maxlength="16" id="inoCargoid" name="inoCargoid" value="${fieldValue(bean:inovice,field:'inoCargoid')}"/>
  74.                                 </td>
  75.                                 <td valign="top" class="name">
  76.                                     <label for="inoCargoname"><g:message code="inovice.inoCargoname" default="Ino Cargoname" />:</label>
  77.                                 </td>
  78.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargoname','errors')}">
  79.                                     <input type="text" maxlength="20" id="inoCargoname" name="inoCargoname" value="${fieldValue(bean:inovice,field:'inoCargoname')}"/>
  80.                                 </td>
  81.                             </tr> 
  82.                         
  83.                             <tr class="prop">
  84.                                 <td valign="top" class="name">
  85.                                     <label for="inoCargostandard"><g:message code="inovice.inoCargostandard" default="Ino Cargostandard" />:</label>
  86.                                 </td>
  87.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargostandard','errors')}">
  88.                                     <input type="text" maxlength="20" id="inoCargostandard" name="inoCargostandard" value="${fieldValue(bean:inovice,field:'inoCargostandard')}"/>
  89.                                 </td>
  90.                                 <td valign="top" class="name">
  91.                                     <label for="inoCargounit"><g:message code="inovice.inoCargounit" default="Ino Cargounit" />:</label>
  92.                                 </td>
  93.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargounit','errors')}">
  94.                                     <input type="text" maxlength="20" id="inoCargounit" name="inoCargounit" value="${fieldValue(bean:inovice,field:'inoCargounit')}"/>
  95.                                 </td>
  96.                             </tr> 
  97.                         
  98.                             <tr class="prop">
  99.                                 <td valign="top" class="name">
  100.                                     <label for="inoCargonumber"><g:message code="inovice.inoCargonumber" default="Ino Cargonumber" />:</label>
  101.                                 </td>
  102.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargonumber','errors')}">
  103.                                     <input type="text" id="inoCargonumber" name="inoCargonumber" value="${fieldValue(bean:inovice,field:'inoCargonumber')}" />
  104.                                 </td>
  105.                                 <td valign="top" class="name">
  106.                                     <label for="inoCargoprice"><g:message code="inovice.inoCargoprice" default="Ino Cargoprice" />:</label>
  107.                                 </td>
  108.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargoprice','errors')}">
  109.                                     <input type="text" id="inoCargoprice" name="inoCargoprice" value="${fieldValue(bean:inovice,field:'inoCargoprice')}" />
  110.                                 </td>
  111.                             </tr> 
  112.                         
  113.                             <tr class="prop">
  114.                                 <td valign="top" class="name">
  115.                                     <label for="inoSellman"><g:message code="inovice.inoSellman" default="Ino Sellman" />:</label>
  116.                                 </td>
  117.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoSellman','errors')}">
  118.                                     <input type="text" maxlength="10" id="inoSellman" name="inoSellman" value="${fieldValue(bean:inovice,field:'inoSellman')}"/>
  119.                                 </td>
  120.                                 <td valign="top" class="name">
  121.                                     <label for="inoSellcompany"><g:message code="inovice.inoSellcompany" default="Ino Sellcompany" />:</label>
  122.                                 </td>
  123.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoSellcompany','errors')}">
  124.                                     <input type="text" maxlength="25" id="inoSellcompany" name="inoSellcompany" value="${fieldValue(bean:inovice,field:'inoSellcompany')}"/>
  125.                                 </td>
  126.                             </tr> 
  127.                         
  128.                             <tr class="prop">
  129.                                 <td valign="top" class="name">
  130.                                     <label for="inoSelltel"><g:message code="inovice.inoSelltel" default="Ino Selltel" />:</label>
  131.                                 </td>
  132.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoSelltel','errors')}">
  133.                                     <input type="text" maxlength="20" id="inoSelltel" name="inoSelltel" value="${fieldValue(bean:inovice,field:'inoSelltel')}"/>
  134.                                 </td>
  135.                                 <td valign="top" class="name">
  136.                                     <label for="inoSellAddress"><g:message code="inovice.inoSellAddress" default="Ino Sell Address" />:</label>
  137.                                 </td>
  138.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoSellAddress','errors')}">
  139.                                     <input type="text" maxlength="50" id="inoSellAddress" name="inoSellAddress" value="${fieldValue(bean:inovice,field:'inoSellAddress')}"/>
  140.                                 </td>
  141.                             </tr> 
  142.                         
  143.                             <tr class="prop">
  144.                                 <td valign="top" class="name">
  145.                                     <label for="inoRate"><g:message code="inovice.inoRate" default="Ino Rate" />:</label>
  146.                                 </td>
  147.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoRate','errors')}">
  148.                                     <input type="text" id="inoRate" name="inoRate" value="${fieldValue(bean:inovice,field:'inoRate')}" />
  149.                                 </td>
  150.                                 <td valign="top" class="name" rowspan="3">
  151.                                     <label for="inoMemo"><g:message code="inovice.inoMemo" default="Ino Memo" />:</label>
  152.                                 </td>
  153.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoMemo','errors')}" rowspan="3">
  154.                                     <textarea rows="5" cols="40" name="inoMemo">${inovice?.inoMemo?.encodeAsHTML()}</textarea>
  155.                                 </td>
  156.                             </tr> 
  157.                             <tr class="prop">
  158.                                 <td valign="top" class="name">
  159.                                     <label for="inoRatebefore"><g:message code="inovice.inoRatebefore" default="Ino Ratebefore" />:</label>
  160.                                 </td>
  161.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoRatebefore','errors')}">
  162.                                     <input type="text" id="inoRatebefore" name="inoRatebefore" value="${fieldValue(bean:inovice,field:'inoRatebefore')}" />
  163.                                 </td>
  164.                             </tr> 
  165.                         
  166.                             <tr class="prop">
  167.                                 <td valign="top" class="name">
  168.                                     <label for="inoRateafte"><g:message code="inovice.inoRateafte" default="Ino Rateafte" />:</label>
  169.                                 </td>
  170.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoRateafte','errors')}">
  171.                                     <input type="text" id="inoRateafte" name="inoRateafte" value="${fieldValue(bean:inovice,field:'inoRateafte')}" />
  172.                                 </td>
  173.                             </tr>
  174.                            
  175.                         
  176.                             <tr class="prop">
  177.                                 <td valign="top" class="name">
  178.                                     <label for="inoCreatetime"><g:message code="inovice.inoCreatetime" default="Ino Createtime" />:</label>
  179.                                 </td>
  180.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCreatetime','errors')}">
  181.                                     ${inovice?.inoCreatetime}
  182.                                 </td>
  183.                                 <td valign="top" class="name">
  184.                                     <label for="inoCreater"><g:message code="inovice.inoCreater" default="Ino Creater" />:</label>
  185.                                 </td>
  186.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCreater','errors')}">
  187.                                     ${fieldValue(bean:inovice,field:'inoCreater')}
  188.                                 </td>
  189.                             </tr> 
  190.                         
  191.                             <tr class="prop">
  192.                                 <td valign="top" class="name">
  193.                                     <label for="inoLastchange"><g:message code="inovice.inoLastchange" default="Ino Lastchange" />:</label>
  194.                                 </td>
  195.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoLastchange','errors')}">
  196.                                     ${inovice?.inoLastchange}
  197.                                 </td>
  198.                            
  199.                                 <td valign="top" class="name">
  200.                                     <label for="inoLastchanger"><g:message code="inovice.inoLastchanger" default="Ino Lastchanger" />:</label>
  201.                                 </td>
  202.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoLastchanger','errors')}">
  203.                                     ${fieldValue(bean:inovice,field:'inoLastchanger')}
  204.                                 </td>
  205.                             </tr> 
  206.                         
  207.                         </tbody>
  208.                     </table>
  209.                 </div>
  210.                 <div class="buttons">
  211.                     <input type="hidden" name="_inoBuyname" value="${params._inoBuyname}" />
  212.                     <input type="hidden" name="_inoBuycompany" value="${params._inoBuycompany}" />
  213.                     <input type="hidden" name="_inoCargoname" value="${params._inoCargoname}" />
  214.                     <input type="hidden" name="_inoLastchangefrom" value="${params._inoLastchangefrom}" />
  215.                     <input type="hidden" name="_inoLastchangeto" value="${params._inoLastchangeto}" />
  216.                     <input type="hidden" name="_inoDel" value="${params._inoDel}" />
  217.                     <input type="hidden" name="offset" value="${params.offset}" />
  218.                     <input type="hidden" name="sort" value="${params.sort}" />
  219.                     <input type="hidden" name="order" value="${params.order}" /> 
  220.                     <span class="button"><g:actionSubmit class="save" action="Update" value="${message(code:'update', 'default':'Update')}" /></span>
  221.                     <span class="button"><g:actionSubmit class="delete" onclick="return confirm('${message(code:'delete.confirm', 'default':'Are you sure?')}');" action="Delete" value="${message(code:'delete', 'default':'Delete')}" /></span>
  222.                     <span class="button"><input  class="delete" type="button" onclick=" history.go(-1);" value="${message(code:'back', 'default':'Back')}"/> </span>
  223.                 </div>
  224.             </g:form>
  225.         </div>
  226.     </body>
  227. </html>