debitor analyse
This commit is contained in:
parent
b09846efbe
commit
4f587e1466
3 changed files with 43 additions and 20 deletions
|
|
@ -99,10 +99,14 @@ public class AGLAnalyticControllerDebitor implements Serializable {
|
|||
|
||||
}
|
||||
|
||||
ItemCollection process = teamService.getProcessByName("Mahnwesen");
|
||||
String link = "/pages/workitems/worklist.xhtml?processref=" + process.getUniqueID()
|
||||
+ "&workflowgroup=Steuerbescheid";
|
||||
|
||||
String link = "/pages/workitems/worklist.xhtml" + "?phrase=" + getDbtNr();
|
||||
logger.info("process ref=" + workflowController.getWorkitem().getItemValueString("process.ref"));
|
||||
ItemCollection process = documentService
|
||||
.load(workflowController.getWorkitem().getItemValueString("process.ref"));
|
||||
if (process != null) {
|
||||
link = link + "&processref=" + process.getUniqueID()
|
||||
+ "&phrase=" + getDbtNr();
|
||||
}
|
||||
if ("analytic.invoices.count.all".equals(event.getKey())) {
|
||||
event.setValue("" + countAll);
|
||||
event.setLabel(formatTotals(totalAllCurrency1, totalAllCurrency2));
|
||||
|
|
@ -440,7 +444,7 @@ public class AGLAnalyticControllerDebitor implements Serializable {
|
|||
result = result + "datasets: [";
|
||||
|
||||
// Datasets 1
|
||||
result = result + "{label: 'Zahlungsziel',borderWidth: 1,";
|
||||
result = result + "{label: 'Days for payment',borderWidth: 1,";
|
||||
result = result + " borderColor: [\"#3B6B82\"],";
|
||||
result = result + " \"backgroundColor\" : [\"#CFE9F5\"], fill: true,tension: 0.5,";
|
||||
|
||||
|
|
@ -454,7 +458,7 @@ public class AGLAnalyticControllerDebitor implements Serializable {
|
|||
result = result + "}, ";
|
||||
|
||||
// Datasets 2
|
||||
result = result + "{label: 'Zahldauer',borderWidth: 1,";
|
||||
result = result + "{label: 'Payment duration',borderWidth: 1,";
|
||||
result = result + " borderColor: [\"#E73B65\"],\"backgroundColor\" : [\"#70B088\" ], tension: 0.5,fill: true,";
|
||||
|
||||
result = result
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ import org.imixs.marty.team.TeamService;
|
|||
import org.imixs.workflow.ItemCollection;
|
||||
import org.imixs.workflow.engine.DocumentService;
|
||||
import org.imixs.workflow.exceptions.QueryException;
|
||||
import org.imixs.workflow.faces.data.WorkflowController;
|
||||
import org.imixs.workflow.office.forms.AnalyticController;
|
||||
import org.imixs.workflow.office.forms.AnalyticEvent;
|
||||
|
||||
|
|
@ -45,15 +46,23 @@ public class AGLAnalyticControllerSteuer implements Serializable {
|
|||
TeamService teamService;
|
||||
|
||||
@Inject
|
||||
protected WorkflowController workflowController;
|
||||
|
||||
@Inject
|
||||
|
||||
protected DebitorStatistikController debitorStatistikController;
|
||||
|
||||
List<ItemCollection> steuerbescheide = null;
|
||||
|
||||
public void onEvent(@Observes AnalyticEvent event) {
|
||||
ItemCollection process = teamService.getProcessByName("Mahnwesen");
|
||||
String link = "/pages/workitems/worklist.xhtml?processref=" + process.getUniqueID()
|
||||
+ "&workflowgroup=Steuerbescheid";
|
||||
|
||||
ItemCollection process = documentService
|
||||
.load(workflowController.getWorkitem().getItemValueString("process.ref"));
|
||||
String link = "/pages/workitems/worklist.xhtml";
|
||||
if (process != null) {
|
||||
link = link + "?processref=" + process.getUniqueID()
|
||||
+ "&workflowgroup=Steuerbescheid";
|
||||
}
|
||||
if ("analytic.steuer.eust".equals(event.getKey())) {
|
||||
event.setValue(computeSteuerbescheideEUST());
|
||||
event.setLabel("EUR");
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ th { font-weight: bold;}
|
|||
<bpmn2:documentation id="Documentation_4"><![CDATA[<textblock><itemvalue>$workflowgroup</itemvalue> - <itemvalue>$workflowstatus</itemvalue></textblock>]]></bpmn2:documentation>
|
||||
<bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>
|
||||
<bpmn2:incoming>sequenceFlow_OL83kQ</bpmn2:incoming>
|
||||
<bpmn2:incoming>sequenceFlow_1K0l0g</bpmn2:incoming>
|
||||
</bpmn2:task>
|
||||
<bpmn2:sequenceFlow id="SequenceFlow_10" sourceRef="Task_2" targetRef="EndEvent_3">
|
||||
<bpmn2:documentation id="documentation_WzPj2A"/>
|
||||
|
|
@ -163,7 +164,7 @@ th { font-weight: bold;}
|
|||
<bpmn2:documentation id="Documentation_3"><![CDATA[<textblock><itemvalue>$workflowgroup</itemvalue> - <itemvalue>$workflowstatus</itemvalue></textblock>]]></bpmn2:documentation>
|
||||
<bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
|
||||
<bpmn2:outgoing>sequenceFlow_17AQjg</bpmn2:outgoing>
|
||||
<bpmn2:incoming>sequenceFlow_1K0l0g</bpmn2:incoming>
|
||||
<bpmn2:outgoing>sequenceFlow_LhcuMQ</bpmn2:outgoing>
|
||||
</bpmn2:task>
|
||||
<bpmn2:sequenceFlow id="SequenceFlow_4" sourceRef="StartEvent_1" targetRef="Task_1">
|
||||
<bpmn2:documentation id="documentation_p6trwA"/>
|
||||
|
|
@ -180,8 +181,8 @@ th { font-weight: bold;}
|
|||
<item name="analytic.invoices.count.dunning" type="custom" path="alexander/analyze_plain" label="Invoices in dunning:" />
|
||||
</imixs-form-section>
|
||||
|
||||
<imixs-form-section columns="1" label="Trend Zahlungsmoral">
|
||||
<item name="analytic.invoices.trend" type="custom" path="alexander/analyze_chart" label="Zahlungen innerhalb der letzten 6 Monate:" />
|
||||
<imixs-form-section columns="1" label="Trend Payment Practices">
|
||||
<item name="analytic.invoices.trend" type="custom" path="alexander/analyze_chart" label="Payments within the last 6 months:" />
|
||||
</imixs-form-section>
|
||||
|
||||
|
||||
|
|
@ -313,8 +314,7 @@ th { font-weight: bold;}
|
|||
<imixs:value>false</imixs:value>
|
||||
</imixs:item>
|
||||
<imixs:item name="txtactivityresult" type="xs:string">
|
||||
<imixs:value><![CDATA[<item name="process">Mahnwesen</item>
|
||||
<soa name="excel-export">
|
||||
<imixs:value><![CDATA[<soa name="excel-export">
|
||||
<textblock>SOA Template</textblock>
|
||||
<template>soa_template.xlsx</template>
|
||||
<target-name>soa_<itemvalue>dbtr.number</itemvalue>_<itemvalue format="yyyy-MM-dd">$lasteventdate</itemvalue>.xlsx</target-name>
|
||||
|
|
@ -356,6 +356,7 @@ th { font-weight: bold;}
|
|||
<bpmn2:documentation id="documentation_pCTOtQ"><![CDATA[Excel Datei erzeugen]]></bpmn2:documentation>
|
||||
<bpmn2:signalEventDefinition id="signalEventDefinition_007muw" signalRef="Signal_1"/>
|
||||
<bpmn2:outgoing>sequenceFlow_1K0l0g</bpmn2:outgoing>
|
||||
<bpmn2:incoming>sequenceFlow_LhcuMQ</bpmn2:incoming>
|
||||
</bpmn2:intermediateCatchEvent>
|
||||
<bpmn2:dataObject id="dataObject_00mX6w" name="Form">
|
||||
<bpmn2:documentation id="documentation_lUG0qw"><![CDATA[<imixs-form>
|
||||
|
|
@ -380,9 +381,12 @@ th { font-weight: bold;}
|
|||
<bpmn2:association id="association_hwRAUQ" sourceRef="dataObject_00mX6w" targetRef="Task_2">
|
||||
<bpmn2:documentation id="documentation_rNw1ng"/>
|
||||
</bpmn2:association>
|
||||
<bpmn2:sequenceFlow id="sequenceFlow_1K0l0g" sourceRef="event_HrHS9A" targetRef="Task_1">
|
||||
<bpmn2:sequenceFlow id="sequenceFlow_1K0l0g" sourceRef="event_HrHS9A" targetRef="Task_2">
|
||||
<bpmn2:documentation id="documentation_CVv7XQ"/>
|
||||
</bpmn2:sequenceFlow>
|
||||
<bpmn2:sequenceFlow id="sequenceFlow_LhcuMQ" sourceRef="Task_1" targetRef="event_HrHS9A">
|
||||
<bpmn2:documentation id="documentation_Ll2kVg"/>
|
||||
</bpmn2:sequenceFlow>
|
||||
</bpmn2:process>
|
||||
<bpmndi:BPMNDiagram id="BPMNDiagram_1" name="Default Process Diagram">
|
||||
<bpmndi:BPMNPlane bpmnElement="Collaboration_1" id="BPMNPlane_1">
|
||||
|
|
@ -459,9 +463,9 @@ th { font-weight: bold;}
|
|||
<di:waypoint x="570.0" y="315.0"/>
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNShape bpmnElement="event_HrHS9A" id="BPMNShape_hrK7fA">
|
||||
<dc:Bounds height="36.0" width="36.0" x="327.0" y="387.0"/>
|
||||
<dc:Bounds height="36.0" width="36.0" x="467.0" y="377.0"/>
|
||||
<bpmndi:BPMNLabel id="BPMNLabel_CJ3Faw">
|
||||
<dc:Bounds height="20.0" width="100.0" x="295.0" y="426.0"/>
|
||||
<dc:Bounds height="20.0" width="100.0" x="435.0" y="416.0"/>
|
||||
</bpmndi:BPMNLabel>
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape bpmnElement="dataObject_00mX6w" id="BPMNShape_UEsYmw">
|
||||
|
|
@ -476,9 +480,15 @@ th { font-weight: bold;}
|
|||
<di:waypoint x="625.0" y="265.0"/>
|
||||
<di:waypoint x="625.0" y="290.0"/>
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_1K0l0g" id="BPMNEdge_1KePCQ" sourceElement="BPMNShape_hrK7fA" targetElement="BPMNShape_Task_1">
|
||||
<di:waypoint x="345.0" y="387.0"/>
|
||||
<di:waypoint x="345.0" y="340.0"/>
|
||||
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_1K0l0g" id="BPMNEdge_1KePCQ" sourceElement="BPMNShape_hrK7fA" targetElement="BPMNShape_Task_2">
|
||||
<di:waypoint x="503.0" y="395.0"/>
|
||||
<di:waypoint x="630.0" y="395.0"/>
|
||||
<di:waypoint x="630.0" y="340.0"/>
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_LhcuMQ" id="BPMNEdge_p8xjxQ" sourceElement="BPMNShape_Task_1" targetElement="BPMNShape_hrK7fA">
|
||||
<di:waypoint x="349.0" y="340.0"/>
|
||||
<di:waypoint x="349.0" y="395.0"/>
|
||||
<di:waypoint x="467.0" y="395.0"/>
|
||||
</bpmndi:BPMNEdge>
|
||||
</bpmndi:BPMNPlane>
|
||||
<bpmndi:BPMNLabelStyle id="BPMNLabelStyle_1">
|
||||
|
|
|
|||
Loading…
Reference in a new issue