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" />
- <g:javascript library="applicat" />
- <title><g:message code="applicat.edit" default="Edit Applicat" /></title>
- </head>
- <body onload="changeTrDisplay('table1',document.getElementById('appType'))">
- <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="applicat.list" default="Applicat List" /></g:link></span>
- <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>
- </div>
- <div class="body">
- <h1><g:message code="applicat.edit" default="Edit Applicat" /></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="${applicat}">
- <div class="errors">
- <g:renderErrors bean="${applicat}" as="list" />
- </div>
- </g:hasErrors>
- <g:form method="post" >
- <input type="hidden" name="id" value="${applicat?.id}" />
- <div class="dialog">
- <table id="table1">
- <tbody>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="appRequestman"><g:message code="applicat.appRequestman" default="App Requestman" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:applicat,field:'appRequestman','errors')}">
- <g:select optionKey="id" from="${Staff.list()}" name="appRequestman.id" value="${applicat?.appRequestman?.id}" ></g:select>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="appType"><g:message code="applicat.appType" default="App Type" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:applicat,field:'appType','errors')}">
- <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>
- </td>
- </tr>
- <tr class="prop" id="amount" style="display:none">
- <td valign="top" class="name">
- <label for="appAmount"><g:message code="applicat.appAmount" default="App Amount" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:applicat,field:'appAmount','errors')}">
- <input type="text" id="appAmount" name="appAmount" value="${fieldValue(bean:applicat,field:'appAmount')}" />
- </td>
- </tr>
- <tr class="prop" id="psition" style="display:none">
- <td valign="top" class="name">
- <label for="appPosition"><g:message code="applicat.appPosition" default="App Position" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:applicat,field:'appPosition','errors')}">
- <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('PositionType'))}" name="appPosition.id" value="${applicat?.appPosition?.id}" ></g:select>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="appFrom"><g:message code="applicat.appFrom" default="App From" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:applicat,field:'appFrom','errors')}">
- <g:datePicker name="appFrom" value="${applicat?.appFrom}" ></g:datePicker>
- </td>
- <td valign="top" class="name">
- <label for="appTo"><g:message code="applicat.appTo" default="App To" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:applicat,field:'appTo','errors')}">
- <g:datePicker name="appTo" value="${applicat?.appTo}" ></g:datePicker>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="appCause"><g:message code="applicat.appCause" default="App Cause" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:applicat,field:'appCause','errors')}">
- <textarea rows="5" cols="40" name="appCause">${applicat?.appCause?.encodeAsHTML()}</textarea>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="appPermitopinion"><g:message code="applicat.appPermitopinion" default="App Permitopinion" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:applicat,field:'appPermitopinion','errors')}">
- <textarea rows="5" cols="40" name="appPermitopinion">${applicat?.appPermitopinion?.encodeAsHTML()}</textarea>
- </td>
- </tr>
-
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="appCreatetime"><g:message code="applicat.appCreatetime" default="App Createtime" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:applicat,field:'appCreatetime','errors')}">
- ${applicat?.appCreatetime}
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="appCreater"><g:message code="applicat.appCreater" default="App Creater" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:applicat,field:'appCreater','errors')}">
- ${fieldValue(bean:applicat,field:'appCreater')}
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="appLastchange"><g:message code="applicat.appLastchange" default="App Lastchange" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:applicat,field:'appLastchange','errors')}">
- ${applicat?.appLastchange}
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="appLastchanger"><g:message code="applicat.appLastchanger" default="App Lastchanger" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:applicat,field:'appLastchanger','errors')}">
- ${fieldValue(bean:applicat,field:'appLastchanger')}
- </td>
- </tr>
-
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <input type="hidden" name="_Requestman" value="${params._Requestman}" />
- <input type="hidden" name="_appType_id" value="${params._appType_id}" />
- <input type="hidden" name="_appState_id" value="${params._appState_id}" />
- <input type="hidden" name="_appLastchangefrom" value="${params._appLastchangefrom}" />
- <input type="hidden" name="_appLastchangeto" value="${params._appLastchangeto}" />
- <input type="hidden" name="_appDel" value="${params._appDel}" />
- <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>