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

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="quotation.create" default="Create Quotation" /></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="quotation.list" default="Quotation List" /></g:link></span>
  11.         </div>
  12.         <div class="body">
  13.             <h1><g:message code="quotation.create" default="Create Quotation" /></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="${quotation}">
  18.             <div class="errors">
  19.                 <g:renderErrors bean="${quotation}" 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="quoName"><g:message code="quotation.quoName" default="Quo Name" />:</label>
  30.                                 </td>
  31.                                 <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoName','errors')}">
  32.                                     <input type="text" maxlength="10" id="quoName" name="quoName" value="${fieldValue(bean:quotation,field:'quoName')}"/>
  33.                                 </td>
  34.                             </tr> 
  35.                         
  36.                             <tr class="prop">
  37.                                 <td valign="top" class="name">
  38.                                     <label for="quoFactory"><g:message code="quotation.quoFactory" default="quoFactory" />:</label>
  39.                                 </td>
  40.                                 <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoFactory','errors')}">
  41.                                     <input type="text" maxlength="25" id="quoFactory" name="quoFactory" value="${fieldValue(bean:quotation,field:'quoFactory')}"/>
  42.                                 </td>
  43.                             </tr> 
  44.                         
  45.                             <tr class="prop">
  46.                                 <td valign="top" class="name">
  47.                                     <label for="quoNumber"><g:message code="quotation.quoNumber" default="Quo Number" />:</label>
  48.                                 </td>
  49.                                 <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoNumber','errors')}">
  50.                                     <input type="text" maxlength="20" id="quoNumber" name="quoNumber" value="${fieldValue(bean:quotation,field:'quoNumber')}"/>
  51.                                 </td>
  52.                             </tr> 
  53.                         
  54.                             <tr class="prop">
  55.                                 <td valign="top" class="name">
  56.                                     <label for="quoEffectivetime"><g:message code="quotation.quoEffectivetime" default="Quo Effectivetime" />:</label>
  57.                                 </td>
  58.                                 <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoEffectivetime','errors')}">
  59.                                     <input type="text" maxlength="10" id="quoEffectivetime" name="quoEffectivetime" value="${fieldValue(bean:quotation,field:'quoEffectivetime')}"/>
  60.                                 </td>
  61.                             </tr> 
  62.                         
  63.                             <tr class="prop">
  64.                                 <td valign="top" class="name">
  65.                                     <label for="quoPrice"><g:message code="quotation.quoPrice" default="Quo Price" />:</label>
  66.                                 </td>
  67.                                 <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoPrice','errors')}">
  68.                                     <input type="text" id="quoPrice" name="quoPrice" value="${fieldValue(bean:quotation,field:'quoPrice')}" />
  69.                                 </td>
  70.                             </tr> 
  71.                         
  72.                             <tr class="prop">
  73.                                 <td valign="top" class="name">
  74.                                     <label for="quoMemo"><g:message code="quotation.quoMemo" default="Quo Memo" />:</label>
  75.                                 </td>
  76.                                 <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoMemo','errors')}">
  77.                                     <textarea rows="5" cols="40" name="quoMemo">${quotation?.quoMemo?.encodeAsHTML()}</textarea>
  78.                                 </td>
  79.                             </tr>
  80.                         
  81.                             <tr class="prop">
  82.                                 <td valign="top" class="name">
  83.                                     <label for="quoType"><g:message code="quotation.quoType" default="Quo Type" />:</label>
  84.                                 </td>
  85.                                 <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoType','errors')}">
  86.                                     <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('ProductType'))}" name="quoType.id" value="${quotation?.quoType?.id}" ></g:select>
  87.                                 </td>
  88.                             </tr> 
  89.                         </tbody>
  90.                     </table>
  91.                 </div>
  92.                 <div class="buttons">
  93.                     <input type="hidden" name="_quoName" value="${params._quoName}" />
  94.                     <input type="hidden" name="_quoFactory" value="${params._quoFactory}" />
  95.                     <input type="hidden" name="_quoType_id" value="${params._quoType_id}" />
  96.                     <input type="hidden" name="_quoLastchangefrom" value="${params._quoLastchangefrom}" />
  97.                     <input type="hidden" name="_quoLastchangeto" value="${params._quoLastchangeto}" />
  98.                     <input type="hidden" name="_quoDel" value="${params._quoDel}" />
  99.                     <input type="hidden" name="offset" value="${params.offset}" />
  100.                     <input type="hidden" name="sort" value="${params.sort}" />
  101.                     <input type="hidden" name="order" value="${params.order}" /> 
  102.                     <span class="button"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
  103.                     <span class="button"><input  class="delete" type="button" onclick=" history.go(-1);" value="${message(code:'back', 'default':'Back')}"/> </span>
  104.                 </div>
  105.             </g:form>
  106.         </div>
  107.     </body>
  108. </html>