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

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.         <g:javascript library="applicat" />
  6.         <title><g:message code="applicat.create" default="Create Applicat" /></title>
  7.     </head>
  8.     <body>
  9.         <div class="nav">
  10.             <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
  11.             <span class="menuButton"><g:link class="list" action="list"><g:message code="applicat.list" default="Applicat List" /></g:link></span>
  12.         </div>
  13.         <div class="body">
  14.             <h1><g:message code="applicat.create" default="Create Applicat" /></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="${applicat}">
  19.             <div class="errors">
  20.                 <g:renderErrors bean="${applicat}" as="list" />
  21.             </div>
  22.             </g:hasErrors>
  23.             <g:form action="save" method="post" >
  24.                 <div class="dialog">
  25.                     <table id="table1">
  26.                         <tbody>
  27.                         
  28.                             <tr class="prop">
  29.                                 <td valign="top" class="name">
  30.                                     <label for="appRequestman"><g:message code="applicat.appRequestman" default="App Requestman" />:</label>
  31.                                 </td>
  32.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appRequestman','errors')}">
  33.                                     <g:select optionKey="id" from="${Staff.list()}" name="appRequestman.id"  value="${applicat?.appRequestman?.id}" ></g:select>
  34.                                 </td>
  35.                             </tr> 
  36.                         
  37.                             <tr class="prop">
  38.                                 <td valign="top" class="name">
  39.                                     <label for="appType"><g:message code="applicat.appType" default="App Type" />:</label>
  40.                                 </td>
  41.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appType','errors')}">
  42.                                     <g:select onchange="changeTrDisplay('table1',document.getElementById('appType'))" optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('ApplicatType'))}" noSelection="['null':'-请选择-']" name="appType.id" id="appType" value="${applicat?.appType?.id}" ></g:select>
  43.                                 </td>
  44.                             </tr>
  45.                             <tr class="prop" id="amount" style="display:none">
  46.                                 <td valign="top" class="name">
  47.                                     <label for="appAmount"><g:message code="applicat.appAmount" default="App Amount" />:</label>
  48.                                 </td>
  49.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appAmount','errors')}">
  50.                                     <input type="text" id="appAmount" name="appAmount" value="${fieldValue(bean:applicat,field:'appAmount')}" />
  51.                                 </td>
  52.                             </tr>
  53.                             <tr class="prop" id="psition" style="display:none">
  54.                                 <td valign="top" class="name">
  55.                                     <label for="appPosition"><g:message code="applicat.appPosition" default="App Position" />:</label>
  56.                                 </td>
  57.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appPosition','errors')}">
  58.                                     <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('PositionType'))}" name="appPosition.id" value="${applicat?.appPosition?.id}" ></g:select>
  59.                                 </td>
  60.                             </tr> 
  61.                             <tr class="prop">
  62.                                 <td valign="top" class="name">
  63.                                     <label for="appFrom"><g:message code="applicat.appFrom" default="App From" />:</label>
  64.                                 </td>
  65.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appFrom','errors')}">
  66.                                     <g:datePicker name="appFrom" value="${applicat?.appFrom}" ></g:datePicker>
  67.                                 </td>
  68.                             
  69.                                 <td valign="top" class="name">
  70.                                     <label for="appTo"><g:message code="applicat.appTo" default="App To" />:</label>
  71.                                 </td>
  72.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appTo','errors')}">
  73.                                     <g:datePicker name="appTo" value="${applicat?.appTo}" ></g:datePicker>
  74.                                 </td>
  75.                             </tr>
  76.                         
  77.                             <tr class="prop">
  78.                                 <td valign="top" class="name">
  79.                                     <label for="appCause"><g:message code="applicat.appCause" default="App Cause" />:</label>
  80.                                 </td>
  81.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appCause','errors')}">
  82.                                     <textarea rows="5" cols="40" name="appCause">${applicat?.appCause?.encodeAsHTML()}</textarea>
  83.                                 </td>
  84.                             </tr> 
  85.                         
  86.                             <tr class="prop">
  87.                                 <td valign="top" class="name">
  88.                                     <label for="appPermitopinion"><g:message code="applicat.appPermitopinion" default="App Permitopinion" />:</label>
  89.                                 </td>
  90.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appPermitopinion','errors')}">
  91.                                     <textarea rows="5" cols="40" name="appPermitopinion">${applicat?.appPermitopinion?.encodeAsHTML()}</textarea>
  92.                                 </td>
  93.                             </tr> 
  94.                         
  95.                         
  96.                         </tbody>
  97.                     </table>
  98.                 </div>
  99.                 <div class="buttons">
  100.                     <input type="hidden" name="_Requestman" value="${params._Requestman}" />
  101.                     <input type="hidden" name="_appType_id" value="${params._appType_id}" />
  102.                     <input type="hidden" name="_appState_id" value="${params._appState_id}" />
  103.                     <input type="hidden" name="_appLastchangefrom" value="${params._appLastchangefrom}" />
  104.                     <input type="hidden" name="_appLastchangeto" value="${params._appLastchangeto}" />
  105.                     <input type="hidden" name="_appDel" value="${params._appDel}" />
  106.                     <input type="hidden" name="max" value="${params.max}" />
  107.                     <input type="hidden" name="sort" value="${params.sort}" />
  108.                     <input type="hidden" name="offset" value="${params.offset}" />
  109.                     <input type="hidden" name="order" value="${params.order}" />                    
  110.                     <span class="button"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
  111.                     <span class="button"><input  class="delete" type="button" onclick=" history.go(-1);" value="${message(code:'back', 'default':'Back')}"/> </span>
  112.                 </div>
  113.             </g:form>
  114.         </div>
  115.     </body>
  116. </html>