edit.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:11k
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="contract.edit" default="Edit Contract" /></title>
- </head>
- <body>
- <div class="nav">
- <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
- <span class="menuButton"><g:link class="list" action="list"><g:message code="contract.list" default="Contract List" /></g:link></span>
- <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>
- </div>
- <div class="body">
- <h1><g:message code="contract.edit" default="Edit Contract" /></h1>
- <g:if test="${flash.message}">
- <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
- </g:if>
- <g:hasErrors bean="${contract}">
- <div class="errors">
- <g:renderErrors bean="${contract}" as="list" />
- </div>
- </g:hasErrors>
- <g:form controller="contract" method="post" >
- <input type="hidden" name="id" value="${contract?.id}" />
- <div class="dialog">
- <table>
- <tbody>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="conMan"><g:message code="contract.conMan" default="Con Man" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:contract,field:'conMan','errors')}">
- <g:select optionKey="id" from="${Staff.list()}" name="conMan.id" value="${contract?.conMan?.id}" ></g:select>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="conId"><g:message code="contract.conId" default="Con Id" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:contract,field:'conId','errors')}">
- <input readonly="true" type="text" maxlength="12" id="conId" name="conId" value="${fieldValue(bean:contract,field:'conId')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="conStarttime"><g:message code="contract.conStarttime" default="Con Starttime" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:contract,field:'conStarttime','errors')}">
- <g:datePicker name="conStarttime" value="${contract?.conStarttime}" precision="day"></g:datePicker>
- </td>
- <td valign="top" class="name">
- <label for="conEndtime"><g:message code="contract.conEndtime" default="Con Endtime" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:contract,field:'conEndtime','errors')}">
- <g:datePicker name="conEndtime" value="${contract?.conEndtime}" precision="day"></g:datePicker>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="conType"><g:message code="contract.conType" default="Con Type" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:contract,field:'conType','errors')}">
- <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('ContratType'))}" name="conType.id" value="${contract?.conType?.id}" noSelection="['null':'']"></g:select>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="conSigntime"><g:message code="contract.conSigntime" default="Con Signtime" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:contract,field:'conSigntime','errors')}">
- <g:datePicker name="conSigntime" value="${contract?.conSigntime}" precision="day"></g:datePicker>
- </td>
-
- <td valign="top" class="name">
- <label for="conStoptime"><g:message code="contract.conStoptime" default="Con Stoptime" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:contract,field:'conStoptime','errors')}">
- <g:datePicker name="conStoptime" value="${contract?.conStoptime}" precision="day"></g:datePicker>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="conContrat"><g:message code="contract.conContrat" default="Con Contrat" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:contract,field:'conContrat','errors')}">
- <input type="file" id="conContrat" name="conContrat" />
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="conMemo"><g:message code="contract.conMemo" default="Con Memo" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:contract,field:'conMemo','errors')}">
- <textarea rows="5" cols="40" name="conMemo">${contract?.conMemo?.encodeAsHTML()}</textarea>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="conCreatetime"><g:message code="contract.conCreatetime" default="Con Createtime" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:contract,field:'conCreatetime','errors')}">
- ${contract?.conCreatetime}
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="conCreater"><g:message code="contract.conCreater" default="Con Creater" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:contract,field:'conCreater','errors')}">
- ${fieldValue(bean:contract,field:'conCreater')}
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="conLastchange"><g:message code="contract.conLastchange" default="Con Lastchange" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:contract,field:'conLastchange','errors')}">
- ${contract?.conLastchange}
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="conLastchanger"><g:message code="contract.conLastchanger" default="Con Lastchanger" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:contract,field:'conLastchanger','errors')}">
- ${fieldValue(bean:contract,field:'conLastchanger')}
- </td>
- </tr>
-
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <input type="hidden" name="_conId" value="${params._conId}" />
- <input type="hidden" name="_conMan" value="${params._conMan}" />
- <input type="hidden" name="_staType_id" value="${params._staType_id}" />
- <input type="hidden" name="_conLastchangefrom" value="${params._conLastchangefrom}" />
- <input type="hidden" name="_conLastchangeto" value="${params._conLastchangeto}" />
- <input type="hidden" name="_conDel" value="${params._conDel}" />
- <input type="hidden" name="max" value="${params.max}" />
- <input type="hidden" name="sort" value="${params.sort}" />
- <input type="hidden" name="offset" value="${params.offset}" />
- <input type="hidden" name="order" value="${params.order}" />
- <span class="button"><g:actionSubmit class="save" action="Update" value="${message(code:'update', 'default':'Update')}" /></span>
- <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>
- <span class="button"><input class="delete" type="button" onclick=" history.go(-1);" value="${message(code:'back', 'default':'Back')}"/> </span>
- </div>
- </g:form>
- </div>
- </body>
- </html>