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

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.edit" default="Edit Applicat" /></title>
  7.     </head>
  8.     <body onload="changeTrDisplay('table1',document.getElementById('appType'))">
  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.             <span class="menuButton"><g:link class="create" action="create" params="${[_cusName:params._cusName,_cusProfession_id:params._cusProfession_id,_cusType_id:params._cusType_id,_cusLastchangefrom:params._cusLastchangefrom,_cusLastchangeto:params._cusLastchangeto,_cusDel:params._cusDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}"><g:message code="applicat.new" default="New Applicat" /></g:link></span>
  13.         </div>
  14.         <div class="body">
  15.             <h1><g:message code="applicat.edit" default="Edit Applicat" /></h1>
  16.             <g:if test="${flash.message}">
  17.             <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
  18.             </g:if>
  19.             <g:hasErrors bean="${applicat}">
  20.             <div class="errors">
  21.                 <g:renderErrors bean="${applicat}" as="list" />
  22.             </div>
  23.             </g:hasErrors>
  24.             <g:form method="post" >
  25.                 <input type="hidden" name="id" value="${applicat?.id}" />
  26.                 <div class="dialog">
  27.                     <table id="table1">
  28.                         <tbody>
  29.                         
  30.                             <tr class="prop">
  31.                                 <td valign="top" class="name">
  32.                                     <label for="appRequestman"><g:message code="applicat.appRequestman" default="App Requestman" />:</label>
  33.                                 </td>
  34.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appRequestman','errors')}">
  35.                                     <g:select optionKey="id" from="${Staff.list()}" name="appRequestman.id" value="${applicat?.appRequestman?.id}" ></g:select>
  36.                                 </td>
  37.                             </tr> 
  38.                         
  39.                             <tr class="prop">
  40.                                 <td valign="top" class="name">
  41.                                     <label for="appType"><g:message code="applicat.appType" default="App Type" />:</label>
  42.                                 </td>
  43.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appType','errors')}">
  44.                                     <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>
  45.                                 </td>
  46.                             </tr>
  47.                             <tr class="prop" id="amount" style="display:none">
  48.                                 <td valign="top" class="name">
  49.                                     <label for="appAmount"><g:message code="applicat.appAmount" default="App Amount" />:</label>
  50.                                 </td>
  51.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appAmount','errors')}">
  52.                                     <input type="text" id="appAmount" name="appAmount" value="${fieldValue(bean:applicat,field:'appAmount')}" />
  53.                                 </td>
  54.                             </tr>
  55.                             <tr class="prop" id="psition" style="display:none">
  56.                                 <td valign="top" class="name">
  57.                                     <label for="appPosition"><g:message code="applicat.appPosition" default="App Position" />:</label>
  58.                                 </td>
  59.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appPosition','errors')}">
  60.                                     <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('PositionType'))}" name="appPosition.id" value="${applicat?.appPosition?.id}" ></g:select>
  61.                                 </td>
  62.                             </tr>
  63.                         
  64.                             <tr class="prop">
  65.                                 <td valign="top" class="name">
  66.                                     <label for="appFrom"><g:message code="applicat.appFrom" default="App From" />:</label>
  67.                                 </td>
  68.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appFrom','errors')}">
  69.                                     <g:datePicker name="appFrom" value="${applicat?.appFrom}" ></g:datePicker>
  70.                                 </td>
  71.                                 <td valign="top" class="name">
  72.                                     <label for="appTo"><g:message code="applicat.appTo" default="App To" />:</label>
  73.                                 </td>
  74.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appTo','errors')}">
  75.                                     <g:datePicker name="appTo" value="${applicat?.appTo}" ></g:datePicker>
  76.                                 </td>
  77.                             </tr> 
  78.                         
  79.                             <tr class="prop">
  80.                                 <td valign="top" class="name">
  81.                                     <label for="appCause"><g:message code="applicat.appCause" default="App Cause" />:</label>
  82.                                 </td>
  83.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appCause','errors')}">
  84.                                     <textarea rows="5" cols="40" name="appCause">${applicat?.appCause?.encodeAsHTML()}</textarea>
  85.                                 </td>
  86.                             </tr> 
  87.                         
  88.                             <tr class="prop">
  89.                                 <td valign="top" class="name">
  90.                                     <label for="appPermitopinion"><g:message code="applicat.appPermitopinion" default="App Permitopinion" />:</label>
  91.                                 </td>
  92.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appPermitopinion','errors')}">
  93.                                     <textarea rows="5" cols="40" name="appPermitopinion">${applicat?.appPermitopinion?.encodeAsHTML()}</textarea>
  94.                                 </td>
  95.                             </tr> 
  96.                         
  97.                         
  98.                             <tr class="prop">
  99.                                 <td valign="top" class="name">
  100.                                     <label for="appCreatetime"><g:message code="applicat.appCreatetime" default="App Createtime" />:</label>
  101.                                 </td>
  102.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appCreatetime','errors')}">
  103.                                    ${applicat?.appCreatetime}
  104.                                 </td>
  105.                             </tr> 
  106.                         
  107.                             <tr class="prop">
  108.                                 <td valign="top" class="name">
  109.                                     <label for="appCreater"><g:message code="applicat.appCreater" default="App Creater" />:</label>
  110.                                 </td>
  111.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appCreater','errors')}">
  112.                                     ${fieldValue(bean:applicat,field:'appCreater')}
  113.                                 </td>
  114.                             </tr> 
  115.                         
  116.                             <tr class="prop">
  117.                                 <td valign="top" class="name">
  118.                                     <label for="appLastchange"><g:message code="applicat.appLastchange" default="App Lastchange" />:</label>
  119.                                 </td>
  120.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appLastchange','errors')}">
  121.                                     ${applicat?.appLastchange}
  122.                                 </td>
  123.                             </tr> 
  124.                         
  125.                             <tr class="prop">
  126.                                 <td valign="top" class="name">
  127.                                     <label for="appLastchanger"><g:message code="applicat.appLastchanger" default="App Lastchanger" />:</label>
  128.                                 </td>
  129.                                 <td valign="top" class="value ${hasErrors(bean:applicat,field:'appLastchanger','errors')}">
  130.                                     ${fieldValue(bean:applicat,field:'appLastchanger')}
  131.                                 </td>
  132.                             </tr> 
  133.                         
  134.                         </tbody>
  135.                     </table>
  136.                 </div>
  137.                 <div class="buttons">
  138.                     <input type="hidden" name="_Requestman" value="${params._Requestman}" />
  139.                     <input type="hidden" name="_appType_id" value="${params._appType_id}" />
  140.                     <input type="hidden" name="_appState_id" value="${params._appState_id}" />
  141.                     <input type="hidden" name="_appLastchangefrom" value="${params._appLastchangefrom}" />
  142.                     <input type="hidden" name="_appLastchangeto" value="${params._appLastchangeto}" />
  143.                     <input type="hidden" name="_appDel" value="${params._appDel}" />
  144.                     <input type="hidden" name="max" value="${params.max}" />
  145.                     <input type="hidden" name="sort" value="${params.sort}" />
  146.                     <input type="hidden" name="offset" value="${params.offset}" />
  147.                     <input type="hidden" name="order" value="${params.order}" /> 
  148.                     <span class="button"><g:actionSubmit class="save" action="Update" value="${message(code:'update', 'default':'Update')}" /></span>
  149.                     <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>
  150.                     <span class="button"><input  class="delete" type="button" onclick=" history.go(-1);" value="${message(code:'back', 'default':'Back')}"/> </span>
  151.                 </div>
  152.             </g:form>
  153.         </div>
  154.     </body>
  155. </html>