Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 269abb8b erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

feat: start new erp dashboard

Übergeordneter 8c4b03c4
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!61feat: erp process object extended,!60feat: erp process object extended
<header class="card-header">
<span class="quiqqer-dashboard-card-icon fa fa-money"></span>
<span class="card-title">{{title}}</span>
</header>
<div class="text-muted">
<table class="table table-vcenter">
<thead>
<tr>
<th>{{globalProcessId}}</th>
<th>{{date}}</th>
<th>{{invoice}}</th>
<th>{{order}}</th>
<th>{{offer}}</th>
<th>{{salesOrder}}</th>
<th>{{purchasing}}</th>
<th>{{booking}}</th>
<th>{{contract}}</th>
<th>{{payments}}</th>
<th>{{deliveryNotes}}</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
/**
* @module package/quiqqer/erp/bin/backend/controls/dashboard/cards/GlobalProcessIdList
* @author www.pcsg.de (Henning Leutz)
*/
define('package/quiqqer/erp/bin/backend/controls/dashboard/cards/GlobalProcessIdList', [
'qui/QUI',
'qui/controls/Control',
'Locale',
'Ajax',
'Mustache',
'text!package/quiqqer/erp/bin/backend/controls/dashboard/cards/GlobalProcessIdList.css'
], function(QUI, QUIControl, QUILocale, QUIAjax, Mustache, template) {
'use strict';
const lg = 'quiqqer/erp';
return new Class({
Extends: QUIControl,
Type: 'package/quiqqer/erp/bin/backend/controls/dashboard/cards/GlobalProcessIdList',
Binds: [
'$onCreate'
],
initialize: function(options) {
this.parent(options);
this.addEvents({
onCreate: this.$onCreate
});
},
$onCreate: function() {
this.$Content.addClass('card-table');
this.$Content.removeClass('card-body');
this.getElm().classList.add('col-sg-12');
this.getElm().classList.add('col-sm-12');
this.setAttribute({
head_title: QUILocale.get(lg, 'ecoyn.last.orders')
});
this.setContent(Mustache.render(template, {
globalProcessId: QUILocale.get(lg, 'dashboard.erp.processId'),
title: QUILocale.get(lg, 'dashboard.erp.title'),
date: QUILocale.get(lg, 'dashboard.erp.date'),
invoice: QUILocale.get(lg, 'dashboard.erp.invoice'),
order: QUILocale.get(lg, 'dashboard.erp.order'),
offer: QUILocale.get(lg, 'dashboard.erp.offer'),
salesOrder: QUILocale.get(lg, 'dashboard.erp.salesOrder'),
purchasing: QUILocale.get(lg, 'dashboard.erp.purchasing'),
booking: QUILocale.get(lg, 'dashboard.erp.booking'),
contract: QUILocale.get(lg, 'dashboard.erp.contract'),
payments: QUILocale.get(lg, 'dashboard.erp.payments'),
deliveryNotes: QUILocale.get(lg, 'dashboard.erp.deliveryNotes')
}));
}
});
});
\ No newline at end of file
......@@ -36,7 +36,7 @@
<provider>
<erp src="\QUI\ERP\Provider\Erp"/>
<requirements src="\QUI\ERP\Provider\Requirements"/>
<!-- <dashboard src="\QUI\ERP\Dashboard\DashboardProvider"/>-->
<dashboard src="\QUI\ERP\Provider\DashboardProvider"/>
</provider>
</package>
</quiqqer>
......@@ -10,7 +10,7 @@
*
* @package QUI\LoginLogger
*/
class Dashboard implements DashboardInterface
class ErpDashboard implements DashboardInterface
{
/**
* @param null $Locale
......@@ -30,7 +30,9 @@ public function getTitle($Locale = null): string
*/
public function getCards(): array
{
return [];
return [
'package/quiqqer/erp/bin/backend/controls/dashboard/cards/GlobalProcessIdList'
];
}
public function getJavaScriptControl(): string
......
......@@ -13,6 +13,7 @@
/**
* Class Process
* - represents a complete erp process
* - Vorgangsnummer
*
* @package QUI\ERP
*/
......
<?php
namespace QUI\ERP\Dashboard;
namespace QUI\ERP\Provider;
use QUI;
use QUI\Dashboard\DashboardProviderInterface;
/**
* Class DashboardProvider
*
* @package QUI\LoginLogger
*/
class DashboardProvider implements DashboardProviderInterface
{
/**
* @inheritDoc
*
* @return array
*/
public static function getCards(): array
public function getTitle($Locale = null): string
{
return [];
if ($Locale === null) {
$Locale = QUI::getLocale();
}
return $Locale->get('quiqqer/erp', 'dashboard.provider.title');
}
/**
......@@ -27,7 +22,15 @@ public static function getCards(): array
public static function getBoards(): array
{
return [
new Dashboard()
new QUI\ERP\Dashboard\ErpDashboard()
];
}
/**
* @return array
*/
public static function getCards(): array
{
return [];
}
}
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren