|
@@ -461,6 +461,7 @@ function rootChangeForm() {
|
|
|
urlFetchKontrahenciPowiazania();
|
|
|
var valueUrl = global.location.hash;
|
|
|
|
|
|
+console.log('URL', valueUrl);
|
|
|
switch (valueUrl) {
|
|
|
case '#KONTRAHENCI':
|
|
|
$( ".container-bi_audit_form_kontrahenci_raport" ).html( VIEW_KONTRAHENCI );
|
|
@@ -471,23 +472,22 @@ urlFetchKontrahenciPowiazania();
|
|
|
break;
|
|
|
|
|
|
case '#PRACOWNICY':
|
|
|
- $( ".container-bi_audit_form_pracownicy_raport" ).html( VIEW_PRACOWNICY );
|
|
|
+ $( ".container-bi_audit_form_pracownicy_raport" ).html( VIEW_PRACOWNICY );
|
|
|
urlFetchPracownicy(1);
|
|
|
fetchGroupPracownicy()
|
|
|
$( ".container-bi_audit_form_kontrahenci_raport" ).hide();
|
|
|
$( ".container-bi_audit_form_pracownicy_raport" ).show();
|
|
|
break;
|
|
|
|
|
|
- case '#REAPORT':
|
|
|
- $( ".container-bi_audit_form_raport_data" ).html( VIEW_TREE_REAPORT );
|
|
|
- urlFetchKontrahenciPowiazania();
|
|
|
- $( ".container-bi_audit_form_kontrahenci_raport" ).hide();
|
|
|
- $( ".container-bi_audit_form_pracownicy_raport" ).hide();
|
|
|
- $( ".container-bi_audit_form_raport_data" ).show();
|
|
|
- break;
|
|
|
+ // case '#REAPORT':
|
|
|
+ // $( ".container-bi_audit_form_raport_data" ).html( VIEW_TREE_REAPORT );
|
|
|
+ // urlFetchKontrahenciPowiazania();
|
|
|
+ // $( ".container-bi_audit_form_kontrahenci_raport" ).hide();
|
|
|
+ // $( ".container-bi_audit_form_pracownicy_raport" ).hide();
|
|
|
+ // $( ".container-bi_audit_form_raport_data" ).show();
|
|
|
+ // break;
|
|
|
|
|
|
default:
|
|
|
- $( ".container-bi_audit_form_pracownicy_raport" ).html( VIEW_PRACOWNICY );
|
|
|
urlFetchPracownicy(1);
|
|
|
fetchGroupPracownicy()
|
|
|
$( ".container-bi_audit_form_kontrahenci_raport" ).hide();
|
|
@@ -542,7 +542,7 @@ function urlFetchKontrahenci(page) {
|
|
|
var filterIdGroup = filterIdGroup || getItemLocalStorage('Bocian.biAuditForm.kontrahenci.filterIdGroup');
|
|
|
})
|
|
|
.then(function(data) {
|
|
|
-
|
|
|
+console.log('kkontrahenci data', data);
|
|
|
var listItemsKontrahenci = null;
|
|
|
data.body.items.forEach (function(row) {
|
|
|
listItemsKontrahenci += '<tr><td><input type="checkbox" name="kontrID[]" value="'+row['ID']+'" /></td>'+
|