|
|
@@ -9,10 +9,10 @@ class Route_UrlAction_BiAuditRaport extends RouteBase {
|
|
|
|
|
|
public function defaultAction() {
|
|
|
UI::topSection();
|
|
|
- UI::startContainer();
|
|
|
+ //UI::startContainer();
|
|
|
|
|
|
echo '<div class="container-bi_audit_raport"></div>';
|
|
|
- try {
|
|
|
+ /*try {
|
|
|
|
|
|
$items = ACL::getAclByNamespace('default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA')->buildQuery([
|
|
|
'cols' => [ // TODO:? propertyName = []
|
|
|
@@ -43,8 +43,18 @@ class Route_UrlAction_BiAuditRaport extends RouteBase {
|
|
|
} catch (Exception $e) {
|
|
|
DBG::log($e);
|
|
|
UI::alert('danger', $e->getMessage());
|
|
|
- }
|
|
|
- UI::endContainer();
|
|
|
+ }*/
|
|
|
+
|
|
|
+ UI::inlineJS(__FILE__ . '.view.js', [
|
|
|
+ 'URL_FETCH_TEST' => $this->getLink('fetchEnergaRumKontrahenciPowiazaniaAjax'),
|
|
|
+ 'URL_FETCH_TEST_KRS' => $this->getLink('fetchTestKrsAjax'),
|
|
|
+ 'URL_FETCH_TEST_CEIDG' => $this->getLink('fetchTestCeidgAjax'),
|
|
|
+ 'URL_FETCH_PRACOWNICY' => $this->getLink('fetchPracownicyAjax'),
|
|
|
+ 'DBG' => V::get('DBG', 0, $_GET),
|
|
|
+ ]);
|
|
|
+
|
|
|
+
|
|
|
+ //UI::endContainer();
|
|
|
UI::footerSection();
|
|
|
}
|
|
|
|
|
|
@@ -100,7 +110,7 @@ public function showPowiazaniaEnergaRumKontrahenciPowiazania($items) {
|
|
|
$view = '<form class="form-horizontal" method="post">
|
|
|
<table class="table table-bordered table-hover table-striped" height=5>
|
|
|
<thead>
|
|
|
- <tr style="text-align:center; background-color:lightgray">
|
|
|
+ <tr style="">
|
|
|
<td width=1><input type="checkbox" name="checkAll" id="checkAll" /></td>
|
|
|
<td width=1>ID</td>
|
|
|
<td>Adnotacje</td>
|
|
|
@@ -268,7 +278,7 @@ public function showPowiazaniaEnergaRumKontrahenciPowiazania($items) {
|
|
|
'__args' => $args,
|
|
|
'body' => [
|
|
|
'items' => $items,
|
|
|
- 'view' => $this->showPracownicy($items),
|
|
|
+ 'view' => $this->htmlViewEmployees($items)
|
|
|
]
|
|
|
];
|
|
|
}
|
|
|
@@ -278,7 +288,7 @@ public function showPowiazaniaEnergaRumKontrahenciPowiazania($items) {
|
|
|
$view = '<form class="form-horizontal" method="post">
|
|
|
<table class="table table-bordered table-hover table-striped" height=5>
|
|
|
<thead>
|
|
|
- <tr style="text-align:center; background-color:lightgray">
|
|
|
+ <tr>
|
|
|
<td width=1><input type="checkbox" name="checkAll" id="checkAll" /></td>
|
|
|
<td width=1>ID</td>
|
|
|
<td>Imię/Imiona</td>
|
|
|
@@ -364,4 +374,154 @@ public function showPowiazaniaEnergaRumKontrahenciPowiazania($items) {
|
|
|
];
|
|
|
}
|
|
|
|
|
|
+ public function htmlViewEmployees($items) {
|
|
|
+
|
|
|
+ $viewEployees = '
|
|
|
+ <!-- start:employees-section-->
|
|
|
+<div id="smad-employees-section">
|
|
|
+ <div class="container-fluid">
|
|
|
+ <div class="row">
|
|
|
+ <div class="container padding-lr-0">
|
|
|
+ <div id="smad-menu-section">
|
|
|
+ <div class="col-sm-12 col-md-6 padding-lr-0">
|
|
|
+ <div class="menu-items">
|
|
|
+ <div class="smad-heder-title menu-item"><span class="smad-line-red">|</span> PRACOWNICY</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-sm-12 col-md-6 padding-lr-0">
|
|
|
+ <div class="form-steps">
|
|
|
+ <!-- start:form steps wizard -->
|
|
|
+ <div class="row smad-wizard" style="border-bottom:0;">
|
|
|
+ <div class="col-xs-4 col-md-4 smad-wizard-step complete"><!-- complited line -->
|
|
|
+ <div class="text-center smad-wizard-stepnum"> </div>
|
|
|
+ <div class="progress"><div class="progress-bar"></div></div>
|
|
|
+ <a href="#" class="smad-wizard-dot"></a>
|
|
|
+ <div class="smad-wizard-info complete text-center">
|
|
|
+ <div class="step-item">Krok 1</div>
|
|
|
+ <div class="step-title ">PRACOWNICY</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="col-xs-4 col-md-4 smad-wizard-step ">
|
|
|
+ <div class="text-center smad-wizard-stepnum"> </div>
|
|
|
+ <div class="progress"><div class="progress-bar"></div></div>
|
|
|
+ <a href="#" class="smad-wizard-dot"></a>
|
|
|
+ <div class="smad-wizard-info text-center">
|
|
|
+ <div class="step ">Krok 2</div>
|
|
|
+ <div class="step-title ">KONTRAHENCI</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="col-xs-4 col-md-4 smad-wizard-step ">
|
|
|
+ <div class="text-center smad-wizard-stepnum"> </div>
|
|
|
+ <div class="progress"><div class="progress-bar"></div></div>
|
|
|
+ <a href="#" class="smad-wizard-dot"></a>
|
|
|
+ <div class="smad-wizard-info text-center">
|
|
|
+ <div class="step ">Krok 3</div>
|
|
|
+ <div class="step-title ">SZUKANIE POWIĄZAŃ</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- end:form steps wizard -->
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="container-fluid">
|
|
|
+ <div class="container padding-lr-0">
|
|
|
+ <div class="smad-divider"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- start:filters -->
|
|
|
+ <div class="container-fluid">
|
|
|
+ <div class="row">
|
|
|
+ <div class="container">
|
|
|
+ <div class="smad-employees-form-section" class="border-top-grey">
|
|
|
+ <div class="col-md-9 smad-border-col">
|
|
|
+ <div class="menu-items">
|
|
|
+ <div class="menu-item">
|
|
|
+ <ul class="padding-0">
|
|
|
+ <li>
|
|
|
+ <span class="button-checkbox">
|
|
|
+ <button type="button" class="btn" data-color="grey-border">WSZYSCY</button>
|
|
|
+ <input type="checkbox" class="hidden" checked />
|
|
|
+ </span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span class="button-checkbox">
|
|
|
+ <button type="button" class="btn btn-grey-border" data-color="grey-border">WYSOKIEGO RYZYKA</button>
|
|
|
+ <input type="checkbox" class="hidden" />
|
|
|
+ </span>
|
|
|
+ </li>
|
|
|
+ <li><a href="#" title="STWÓRZ GRUPĘ" class="btn btn-default-red" data-color-noactive="">+ STWÓRZ GRUPĘ</a></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-md-3">
|
|
|
+ <div class="form-input">
|
|
|
+ <div class="form-item col-md-8 smad-heder-title">głębokość powiązań:</div>
|
|
|
+ <div class="form-item col-md-4">
|
|
|
+ <input type="depth" class="form-control" placeholder="1-16" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- end:filters -->
|
|
|
+
|
|
|
+ <!-- start:list employees -->
|
|
|
+ <div class="container-fluid">
|
|
|
+ <div class="row">
|
|
|
+ <div class="container padding-0 smad-employees-list-head">
|
|
|
+ <div class="col-md-6">
|
|
|
+ <header>
|
|
|
+ <h2 class="title">Wszyscy</h2>
|
|
|
+ </header>
|
|
|
+ <div class="desc">
|
|
|
+ Lorem Ipsum jest tekstem stosowanym jako przykładowy wypełniacz w przemyśle poligraficznym.
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-md-6">
|
|
|
+ <div class="menu-items">
|
|
|
+ <div class="menu-item">
|
|
|
+ <ul class="padding-0">
|
|
|
+ <li><a href="#" title="IMPORT PRACOWNIKÓW" class="btn btn-grey-border" data-color-noactive="">IMPORT PRACOWNIKÓW</a></li>
|
|
|
+ <li><a href="#" title="DODAJ PRACOWNIKÓW" class="btn btn-grey-border" data-color-noactive="">+ DODAJ PRACOWNIKÓW</a></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="container-fluid">
|
|
|
+ <div class="container padding-0">
|
|
|
+ ' . $this->showPracownicy($items) . '
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- end:list employees -->
|
|
|
+
|
|
|
+ <!-- start:bottom buttons -->
|
|
|
+ <div class="container-fluid smad-employees-bottom-navigation">
|
|
|
+ <div class="container padding-0">
|
|
|
+ <div class="col-lg-6 ">
|
|
|
+ <a href="#" title="PRZENIEŚ DO GRUPY" class="btn btn-grey-border">PRZENIEŚ DO GRUPY</a>
|
|
|
+ </div>
|
|
|
+ <div class="col-lg-6 text-right">
|
|
|
+ <a href="#" title="DODAJ DO ANALIZY" class="btn btn-default">DODAJ DO ANALIZY</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- end:bottom buttons -->
|
|
|
+</div>
|
|
|
+<!-- start:employees-section -->
|
|
|
+ ';
|
|
|
+ return $viewEployees;
|
|
|
+ }
|
|
|
}
|