create.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:7k
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="contract.create" default="Create 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>
- </div>
- <div class="body">
- <h1><g:message code="contract.create" default="Create 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 action="save" method="post" enctype="multipart/form-data">
- <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="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}" ></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>
-
-
- </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"><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>