create.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:8k
- <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.create" default="Create Applicat" /></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="applicat.list" default="Applicat List" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="applicat.create" default="Create 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 action="save" method="post" >
- <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>
-
-
- </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"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></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>