Podepsané dokumenty se nyní zobrazují ve dvou záložkách - Aktuální
dokumenty a Archiv. V Archivu se zobrazují dokumenty starší než rok. closes #225Verze_3.0
parent
66e0c427ac
commit
cc374a3bf1
@ -0,0 +1,29 @@
|
|||||||
|
package info.bukova.isspst.ui.signeddocs;
|
||||||
|
|
||||||
|
import info.bukova.isspst.data.SignedDocument;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.springframework.security.access.AccessDeniedException;
|
||||||
|
import org.zkoss.bind.annotation.Init;
|
||||||
|
|
||||||
|
public class SignedDocsActualList extends SignedDocsList {
|
||||||
|
|
||||||
|
@Init(superclass = true)
|
||||||
|
public void SignedDocsActualListInit() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected List<SignedDocument> getListFromService() {
|
||||||
|
try {
|
||||||
|
return signedDocumentService.getActualList();
|
||||||
|
}
|
||||||
|
catch (AccessDeniedException e) {
|
||||||
|
// BindUtils.postGlobalCommand(null, null, "disableCentre", null);
|
||||||
|
// e.printStackTrace();
|
||||||
|
return new ArrayList<SignedDocument>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
package info.bukova.isspst.ui.signeddocs;
|
||||||
|
|
||||||
|
import info.bukova.isspst.data.SignedDocument;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.springframework.security.access.AccessDeniedException;
|
||||||
|
import org.zkoss.bind.annotation.Init;
|
||||||
|
|
||||||
|
public class SignedDocsArchiveList extends SignedDocsList {
|
||||||
|
|
||||||
|
@Init(superclass = true)
|
||||||
|
public void SignedDocsArchiveListInit() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected List<SignedDocument> getListFromService() {
|
||||||
|
try {
|
||||||
|
return signedDocumentService.getArchiveList();
|
||||||
|
}
|
||||||
|
catch (AccessDeniedException e) {
|
||||||
|
// BindUtils.postGlobalCommand(null, null, "disableCentre", null);
|
||||||
|
// e.printStackTrace();
|
||||||
|
return new ArrayList<SignedDocument>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
<zk>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<window
|
||||||
|
vflex="1"
|
||||||
|
border="none"
|
||||||
|
apply="org.zkoss.bind.BindComposer"
|
||||||
|
viewModel="@id('vm') @init('info.bukova.isspst.ui.signeddocs.SignedDocsActualList')">
|
||||||
|
<include src="/lists/signeddocs/toolbar.zul" />
|
||||||
|
<include
|
||||||
|
vflex="1"
|
||||||
|
src="/lists/signeddocs/grid.zul" />
|
||||||
|
</window>
|
||||||
|
</zk>
|
@ -0,0 +1,13 @@
|
|||||||
|
<zk>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<window
|
||||||
|
vflex="1"
|
||||||
|
border="none"
|
||||||
|
apply="org.zkoss.bind.BindComposer"
|
||||||
|
viewModel="@id('vm') @init('info.bukova.isspst.ui.signeddocs.SignedDocsArchiveList')">
|
||||||
|
<include src="/lists/signeddocs/toolbar.zul" />
|
||||||
|
<include
|
||||||
|
vflex="1"
|
||||||
|
src="/lists/signeddocs/grid.zul" />
|
||||||
|
</window>
|
||||||
|
</zk>
|
@ -0,0 +1,19 @@
|
|||||||
|
<?page contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<zk>
|
||||||
|
<zscript>
|
||||||
|
String gridActual = "/lists/signeddocs/headListActual.zul";
|
||||||
|
String gridArchive = "/lists/signeddocs/headListArchive.zul";
|
||||||
|
</zscript>
|
||||||
|
<window
|
||||||
|
vflex="1"
|
||||||
|
border="normal">
|
||||||
|
<caption
|
||||||
|
src="/img/adobe-032.png"
|
||||||
|
zclass="form-caption"
|
||||||
|
label="${labels.AgendaSignedDocuments}" />
|
||||||
|
<include
|
||||||
|
vflex="1"
|
||||||
|
src="/lists/signeddocs/tabPanels.zul" />
|
||||||
|
</window>
|
||||||
|
</zk>
|
@ -0,0 +1,17 @@
|
|||||||
|
<tabbox
|
||||||
|
apply="org.zkoss.bind.BindComposer"
|
||||||
|
orient="top"
|
||||||
|
vflex="1">
|
||||||
|
<tabs>
|
||||||
|
<tab label="${labels.ActualDocuments}" />
|
||||||
|
<tab label="${labels.Archive}" />
|
||||||
|
</tabs>
|
||||||
|
<tabpanels>
|
||||||
|
<tabpanel>
|
||||||
|
<include src="${gridActual}" />
|
||||||
|
</tabpanel>
|
||||||
|
<tabpanel>
|
||||||
|
<include src="${gridArchive}" />
|
||||||
|
</tabpanel>
|
||||||
|
</tabpanels>
|
||||||
|
</tabbox>
|
Loading…
Reference in New Issue