business partner views
This commit is contained in:
parent
6afd6856c2
commit
5b4401bb82
6 changed files with 34 additions and 3 deletions
|
|
@ -153,4 +153,20 @@ public class DataViewSectionController implements Serializable {
|
|||
return dataSet;
|
||||
}
|
||||
|
||||
public boolean hasDataSet(String options) {
|
||||
DataViewSectionDataSet dataSet = dataSets.get(options);
|
||||
// Extract and set dataViewName from options
|
||||
if (dataSet != null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// test if view exists..
|
||||
String _dataViewName = getOptionValue(options, "name");
|
||||
if (dataViewService.loadDataViewDefinition(_dataViewName) != null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@
|
|||
<!-- preload view options -->
|
||||
|
||||
|
||||
<h:panelGroup styleClass="imixs-view imixs-search" layout="block" id="dataview_result_id">
|
||||
|
||||
|
||||
<h:panelGroup styleClass="imixs-view imixs-search" layout="block" id="dataview_result_id"
|
||||
rendered="#{dataViewSectionController.hasDataSet(options)}">
|
||||
<ui:param name="dataViewDataSet" value="#{dataViewSectionController.loadDataSet(options)}" />
|
||||
<ui:param name="searchPage"
|
||||
value="#{(dataViewDataSet.getPageIndex()+1)}/#{(dataViewDataSet.getTotalPages())}" />
|
||||
|
|
@ -91,6 +94,16 @@
|
|||
</span>
|
||||
</div>
|
||||
</h:panelGroup>
|
||||
|
||||
<!-- Missing Data View -->
|
||||
<h:panelGroup styleClass="ui-widget" rendered="#{!dataViewSectionController.hasDataSet(options)}">
|
||||
<div class="" style="padding: .7em; margin-bottom: .7em; border: solid 1px #ccc;">
|
||||
<p style="font-size: 1.1em; font-weight: bold"> <span class="typcn typcn-cog-outline"
|
||||
style="margin-right:5px;"></span>Model
|
||||
error in #{workitem.modelVersion}:</p>
|
||||
Data View not defined: #{options}
|
||||
</div>
|
||||
</h:panelGroup>
|
||||
<script type="text/javascript">
|
||||
/*<![CDATA[*/
|
||||
function handleSubmit(event) {
|
||||
|
|
|
|||
BIN
templates/invoice_inbound_en_template.xlsx
Normal file
BIN
templates/invoice_inbound_en_template.xlsx
Normal file
Binary file not shown.
BIN
templates/payments_inbound_en_template.xlsx
Normal file
BIN
templates/payments_inbound_en_template.xlsx
Normal file
Binary file not shown.
|
|
@ -275,7 +275,8 @@
|
|||
</imixs-subform>
|
||||
|
||||
<imixs-subform label="Eingangsrechnungen">
|
||||
<imixs-form-section label="Rechnungen" path="alexander/section_bp_invoices_in" readonly="true" />
|
||||
<imixs-form-section label="Open Invoices" path="dataview" options="name=invoice.inbound.open" />
|
||||
<imixs-form-section label="All Invoices" path="dataview" options="name=invoice.inbound.all" />
|
||||
</imixs-subform>
|
||||
|
||||
<imixs-subform label="Stammdaten">
|
||||
|
|
|
|||
|
|
@ -273,7 +273,8 @@
|
|||
</imixs-subform>
|
||||
|
||||
<imixs-subform label="Inbound Invoices">
|
||||
<imixs-form-section label="Invoices" path="alexander/section_bp_invoices_in" readonly="true" />
|
||||
<imixs-form-section label="Open Invoices" path="dataview" options="name=invoice.inbound.open" />
|
||||
<imixs-form-section label="All Invoices" path="dataview" options="name=invoice.inbound.all" />
|
||||
</imixs-subform>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue