Implementována verze DB a převod DB.

Nové DB mají délku nastavenou anotací.
ZUL soubory jsou omezeny atributem maxlength.

closes #186
This commit is contained in:
2015-01-19 13:20:43 +01:00
parent 780edd5678
commit d37076cd27
78 changed files with 823 additions and 136 deletions
+43 -11
View File
@@ -12,32 +12,52 @@
<rows>
<row>
<label value="${labels.SuppliersFormCompany}" />
<textbox id="company" value="@bind(fx.company)" instant="true" width="320px" />
<textbox
id="company"
value="@bind(fx.company)"
instant="true"
maxlength="@load(vm.lengthText)"
width="320px" />
<button image="/img/search.png" label="${labels.SuppliersFormFindInARES}" onClick="@command('searchAres')" sclass="nicebutton" disabled="@load((fx.ic == 0) &amp;&amp; (empty fx.company))" />
</row>
<row>
<label value="${labels.SuppliersFormIC}" />
<textbox value="@bind(fx.ic)" instant="true" />
<textbox
value="@bind(fx.ic)"
maxlength="@load(vm.lengthText)"
instant="true" />
</row>
<row>
<label value="${labels.SuppliersFormDIC}" />
<textbox value="@bind(fx.dic)" />
<textbox
value="@bind(fx.dic)"
maxlength="@load(vm.lengthText)" />
</row>
<row>
<label value="${labels.SuppliersFormDepartment}" />
<textbox value="@bind(fx.department)" />
<textbox
value="@bind(fx.department)"
maxlength="@load(vm.lengthText)" />
</row>
<row>
<label value="${labels.SuppliersFormContact}" />
<textbox value="@bind(fx.contactName)" />
<textbox
value="@bind(fx.contactName)"
maxlength="@load(vm.lengthText)" />
</row>
<row>
<label value="${labels.SuppliersFormStreet}" />
<textbox value="@bind(fx.street)" width="320px" />
<textbox
value="@bind(fx.street)"
maxlength="@load(vm.lengthText)"
width="320px" />
</row>
<row>
<label value="${labels.SuppliersFormNo}" />
<textbox value="@bind(fx.houseNumber)" width="80px" />
<textbox
value="@bind(fx.houseNumber)"
maxlength="@load(vm.lengthText)"
width="80px" />
</row>
<row>
<label value="${labels.SuppliersFormCity}" />
@@ -45,19 +65,31 @@
</row>
<row>
<label value="${labels.SuppliersFormZIP}" />
<textbox value="@bind(fx.zipCode)" />
<textbox
value="@bind(fx.zipCode)"
maxlength="@load(vm.lengthText)" />
</row>
<row>
<label value="${labels.SuppliersFormPhone}" />
<textbox value="@bind(fx.phone)" />
<textbox
value="@bind(fx.phone)"
maxlength="@load(vm.lengthText)" />
</row>
<row>
<label value="${labels.SuppliersFormEmail}" />
<textbox id="email" value="@bind(fx.email)" width="320px" />
<textbox
id="email"
value="@bind(fx.email)"
maxlength="@load(vm.lengthText)"
width="320px" />
</row>
<row>
<label value="${labels.SuppliersFormWWW}" />
<textbox id="web" value="@bind(fx.web)" width="320px" />
<textbox
id="web"
value="@bind(fx.web)"
maxlength="@load(vm.lengthText)"
width="320px" />
</row>
</rows>
</grid>
@@ -26,7 +26,12 @@
<auxheader>
<div sclass="find-grid-cell">
<div sclass="find-grid-divtextbox">
<textbox value="@bind(vm.filterTemplate.company)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
<textbox
value="@bind(vm.filterTemplate.company)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthText)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
<image src="/img/funnel.png" />
@@ -36,7 +41,12 @@
<auxheader>
<div sclass="find-grid-cell">
<div sclass="find-grid-divtextbox">
<textbox value="@bind(vm.filterTemplate.ic)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
<textbox
value="@bind(vm.filterTemplate.ic)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthText)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
<image src="/img/funnel.png" />
@@ -46,7 +56,12 @@
<auxheader>
<div sclass="find-grid-cell">
<div sclass="find-grid-divtextbox">
<textbox value="@bind(vm.filterTemplate.contactName)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
<textbox
value="@bind(vm.filterTemplate.contactName)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthText)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
<image src="/img/funnel.png" />
@@ -56,7 +71,12 @@
<auxheader>
<div sclass="find-grid-cell">
<div sclass="find-grid-divtextbox">
<textbox value="@bind(vm.filterTemplate.street)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
<textbox
value="@bind(vm.filterTemplate.street)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthText)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
<image src="/img/funnel.png" />
@@ -66,7 +86,12 @@
<auxheader>
<div sclass="find-grid-cell">
<div sclass="find-grid-divtextbox">
<textbox value="@bind(vm.filterTemplate.houseNumber)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
<textbox
value="@bind(vm.filterTemplate.houseNumber)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthText)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
<image src="/img/funnel.png" />
@@ -76,7 +101,12 @@
<auxheader>
<div sclass="find-grid-cell">
<div sclass="find-grid-divtextbox">
<textbox value="@bind(vm.filterTemplate.city)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
<textbox
value="@bind(vm.filterTemplate.city)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthText)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
<image src="/img/funnel.png" />
@@ -41,6 +41,7 @@
value="@bind(vm.filterTemplate.code)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthText)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
@@ -55,6 +56,7 @@
value="@bind(vm.filterTemplate.name)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthText)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
@@ -69,6 +71,7 @@
value="@bind(vm.filterTemplate.description)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthText)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
@@ -28,6 +28,7 @@
id="code"
constraint="@load(vm.constriant)"
width="200px"
maxlength="@load(vm.lengthText)"
value="@bind(vm.dataBean.code)" />
</cell>
</row>
@@ -37,6 +38,7 @@
<textbox
id="name"
width="200px"
maxlength="@load(vm.lengthText)"
value="@bind(vm.dataBean.name)" />
</cell>
</row>
@@ -46,6 +48,7 @@
<textbox
id="description"
width="300px"
maxlength="@load(vm.lengthDescription)"
value="@bind(vm.dataBean.description)" />
</cell>
</row>
@@ -69,26 +72,31 @@
<listcell>
<textbox
inplace="true"
maxlength="@load(vm.lengthText)"
value="@bind(each.code)" />
</listcell>
<listcell>
<textbox
inplace="true"
maxlength="@load(vm.lengthText)"
value="@bind(each.name)" />
</listcell>
<listcell>
<textbox
inplace="true"
maxlength="@load(vm.lengthText)"
value="@bind(each.shortcut)" />
</listcell>
<listcell>
<textbox
inplace="true"
maxlength="@load(vm.lengthText)"
value="@bind(each.number)" />
</listcell>
<listcell>
<textbox
inplace="true"
maxlength="@load(vm.lengthText)"
value="@bind(each.floor)" />
</listcell>
<listcell>
@@ -43,6 +43,7 @@
value="@bind(vm.filterTemplate.code)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthText)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
@@ -57,6 +58,7 @@
value="@bind(vm.filterTemplate.name)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthText)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
@@ -90,6 +92,7 @@
value="@bind(vm.filterTemplate.description)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthDescription)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
@@ -27,6 +27,7 @@
id="code"
constraint="@load(vm.constriant)"
width="200px"
maxlength="@load(vm.lengthText)"
value="@bind(vm.dataBean.code)" />
</cell>
</row>
@@ -36,6 +37,7 @@
<textbox
id="name"
width="200px"
maxlength="@load(vm.lengthText)"
value="@bind(vm.dataBean.name)" />
</cell>
</row>
@@ -58,6 +60,7 @@
<textbox
id="description"
width="300px"
maxlength="@load(vm.lengthDescription)"
value="@bind(vm.dataBean.description)" />
</cell>
</row>
@@ -26,6 +26,7 @@
<textbox
id="name"
width="200px"
maxlength="@load(vm.lengthText)"
value="@bind(vm.dataBean.name)" />
</cell>
</row>
@@ -35,6 +36,7 @@
<textbox
id="description"
width="300px"
maxlength="@load(vm.lengthDescription)"
value="@bind(vm.dataBean.description)" />
</cell>
</row>
@@ -35,6 +35,7 @@
value="@bind(vm.filterTemplate.name)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthText)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
@@ -49,6 +50,7 @@
value="@bind(vm.filterTemplate.description)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthDescription)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
@@ -40,6 +40,7 @@
value="@bind(vm.filterTemplate.code)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthText)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
@@ -54,6 +55,7 @@
value="@bind(vm.filterTemplate.name)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthText)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
@@ -68,6 +70,7 @@
value="@bind(vm.filterTemplate.description)"
instant="true"
onChange="@command('doFilter')"
maxlength="@load(vm.lengthDescription)"
sclass="find-grid-textbox" />
</div>
<div sclass="find-grid-img">
@@ -27,6 +27,7 @@
id="code"
constraint="@load(vm.constriant)"
width="200px"
maxlength="@load(vm.lengthText)"
value="@bind(vm.dataBean.code)" />
</cell>
</row>
@@ -36,6 +37,7 @@
<textbox
id="name"
width="200px"
maxlength="@load(vm.lengthText)"
value="@bind(vm.dataBean.name)" />
</cell>
</row>
@@ -45,6 +47,7 @@
<textbox
id="description"
width="300px"
maxlength="@load(vm.lengthDescription)"
value="@bind(vm.dataBean.description)" />
</cell>
</row>