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.         <title><g:message code="contract.edit" default="Edit 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.             <span class="menuButton"><g:link class="create" action="create" params="${[_conId:params._conId,_conMan:params._conMan,_staType_id:params._staType_id,_conLastchangefrom:params._conLastchangefrom,_conLastchangeto:params._conLastchangeto,_conDel:params._conDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}"><g:message code="contract.new" default="New Contract" /></g:link></span>
  12.         </div>
  13.         <div class="body">
  14.             <h1><g:message code="contract.edit" default="Edit Contract" /></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="${contract}">
  19.             <div class="errors">
  20.                 <g:renderErrors bean="${contract}" as="list" />
  21.             </div>
  22.             </g:hasErrors>
  23.             <g:form controller="contract"  method="post"  >
  24.                 <input type="hidden" name="id" value="${contract?.id}" />
  25.                 <div class="dialog">
  26.                     <table>
  27.                         <tbody>
  28.                         
  29.                             <tr class="prop">
  30.                                 <td valign="top" class="name">
  31.                                     <label for="conMan"><g:message code="contract.conMan" default="Con Man" />:</label>
  32.                                 </td>
  33.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conMan','errors')}">
  34.                                     <g:select optionKey="id" from="${Staff.list()}" name="conMan.id" value="${contract?.conMan?.id}" ></g:select>
  35.                                 </td>
  36.                             </tr> 
  37.                         
  38.                             <tr class="prop">
  39.                                 <td valign="top" class="name">
  40.                                     <label for="conId"><g:message code="contract.conId" default="Con Id" />:</label>
  41.                                 </td>
  42.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conId','errors')}">
  43.                                     <input readonly="true" type="text" maxlength="12" id="conId" name="conId" value="${fieldValue(bean:contract,field:'conId')}"/>
  44.                                 </td>
  45.                             </tr> 
  46.                         
  47.                             <tr class="prop">
  48.                                 <td valign="top" class="name">
  49.                                     <label for="conStarttime"><g:message code="contract.conStarttime" default="Con Starttime" />:</label>
  50.                                 </td>
  51.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conStarttime','errors')}">
  52.                                     <g:datePicker name="conStarttime" value="${contract?.conStarttime}" precision="day"></g:datePicker>
  53.                                 </td>
  54.                                 <td valign="top" class="name">
  55.                                     <label for="conEndtime"><g:message code="contract.conEndtime" default="Con Endtime" />:</label>
  56.                                 </td>
  57.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conEndtime','errors')}">
  58.                                     <g:datePicker name="conEndtime" value="${contract?.conEndtime}" precision="day"></g:datePicker>
  59.                                 </td>
  60.                             </tr> 
  61.                         
  62.                             <tr class="prop">
  63.                                 <td valign="top" class="name">
  64.                                     <label for="conType"><g:message code="contract.conType" default="Con Type" />:</label>
  65.                                 </td>
  66.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conType','errors')}">
  67.                                     <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('ContratType'))}" name="conType.id" value="${contract?.conType?.id}" noSelection="['null':'']"></g:select>
  68.                                 </td>
  69.                             </tr> 
  70.                         
  71.                             <tr class="prop">
  72.                                 <td valign="top" class="name">
  73.                                     <label for="conSigntime"><g:message code="contract.conSigntime" default="Con Signtime" />:</label>
  74.                                 </td>
  75.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conSigntime','errors')}">
  76.                                     <g:datePicker name="conSigntime" value="${contract?.conSigntime}" precision="day"></g:datePicker>
  77.                                 </td>
  78.                
  79.                                 <td valign="top" class="name">
  80.                                     <label for="conStoptime"><g:message code="contract.conStoptime" default="Con Stoptime" />:</label>
  81.                                 </td>
  82.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conStoptime','errors')}">
  83.                                     <g:datePicker name="conStoptime" value="${contract?.conStoptime}" precision="day"></g:datePicker>
  84.                                 </td>
  85.                             </tr> 
  86.                         
  87.                             <tr class="prop">
  88.                                 <td valign="top" class="name">
  89.                                     <label for="conContrat"><g:message code="contract.conContrat" default="Con Contrat" />:</label>
  90.                                 </td>
  91.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conContrat','errors')}">
  92.                                     <input type="file" id="conContrat" name="conContrat" />
  93.                                 </td>
  94.                             </tr> 
  95.                         
  96.                             <tr class="prop">
  97.                                 <td valign="top" class="name">
  98.                                     <label for="conMemo"><g:message code="contract.conMemo" default="Con Memo" />:</label>
  99.                                 </td>
  100.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conMemo','errors')}">
  101.                                     <textarea rows="5" cols="40" name="conMemo">${contract?.conMemo?.encodeAsHTML()}</textarea>
  102.                                 </td>
  103.                             </tr> 
  104.                         
  105.                             <tr class="prop">
  106.                                 <td valign="top" class="name">
  107.                                     <label for="conCreatetime"><g:message code="contract.conCreatetime" default="Con Createtime" />:</label>
  108.                                 </td>
  109.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conCreatetime','errors')}">
  110.                                     ${contract?.conCreatetime}
  111.                                 </td>
  112.                             </tr> 
  113.                         
  114.                             <tr class="prop">
  115.                                 <td valign="top" class="name">
  116.                                     <label for="conCreater"><g:message code="contract.conCreater" default="Con Creater" />:</label>
  117.                                 </td>
  118.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conCreater','errors')}">
  119.                                     ${fieldValue(bean:contract,field:'conCreater')}
  120.                                 </td>
  121.                             </tr> 
  122.                         
  123.                             <tr class="prop">
  124.                                 <td valign="top" class="name">
  125.                                     <label for="conLastchange"><g:message code="contract.conLastchange" default="Con Lastchange" />:</label>
  126.                                 </td>
  127.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conLastchange','errors')}">
  128.                                    ${contract?.conLastchange}
  129.                                 </td>
  130.                             </tr> 
  131.                         
  132.                             <tr class="prop">
  133.                                 <td valign="top" class="name">
  134.                                     <label for="conLastchanger"><g:message code="contract.conLastchanger" default="Con Lastchanger" />:</label>
  135.                                 </td>
  136.                                 <td valign="top" class="value ${hasErrors(bean:contract,field:'conLastchanger','errors')}">
  137.                                     ${fieldValue(bean:contract,field:'conLastchanger')}
  138.                                 </td>
  139.                             </tr> 
  140.                         
  141.                         </tbody>
  142.                     </table>
  143.                 </div>
  144.                 <div class="buttons">
  145.                     <input type="hidden" name="_conId" value="${params._conId}" />
  146.                     <input type="hidden" name="_conMan" value="${params._conMan}" />
  147.                     <input type="hidden" name="_staType_id" value="${params._staType_id}" />
  148.                     <input type="hidden" name="_conLastchangefrom" value="${params._conLastchangefrom}" />
  149.                     <input type="hidden" name="_conLastchangeto" value="${params._conLastchangeto}" />
  150.                     <input type="hidden" name="_conDel" value="${params._conDel}" />
  151.                     <input type="hidden" name="max" value="${params.max}" />
  152.                     <input type="hidden" name="sort" value="${params.sort}" />
  153.                     <input type="hidden" name="offset" value="${params.offset}" />
  154.                     <input type="hidden" name="order" value="${params.order}" />
  155.                     <span class="button"><g:actionSubmit class="save" action="Update" value="${message(code:'update', 'default':'Update')}" /></span>
  156.                     <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>
  157.                     <span class="button"><input  class="delete" type="button" onclick=" history.go(-1);" value="${message(code:'back', 'default':'Back')}"/> </span>
  158.                 </div>
  159.             </g:form>
  160.         </div>
  161.     </body>
  162. </html>