Přepracovaná validace v agendě Dodavatelé.

closes #76
This commit is contained in:
2014-10-14 21:57:41 +02:00
parent 8fbfb51c0a
commit 3b4509d0a7
7 changed files with 167 additions and 15 deletions
@@ -3,9 +3,15 @@ DataTypeErr=Chybný datový typ...
UserPasswordIsEmpty=Uživatelské heslo musí být zadané...
UserPasswordsAreNotSame=Znovu zadané heslo není stejné...
RequirementCenterIsEmpty=Musíte zadat středisko...
TripDateIsEmpty=Musíte zadat datum cesty...
EndDateIsEmpty=Musíte zadat datum konce cesty...
FromIsEmpty=Musíte zadat místo začátku cesty...
ToIsEmpty=Musíte zadat cíl cesty...
VehicleIsEmpty=Musíte zadat dopravní prostředek...
CompanyIsEmpty=Název firmy musí být zadaný...
CityIsEmpty=Město musí být zadané...
EmailFormatIncorrect=E-mailová adresa musí být správně zadaná...
WebUrlFormatIncorrect=Adresa webu musí být správně zadaná...
+14 -14
View File
@@ -3,7 +3,7 @@
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<window id="editWin" border="normal" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('info.bukova.isspst.ui.addressbook.AddressForm')" closable="true" width="600px">
<caption zclass="form-caption" label="${labels.SuppliersFormTitle}" />
<grid width="580px">
<grid form="@id('fx') @init(vm.dataForm) @load(vm.dataBean) @save(vm.dataBean, before='save') @validator(vm.validator)" width="580px">
<columns>
<column label="" hflex="min" />
<column label="" hflex="min" />
@@ -12,52 +12,52 @@
<rows>
<row>
<label value="${labels.SuppliersFormCompany}" />
<textbox id="company" constraint="@load(vm.constriant)" value="@bind(vm.dataBean.company)" instant="true" width="320px" />
<textbox id="company" value="@bind(fx.company)" instant="true" width="320px" />
<button image="/img/search.png" label="${labels.SuppliersFormFindInARES}" onClick="@command('searchAres')" sclass="nicebutton" disabled="@load((vm.dataBean.ic == 0) &amp;&amp; (empty vm.dataBean.company))" />
</row>
<row>
<label value="${labels.SuppliersFormIC}" />
<textbox value="@bind(vm.dataBean.ic)" />
<textbox value="@bind(fx.ic)" instant="true" />
</row>
<row>
<label value="${labels.SuppliersFormDIC}" />
<textbox value="@bind(vm.dataBean.dic)" />
<textbox value="@bind(fx.dic)" />
</row>
<row>
<label value="${labels.SuppliersFormDepartment}" />
<textbox value="@bind(vm.dataBean.department)" />
<textbox value="@bind(fx.department)" />
</row>
<row>
<label value="${labels.SuppliersFormContact}" />
<textbox value="@bind(vm.dataBean.contactName)" />
<textbox value="@bind(fx.contactName)" />
</row>
<row>
<label value="${labels.SuppliersFormStreet}" />
<textbox value="@bind(vm.dataBean.street)" width="320px" />
<textbox value="@bind(fx.street)" width="320px" />
</row>
<row>
<label value="${labels.SuppliersFormNo}" />
<textbox value="@bind(vm.dataBean.houseNumber)" width="80px" />
<textbox value="@bind(fx.houseNumber)" width="80px" />
</row>
<row>
<label value="${labels.SuppliersFormCity}" />
<textbox id="city" constraint="@load(vm.constriant)" value="@bind(vm.dataBean.city)" width="320px" />
<textbox id="city" value="@bind(fx.city)" width="320px" />
</row>
<row>
<label value="${labels.SuppliersFormZIP}" />
<textbox value="@bind(vm.dataBean.zipCode)" />
<textbox value="@bind(fx.zipCode)" />
</row>
<row>
<label value="${labels.SuppliersFormPhone}" />
<textbox value="@bind(vm.dataBean.phone)" />
<textbox value="@bind(fx.phone)" />
</row>
<row>
<label value="${labels.SuppliersFormEmail}" />
<textbox id="email" constraint="@load(vm.constriant)" value="@bind(vm.dataBean.email)" width="320px" />
<textbox id="email" value="@bind(fx.email)" width="320px" />
</row>
<row>
<label value="${labels.SuppliersFormWWW}" />
<textbox id="web" constraint="@load(vm.constriant)" value="@bind(vm.dataBean.web)" width="320px" />
<textbox id="web" value="@bind(fx.web)" width="320px" />
</row>
</rows>
</grid>
@@ -72,7 +72,7 @@
</panel>
<panel>
<panelchildren>
<ckeditor height="65px" width="100%" toolbar="Basic" value="@bind(vm.dataBean.description)" />
<ckeditor height="65px" width="100%" toolbar="Basic" value="@bind(fx.description)" />
</panelchildren>
</panel>
</vlayout>