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

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.create" default="Create 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.         </div>
  12.         <div class="body">
  13.             <h1><g:message code="inovice.create" default="Create Inovice" /></h1>
  14.             <g:if test="${flash.message}">
  15.             <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
  16.             </g:if>
  17.             <g:hasErrors bean="${inovice}">
  18.             <div class="errors">
  19.                 <g:renderErrors bean="${inovice}" as="list" />
  20.             </div>
  21.             </g:hasErrors>
  22.             <g:form action="save" method="post" >
  23.                 <div class="dialog">
  24.                     <table>
  25.                         <tbody>
  26.                         
  27.                             <tr class="prop">
  28.                                 <td valign="top" class="name">
  29.                                     <label for="inoBuyname"><g:message code="inovice.inoBuyname" default="Ino Buyname" />:</label>
  30.                                 </td>
  31.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoBuyname','errors')}">
  32.                                     <input type="text" maxlength="10" id="inoBuyname" name="inoBuyname" value="${fieldValue(bean:inovice,field:'inoBuyname')}"/>
  33.                                 </td>
  34.                                 <td valign="top" class="name">
  35.                                     <label for="inoBuycompany"><g:message code="inovice.inoBuycompany" default="Ino Buycompany" />:</label>
  36.                                 </td>
  37.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoBuycompany','errors')}">
  38.                                     <input type="text" maxlength="25" id="inoBuycompany" name="inoBuycompany" value="${fieldValue(bean:inovice,field:'inoBuycompany')}"/>
  39.                                 </td>
  40.                             </tr> 
  41.                         
  42.                             <tr class="prop">
  43.                                 <td valign="top" class="name">
  44.                                     <label for="inoBuytel"><g:message code="inovice.inoBuytel" default="Ino Buytel" />:</label>
  45.                                 </td>
  46.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoBuytel','errors')}">
  47.                                     <input type="text" maxlength="20" id="inoBuytel" name="inoBuytel" value="${fieldValue(bean:inovice,field:'inoBuytel')}"/>
  48.                                 </td>
  49.                                 <td valign="top" class="name">
  50.                                     <label for="inoBuyaddress"><g:message code="inovice.inoBuyaddress" default="Ino Buyaddress" />:</label>
  51.                                 </td>
  52.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoBuyaddress','errors')}">
  53.                                     <input type="text" maxlength="50" id="inoBuyaddress" name="inoBuyaddress" value="${fieldValue(bean:inovice,field:'inoBuyaddress')}"/>
  54.                                 </td>
  55.                             </tr> 
  56.                         
  57.                             <tr class="prop">
  58.                                 <td valign="top" class="name">
  59.                                     <label for="inoCargoid"><g:message code="inovice.inoCargoid" default="Ino Cargoid" />:</label>
  60.                                 </td>
  61.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargoid','errors')}">
  62.                                     <input type="text" maxlength="16" id="inoCargoid" name="inoCargoid" value="${fieldValue(bean:inovice,field:'inoCargoid')}"/>
  63.                                 </td>
  64.                                 <td valign="top" class="name">
  65.                                     <label for="inoCargoname"><g:message code="inovice.inoCargoname" default="Ino Cargoname" />:</label>
  66.                                 </td>
  67.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargoname','errors')}">
  68.                                     <input type="text" maxlength="20" id="inoCargoname" name="inoCargoname" value="${fieldValue(bean:inovice,field:'inoCargoname')}"/>
  69.                                 </td>
  70.                             </tr> 
  71.                         
  72.                             <tr class="prop">
  73.                                 <td valign="top" class="name">
  74.                                     <label for="inoCargostandard"><g:message code="inovice.inoCargostandard" default="Ino Cargostandard" />:</label>
  75.                                 </td>
  76.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargostandard','errors')}">
  77.                                     <input type="text" maxlength="20" id="inoCargostandard" name="inoCargostandard" value="${fieldValue(bean:inovice,field:'inoCargostandard')}"/>
  78.                                 </td>
  79.                                 <td valign="top" class="name">
  80.                                     <label for="inoCargounit"><g:message code="inovice.inoCargounit" default="Ino Cargounit" />:</label>
  81.                                 </td>
  82.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargounit','errors')}">
  83.                                     <input type="text" maxlength="20" id="inoCargounit" name="inoCargounit" value="${fieldValue(bean:inovice,field:'inoCargounit')}"/>
  84.                                 </td>
  85.                             </tr> 
  86.                         
  87.                             <tr class="prop">
  88.                                 <td valign="top" class="name">
  89.                                     <label for="inoCargonumber"><g:message code="inovice.inoCargonumber" default="Ino Cargonumber" />:</label>
  90.                                 </td>
  91.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargonumber','errors')}">
  92.                                     <input type="text" id="inoCargonumber" name="inoCargonumber" value="${fieldValue(bean:inovice,field:'inoCargonumber')}" />
  93.                                 </td>
  94.                          
  95.                                 <td valign="top" class="name">
  96.                                     <label for="inoCargoprice"><g:message code="inovice.inoCargoprice" default="Ino Cargoprice" />:</label>
  97.                                 </td>
  98.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargoprice','errors')}">
  99.                                     <input type="text" id="inoCargoprice" name="inoCargoprice" value="${fieldValue(bean:inovice,field:'inoCargoprice')}" />
  100.                                 </td>
  101.                             </tr> 
  102.                         
  103.                             <tr class="prop">
  104.                                 <td valign="top" class="name">
  105.                                     <label for="inoSellman"><g:message code="inovice.inoSellman" default="Ino Sellman" />:</label>
  106.                                 </td>
  107.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoSellman','errors')}">
  108.                                     <input type="text" readonly="true" maxlength="10" id="inoSellman" name="inoSellman" value="${fieldValue(bean:inovice,field:'inoSellman')}"/>
  109.                                 </td>
  110.                                 <td valign="top" class="name">
  111.                                     <label for="inoSellcompany"><g:message code="inovice.inoSellcompany" default="Ino Sellcompany" />:</label>
  112.                                 </td>
  113.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoSellcompany','errors')}">
  114.                                     <input type="text" maxlength="25" id="inoSellcompany" name="inoSellcompany" value="${fieldValue(bean:inovice,field:'inoSellcompany')}"/>
  115.                                 </td>
  116.                             </tr> 
  117.                         
  118.                             <tr class="prop">
  119.                                 <td valign="top" class="name">
  120.                                     <label for="inoSelltel"><g:message code="inovice.inoSelltel" default="Ino Selltel" />:</label>
  121.                                 </td>
  122.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoSelltel','errors')}">
  123.                                     <input type="text" maxlength="20" id="inoSelltel" name="inoSelltel" value="${fieldValue(bean:inovice,field:'inoSelltel')}"/>
  124.                                 </td>
  125.                         
  126.                                 <td valign="top" class="name">
  127.                                     <label for="inoSellAddress"><g:message code="inovice.inoSellAddress" default="Ino Sell Address" />:</label>
  128.                                 </td>
  129.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoSellAddress','errors')}">
  130.                                     <input type="text" maxlength="50" id="inoSellAddress" name="inoSellAddress" value="${fieldValue(bean:inovice,field:'inoSellAddress')}"/>
  131.                                 </td>
  132.                             </tr> 
  133.                         
  134.                             <tr class="prop">
  135.                                 <td valign="top" class="name">
  136.                                     <label for="inoRate"><g:message code="inovice.inoRate" default="Ino Rate" />:</label>
  137.                                 </td>
  138.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoRate','errors')}">
  139.                                     <input type="text" id="inoRate" name="inoRate" value="${fieldValue(bean:inovice,field:'inoRate')}" />
  140.                                 </td>
  141.                                 <td valign="top" class="name" rowspan="3">
  142.                                     <label for="inoMemo"><g:message code="inovice.inoMemo" default="Ino Memo" />:</label>
  143.                                 </td>
  144.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoMemo','errors')}" rowspan="3">
  145.                                     <textarea rows="5" cols="40" name="inoMemo">${inovice?.inoMemo?.encodeAsHTML()}</textarea>
  146.                                 </td>
  147.                             </tr> 
  148.                         
  149.                             <tr class="prop">
  150.                                 <td valign="top" class="name">
  151.                                     <label for="inoRatebefore"><g:message code="inovice.inoRatebefore" default="Ino Ratebefore" />:</label>
  152.                                 </td>
  153.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoRatebefore','errors')}">
  154.                                     <input type="text" id="inoRatebefore" name="inoRatebefore" value="${fieldValue(bean:inovice,field:'inoRatebefore')}" />
  155.                                 </td>
  156.                             </tr> 
  157.                         
  158.                             <tr class="prop">
  159.                                 <td valign="top" class="name">
  160.                                     <label for="inoRateafte"><g:message code="inovice.inoRateafte" default="Ino Rateafte" />:</label>
  161.                                 </td>
  162.                                 <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoRateafte','errors')}">
  163.                                     <input type="text" id="inoRateafte" name="inoRateafte" value="${fieldValue(bean:inovice,field:'inoRateafte')}" />
  164.                                 </td>
  165.                            
  166.                             </tr> 
  167.                         
  168.                         </tbody>
  169.                     </table>
  170.                 </div>
  171.                 <div class="buttons">
  172.                     <input type="hidden" name="_inoBuyname" value="${params._inoBuyname}" />
  173.                     <input type="hidden" name="_inoBuycompany" value="${params._inoBuycompany}" />
  174.                     <input type="hidden" name="_inoCargoname" value="${params._inoCargoname}" />
  175.                     <input type="hidden" name="_inoLastchangefrom" value="${params._inoLastchangefrom}" />
  176.                     <input type="hidden" name="_inoLastchangeto" value="${params._inoLastchangeto}" />
  177.                     <input type="hidden" name="_inoDel" value="${params._inoDel}" />
  178.                     <input type="hidden" name="offset" value="${params.offset}" />
  179.                     <input type="hidden" name="sort" value="${params.sort}" />
  180.                     <input type="hidden" name="order" value="${params.order}" /> 
  181.                     <span class="button"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
  182.                     <span class="button"><input  class="delete" type="button" onclick=" history.go(-1);" value="${message(code:'back', 'default':'Back')}"/> </span>
  183.                     
  184.                 </div>
  185.             </g:form>
  186.         </div>
  187.     </body>
  188. </html>