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="contract.create" default="Create Contract" /></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="contract.list" default="Contract List" /></g:link></span>
  11.         </div>
  12.         <div class="body">
  13.             <h1><g:message code="contract.create" default="Create Contract" /></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="${contract}">
  18.             <div class="errors">
  19.                 <g:renderErrors bean="${contract}" as="list" />
  20.             </div>
  21.             </g:hasErrors>
  22.             <g:form action="save" method="post"  enctype="multipart/form-data">
  23.                 <div class="dialog">
  24.                     <table>
  25.                         <tbody>
  26.                         
  27.                             <tr class="prop">
  28.                                 <td valign="top" class="name">
  29.                                     <label for="conMan"><g:message code="contract.conMan" default="Con Man" />:</label>
  30.                                 </td>
  31.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conMan','errors')}">
  32.                                     <g:select optionKey="id" from="${Staff.list()}" name="conMan.id" value="${contract?.conMan?.id}" ></g:select>
  33.                                 </td>
  34.                             </tr> 
  35.                         
  36.                         
  37.                             <tr class="prop">
  38.                                 <td valign="top" class="name">
  39.                                     <label for="conStarttime"><g:message code="contract.conStarttime" default="Con Starttime" />:</label>
  40.                                 </td>
  41.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conStarttime','errors')}">
  42.                                     <g:datePicker name="conStarttime" value="${contract?.conStarttime}" precision="day" ></g:datePicker>
  43.                                 </td>
  44.                          
  45.                                 <td valign="top" class="name">
  46.                                     <label for="conEndtime"><g:message code="contract.conEndtime" default="Con Endtime" />:</label>
  47.                                 </td>
  48.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conEndtime','errors')}">
  49.                                     <g:datePicker name="conEndtime" value="${contract?.conEndtime}" precision="day" ></g:datePicker>
  50.                                 </td>
  51.                             </tr> 
  52.                         
  53.                             <tr class="prop">
  54.                                 <td valign="top" class="name">
  55.                                     <label for="conType"><g:message code="contract.conType" default="Con Type" />:</label>
  56.                                 </td>
  57.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conType','errors')}">
  58.                                     <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('ContratType'))}" name="conType.id" value="${contract?.conType?.id}" ></g:select>
  59.                                 </td>
  60.                             </tr> 
  61.                         
  62.                             <tr class="prop">
  63.                                 <td valign="top" class="name">
  64.                                     <label for="conSigntime"><g:message code="contract.conSigntime" default="Con Signtime" />:</label>
  65.                                 </td>
  66.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conSigntime','errors')}">
  67.                                     <g:datePicker name="conSigntime" value="${contract?.conSigntime}" precision="day" ></g:datePicker>
  68.                                 </td>
  69.                                 <td valign="top" class="name">
  70.                                     <label for="conStoptime"><g:message code="contract.conStoptime" default="Con Stoptime" />:</label>
  71.                                 </td>
  72.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conStoptime','errors')}">
  73.                                     <g:datePicker name="conStoptime" value="${contract?.conStoptime}"  precision="day" ></g:datePicker>
  74.                                 </td>
  75.                             </tr> 
  76.                         
  77.                             <tr class="prop">
  78.                                 <td valign="top" class="name">
  79.                                     <label for="conContrat"><g:message code="contract.conContrat" default="Con Contrat" />:</label>
  80.                                 </td>
  81.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conContrat','errors')}">
  82.                                     <input type="file" id="conContrat" name="conContrat" />
  83.                                 </td>
  84.                             </tr> 
  85.                         
  86.                             <tr class="prop">
  87.                                 <td valign="top" class="name">
  88.                                     <label for="conMemo"><g:message code="contract.conMemo" default="Con Memo" />:</label>
  89.                                 </td>
  90.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conMemo','errors')}">
  91.                                     <textarea rows="5" cols="40" name="conMemo">${contract?.conMemo?.encodeAsHTML()}</textarea>
  92.                                 </td>
  93.                             </tr> 
  94.                         
  95.                         
  96.                         </tbody>
  97.                     </table>
  98.                 </div>
  99.                 <div class="buttons">
  100.                     <input type="hidden" name="_conId" value="${params._conId}" />
  101.                     <input type="hidden" name="_conMan" value="${params._conMan}" />
  102.                     <input type="hidden" name="_staType_id" value="${params._staType_id}" />
  103.                     <input type="hidden" name="_conLastchangefrom" value="${params._conLastchangefrom}" />
  104.                     <input type="hidden" name="_conLastchangeto" value="${params._conLastchangeto}" />
  105.                     <input type="hidden" name="_conDel" value="${params._conDel}" />
  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>