Chore: Verschiebe Git-Repository in das Hauptverzeichnis und richte .gitignore ein
No files matched your search
@@ -0,0 +1,12 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<xliff version="1.0">
|
||||
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2017-09-03T13:47:45Z" product-name="nuh8">
|
||||
<header/>
|
||||
<body>
|
||||
<trans-unit id="nuh8_01_title" approved="yes">
|
||||
<source>Simple centered button</source>
|
||||
<target state="translated">Einfacher zentrierter Button</target>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<xliff version="1.0">
|
||||
<file source-language="en" datatype="plaintext" original="messages" date="2017-09-03T13:47:45Z" product-name="nuh8">
|
||||
<header/>
|
||||
<body>
|
||||
<trans-unit id="nuh8_01_title">
|
||||
<source>Simple centered button</source>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="tx-nuh8">
|
||||
<f:render section="main" />
|
||||
</div>
|
||||
@@ -0,0 +1,74 @@
|
||||
#!/usr/bin/php
|
||||
<?php
|
||||
/***
|
||||
ÄNDERUNGEN
|
||||
|
||||
Status moves to "uebersicht" as field "status"
|
||||
|
||||
|
||||
|
||||
*/
|
||||
ini_set('memory_limit', '512M');
|
||||
|
||||
// $file = file_get_contents("testing.sql");
|
||||
// echo "----------\n";
|
||||
// echo $file;
|
||||
// // $file = file_get_contents("web272_db1_2017-12-03.sql");
|
||||
//
|
||||
// $file = html_entity_decode($file, ENT_HTML401);
|
||||
// $file = convert_to($file, "UTF8");
|
||||
//
|
||||
// echo "----------\n";
|
||||
// echo $file;
|
||||
// exit;
|
||||
|
||||
$file = file_get_contents("web272_db1_2017-12-03.sql");
|
||||
$file = html_entity_decode($file, ENT_HTML401);
|
||||
|
||||
// allen tabellen "tx_gutachten_" vorstellen wo fehlt.
|
||||
$file = str_replace("`auftraggeber`","`tx_gutachten_auftraggeber`", $file );
|
||||
$file = str_replace("`downloadlog`","`tx_gutachten_downloadlog`", $file );
|
||||
$file = str_replace("`freigabe`","`tx_gutachten_freigabe`", $file );
|
||||
$file = str_replace("`gutachter`","`tx_gutachten_gutachter`", $file );
|
||||
$file = str_replace("`projekteplatzhalter`","`tx_gutachten_projekteplatzhalter`", $file );
|
||||
$file = str_replace("`projektestandards`","`tx_gutachten_projektestandards`", $file );
|
||||
$file = str_replace("`standards`","`tx_gutachten_standards`", $file );
|
||||
$file = str_replace("`textart`","`tx_gutachten_textart`", $file );
|
||||
$file = str_replace("`uebersicht`","`tx_gutachten_uebersicht`", $file );
|
||||
|
||||
$file = str_replace("CHARACTER SET latin1","", $file );
|
||||
$file = str_replace("latin1_german1_ci","utf8_unicode_ci", $file );
|
||||
$file = str_replace("latin1_german2_ci","utf8_unicode_ci", $file );
|
||||
$file = str_replace("latin1","utf8", $file );
|
||||
$file = str_replace("ENGINE=MyISAM","ENGINE=InnoDB", $file );
|
||||
|
||||
$file = convert_to($file, "UTF8");
|
||||
|
||||
file_put_contents("testing_converted.sql", $file);
|
||||
|
||||
|
||||
|
||||
$sql = "ALTER TABLE `tx_gutachten_uebersicht` ADD `status` TINYINT(4) NULL DEFAULT '1' AFTER `loggia_title`";
|
||||
$sql = "update tx_gutachten_uebersicht a, tx_gutachten_freigabe b set a.status=b.status where a.uebersicht_id=b.pid";
|
||||
|
||||
function convert_to( $source, $target_encoding )
|
||||
{
|
||||
// detect the character encoding of the incoming file
|
||||
$encoding = mb_detect_encoding( $source, "auto" );
|
||||
|
||||
// escape all of the question marks so we can remove artifacts from
|
||||
// the unicode conversion process
|
||||
$target = str_replace( "?", "[question_mark]", $source );
|
||||
|
||||
// convert the string to the target encoding
|
||||
$target = mb_convert_encoding( $target, $target_encoding, $encoding);
|
||||
|
||||
// remove any question marks that have been introduced because of illegal characters
|
||||
$target = str_replace( "?", "", $target );
|
||||
|
||||
// replace the token string "[question_mark]" with the symbol "?"
|
||||
$target = str_replace( "[question_mark]", "?", $target );
|
||||
|
||||
return $target;
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,4 @@
|
||||
Stellfläche
|
||||
ÜBERGRÖSSE
|
||||
zugehörigen
|
||||
BEGRÜNDET
|
||||
|
After Width: | Height: | Size: 165 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 876 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
@@ -0,0 +1,76 @@
|
||||
require([
|
||||
'dojo/ready',
|
||||
'dojo/_base/declare',
|
||||
'dijit/layout/BorderContainer',
|
||||
'dijit/layout/StackContainer',
|
||||
'dgrid/Grid',
|
||||
'dgrid/OnDemandGrid',
|
||||
'dgrid/Selection',
|
||||
'dgrid/CellSelection',
|
||||
'dgrid/extensions/Pagination',
|
||||
'dgrid/Editor',
|
||||
'dgrid/extensions/ColumnHider',
|
||||
'gutachten/lib/xhr',
|
||||
'gutachten/menu/topmenu',
|
||||
'gutachten/projekte/projekte_alle',
|
||||
'gutachten/projekte/projekte_active',
|
||||
'gutachten/vorlagen/vorlagen',
|
||||
'dojo/domReady!'
|
||||
], function (
|
||||
ready,
|
||||
declare,
|
||||
BorderContainer,
|
||||
StackContainer,
|
||||
Grid,
|
||||
OnDemandGrid,
|
||||
Selection,
|
||||
CellSelection,
|
||||
Pagination,
|
||||
Editor,
|
||||
ColumnHider,
|
||||
gutachten_xhr,
|
||||
topmenu,
|
||||
projekte_alle,
|
||||
projekte_active,
|
||||
vorlagen_alle
|
||||
) {
|
||||
ready(function () {
|
||||
window.SelectionPaginationGrid = declare([Grid, Selection, Pagination])
|
||||
window.CellSelectionPaginationGrid = declare([Grid, CellSelection, Editor, Pagination])
|
||||
window.SelectionColumnHiderGrid = declare([OnDemandGrid, Selection, ColumnHider])
|
||||
window.CellSelectionPaginationColumnHiderGrid = declare([Grid, CellSelection, Editor, Pagination, ColumnHider])
|
||||
|
||||
var callback = function (response) {
|
||||
LOCALSCOPE.uid = response.uid
|
||||
LOCALSCOPE.username = response.username
|
||||
LOCALSCOPE.tx_help = response.tx_help
|
||||
|
||||
/*******************************************************
|
||||
* LAYOUT
|
||||
*******************************************************/
|
||||
var bc_base = new BorderContainer(
|
||||
{
|
||||
design: 'headline',
|
||||
id: 'bc_base'
|
||||
},
|
||||
'base'
|
||||
)
|
||||
var stack_container_main = new StackContainer({
|
||||
region: 'center',
|
||||
id: 'stack_container_main'
|
||||
})
|
||||
dijit.byId('bc_base').addChild(stack_container_main)
|
||||
|
||||
topmenu.create(bc_base)
|
||||
projekte_alle.create(stack_container_main)
|
||||
projekte_active.create(stack_container_main)
|
||||
vorlagen_alle.create(stack_container_main)
|
||||
bc_base.startup()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'settings_controller',
|
||||
'load_localscope'
|
||||
)
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,476 @@
|
||||
define([
|
||||
'dojo/date/locale',
|
||||
'dojo/_base/array',
|
||||
'dojo/number',
|
||||
'dijit/Tooltip',
|
||||
'dijit/Dialog',
|
||||
'dojo/domReady!'
|
||||
], function (locale, arrayUtil, number, Tooltip, Dialog) {
|
||||
return {
|
||||
rendeCircle: function (data, xclass, act) {
|
||||
var div = document.createElement('i')
|
||||
if (data == act)
|
||||
div.className = 'fa fa-circle ' + xclass
|
||||
else
|
||||
div.className = 'fa fa-circle off'
|
||||
return div
|
||||
},
|
||||
|
||||
renderToggle: function (data, xclass, act) {
|
||||
var div = document.createElement('i')
|
||||
if (data == act)
|
||||
div.className = 'fa fa-toggle-on ' + xclass
|
||||
else
|
||||
div.className = 'fa fa-toggle-off ' + xclass
|
||||
return div
|
||||
},
|
||||
renderIcon: function (iconclass, popup, label) {
|
||||
var div = document.createElement('i')
|
||||
div.className = iconclass
|
||||
if (popup) {
|
||||
new Tooltip({
|
||||
connectId: div,
|
||||
label: popup,
|
||||
})
|
||||
}
|
||||
if (label) {
|
||||
div += label
|
||||
}
|
||||
return div
|
||||
},
|
||||
renderText: function (bodytext, tooltipText) {
|
||||
var div = document.createElement('div')
|
||||
div.innerHTML = bodytext
|
||||
if (tooltipText) {
|
||||
new Tooltip({
|
||||
connectId: div,
|
||||
label: tooltipText,
|
||||
position: ['above', 'below']
|
||||
})
|
||||
}
|
||||
return div
|
||||
},
|
||||
renderAllowHTML: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
if (data) div.innerHTML = data
|
||||
return div
|
||||
},
|
||||
/************************************************************
|
||||
*
|
||||
* NEEDS CHECKING
|
||||
*
|
||||
***************************************************/
|
||||
/*
|
||||
*
|
||||
*/
|
||||
test: function (item) {
|
||||
console.log('GUTACHTEN_FUNCTIONS', item)
|
||||
},
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderDate: function (object, data, td, options) {
|
||||
var div = document.createElement('div')
|
||||
var date = new Date(data * 1000)
|
||||
div.innerHTML = locale.format(date, {
|
||||
selector: 'date',
|
||||
datePattern: 'dd. MM. yyyy'
|
||||
})
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderDateTime: function (object, data, td, options) {
|
||||
var div = document.createElement('div')
|
||||
var date = new Date(data * 1000)
|
||||
div.innerHTML = locale.format(date, {
|
||||
selector: 'date',
|
||||
datePattern: 'd. M. yyyy HH:mm'
|
||||
})
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
formatterZeroEmpty: function (value, object) {
|
||||
if (value * 1 == 0) return ' '
|
||||
else return value
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
isNumeric: function (n) {
|
||||
return !isNaN(parseFloat(n)) && isFinite(n)
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
addToolTip: function (txt) {
|
||||
var visible = LOCALSCOPE.tx_help == 1 ? 'help_on' : 'help_off'
|
||||
var id = Math.random()
|
||||
.toString(36)
|
||||
.replace(/[^a-z]+/g, '')
|
||||
.substr(0, 7)
|
||||
return (
|
||||
'<i id="' +
|
||||
id +
|
||||
'" class="fa fa-question help ' +
|
||||
visible +
|
||||
'" onMouseOver="dijit.showTooltip( \'' +
|
||||
txt +
|
||||
"', '" +
|
||||
id +
|
||||
'\' );" onMouseOut="dijit.hideTooltip( \'' +
|
||||
id +
|
||||
'\' );"></i>'
|
||||
)
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
checkSessionExpired: function (data) {
|
||||
if (data == '[{"logout":1}]')
|
||||
document.location.href =
|
||||
'index.php?id=1&submit=Logout&logintype=logout&pid=1&tx_felogin_pi1[noredirect]=0'
|
||||
arrayUtil.forEach(data, function (item) {
|
||||
if (item.logout)
|
||||
document.location.href =
|
||||
'index.php?id=1&submit=Logout&logintype=logout&pid=1&tx_felogin_pi1[noredirect]=0'
|
||||
})
|
||||
},
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
setPageTitle: function (title) {
|
||||
dijit
|
||||
.byId('cp_base_top_title')
|
||||
.set('content', LOCALSCOPE.pagename + ' ' + title)
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderOnOff: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
if (data == 1)
|
||||
div.innerHTML = '<i class="fa fa-check-square fa-grid on"></i>'
|
||||
else div.innerHTML = '<i class="fa fa-square-o fa-grid off"></i>'
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderDelete: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
div.innerHTML = '<a class="far fa-trash-alt pointer blau"></a>'
|
||||
return div
|
||||
},
|
||||
|
||||
getStatus: function (object) {
|
||||
var div
|
||||
if (object.status == '1')
|
||||
div = '<i class="fa fa-check-square fa-grid test"></i>'
|
||||
else if (object.status == '2')
|
||||
div = '<i class="fa fa-check-square fa-grid konzept"></i>'
|
||||
else if (object.status == '3')
|
||||
div = '<i class="fa fa-check-square fa-grid endfassung"></i>'
|
||||
else if (object.status == '4')
|
||||
div = '<i class="fa fa-check-square fa-grid active"></i>'
|
||||
div += ' ' + object.intname
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderDuplizieren: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
div.innerHTML = '<i class="far fa-clone pointer test"></i>'
|
||||
return div
|
||||
},
|
||||
|
||||
|
||||
|
||||
rendeOnOff: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
if (data == 1)
|
||||
div.innerHTML = '<i class="fa fa-toggle-on rot2 pointer"></i>'
|
||||
else
|
||||
div.innerHTML =
|
||||
'<i class="fa fa-toggle-on fa-rotate-180 gruen pointer"></i>'
|
||||
return div
|
||||
},
|
||||
|
||||
rendeOnOffLight: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
if (data == 1) div.innerHTML = '<i class="fa fa-toggle-on pointer"></i>'
|
||||
else
|
||||
div.innerHTML =
|
||||
'<i class="fa fa-toggle-on fa-rotate-180 pointer"></i>'
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderCheckBoxOnOff: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
if (data)
|
||||
div.innerHTML = '<i class="fa fa-check-square endfassung pointer"></i>'
|
||||
else div.innerHTML = '<i class="far fa-square off pointer"></i>'
|
||||
return div
|
||||
},
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
getAddAuftraggeber_CDialog: function () {
|
||||
var content =
|
||||
'<form data-dojo-type="dijit/form/Form" id="sendform_auf" name="sendform_auf" data-dojo-id="sendform_auf" encType="multipart/form-data" method="post">'
|
||||
content +=
|
||||
'<script type="dojo/method" data-dojo-event="onSubmit"> submitAddAuftraggeber(); dijit.byId("auftraggeberDialog").hide(); return false;</script>'
|
||||
content += '<table style="width:100%; margin:5px;">'
|
||||
content += '<tr>'
|
||||
content += '<td><label for="name">Kennung:</label></td>'
|
||||
content +=
|
||||
'<td><input data-dojo-type="dijit/form/TextBox" name="kennung" id="kennung1" required="true"></td>'
|
||||
content += '</tr>'
|
||||
content += '<tr>'
|
||||
content += '<td><label for="name">Kopf:</label></td>'
|
||||
content +=
|
||||
'<td><input data-dojo-type="dijit/form/TextBox" name="kopf" id="kopf1" required="true"></td>'
|
||||
content += '</tr>'
|
||||
content += '<tr>'
|
||||
content += '<td><label for="name">Fliestext:</label></td>'
|
||||
content +=
|
||||
"<td><div data-dojo-type=\"dijit/Editor\" required=\"true\" name=\"txt\" id=\"txt1\" data-dojo-props=\"plugins:['undo','redo','copy','paste','selectAll','bold','italic','underline']\"></td>"
|
||||
content += '</tr>'
|
||||
content += '<tr>'
|
||||
content += '<td><label for="name">Kontaktperson:</label></td>'
|
||||
content +=
|
||||
'<td><input data-dojo-type="dijit/form/TextBox" name="kontaktperson" id="kontaktperson1" required="true"></td>'
|
||||
content += '</tr>'
|
||||
content += '<tr>'
|
||||
content += '<td><label for="name">E-Mail:</label></td>'
|
||||
content +=
|
||||
'<td><input data-dojo-type="dijit/form/TextBox" name="email" id="email1" required="true"></td>'
|
||||
content += '</tr>'
|
||||
content += '<tr>'
|
||||
content += '<td><label for="name">Telefon:</label></td>'
|
||||
content +=
|
||||
'<td><input data-dojo-type="dijit/form/TextBox" name="telefon" id="telefon1"></td>'
|
||||
content += '</tr>'
|
||||
content += '<tr>'
|
||||
content += '<td></td>'
|
||||
content +=
|
||||
'<td><button data-dojo-type="dijit/form/Button" type="submit">Anlegen</button><button data-dojo-type="dijit/form/Button" onClick="dijit.byId(\'auftraggeberDialog\').hide();">Abbrechen</button></td>'
|
||||
content += '</tr>'
|
||||
content += '</table>'
|
||||
content += '</form>'
|
||||
return new Dialog({
|
||||
id: 'auftraggeberDialog',
|
||||
region: 'center',
|
||||
title: 'Neuen Auftraggeber anlegen',
|
||||
content: content,
|
||||
onShow: function () {
|
||||
dijit.byId('txt1').set('value', '')
|
||||
dijit.byId('sendform_auf').reset()
|
||||
}
|
||||
// submitFunction:function(){
|
||||
//
|
||||
// }
|
||||
})
|
||||
},
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
getAddGutachter_CDialog: function () {
|
||||
var content =
|
||||
'<form data-dojo-type="dijit/form/Form" id="sendform_gut" name="sendform_gut" data-dojo-id="sendform_gut" encType="multipart/form-data" method="post">'
|
||||
content +=
|
||||
'<script type="dojo/method" data-dojo-event="onSubmit"> submitAddGutachter(); dijit.byId("gutachterDialog").hide(); return false;</script>'
|
||||
content += '<table style="width:100%; margin:5px;">'
|
||||
content += '<tr>'
|
||||
content += '<td><label for="name">Kennung:</label></td>'
|
||||
content +=
|
||||
'<td><input data-dojo-type="dijit/form/TextBox" name="kennung" id="kennung2" required="true"></td>'
|
||||
content += '</tr>'
|
||||
content += '<tr>'
|
||||
content += '<td><label for="name">Kopf:</label></td>'
|
||||
content +=
|
||||
'<td><input data-dojo-type="dijit/form/TextBox" name="kopf" id="kopf2" required="true"></td>'
|
||||
content += '</tr>'
|
||||
content += '<tr>'
|
||||
content += '<td><label for="name">Fliestext:</label></td>'
|
||||
content +=
|
||||
"<td><div data-dojo-type=\"dijit/Editor\" required=\"true\" name=\"txt\" id=\"txt2\" data-dojo-props=\"plugins:['undo','redo','copy','paste','selectAll','bold','italic','underline']\"></td>"
|
||||
content += '</tr>'
|
||||
content += '<tr>'
|
||||
content += '<td><label for="name">Kontaktperson:</label></td>'
|
||||
content +=
|
||||
'<td><input data-dojo-type="dijit/form/TextBox" name="kontaktperson" id="kontaktperson2" required="true"></td>'
|
||||
content += '</tr>'
|
||||
content += '<tr>'
|
||||
content += '<td><label for="name">E-Mail:</label></td>'
|
||||
content +=
|
||||
'<td><input data-dojo-type="dijit/form/TextBox" name="email" id="email2" required="true"></td>'
|
||||
content += '</tr>'
|
||||
content += '<tr>'
|
||||
content += '<td><label for="name">Telefon:</label></td>'
|
||||
content +=
|
||||
'<td><input data-dojo-type="dijit/form/TextBox" name="telefon" id="telefon2"></td>'
|
||||
content += '</tr>'
|
||||
content += '<tr>'
|
||||
content += '<td></td>'
|
||||
content +=
|
||||
'<td><button data-dojo-type="dijit/form/Button" type="submit">Anlegen</button><button data-dojo-type="dijit/form/Button" onClick="dijit.byId(\'gutachterDialog\').hide();">Abbrechen</button></td>'
|
||||
content += '</tr>'
|
||||
content += '</table>'
|
||||
content += '</form>'
|
||||
return new Dialog({
|
||||
id: 'gutachterDialog',
|
||||
region: 'center',
|
||||
title: 'Neuen Gutachter anlegen',
|
||||
content: content,
|
||||
onShow: function () {
|
||||
dijit.byId('txt2').set('value', '')
|
||||
dijit.byId('sendform_gut').reset()
|
||||
}
|
||||
// submitFunction:function(){
|
||||
//
|
||||
// }
|
||||
})
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderPos: function (number, color) {
|
||||
var div = document.createElement('div')
|
||||
if (!isNaN(parseFloat(number)) && isFinite(number)) {
|
||||
div.innerHTML =
|
||||
'<span class="pos-number" style="background-color: ' +
|
||||
color +
|
||||
'">' +
|
||||
number +
|
||||
'</span>'
|
||||
}
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderMoveStart: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
if (object.pos > 1)
|
||||
div.innerHTML = '<i class="fas fa-angle-double-up pointer blau"></i>'
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderMoveUp: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
if (object.pos > 1)
|
||||
div.innerHTML = '<i class="fa fa-chevron-up pointer blau"></i>'
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderMoveDown: function (object, data, td, index) {
|
||||
var div = document.createElement('div')
|
||||
if (object.all != undefined && object.all != object.pos)
|
||||
div.innerHTML = '<i class="fa fa-chevron-down pointer blau"></i>'
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderMoveEnd: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
if (object.all != undefined && object.all != object.pos)
|
||||
div.innerHTML = '<i class="fas fa-angle-double-down pointer blau"></i>'
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderEditIcon: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
div.innerHTML = '<a class="fa fa-pencil-alt pointer"></a>'
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderHeaderToggleIcon: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
div.innerHTML = '<i class="fa fa-list pointer blau"></i>'
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderHeaderPlusIcon: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
div.innerHTML = '<i class="fa fa-plus pointer blau center_icon"></i>'
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderLeftArrow: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
div.innerHTML =
|
||||
'<i class="far fa-arrow-alt-circle-left pointer blau center_icon"></i>'
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderToggleArrow: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
if (data == '1')
|
||||
div.innerHTML = '<i class="fa fa-circle blau pointer"></i>'
|
||||
else div.innerHTML = '<i class="far fa-circle blau pointer"></i>'
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
renderPlatzhalter: function (object, data) {
|
||||
var div = document.createElement('div')
|
||||
if (data == '1')
|
||||
div.innerHTML = '<i class="fa fa-hashtag pointer center_icon"></i>'
|
||||
else
|
||||
div.innerHTML =
|
||||
'<i class="fa fa-hashtag pointer center_icon"></i>'
|
||||
return div
|
||||
},
|
||||
|
||||
renderDecimal: function (object, data) {
|
||||
if (data == 0) {
|
||||
return
|
||||
}
|
||||
var div = document.createElement('div')
|
||||
div.innerHTML = number.format(value, {
|
||||
places: 2,
|
||||
locale: 'us'
|
||||
})
|
||||
return div
|
||||
},
|
||||
/*
|
||||
*
|
||||
*/
|
||||
formatNumber: function (n) {
|
||||
if (n == 0) return ''
|
||||
n = n.replace(',', '.')
|
||||
return number.format(n, {
|
||||
places: 2,
|
||||
locale: 'us'
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,74 @@
|
||||
define([
|
||||
'dojo/dom-style',
|
||||
'dojox/form/Uploader',
|
||||
'dojox/embed/Flash',
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'dijit/ConfirmDialog',
|
||||
'dojo/domReady!'
|
||||
], function (
|
||||
domStyle,
|
||||
Uploader,
|
||||
Flash,
|
||||
ContentPane,
|
||||
BorderContainer,
|
||||
ConfirmDialog
|
||||
) {
|
||||
return {
|
||||
init: function () {
|
||||
if (dojox.embed.Flash.available) {
|
||||
dojo.require('dojox.form.uploader.plugins.Flash')
|
||||
} else {
|
||||
dojo.require('dojox.form.uploader.plugins.IFrame')
|
||||
}
|
||||
|
||||
var dialog = new ConfirmDialog({
|
||||
region: 'center'
|
||||
})
|
||||
domStyle.set(dialog.okButton.domNode, 'display', 'none')
|
||||
|
||||
var bc_upload_dialog = new BorderContainer({
|
||||
design: 'headline',
|
||||
style: 'width: 300px; height: 40px;'
|
||||
})
|
||||
dialog.addChild(bc_upload_dialog)
|
||||
|
||||
var uploader = new Uploader({
|
||||
name: 'uploadedfile',
|
||||
id: 'uploader',
|
||||
type: 'file',
|
||||
label: '<i class="far fa-file-alt blau"></i> Dokument auswählen',
|
||||
multiple: false,
|
||||
uploadOnSelect: true,
|
||||
preventCache: true,
|
||||
enctype: 'multipart/form-data',
|
||||
onBegin: function (response, ioArgs) {
|
||||
dialog.set(
|
||||
'title',
|
||||
'<i class="fas fa-sync fa-spin blau"></i> Hochladen..'
|
||||
)
|
||||
}
|
||||
})
|
||||
dojo.connect(uploader, 'onComplete', function (response) {
|
||||
dialog.hide()
|
||||
|
||||
var message =
|
||||
'<span class="' + response.class + '">' + response.message + '</span>'
|
||||
dijit.byId('cp_upload_response').set('content', message)
|
||||
// setTimeout(function () {
|
||||
// dijit.byId("cp_upload_response").set("content", "");
|
||||
// }, 15000);
|
||||
})
|
||||
|
||||
var cp_up = new ContentPane({
|
||||
region: 'center',
|
||||
class: 'no-border',
|
||||
id: 'cp_up',
|
||||
content: uploader
|
||||
})
|
||||
bc_upload_dialog.addChild(cp_up)
|
||||
|
||||
return dialog
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,243 @@
|
||||
define([
|
||||
'dojo/request/xhr',
|
||||
'dojo/on',
|
||||
'dojo/mouse',
|
||||
'dijit/Tooltip',
|
||||
'dojo/domReady!'
|
||||
], function (xhr, on, mouse, Tooltip) {
|
||||
return {
|
||||
/*******************************************************
|
||||
* CALL FUNCTION
|
||||
*******************************************************/
|
||||
|
||||
call_function: function (
|
||||
callback,
|
||||
controller,
|
||||
action,
|
||||
additional_parameters
|
||||
) {
|
||||
var url =
|
||||
'index.php?eID=tx_gutachten&controller=' +
|
||||
controller +
|
||||
'&action=' +
|
||||
action
|
||||
if (additional_parameters != undefined) {
|
||||
url = url + additional_parameters
|
||||
}
|
||||
xhrArgs = {
|
||||
url: url,
|
||||
handleAs: 'json',
|
||||
preventCache: true
|
||||
}
|
||||
deferred = dojo.xhrGet(xhrArgs)
|
||||
deferred.then(function (response) {
|
||||
if (
|
||||
response != null &&
|
||||
typeof response == 'object' &&
|
||||
'logout' in response
|
||||
) {
|
||||
window.location = window.location.host + '/login'
|
||||
window.replace()
|
||||
window.location.reload(true)
|
||||
return
|
||||
}
|
||||
|
||||
if (typeof callback === 'function') {
|
||||
callback(response)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/*******************************************************
|
||||
* CALL FUNCTION
|
||||
*******************************************************/
|
||||
|
||||
call_function_text: function (
|
||||
callback,
|
||||
controller,
|
||||
action,
|
||||
additional_parameters
|
||||
) {
|
||||
var url =
|
||||
'index.php?eID=tx_gutachten&controller=' +
|
||||
controller +
|
||||
'&action=' +
|
||||
action
|
||||
if (additional_parameters != undefined) {
|
||||
url = url + additional_parameters
|
||||
}
|
||||
xhrArgs = {
|
||||
url: url,
|
||||
handleAs: 'text',
|
||||
preventCache: true
|
||||
}
|
||||
deferred = dojo.xhrGet(xhrArgs)
|
||||
deferred.then(function (response) {
|
||||
if (
|
||||
response != null &&
|
||||
typeof response == 'object' &&
|
||||
'logout' in response
|
||||
) {
|
||||
window.location = window.location.host + '/login'
|
||||
window.replace()
|
||||
window.location.reload(true)
|
||||
return
|
||||
}
|
||||
|
||||
if (typeof callback === 'function') {
|
||||
callback(response)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/*******************************************************
|
||||
* CALL DOWNLOAD
|
||||
*******************************************************/
|
||||
|
||||
call_download: function (controller, action, additional_parameters) {
|
||||
var url =
|
||||
'index.php?eID=tx_gutachten&controller=' +
|
||||
controller +
|
||||
'&action=' +
|
||||
action +
|
||||
additional_parameters
|
||||
|
||||
window.open(url, '_blank')
|
||||
|
||||
return
|
||||
},
|
||||
|
||||
/*******************************************************
|
||||
* UPDATE FUNCTION
|
||||
*******************************************************/
|
||||
|
||||
post_function: function (
|
||||
callback,
|
||||
controller,
|
||||
action,
|
||||
value_array,
|
||||
additional_parameters
|
||||
) {
|
||||
var url =
|
||||
'index.php?eID=tx_gutachten&controller=' +
|
||||
controller +
|
||||
'&action=' +
|
||||
action
|
||||
if (additional_parameters != undefined) {
|
||||
url = url + additional_parameters
|
||||
}
|
||||
xhrArgs = {
|
||||
url: url,
|
||||
handleAs: 'json',
|
||||
postData: {
|
||||
data: dojo.toJson(value_array)
|
||||
},
|
||||
preventCache: true
|
||||
}
|
||||
deferred = dojo.xhrPost(xhrArgs)
|
||||
deferred.then(function (response) {
|
||||
if (typeof callback === 'function') {
|
||||
callback(response)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/*******************************************************
|
||||
* LOAD TOOLTIP
|
||||
*******************************************************/
|
||||
load_tooltip: function (
|
||||
element,
|
||||
controller,
|
||||
action,
|
||||
additional_parameters
|
||||
) {
|
||||
var url =
|
||||
'index.php?eID=tx_gutachten&controller=' +
|
||||
controller +
|
||||
'&action=' +
|
||||
action +
|
||||
additional_parameters
|
||||
xhr(url, {
|
||||
handleAs: 'text',
|
||||
method: 'GET',
|
||||
preventCache: true
|
||||
}).then(function (response) {
|
||||
if (response) {
|
||||
Tooltip.show(response, element, ['before', 'after'])
|
||||
matches_grid.on(on.selector('.dgrid-cell', mouse.leave), function () {
|
||||
Tooltip.hide(element)
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/*******************************************************
|
||||
* Update field
|
||||
*******************************************************/
|
||||
|
||||
update_field_uid: function (callback, table, field, id, value) {
|
||||
var url =
|
||||
'index.php?eID=tx_gutachten&controller=update_controller&action=update_field&table=' +
|
||||
table +
|
||||
'&field=' +
|
||||
field +
|
||||
'&id=' +
|
||||
id +
|
||||
'&value=' +
|
||||
value
|
||||
|
||||
xhrArgs = {
|
||||
url: url,
|
||||
handleAs: 'json',
|
||||
preventCache: true
|
||||
}
|
||||
deferred = dojo.xhrGet(xhrArgs)
|
||||
deferred.then(function (response) {
|
||||
if (typeof callback === 'function') {
|
||||
callback(response)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
toggle_field_uid: function (callback, table, field, id) {
|
||||
var url =
|
||||
'index.php?eID=tx_gutachten&controller=update_controller&action=toggle_field&table=' +
|
||||
table +
|
||||
'&field=' +
|
||||
field +
|
||||
'&id=' +
|
||||
id
|
||||
|
||||
xhrArgs = {
|
||||
url: url,
|
||||
handleAs: 'text',
|
||||
preventCache: true
|
||||
}
|
||||
deferred = dojo.xhrGet(xhrArgs)
|
||||
deferred.then(function (response) {
|
||||
if (typeof callback === 'function') {
|
||||
callback(response)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
delete_uid: function (callback, table, id) {
|
||||
var url =
|
||||
'index.php?eID=tx_gutachten&controller=delete_controller&action=delete_from_table&table=' +
|
||||
table +
|
||||
'&id=' +
|
||||
id
|
||||
xhrArgs = {
|
||||
url: url,
|
||||
handleAs: 'text',
|
||||
preventCache: true
|
||||
}
|
||||
deferred = dojo.xhrGet(xhrArgs)
|
||||
deferred.then(function (response) {
|
||||
if (typeof callback === 'function') {
|
||||
callback(response)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,365 @@
|
||||
define([
|
||||
'dojo/request/xhr',
|
||||
'dojo/dom-class',
|
||||
'dijit/MenuBar',
|
||||
'dijit/MenuBarItem',
|
||||
'dijit/ToolbarSeparator',
|
||||
'gutachten/lib/xhr',
|
||||
'dojo/domReady!'
|
||||
], function (
|
||||
xhr,
|
||||
domClass,
|
||||
MenuBar,
|
||||
MenuBarItem,
|
||||
ToolbarSeparator,
|
||||
gutachten_xhr
|
||||
) {
|
||||
return {
|
||||
create: function (bc_base) {
|
||||
/*******************************************************
|
||||
* top menu
|
||||
*******************************************************/
|
||||
function tmsetactive(tm) {
|
||||
switch (tm) {
|
||||
case 'tm1':
|
||||
domClass.add('tm1', 'topmenu-selected')
|
||||
domClass.remove('tm2', 'topmenu-selected')
|
||||
domClass.remove('tm3', 'topmenu-selected')
|
||||
break;
|
||||
case 'tm2':
|
||||
domClass.remove('tm1', 'topmenu-selected')
|
||||
domClass.add('tm2', 'topmenu-selected')
|
||||
domClass.remove('tm3', 'topmenu-selected')
|
||||
break;
|
||||
case 'tm3':
|
||||
domClass.remove('tm1', 'topmenu-selected')
|
||||
domClass.remove('tm2', 'topmenu-selected')
|
||||
domClass.add('tm3', 'topmenu-selected')
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
var topmenu = new MenuBar({
|
||||
id: 'topmenu',
|
||||
region: "top",
|
||||
className: 'center',
|
||||
splitter: false
|
||||
})
|
||||
topmenu.addChild(
|
||||
new MenuBarItem({
|
||||
id: "tm1",
|
||||
class: 'topmenu-selected',
|
||||
label: '<i class="far fa-building"></i> Projekte Alle',
|
||||
onClick: function (evt) {
|
||||
tmsetactive('tm1')
|
||||
dijit
|
||||
.byId('stack_container_main')
|
||||
.selectChild(dijit.byId('bc_projekte_alle'))
|
||||
}
|
||||
})
|
||||
)
|
||||
topmenu.addChild(new ToolbarSeparator())
|
||||
topmenu.addChild(
|
||||
new MenuBarItem({
|
||||
id: "tm2",
|
||||
label: '<i class="fa fa-building"></i> Projekte Active',
|
||||
onClick: function (evt) {
|
||||
tmsetactive('tm2')
|
||||
dijit
|
||||
.byId('stack_container_main')
|
||||
.selectChild(dijit.byId('bc_projekte_active'))
|
||||
}
|
||||
})
|
||||
)
|
||||
topmenu.addChild(new ToolbarSeparator())
|
||||
topmenu.addChild(
|
||||
new MenuBarItem({
|
||||
id: "tm3",
|
||||
label: '<i class="fa fa-clipboard-list"></i> Vorlagen',
|
||||
onClick: function (evt) {
|
||||
tmsetactive('tm3')
|
||||
dijit
|
||||
.byId('stack_container_main')
|
||||
.selectChild(dijit.byId('tap_vorlagen_center'))
|
||||
}
|
||||
})
|
||||
)
|
||||
if (LOCALSCOPE.uid == 1) {
|
||||
// Hermann
|
||||
topmenu.addChild(new ToolbarSeparator())
|
||||
topmenu.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
label: '<i class="fa fa-font"></i> Font',
|
||||
onClick: function () {
|
||||
var callback = function (response) {
|
||||
alert('Sonderzeichen Gerichted')
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'settings_controller',
|
||||
'sonderzeichen'
|
||||
)
|
||||
}
|
||||
})
|
||||
)
|
||||
}
|
||||
topmenu.addChild(new ToolbarSeparator())
|
||||
topmenu.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
style: 'margin-right:10px',
|
||||
label: '<i class="fa fa-sign-out-alt"></i> Logout',
|
||||
onClick: function () {
|
||||
xhr('index.php?eID=tx_gutachten', {
|
||||
data: {
|
||||
logintype: 'logout',
|
||||
pid: '53'
|
||||
},
|
||||
handleAs: 'json',
|
||||
method: 'POST'
|
||||
}).then(function (data) {
|
||||
location.href = 'index.php'
|
||||
})
|
||||
}
|
||||
})
|
||||
)
|
||||
bc_base.addChild(topmenu)
|
||||
|
||||
|
||||
|
||||
// var cp_titelbox = (window.cp_titelbox = new ContentPane({
|
||||
// id: "cp_titelbox",
|
||||
// region: "top",
|
||||
// splitter: false
|
||||
// }));
|
||||
|
||||
// var bc_base_topmenu = (window.bc_base_topmenu = new BorderContainer({
|
||||
// design: 'sidebar',
|
||||
// region: 'top',
|
||||
// id: 'bc_base_topmenu',
|
||||
// splitter: false
|
||||
// }))
|
||||
// var cp_base_topmenu_left = (window.cp_base_topmenu_left = new ContentPane(
|
||||
// {
|
||||
// id: 'cp_base_topmenu_left',
|
||||
// region: 'left',
|
||||
// splitter: false
|
||||
// }
|
||||
// ))
|
||||
// bc_base_topmenu.addChild(cp_base_topmenu_left)
|
||||
// var cp_base_topmenu_center = (window.cp_base_topmenu_center =
|
||||
// new ContentPane({
|
||||
// id: 'cp_base_topmenu_center',
|
||||
// region: 'center',
|
||||
// splitter: false
|
||||
// }))
|
||||
// bc_base_topmenu.addChild(cp_base_topmenu_center)
|
||||
// var cp_base_topmenu_right = (window.cp_base_topmenu_right =
|
||||
// new ContentPane({
|
||||
// id: 'cp_base_topmenu_right',
|
||||
// region: 'right',
|
||||
// splitter: false
|
||||
// }))
|
||||
// bc_base_topmenu.addChild(cp_base_topmenu_right)
|
||||
|
||||
// /*******************************************************
|
||||
// * top menu left
|
||||
// *******************************************************/
|
||||
// var topmenu_left = new MenuBar({
|
||||
// id: 'topmenu_left',
|
||||
// splitter: false
|
||||
// })
|
||||
// topmenu_left.addChild(
|
||||
// new MenuBarItem({
|
||||
// showLabel: true,
|
||||
// label: '<i class="fa fa-building blau"></i> Nutzwertgutachten',
|
||||
// onClick: function (evt) {
|
||||
// window.location = 'index.php'
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
// // topmenu_left.addChild(new MenuBarItem(
|
||||
// // {
|
||||
// // showLabel: true,
|
||||
// // label: '<span class="logo">Nutzwertgutachten</span>',
|
||||
// // onClick: function ()
|
||||
// // {
|
||||
// // window.location = 'index.php';
|
||||
// // }
|
||||
// // }));
|
||||
// cp_base_topmenu_left.addChild(topmenu_left)
|
||||
|
||||
// /*******************************************************
|
||||
// * top menu CENTER
|
||||
// *******************************************************/
|
||||
// var topmenu_center = new MenuBar({
|
||||
// id: 'topmenu_center',
|
||||
// style: 'text-align:center',
|
||||
// splitter: false
|
||||
// })
|
||||
// topmenu_center.addChild(
|
||||
// new MenuBarItem({
|
||||
// showLabel: true,
|
||||
// label: '<i class="far fa-building blau"></i> Projekte Alle',
|
||||
// onClick: function (evt) {
|
||||
// dijit
|
||||
// .byId('stack_container_main')
|
||||
// .selectChild(dijit.byId('bc_projekte_alle'))
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
// topmenu_center.addChild(new ToolbarSeparator())
|
||||
// topmenu_center.addChild(
|
||||
// new MenuBarItem({
|
||||
// showLabel: true,
|
||||
// label: '<i class="fa fa-building blau"></i> Projekte Active',
|
||||
// onClick: function (evt) {
|
||||
// dijit
|
||||
// .byId('stack_container_main')
|
||||
// .selectChild(dijit.byId('bc_projekte_active'))
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
// topmenu_center.addChild(new ToolbarSeparator())
|
||||
// topmenu_center.addChild(
|
||||
// new MenuBarItem({
|
||||
// showLabel: true,
|
||||
// label: '<i class="fa fa-clipboard-list blau"></i> Vorlagen',
|
||||
// onClick: function (evt) {
|
||||
// dijit
|
||||
// .byId('stack_container_main')
|
||||
// .selectChild(dijit.byId('tap_vorlagen_center'))
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
// cp_base_topmenu_center.addChild(topmenu_center)
|
||||
|
||||
// /*******************************************************
|
||||
// * top menu right
|
||||
// *******************************************************/
|
||||
// var topmenu_right = new MenuBar({
|
||||
// id: 'topmenu_right',
|
||||
// splitter: false,
|
||||
// style: 'text-align:right'
|
||||
// })
|
||||
// //
|
||||
// // var dd_topmenu2 = new DropDownMenu(
|
||||
// // {
|
||||
// // region: "top",
|
||||
// // id: "dd_topmenu2"
|
||||
// // });
|
||||
|
||||
// // dd_topmenu2.addChild(new MenuItem(
|
||||
// // {
|
||||
// // showLabel: true,
|
||||
// // label: '<i class="far fa-image"></i> ' + (LOCALSCOPE.layout == "Dark" ? "Hell" : "Dunkel") + ' ',
|
||||
// // id: "thema-button-" + (LOCALSCOPE.layout == "Dark" ? "Light" : "Dark"),
|
||||
// // onClick: function ()
|
||||
// // {
|
||||
// // var callback = function (response)
|
||||
// // {
|
||||
// // location.reload();
|
||||
// // };
|
||||
// // gutachten_xhr.call_function(
|
||||
// // callback,
|
||||
// // "settings_controller",
|
||||
// // "toggle_theme",
|
||||
// // );
|
||||
// // }
|
||||
// // }));
|
||||
// if (LOCALSCOPE.uid == 1) {
|
||||
// // Hermann
|
||||
// topmenu_right.addChild(
|
||||
// new MenuBarItem({
|
||||
// showLabel: true,
|
||||
// label: '<i class="fa fa-font blau"></i> Font',
|
||||
// onClick: function () {
|
||||
// var callback = function (response) {
|
||||
// alert('Sonderzeichen Gerichted')
|
||||
// }
|
||||
// gutachten_xhr.call_function(
|
||||
// callback,
|
||||
// 'settings_controller',
|
||||
// 'sonderzeichen'
|
||||
// )
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
// }
|
||||
// topmenu_right.addChild(
|
||||
// new MenuBarItem({
|
||||
// showLabel: true,
|
||||
// label: '<i class="far fa-user blau"></i> ' + LOCALSCOPE.username
|
||||
// })
|
||||
// )
|
||||
// topmenu_right.addChild(new ToolbarSeparator())
|
||||
// topmenu_right.addChild(
|
||||
// new MenuBarItem({
|
||||
// showLabel: true,
|
||||
// id: 'toggle_help_onoff',
|
||||
// label:
|
||||
// LOCALSCOPE.tx_help == 1
|
||||
// ? '<i class="fa fa-toggle-on nuhhelp"></i> Hilfe An'
|
||||
// : '<i class="fa fa-toggle-off blau"></i> Hilfe Aus',
|
||||
// onClick: function () {
|
||||
// var callback = function (response) {
|
||||
// LOCALSCOPE.tx_help = response
|
||||
// if (LOCALSCOPE.tx_help * 1 == 0) {
|
||||
// dijit
|
||||
// .byId('toggle_help_onoff')
|
||||
// .set(
|
||||
// 'label',
|
||||
// '<i class="fa fa-toggle-off blau"></i> Hilfe Aus'
|
||||
// )
|
||||
// query('.help').forEach(function (node) {
|
||||
// domClass.add(node, 'help_off')
|
||||
// domClass.remove(node, 'help_on')
|
||||
// })
|
||||
// } else {
|
||||
// dijit
|
||||
// .byId('toggle_help_onoff')
|
||||
// .set(
|
||||
// 'label',
|
||||
// '<i class="fa fa-toggle-on nuhhelp"></i> Hilfe An'
|
||||
// )
|
||||
// query('.help').forEach(function (node) {
|
||||
// domClass.add(node, 'help_on')
|
||||
// domClass.remove(node, 'help_off')
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// gutachten_xhr.call_function_text(
|
||||
// callback,
|
||||
// 'settings_controller',
|
||||
// 'toggle_help_onoff'
|
||||
// )
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
// topmenu_right.addChild(new ToolbarSeparator())
|
||||
// topmenu_right.addChild(
|
||||
// new MenuBarItem({
|
||||
// showLabel: true,
|
||||
// style: 'margin-right:10px',
|
||||
// label: '<i class="fa fa-sign-out-alt blau"></i> Logout',
|
||||
// onClick: function () {
|
||||
// xhr('index.php?eID=tx_gutachten', {
|
||||
// data: {
|
||||
// logintype: 'logout',
|
||||
// pid: '53'
|
||||
// },
|
||||
// handleAs: 'json',
|
||||
// method: 'POST'
|
||||
// }).then(function (data) {
|
||||
// location.href = 'index.php'
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
// cp_base_topmenu_right.addChild(topmenu_right)
|
||||
|
||||
// dijit.byId('bc_base').addChild(bc_base_topmenu)
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,106 @@
|
||||
define([
|
||||
'dojo/_base/array',
|
||||
'dijit/form/FilteringSelect',
|
||||
'gutachten/lib/functions',
|
||||
'dojo/domReady!'
|
||||
], function (arrayUtil, FilteringSelect, functions) {
|
||||
return {
|
||||
load_columns: function () {
|
||||
var fields = [
|
||||
{
|
||||
label: 'Top',
|
||||
field: 'topNr',
|
||||
className: 'width-80 center',
|
||||
unhidable: true,
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
label: 'Typ',
|
||||
field: 'typ',
|
||||
editor: 'textarea',
|
||||
autoSelect: true,
|
||||
unhidable: true,
|
||||
editorArgs: {
|
||||
rows: 4,
|
||||
cols: 50
|
||||
},
|
||||
editOn: 'click'
|
||||
},
|
||||
{
|
||||
field: 'orientierung',
|
||||
editor: FilteringSelect,
|
||||
unhidable: true,
|
||||
className: 'width-130 center',
|
||||
sortable: true,
|
||||
editOn: 'click',
|
||||
editorArgs: {
|
||||
style: 'width: 110px; text-align:center;',
|
||||
sortByLabel: false,
|
||||
store: orientierung_store,
|
||||
searchAttr: 'orientierung',
|
||||
name: 'orientierung',
|
||||
labelAttr: 'label',
|
||||
labelType: 'html'
|
||||
},
|
||||
renderHeaderCell: function () { return functions.renderIcon('fas fa-compass', 'Orientierung') }
|
||||
}
|
||||
]
|
||||
arrayUtil.forEach(
|
||||
[
|
||||
'a',
|
||||
'b',
|
||||
'c',
|
||||
'd',
|
||||
'e',
|
||||
'f',
|
||||
'g',
|
||||
'h',
|
||||
'i',
|
||||
'j',
|
||||
'k',
|
||||
'l',
|
||||
'm',
|
||||
'n',
|
||||
'o',
|
||||
'p',
|
||||
'q',
|
||||
'r',
|
||||
's',
|
||||
't',
|
||||
'u'
|
||||
],
|
||||
function (str, index) {
|
||||
fields.push({
|
||||
field: str,
|
||||
id: str,
|
||||
hidden: true,
|
||||
editor: 'text',
|
||||
sortable: true,
|
||||
autoSelect: true,
|
||||
renderHeaderCell: function () {
|
||||
var div = document.createElement('div')
|
||||
div.className = 'bold'
|
||||
div.id = str
|
||||
return div
|
||||
},
|
||||
className: 'width-76 center bg-grau no-padding-lr',
|
||||
editorArgs: {
|
||||
style: 'width: 64px; text-align: right; margin: auto !important',
|
||||
tabindex: 2 + index,
|
||||
maxHeight: -1
|
||||
}
|
||||
})
|
||||
}
|
||||
)
|
||||
fields.push(
|
||||
{
|
||||
label: 'Summe',
|
||||
field: 'summe_az',
|
||||
className: 'center bold',
|
||||
unhidable: true
|
||||
}
|
||||
)
|
||||
return fields
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,233 @@
|
||||
define([
|
||||
'dojo/query',
|
||||
'dojo/_base/declare',
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'dijit/MenuBar',
|
||||
'dijit/MenuBarItem',
|
||||
'dijit/form/TextBox',
|
||||
'dstore/Memory',
|
||||
'dstore/Trackable',
|
||||
|
||||
'gutachten/lib/functions',
|
||||
'gutachten/lib/xhr'
|
||||
], function (
|
||||
query,
|
||||
declare,
|
||||
ContentPane,
|
||||
BorderContainer,
|
||||
MenuBar,
|
||||
MenuBarItem,
|
||||
TextBox,
|
||||
Memory,
|
||||
Trackable,
|
||||
gutachten_functions,
|
||||
gutachten_xhr
|
||||
) {
|
||||
return {
|
||||
create: function (tab_projekte_aktive_center) {
|
||||
/******************************************************
|
||||
FUNCTIONS
|
||||
******************************************************/
|
||||
|
||||
var load_p_allgemeine_alle = (window.load_p_allgemeine_alle =
|
||||
function () {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) {
|
||||
alert('Kein Projekt ausgewählt')
|
||||
return
|
||||
}
|
||||
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
|
||||
var store_allgemeine_alle = (window.store_allgemeine_alle =
|
||||
new (declare([Memory, Trackable]))({
|
||||
data: response,
|
||||
idProperty: 'id'
|
||||
}))
|
||||
|
||||
grid_allgemeine.set('collection', store_allgemeine_alle)
|
||||
grid_allgemeine.startup()
|
||||
grid_allgemeine.resize()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'p_allgemeine_alle',
|
||||
'&id=' + LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
})
|
||||
|
||||
function filter_allgemein_menu() {
|
||||
var filterString = dijit.byId('SearchBox6').get('value')
|
||||
|
||||
store_allgemeine_alle_filtered = store_allgemeine_alle.filter(function (
|
||||
item
|
||||
) {
|
||||
var geschoss = item.geschoss.toLowerCase()
|
||||
var typ = item.typ.toLowerCase()
|
||||
var qm1 = filterString.replace(',', '.') * 1
|
||||
var qm2 = qm1 + 1
|
||||
var qm = item.qm * 1
|
||||
if (
|
||||
~geschoss.indexOf(filterString.toLowerCase()) ||
|
||||
~typ.indexOf(filterString.toLowerCase()) ||
|
||||
(qm > qm1 && qm <= qm2)
|
||||
)
|
||||
return true
|
||||
else return false
|
||||
})
|
||||
|
||||
grid_allgemeine.set('collection', store_allgemeine_alle_filtered)
|
||||
grid_allgemeine.refresh()
|
||||
grid_allgemeine.resize()
|
||||
}
|
||||
/******************************************************
|
||||
auftraggeber
|
||||
******************************************************/
|
||||
var p_allgemeine = (window.p_allgemeine = new BorderContainer({
|
||||
title: '<i class="fa fa-list-ul"></i> Allgemeine Flächen',
|
||||
design: 'headline',
|
||||
id: 'p_allgemeine',
|
||||
splitter: false,
|
||||
onShow: function () {
|
||||
load_p_allgemeine_alle()
|
||||
}
|
||||
}))
|
||||
tab_projekte_aktive_center.addChild(p_allgemeine)
|
||||
|
||||
var menu_allgemeine = new MenuBar({
|
||||
region: 'top',
|
||||
id: 'menu_allgemeine',
|
||||
splitter: false
|
||||
})
|
||||
menu_allgemeine.addChild(
|
||||
new TextBox({
|
||||
showLabel: true,
|
||||
id: 'SearchBox6',
|
||||
placeHolder: 'Filter Flächen',
|
||||
class: 'filter-box',
|
||||
selectOnClick: true,
|
||||
onKeyUp: function () {
|
||||
setTimeout(function () {
|
||||
filter_allgemein_menu()
|
||||
}, 500)
|
||||
},
|
||||
_setSelected: function () {
|
||||
query('#widget_SearchBox6 div span').style('display', 'none')
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_allgemeine.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
label: '<i class="fa fa-times" aria-hidden="true"></i>',
|
||||
onClick: function () {
|
||||
dijit.byId('SearchBox6').reset()
|
||||
filter_allgemein_menu()
|
||||
}
|
||||
})
|
||||
)
|
||||
p_allgemeine.addChild(menu_allgemeine)
|
||||
|
||||
var cp_allgemeine_center = (window.cp_allgemeine_center = new ContentPane(
|
||||
{
|
||||
id: 'cp_allgemeine_center',
|
||||
region: 'center'
|
||||
}
|
||||
))
|
||||
p_allgemeine.addChild(cp_allgemeine_center)
|
||||
|
||||
var grid_allgemeine = (window.grid_allgemeine =
|
||||
new CellSelectionPaginationGrid(
|
||||
{
|
||||
collection: new Memory(),
|
||||
selectionMode: 'single',
|
||||
keepScrollPosition: 1,
|
||||
idProperty: 'id',
|
||||
pagingLinks: 1,
|
||||
pagingTextBox: 0,
|
||||
firstLastArrows: 1,
|
||||
previousNextArrows: 1,
|
||||
rowsPerPage: 40,
|
||||
columns: [
|
||||
{
|
||||
field: 'geschoss',
|
||||
hidden: true,
|
||||
editor: TextBox,
|
||||
autoSave: false,
|
||||
editorArgs: {
|
||||
style: 'width: 130px;'
|
||||
},
|
||||
renderHeaderCell: function () {
|
||||
var div = document.createElement('div')
|
||||
div.innerHTML =
|
||||
'Geschoss' +
|
||||
gutachten_functions.addToolTip('Bennenung des Geschoss')
|
||||
return div
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'typ',
|
||||
hidden: true,
|
||||
editor: TextBox,
|
||||
autoSave: false,
|
||||
editorArgs: {
|
||||
style: 'width: 130px;'
|
||||
},
|
||||
renderHeaderCell: function () {
|
||||
var div = document.createElement('div')
|
||||
div.innerHTML =
|
||||
'Raum' +
|
||||
gutachten_functions.addToolTip('Bennenung des Raumes')
|
||||
return div
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'qm',
|
||||
hidden: true,
|
||||
editor: TextBox,
|
||||
autoSave: false,
|
||||
editorArgs: {
|
||||
style: 'width: 130px;'
|
||||
},
|
||||
renderHeaderCell: function () {
|
||||
var div = document.createElement('div')
|
||||
div.innerHTML =
|
||||
'qm' + gutachten_functions.addToolTip('Größe in qm')
|
||||
return div
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '',
|
||||
field: 'fake'
|
||||
}
|
||||
]
|
||||
},
|
||||
'cp_allgemeine_center'
|
||||
))
|
||||
|
||||
grid_allgemeine.on('dgrid-datachange', function (evt) {
|
||||
// console.log( "data changed: ", evt.oldValue, " -> ", evt.value );
|
||||
// console.log( "cell: ", evt.cell, evt.cell.row.id );
|
||||
// console.log( "row: ", evt.cell.column.field );
|
||||
|
||||
if (evt.cell.column.field == 'qm') {
|
||||
evt.value = evt.value.replace(',', '.')
|
||||
evt.value = evt.value.replace(/[^0-9.]/g, '')
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
'',
|
||||
'update_controller',
|
||||
'update_allgemein',
|
||||
'&field=' +
|
||||
evt.cell.column.field +
|
||||
'&value=' +
|
||||
evt.value +
|
||||
'&rowid=' +
|
||||
evt.cell.row.id
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,42 @@
|
||||
define([
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'gutachten/lib/functions',
|
||||
'gutachten/lib/xhr'
|
||||
], function (ContentPane, BorderContainer, gutachten_functions, gutachten_xhr) {
|
||||
return {
|
||||
create: function (tab_projekte_aktive_center) {
|
||||
var load_p_basis_data = (window.load_p_basis_data = function () {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) return
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
dijit.byId('cp_basis_center').set('content', response)
|
||||
}
|
||||
gutachten_xhr.call_function_text(
|
||||
callback,
|
||||
'select_controller',
|
||||
'projekte_basis_stammdaten',
|
||||
'&id=' + LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
})
|
||||
var p_basis = (window.p_basis = new BorderContainer({
|
||||
title: '<i class="far fa-building"></i> Generelle Daten',
|
||||
design: 'headline',
|
||||
id: 'p_basis',
|
||||
splitter: false,
|
||||
onShow: function () {
|
||||
load_p_basis_data()
|
||||
}
|
||||
}))
|
||||
tab_projekte_aktive_center.addChild(p_basis)
|
||||
var cp_basis_center = (window.cp_basis_center = new ContentPane({
|
||||
id: 'cp_basis_center',
|
||||
className: 'border-t-40',
|
||||
region: 'center',
|
||||
content:
|
||||
'<div class="nothing-selected">Bitte ein Projekt ausgewählen</div>'
|
||||
}))
|
||||
p_basis.addChild(cp_basis_center)
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,131 @@
|
||||
define([
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'dijit/form/Button'
|
||||
], function (ContentPane, BorderContainer, Button) {
|
||||
return {
|
||||
create: function (tab_projekte_aktive_center) {
|
||||
/******************************************************
|
||||
pdf
|
||||
******************************************************/
|
||||
var p_pdf = (window.p_pdf = new BorderContainer({
|
||||
title: '<i class="fa fa-download"></i> Herunterladen',
|
||||
design: 'headline',
|
||||
className: 'border-t-40',
|
||||
id: 'p_pdf',
|
||||
splitter: false,
|
||||
onShow: function () { }
|
||||
}))
|
||||
tab_projekte_aktive_center.addChild(p_pdf)
|
||||
|
||||
p_pdf.addChild(
|
||||
new ContentPane({
|
||||
region: 'center',
|
||||
splitter: false,
|
||||
style: 'padding:100px 50px;',
|
||||
content:
|
||||
'<button id="pdfallg" type="button"></button> <br><br><button id="pdfpara6" type="button"></button> <br><br><button id="pdfnutz" type="button"></button> <br><br><br><br> <button id="excel" type="button"></button><br><br><button id="excel2" type="button"></button>'
|
||||
})
|
||||
)
|
||||
|
||||
new Button(
|
||||
{
|
||||
className: 'download_button',
|
||||
label:
|
||||
'<i class="fa fa-file-pdf red mr-5" aria-hidden="true"></i> Standard Text',
|
||||
onClick: function () {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) {
|
||||
alert('Kein Projekt ausgewählt')
|
||||
return
|
||||
} else {
|
||||
window.open(
|
||||
'index.php?eID=tx_gutachten&controller=download_controller&action=pdf_standards&projekt_aktive=' +
|
||||
LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
'pdfallg'
|
||||
)
|
||||
|
||||
new Button(
|
||||
{
|
||||
className: 'download_button',
|
||||
label:
|
||||
'<i class="fa fa-file-pdf red mr-5" aria-hidden="true"></i> Gutachten gem. §6',
|
||||
onClick: function () {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) {
|
||||
alert('Kein Projekt ausgewählt')
|
||||
return
|
||||
} else {
|
||||
window.open(
|
||||
'index.php?eID=tx_gutachten&controller=download_controller&action=pdf_para6&projekt_aktive=' +
|
||||
LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
'pdfpara6'
|
||||
)
|
||||
|
||||
new Button(
|
||||
{
|
||||
className: 'download_button',
|
||||
label:
|
||||
'<i class="fa fa-file-pdf red mr-5" aria-hidden="true"></i> Nutzwertberechnung',
|
||||
onClick: function () {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) {
|
||||
alert('Kein Projekt ausgewählt')
|
||||
return
|
||||
} else {
|
||||
window.open(
|
||||
'index.php?eID=tx_gutachten&controller=download_controller&action=pdf_nutzflaechen&projekt_aktive=' +
|
||||
LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
'pdfnutz'
|
||||
)
|
||||
|
||||
new Button(
|
||||
{
|
||||
className: 'download_button',
|
||||
label:
|
||||
'<i class="fa fa-file-excel mr-5" aria-hidden="true"></i> Nutzflächen & Nutzwerte',
|
||||
onClick: function () {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) {
|
||||
alert('Kein Projekt ausgewählt')
|
||||
return
|
||||
} else {
|
||||
window.open(
|
||||
'index.php?eID=tx_gutachten&controller=download_controller&action=excel_nutzflaechen&projekt_aktive=' +
|
||||
LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
'excel'
|
||||
)
|
||||
new Button(
|
||||
{
|
||||
className: 'download_button',
|
||||
label:
|
||||
'<i class="fa fa-file-excel mr-5" aria-hidden="true"></i> Nutzflächen Aufstellung',
|
||||
onClick: function () {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) {
|
||||
alert('Kein Projekt ausgewählt')
|
||||
return
|
||||
} else {
|
||||
window.open(
|
||||
'index.php?eID=tx_gutachten&controller=download_controller&action=excel_aufstellung&projekt_aktive=' +
|
||||
LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
'excel2'
|
||||
)
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,449 @@
|
||||
define([
|
||||
'dojo/_base/array',
|
||||
'dojo/query',
|
||||
'dojo/_base/declare',
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'dijit/Menu',
|
||||
'dijit/MenuItem',
|
||||
'dijit/MenuBar',
|
||||
'dijit/MenuBarItem',
|
||||
'dijit/DropDownMenu',
|
||||
'dijit/PopupMenuBarItem',
|
||||
'dijit/ToolbarSeparator',
|
||||
'dijit/form/TextBox',
|
||||
"dijit/Tooltip",
|
||||
"dgrid/OnDemandGrid",
|
||||
"dgrid/Selection",
|
||||
"dgrid/Selector",
|
||||
'dgrid/Editor',
|
||||
'dstore/Memory',
|
||||
'dojo/store/Memory',
|
||||
'gutachten/lib/functions',
|
||||
'gutachten/lib/xhr',
|
||||
], function (
|
||||
arrayUtil,
|
||||
query,
|
||||
declare,
|
||||
ContentPane,
|
||||
BorderContainer,
|
||||
Menu,
|
||||
MenuItem,
|
||||
MenuBar,
|
||||
MenuBarItem,
|
||||
DropDownMenu,
|
||||
PopupMenuBarItem,
|
||||
ToolbarSeparator,
|
||||
TextBox,
|
||||
Tooltip,
|
||||
OnDemandGrid,
|
||||
Selection,
|
||||
Selector,
|
||||
Editor,
|
||||
Memory,
|
||||
LegacyMemory,
|
||||
gutachten_functions,
|
||||
gutachten_xhr,
|
||||
) {
|
||||
return {
|
||||
create: function (tab_projekte_aktive_center) {
|
||||
|
||||
/******************************************************
|
||||
FUNCTIONS
|
||||
******************************************************/
|
||||
|
||||
|
||||
function saveButtonStatusMethoden(status) {
|
||||
if (status == 1) {
|
||||
dijit.byId('save-button-methoden').set('disabled', 0)
|
||||
dijit.byId('reply-button-methoden').set('disabled', 0)
|
||||
} else {
|
||||
dijit.byId('save-button-methoden').set('disabled', 1)
|
||||
dijit.byId('reply-button-methoden').set('disabled', 1)
|
||||
}
|
||||
}
|
||||
|
||||
var load_methoden_projekt = (window.load_methoden_projekt = function () {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) {
|
||||
alert('Kein Projekt ausgewählt')
|
||||
return
|
||||
}
|
||||
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
|
||||
var store_methoden_projekt = (window.store_methoden_projekt =
|
||||
new (declare([Memory]))({
|
||||
data: response,
|
||||
idProperty: 'id'
|
||||
}))
|
||||
|
||||
var filter_f = store_methoden_projekt.sort('raumart_id')
|
||||
grid_methoden.set('collection', filter_f)
|
||||
grid_methoden.startup()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'load_methoden_projekt',
|
||||
'&id=' + LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
})
|
||||
|
||||
function loadMethoden() {
|
||||
var callback = function (response) {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) return
|
||||
|
||||
var pSubMenu = new Menu()
|
||||
arrayUtil.forEach(response, function (item) {
|
||||
pSubMenu.addChild(
|
||||
new MenuItem({
|
||||
label: '<div class="lparent"><div class="width-80">' + item.raumart + '</div><div class="center width-30">' + gutachten_functions.addToolTip(item.erklaerung) + '</div>',
|
||||
onClick: function () {
|
||||
setSelectedToMethod(item.id)
|
||||
}
|
||||
})
|
||||
)
|
||||
})
|
||||
dijit.byId('methoden_filter_popup').set('popup', pSubMenu)
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'load_methoden',
|
||||
'&id=' + LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
}
|
||||
|
||||
function loadAufstellungTitel() {
|
||||
var callback = function (response) {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) return
|
||||
|
||||
var pSubMenu = new Menu()
|
||||
pSubMenu.addChild(
|
||||
new MenuItem({
|
||||
label: '<div class= "dijitSelectLabel">Zurücksetzen</div>',
|
||||
onClick: function () {
|
||||
setSelectedToAufstellung(0)
|
||||
}
|
||||
})
|
||||
)
|
||||
arrayUtil.forEach(response, function (item) {
|
||||
pSubMenu.addChild(
|
||||
new MenuItem({
|
||||
label: '<div class= "dijitSelectLabel">' + item.titel + '</div>',
|
||||
onClick: function () {
|
||||
setSelectedToAufstellung(item.id)
|
||||
}
|
||||
})
|
||||
)
|
||||
})
|
||||
dijit.byId('aufstellung_filter_popup').set('popup', pSubMenu)
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'load_aufstellung',
|
||||
)
|
||||
}
|
||||
|
||||
function filter_methoden_menu() {
|
||||
var filterString = dijit.byId('SearchBox3').get('value')
|
||||
|
||||
store_methoden_projekt_filtered = store_methoden_projekt.filter(
|
||||
function (item) {
|
||||
var raumart = item.raumart.toLowerCase()
|
||||
var raum = item.raum.toLowerCase()
|
||||
var factor = filterString.replace(',', '.') * 1
|
||||
var factor1 = item.factor * 1
|
||||
if (
|
||||
~raumart.indexOf(filterString.toLowerCase()) ||
|
||||
~raum.indexOf(filterString.toLowerCase()) ||
|
||||
factor == factor1
|
||||
)
|
||||
return true
|
||||
else return false
|
||||
}
|
||||
)
|
||||
|
||||
grid_methoden.set('collection', store_methoden_projekt_filtered)
|
||||
grid_methoden.startup()
|
||||
}
|
||||
|
||||
function selektierungAufheben() {
|
||||
grid_methoden.clearSelection()
|
||||
}
|
||||
|
||||
function setSelectedToMethod(methodid) {
|
||||
var items = []
|
||||
for (var id in grid_methoden.selection) {
|
||||
if (grid_methoden.selection[id]) {
|
||||
items.push(id)
|
||||
}
|
||||
}
|
||||
if (items.length > 0) {
|
||||
gutachten_xhr.post_function(
|
||||
load_methoden_projekt,
|
||||
'update_controller',
|
||||
'update_method_many',
|
||||
items,
|
||||
'&methodid=' + methodid
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
function setSelectedToAufstellung(aufstellung_id) {
|
||||
|
||||
let items = []
|
||||
for (var id in grid_methoden.selection) {
|
||||
if (grid_methoden.selection[id]) {
|
||||
items.push(id)
|
||||
}
|
||||
}
|
||||
if (items.length) {
|
||||
var callback = function (response) {
|
||||
load_methoden_projekt()
|
||||
}
|
||||
gutachten_xhr.post_function(
|
||||
callback,
|
||||
'update_controller',
|
||||
'update_austellung_many',
|
||||
items,
|
||||
'&aufstellung_id=' + aufstellung_id
|
||||
)
|
||||
}
|
||||
}
|
||||
var callback = function (response) {
|
||||
window.methoden_store = new LegacyMemory({
|
||||
data: response
|
||||
})
|
||||
|
||||
var SelectionGrid = declare([OnDemandGrid, Selection, Selector, Editor]);
|
||||
window.grid_methoden =
|
||||
new SelectionGrid(
|
||||
{
|
||||
selectionMode: 'multiple',
|
||||
keepScrollPosition: 1,
|
||||
idProperty: 'id',
|
||||
pagingLinks: 1,
|
||||
pagingTextBox: 0,
|
||||
firstLastArrows: 1,
|
||||
previousNextArrows: 1,
|
||||
rowsPerPage: 20,
|
||||
columns: [
|
||||
{
|
||||
label: '',
|
||||
field: 'checkbox',
|
||||
selector: 'checkbox',
|
||||
className: 'width-icon'
|
||||
},
|
||||
{
|
||||
field: 'zunutzwert',
|
||||
className: 'width-110 center',
|
||||
sortable: false,
|
||||
className: 'width-icon',
|
||||
renderCell: function (object, data) {
|
||||
// && object.zunutzwert == 1)
|
||||
if (object.raumart_id == 2 || object.raumart_id == 8)
|
||||
return gutachten_functions.renderIcon('fa fa-check-square')
|
||||
},
|
||||
renderHeaderCell: function () { return gutachten_functions.renderText('G', 'Räumen der Methode 2 oder 2b<br>werden der Gesamtnutzfläche zugeordnet.') }
|
||||
},
|
||||
{
|
||||
field: 'factor',
|
||||
hidden: true,
|
||||
className: 'orientation',
|
||||
editor: TextBox,
|
||||
autoSave: true,
|
||||
className: 'width-110',
|
||||
editorArgs: {
|
||||
style: 'width: 60px;'
|
||||
},
|
||||
renderHeaderCell: function () { return gutachten_functions.renderText('Factor', 'Modifikationsfaktor der zu berechnenten Räum.<br>Faktoren für Objekte die nicht mit Methode 1<br>belegt sind können nicht 0 sein!') }
|
||||
},
|
||||
{
|
||||
label: 'Raum',
|
||||
field: 'raum'
|
||||
},
|
||||
{
|
||||
label: 'Methode',
|
||||
field: 'raumart'
|
||||
},
|
||||
{
|
||||
label: 'Aufstellung Titel',
|
||||
field: 'aufstellung'
|
||||
}
|
||||
]
|
||||
},
|
||||
'cp_methoden'
|
||||
)
|
||||
|
||||
grid_methoden.on('dgrid-datachange', function (evt) {
|
||||
saveButtonStatusMethoden(1)
|
||||
})
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'load_methoden_for_select'
|
||||
)
|
||||
|
||||
/******************************************************
|
||||
layout
|
||||
******************************************************/
|
||||
var p_methoden = (window.p_methoden = new BorderContainer({
|
||||
title: '<i class="fa fa-calculator"></i> Methoden',
|
||||
design: 'headline',
|
||||
id: 'p_methoden',
|
||||
splitter: false,
|
||||
onShow: function () {
|
||||
load_methoden_projekt()
|
||||
loadMethoden()
|
||||
loadAufstellungTitel()
|
||||
}
|
||||
}))
|
||||
tab_projekte_aktive_center.addChild(p_methoden)
|
||||
|
||||
var menu_methoden = new MenuBar({
|
||||
id: 'menu_methoden',
|
||||
region: 'top',
|
||||
splitter: false
|
||||
})
|
||||
|
||||
menu_methoden.addChild(
|
||||
new TextBox({
|
||||
showLabel: true,
|
||||
id: 'SearchBox3',
|
||||
class: 'filter-box',
|
||||
placeHolder: 'Raum/Methode',
|
||||
selectOnClick: true,
|
||||
onKeyUp: function () {
|
||||
setTimeout(function () {
|
||||
LOCALSCOPE.filter_field = 'search'
|
||||
filter_methoden_menu()
|
||||
}, 500)
|
||||
},
|
||||
_setSelected: function () {
|
||||
query('#widget_SearchBox3 div span').style('display', 'none')
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_methoden.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
label: '<i class="fa fa-times" aria-hidden="true"></i>',
|
||||
onClick: function () {
|
||||
dijit.byId('SearchBox3').reset()
|
||||
filter_methoden_menu()
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_methoden.addChild(new ToolbarSeparator())
|
||||
menu_methoden.addChild(
|
||||
new PopupMenuBarItem({
|
||||
id: 'methoden_filter_popup',
|
||||
label:
|
||||
'<i class="fa fa-caret-down"></i> Methode' +
|
||||
gutachten_functions.addToolTip(
|
||||
'Ordnet die gewählte Methode den selektierten Räumen zu.'
|
||||
),
|
||||
popup: new DropDownMenu({
|
||||
region: 'top'
|
||||
})
|
||||
})
|
||||
)
|
||||
menu_methoden.addChild(new ToolbarSeparator())
|
||||
menu_methoden.addChild(
|
||||
new PopupMenuBarItem({
|
||||
id: 'aufstellung_filter_popup',
|
||||
label:
|
||||
'<i class="fa fa-caret-down"></i> Aufstellung Titel' +
|
||||
gutachten_functions.addToolTip(
|
||||
'Ordnet den gewählten Titel den selektierten Räumen zu.'
|
||||
),
|
||||
popup: new DropDownMenu({
|
||||
region: 'top'
|
||||
})
|
||||
})
|
||||
)
|
||||
menu_methoden.addChild(new ToolbarSeparator())
|
||||
menu_methoden.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
label: 'Reset',
|
||||
onClick: function () {
|
||||
selektierungAufheben()
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_methoden.addChild(new ToolbarSeparator());
|
||||
menu_methoden.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
label: 'Abgleichen' + gutachten_functions.addToolTip(
|
||||
'Abgleichen der Methoden Tabelle mit Objekte im Detail, fehlende Elemente werden hinzugefügt'
|
||||
),
|
||||
onClick: function () {
|
||||
var callback = function () {
|
||||
load_methoden_projekt()
|
||||
saveButtonStatusMethoden(0)
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'update_controller',
|
||||
'abgleich_raume_generell',
|
||||
'&id=' + LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_methoden.addChild(new ToolbarSeparator());
|
||||
menu_methoden.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
id: 'save-button-methoden',
|
||||
disabled: 1,
|
||||
label: '<i class="fa fa-save rot"></i> Änderungen Sichern',
|
||||
onClick: function () {
|
||||
grid_orientierung_typen.save()
|
||||
// evt.value = evt.value.replace(",", ".");
|
||||
// evt.value = evt.value.replace(/[^0-9.]/g, "");
|
||||
var callback = function () {
|
||||
load_methoden_projekt()
|
||||
saveButtonStatusMethoden(0)
|
||||
}
|
||||
|
||||
gutachten_xhr.post_function(
|
||||
callback,
|
||||
'update_controller',
|
||||
'update_methoden_projekt_factoren',
|
||||
store_methoden_projekt.data
|
||||
)
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_methoden.addChild(new ToolbarSeparator());
|
||||
menu_methoden.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
id: 'reply-button-methoden',
|
||||
disabled: 1,
|
||||
label: '<i class="fa fa-reply"></i> Zurücksetzen',
|
||||
onClick: function () {
|
||||
load_methoden_projekt()
|
||||
saveButtonStatusMethoden(0)
|
||||
}
|
||||
})
|
||||
)
|
||||
|
||||
var cp_methoden = (window.cp_methoden = new ContentPane({
|
||||
id: 'cp_methoden',
|
||||
region: 'center',
|
||||
splitter: false
|
||||
}))
|
||||
p_methoden.addChild(cp_methoden)
|
||||
|
||||
p_methoden.addChild(menu_methoden)
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,116 @@
|
||||
define([
|
||||
'dijit/layout/BorderContainer',
|
||||
'dijit/Editor',
|
||||
'dijit/MenuBar',
|
||||
'dijit/MenuBarItem',
|
||||
'dijit/ToolbarSeparator',
|
||||
'gutachten/lib/functions',
|
||||
'gutachten/lib/xhr'
|
||||
], function (
|
||||
BorderContainer,
|
||||
Editor,
|
||||
MenuBar,
|
||||
MenuBarItem,
|
||||
ToolbarSeparator,
|
||||
gutachten_functions,
|
||||
gutachten_xhr
|
||||
) {
|
||||
return {
|
||||
create: function (tab_projekte_aktive_center) {
|
||||
/******************************************************
|
||||
FUNCTIONS
|
||||
******************************************************/
|
||||
var botton_status = (window.botton_status = function (value) {
|
||||
dijit.byId('reload-notizen').set('disabled', value)
|
||||
dijit.byId('save-notizen').set('disabled', value)
|
||||
})
|
||||
|
||||
var load_p_notizen_data = (window.load_p_notizen_data = function () {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) return
|
||||
|
||||
botton_status(1)
|
||||
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
|
||||
dijit.byId('cp_notizen_center').set('value', response)
|
||||
}
|
||||
gutachten_xhr.call_function_text(
|
||||
callback,
|
||||
'select_controller',
|
||||
'p_notizen_alle',
|
||||
'&id=' + LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
})
|
||||
|
||||
/******************************************************
|
||||
auftraggeber
|
||||
******************************************************/
|
||||
var p_notizen = (window.p_notizen = new BorderContainer({
|
||||
title: '<i class="far fa-file-alt"></i> Notizen',
|
||||
design: 'headline',
|
||||
id: 'p_notizen',
|
||||
splitter: false,
|
||||
className: 'border-t-40',
|
||||
onShow: function () {
|
||||
load_p_notizen_data()
|
||||
}
|
||||
}))
|
||||
tab_projekte_aktive_center.addChild(p_notizen)
|
||||
|
||||
var menu_notizen = new MenuBar({
|
||||
region: 'top',
|
||||
id: 'menu_notizen',
|
||||
className: 'center',
|
||||
splitter: false
|
||||
})
|
||||
menu_notizen.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
disabled: 1,
|
||||
id: 'reload-notizen',
|
||||
label: '<i class="fa fa-reply"></i> Letzte Version',
|
||||
onClick: function () {
|
||||
load_p_notizen_data()
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_notizen.addChild(new ToolbarSeparator())
|
||||
menu_notizen.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
id: 'save-notizen',
|
||||
disabled: 1,
|
||||
label: '<i class="fa fa-save rot"></i> Änderungen Sichern',
|
||||
onClick: function () {
|
||||
if (LOCALSCOPE.projekt_aktive > 0) {
|
||||
botton_status(1)
|
||||
|
||||
var value = dijit.byId('cp_notizen_center').get('value')
|
||||
gutachten_xhr.post_function(
|
||||
'',
|
||||
'update_controller',
|
||||
'update_notizen',
|
||||
value,
|
||||
'&id=' + LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
}
|
||||
}
|
||||
})
|
||||
)
|
||||
|
||||
p_notizen.addChild(menu_notizen)
|
||||
|
||||
var cp_notizen_center = (window.cp_notizen_center = new Editor({
|
||||
id: 'cp_notizen_center',
|
||||
className: 'margin-50-lr',
|
||||
style: "height: 400px; width 700px;",
|
||||
region: 'center',
|
||||
onClick: function () {
|
||||
botton_status(0)
|
||||
}
|
||||
}))
|
||||
p_notizen.addChild(cp_notizen_center)
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,331 @@
|
||||
define([
|
||||
'dojo/query',
|
||||
'dojo/_base/declare',
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'dijit/MenuBar',
|
||||
'dijit/MenuBarItem',
|
||||
'dijit/form/TextBox',
|
||||
'dstore/Memory',
|
||||
'gutachten/lib/functions',
|
||||
'gutachten/lib/xhr'
|
||||
], function (
|
||||
query,
|
||||
declare,
|
||||
ContentPane,
|
||||
BorderContainer,
|
||||
MenuBar,
|
||||
MenuBarItem,
|
||||
TextBox,
|
||||
Memory,
|
||||
gutachten_functions,
|
||||
gutachten_xhr
|
||||
) {
|
||||
return {
|
||||
create: function (tab_projekte_aktive_center) {
|
||||
/******************************************************
|
||||
FUNCTIONS
|
||||
******************************************************/
|
||||
|
||||
function filter_object_menu() {
|
||||
var filterString = dijit.byId('SearchBox5').get('value')
|
||||
var filter_f
|
||||
if (filterString != '') {
|
||||
filter_f = store_objekte_alle.filter(function (object) {
|
||||
if (object.show == 1) {
|
||||
var topNr = object.topNr.toLowerCase()
|
||||
if (~topNr.indexOf(filterString.toLowerCase())) return true
|
||||
}
|
||||
})
|
||||
} else {
|
||||
var filter_f = store_objekte_alle
|
||||
.filter({
|
||||
show: 1
|
||||
})
|
||||
.sort('topNr')
|
||||
}
|
||||
|
||||
grid_objects_menu.set('collection', filter_f)
|
||||
grid_objects_menu.startup()
|
||||
grid_objects_menu.refresh()
|
||||
grid_objects_menu.resize()
|
||||
}
|
||||
|
||||
var load_p_objekte_alle = (window.load_p_objekte_alle = function () {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) {
|
||||
alert('Bitte Projekt auswählen')
|
||||
return
|
||||
}
|
||||
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
|
||||
window.store_objekte_alle = new (declare([
|
||||
Memory
|
||||
]))({
|
||||
data: response,
|
||||
idProperty: 'id'
|
||||
})
|
||||
filter_object_menu()
|
||||
|
||||
if (LOCALSCOPE.object_selected) {
|
||||
store_objekte_filter(LOCALSCOPE.object_selected)
|
||||
}
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'p_objekte_alle',
|
||||
'&id=' + LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
})
|
||||
|
||||
function store_objekte_filter(tt_raume_basis_id) {
|
||||
LOCALSCOPE.object_selected = tt_raume_basis_id
|
||||
grid_objects_menu.refresh()
|
||||
|
||||
var filter_f = store_objekte_alle.filter({
|
||||
tt_raume_basis_id: LOCALSCOPE.object_selected
|
||||
})
|
||||
grid_objects_detail.set('collection', filter_f)
|
||||
grid_objects_detail.startup()
|
||||
grid_objects_detail.refresh()
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
|
||||
LOCALSCOPE.object_selected = 0
|
||||
/******************************************************
|
||||
layout
|
||||
******************************************************/
|
||||
var p_objekte = (window.p_objekte = new BorderContainer({
|
||||
title: '<i class="far fa-object-group"></i> Objekte im Detail',
|
||||
design: 'headline',
|
||||
id: 'p_objekte',
|
||||
splitter: false,
|
||||
onShow: function () {
|
||||
load_p_objekte_alle()
|
||||
}
|
||||
}))
|
||||
tab_projekte_aktive_center.addChild(p_objekte)
|
||||
|
||||
var menu_objects = new MenuBar({
|
||||
region: 'top',
|
||||
id: 'menu_objects',
|
||||
splitter: false
|
||||
})
|
||||
menu_objects.addChild(
|
||||
new TextBox({
|
||||
showLabel: true,
|
||||
id: 'SearchBox5',
|
||||
class: 'filter-box',
|
||||
placeHolder: 'Filter Top Nr.',
|
||||
selectOnClick: true,
|
||||
onKeyUp: function () {
|
||||
setTimeout(function () {
|
||||
filter_object_menu()
|
||||
}, 500)
|
||||
},
|
||||
_setSelected: function () {
|
||||
query('#widget_SearchBox5 div span').style('display', 'none')
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_objects.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
label: '<i class="fa fa-times" aria-hidden="true"></i>',
|
||||
onClick: function () {
|
||||
dijit.byId('SearchBox5').reset()
|
||||
filter_object_menu()
|
||||
}
|
||||
})
|
||||
)
|
||||
p_objekte.addChild(menu_objects)
|
||||
|
||||
/******************************************************
|
||||
grids
|
||||
******************************************************/
|
||||
|
||||
var grid_objects_menu = (window.grid_objects_menu =
|
||||
new CellSelectionPaginationGrid({
|
||||
collection: new Memory(),
|
||||
selectionMode: 'single',
|
||||
keepScrollPosition: 1,
|
||||
idProperty: 'id',
|
||||
pagingLinks: 0,
|
||||
pagingTextBox: 0,
|
||||
firstLastArrows: 0,
|
||||
previousNextArrows: 0,
|
||||
rowsPerPage: 1000,
|
||||
columns: [
|
||||
{
|
||||
field: 'delete',
|
||||
label: ' ',
|
||||
className: 'width-icon',
|
||||
renderCell: function () {
|
||||
return gutachten_functions.renderIcon('far fa-trash-alt')
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'topNr',
|
||||
label: 'Top Nr'
|
||||
},
|
||||
{
|
||||
field: 'arrow',
|
||||
className: 'width-icon',
|
||||
label: '',
|
||||
renderCell: function (object, data, td) {
|
||||
if (object.tt_raume_basis_id == LOCALSCOPE.object_selected) {
|
||||
td.className += ' dgrid-selected'
|
||||
return gutachten_functions.renderIcon('fa fa-arrow-circle-right')
|
||||
} else {
|
||||
return gutachten_functions.renderIcon('far fa-circle')
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}))
|
||||
|
||||
grid_objects_menu.on('.dgrid-content .dgrid-cell:click', function (evt) {
|
||||
var cell = grid_objects_menu.cell(evt)
|
||||
var field = cell.column.field
|
||||
var item = grid_objects_menu.row(evt)
|
||||
switch (field) {
|
||||
case 'arrow':
|
||||
store_objekte_filter(item.data.tt_raume_basis_id)
|
||||
break
|
||||
case 'delete':
|
||||
if (confirm('Objekt löschen?')) {
|
||||
var callback = function (response) {
|
||||
store_objekte_alle.remove(item.id)
|
||||
grid_objects_detail.set('collection', new Memory())
|
||||
grid_objects_detail.refresh()
|
||||
grid_objects_menu.refresh()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'delete_controller',
|
||||
'delete_raumart_von_basis',
|
||||
'&id=' + item.data.tt_raume_basis_id
|
||||
)
|
||||
}
|
||||
break
|
||||
}
|
||||
})
|
||||
|
||||
// // topNr, raum, geschoss, factor, m2, NW einzel
|
||||
var grid_objects_detail = (window.grid_objects_detail =
|
||||
new CellSelectionPaginationGrid({
|
||||
collection: new Memory(),
|
||||
selectionMode: 'single',
|
||||
keepScrollPosition: 1,
|
||||
idProperty: 'id',
|
||||
pagingLinks: 0,
|
||||
pagingTextBox: 0,
|
||||
firstLastArrows: 0,
|
||||
previousNextArrows: 0,
|
||||
rowsPerPage: 1000,
|
||||
columns: [
|
||||
{
|
||||
label: 'Top Nr',
|
||||
field: 'topNr'
|
||||
},
|
||||
{
|
||||
label: 'Raum',
|
||||
field: 'raum'
|
||||
},
|
||||
{
|
||||
field: 'geschoss',
|
||||
editor: TextBox,
|
||||
autoSave: false,
|
||||
editorArgs: {
|
||||
style: 'width: 80px;'
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'factor',
|
||||
editor: TextBox,
|
||||
autoSave: false,
|
||||
editorArgs: {
|
||||
style: 'width: 80px;'
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'qm',
|
||||
editor: TextBox,
|
||||
autoSave: false,
|
||||
editorArgs: {
|
||||
style: 'width: 80px;'
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'NW',
|
||||
renderHeaderCell: function () { return gutachten_functions.renderText('NW', 'Nutzwerte') }
|
||||
},
|
||||
{
|
||||
field: 'delete',
|
||||
sortable: false,
|
||||
className: 'width-icon',
|
||||
renderCell: function () {
|
||||
return gutachten_functions.renderIcon('far fa-trash-alt')
|
||||
},
|
||||
renderHeaderCell: function () {
|
||||
return gutachten_functions.renderIcon('fas fa-trash-alt')
|
||||
},
|
||||
}
|
||||
]
|
||||
}))
|
||||
|
||||
grid_objects_detail.on('dgrid-datachange', function (evt) {
|
||||
// console.log( "data changed: ", evt.oldValue, " -> ", evt.value );
|
||||
// console.log( "cell: ", evt.cell, evt.cell.row.id );
|
||||
// console.log( "row: ", evt.cell.column.field );
|
||||
|
||||
gutachten_xhr.call_function(
|
||||
load_p_objekte_alle,
|
||||
'update_controller',
|
||||
'update_raume_all',
|
||||
'&field=' +
|
||||
evt.cell.column.field +
|
||||
'&value=' +
|
||||
evt.value +
|
||||
'&rowid=' +
|
||||
evt.cell.row.id
|
||||
)
|
||||
})
|
||||
|
||||
grid_objects_detail.on(
|
||||
'.dgrid-content .dgrid-cell:click',
|
||||
function (evt) {
|
||||
var cell = grid_objects_detail.cell(evt)
|
||||
var field = cell.column.field
|
||||
var item = grid_objects_detail.row(evt)
|
||||
if (field == 'delete') {
|
||||
gutachten_xhr.delete_uid(
|
||||
load_p_objekte_alle,
|
||||
'tx_gutachten_raume_all',
|
||||
item.id
|
||||
)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
var cp_objects_left = (window.cp_objects_left = new ContentPane({
|
||||
id: 'cp_objects_left',
|
||||
region: 'left',
|
||||
content: grid_objects_menu
|
||||
}))
|
||||
p_objekte.addChild(cp_objects_left)
|
||||
|
||||
var cp_objects_center = (window.cp_objects_center = new ContentPane({
|
||||
id: 'cp_objects_center',
|
||||
region: 'center',
|
||||
content: grid_objects_detail
|
||||
}))
|
||||
p_objekte.addChild(cp_objects_center)
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,465 @@
|
||||
define([
|
||||
'dojo/_base/declare',
|
||||
'dojo/dom',
|
||||
'dojo/dom-style',
|
||||
'dojo/_base/array',
|
||||
'dojo/query',
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'dijit/form/TextBox',
|
||||
'dijit/MenuBar',
|
||||
'dijit/MenuBarItem',
|
||||
'dstore/Memory',
|
||||
'dstore/Trackable',
|
||||
'dojo/store/Memory',
|
||||
'gutachten/lib/functions',
|
||||
'gutachten/lib/xhr',
|
||||
'gutachten/projekte/columnsets/cs_orientierung_typen',
|
||||
'dojox/widget/Standby'
|
||||
], function (
|
||||
declare,
|
||||
dom,
|
||||
domStyle,
|
||||
arrayUtil,
|
||||
query,
|
||||
ContentPane,
|
||||
BorderContainer,
|
||||
TextBox,
|
||||
MenuBar,
|
||||
MenuBarItem,
|
||||
Memory,
|
||||
Trackable,
|
||||
LegacyMemory,
|
||||
gutachten_functions,
|
||||
gutachten_xhr,
|
||||
cs_orientierung_typen,
|
||||
Standby
|
||||
) {
|
||||
return {
|
||||
create: function (tab_projekte_aktive_center) {
|
||||
/******************************************************
|
||||
FUNCTIONS
|
||||
******************************************************/
|
||||
function filter_orientierung_typen() {
|
||||
var orientierung_typen_filtered
|
||||
if (LOCALSCOPE.filter_field == 'search') {
|
||||
var filterString = dijit.byId('SearchBox2').get('value')
|
||||
orientierung_typen_filtered = store_orientierung_typen_einzel.filter(
|
||||
function (object) {
|
||||
var topNr = object.topNr.toLowerCase()
|
||||
var typ = object.typ
|
||||
if (typ != null) {
|
||||
typ = typ.toLowerCase()
|
||||
} else {
|
||||
typ = 'null'
|
||||
}
|
||||
if (
|
||||
~topNr.indexOf(filterString.toLowerCase()) ||
|
||||
~typ.indexOf(filterString.toLowerCase())
|
||||
)
|
||||
return true
|
||||
else return false
|
||||
}
|
||||
)
|
||||
|
||||
grid_orientierung_typen.set('collection', orientierung_typen_filtered)
|
||||
} else {
|
||||
grid_orientierung_typen.set(
|
||||
'collection',
|
||||
store_orientierung_typen_einzel
|
||||
)
|
||||
}
|
||||
grid_orientierung_typen.startup()
|
||||
grid_orientierung_typen.refresh()
|
||||
}
|
||||
|
||||
function saveButtonStatus(status) {
|
||||
if (status == 1) {
|
||||
dijit.byId('save-button').set('disabled', 0)
|
||||
dijit.byId('reply-button').set('disabled', 0)
|
||||
} else {
|
||||
dijit.byId('save-button').set('disabled', 1)
|
||||
dijit.byId('reply-button').set('disabled', 1)
|
||||
}
|
||||
}
|
||||
|
||||
var load_orientierung_typen_colums =
|
||||
(window.load_orientierung_typen_colums = function () {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) {
|
||||
alert('Kein Projekt ausgewählt')
|
||||
return
|
||||
}
|
||||
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
|
||||
var store_colums_einzel = (window.store_colums_einzel =
|
||||
new (declare([Memory, Trackable]))({
|
||||
data: response,
|
||||
idProperty: 'id'
|
||||
}))
|
||||
grid_colums.set('collection', store_colums_einzel)
|
||||
grid_colums.startup()
|
||||
|
||||
arrayUtil.forEach(store_colums_einzel.data, function (item) {
|
||||
var ele = dom.byId(item.colid)
|
||||
if (ele != undefined) {
|
||||
ele.innerHTML = item.pos
|
||||
}
|
||||
})
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'orientierung_typen_colums_einzel',
|
||||
'&id=' + LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
})
|
||||
|
||||
var load_orientierung_typen = (window.load_orientierung_typen =
|
||||
function () {
|
||||
orientStandby.show()
|
||||
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
window.store_orientierung_typen_einzel = new (declare([Memory]))(
|
||||
{
|
||||
data: response,
|
||||
idProperty: 'id'
|
||||
}
|
||||
)
|
||||
filter_orientierung_typen()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'orientierung_typen_einzel',
|
||||
'&id=' + LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
})
|
||||
|
||||
var hide_orientation_alle = (window.hide_orientation_alle = function () {
|
||||
arrayUtil.forEach(
|
||||
[
|
||||
'a',
|
||||
'b',
|
||||
'c',
|
||||
'd',
|
||||
'e',
|
||||
'f',
|
||||
'g',
|
||||
'h',
|
||||
'i',
|
||||
'j',
|
||||
'k',
|
||||
'l',
|
||||
'm',
|
||||
'n',
|
||||
'o',
|
||||
'p',
|
||||
'q',
|
||||
'r',
|
||||
's',
|
||||
't',
|
||||
'u'
|
||||
],
|
||||
function (item) {
|
||||
grid_orientierung_typen.toggleColumnHiddenState(item, 1)
|
||||
}
|
||||
)
|
||||
})
|
||||
var load_orientation_alle = (window.load_orientation_alle =
|
||||
function () { })
|
||||
|
||||
/******************************************************
|
||||
layout
|
||||
******************************************************/
|
||||
var p_orientierung_typen = (window.p_methoden = new BorderContainer({
|
||||
title: '<i class="far fa-compass"></i> Orientierung & Typen',
|
||||
design: 'headline',
|
||||
id: 'p_orientierung_typen',
|
||||
splitter: false,
|
||||
onShow: function () {
|
||||
load_orientierung_typen()
|
||||
load_orientierung_typen_colums()
|
||||
}
|
||||
}))
|
||||
tab_projekte_aktive_center.addChild(p_orientierung_typen)
|
||||
|
||||
|
||||
/******************************************************
|
||||
menu
|
||||
******************************************************/
|
||||
var menu_orient_typen = new MenuBar({
|
||||
region: 'top',
|
||||
id: 'menu_orient_typen',
|
||||
splitter: false
|
||||
})
|
||||
menu_orient_typen.addChild(
|
||||
new TextBox({
|
||||
showLabel: true,
|
||||
id: 'SearchBox2',
|
||||
class: 'filter-box',
|
||||
placeHolder: 'Filter',
|
||||
selectOnClick: true,
|
||||
onKeyUp: function () {
|
||||
setTimeout(function () {
|
||||
LOCALSCOPE.filter_field = 'search'
|
||||
filter_orientierung_typen()
|
||||
}, 500)
|
||||
},
|
||||
_setSelected: function () {
|
||||
query('#widget_SearchBox2 div span').style('display', 'none')
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_orient_typen.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
label: '<i class="fa fa-times"></i>',
|
||||
onClick: function () {
|
||||
dijit.byId('SearchBox2').reset()
|
||||
LOCALSCOPE.filter_field = ''
|
||||
filter_orientierung_typen()
|
||||
}
|
||||
})
|
||||
)
|
||||
// menu_orient_typen.addChild(new ToolbarSeparator());
|
||||
menu_orient_typen.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
id: 'save-button',
|
||||
style: 'margin-left: 70px',
|
||||
disabled: 1,
|
||||
label: '<i class="fa fa-save rot"></i> Änderungen Sichern',
|
||||
onClick: function () {
|
||||
grid_orientierung_typen.save()
|
||||
// evt.value = evt.value.replace(",", ".");
|
||||
// evt.value = evt.value.replace(/[^0-9.]/g, "");
|
||||
var callback = function () {
|
||||
load_orientierung_typen()
|
||||
saveButtonStatus(0)
|
||||
}
|
||||
|
||||
gutachten_xhr.post_function(
|
||||
callback,
|
||||
'update_controller',
|
||||
'update_raeume_alle_orientierung',
|
||||
store_orientierung_typen_einzel.data
|
||||
)
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_orient_typen.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
id: 'reply-button',
|
||||
style: 'margin-left: 10px',
|
||||
disabled: 1,
|
||||
label: '<i class="fa fa-reply"></i> Zurücksetzen',
|
||||
onClick: function () {
|
||||
load_orientierung_typen()
|
||||
saveButtonStatus(0)
|
||||
}
|
||||
})
|
||||
)
|
||||
p_orientierung_typen.addChild(menu_orient_typen)
|
||||
|
||||
|
||||
|
||||
var cp_orientierung_typen = (window.cp_orientierung_typen =
|
||||
new ContentPane({
|
||||
id: 'cp_orientierung_typen',
|
||||
region: 'center',
|
||||
splitter: false
|
||||
}))
|
||||
p_orientierung_typen.addChild(cp_orientierung_typen)
|
||||
|
||||
var cp_orientierung_typen_colums = (window.cp_orientierung_typen_colums =
|
||||
new ContentPane({
|
||||
id: 'cp_orientierung_typen_colums',
|
||||
region: 'right',
|
||||
splitter: false
|
||||
}))
|
||||
p_orientierung_typen.addChild(cp_orientierung_typen_colums)
|
||||
|
||||
/******************************************************
|
||||
grid data
|
||||
******************************************************/
|
||||
// id,pid,topNr,typ,tt_orientierung_id,noDispInOrientierung,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,summe_az,bewertung,notizen
|
||||
|
||||
var callback = function (response) {
|
||||
window.orientierung_store = new LegacyMemory({
|
||||
data: response
|
||||
})
|
||||
|
||||
var grid_orientierung_typen = (window.grid_orientierung_typen =
|
||||
new CellSelectionPaginationColumnHiderGrid(
|
||||
{
|
||||
collection: new Memory(),
|
||||
selectionMode: 'single',
|
||||
keepScrollPosition: 1,
|
||||
idProperty: 'id',
|
||||
pagingLinks: 1,
|
||||
pagingTextBox: 0,
|
||||
firstLastArrows: 1,
|
||||
previousNextArrows: 1,
|
||||
rowsPerPage: 1000,
|
||||
columns: cs_orientierung_typen.load_columns()
|
||||
},
|
||||
'cp_orientierung_typen'
|
||||
))
|
||||
|
||||
grid_orientierung_typen.on('dgrid-datachange', function (evt) {
|
||||
saveButtonStatus(1)
|
||||
})
|
||||
|
||||
grid_orientierung_typen.on('dgrid-refresh-complete', function (event) {
|
||||
orientStandby.hide()
|
||||
})
|
||||
|
||||
window.orientStandby = new Standby({
|
||||
target: 'cp_orientierung_typen',
|
||||
opacity: 0.5,
|
||||
text: '<i class="fas fa-spinner fa-spin fa-4x blau"></i>',
|
||||
centerIndicator: 'text',
|
||||
region: 'center',
|
||||
zIndex: 1001
|
||||
})
|
||||
document.body.appendChild(orientStandby.domNode)
|
||||
orientStandby.startup()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'load_orientation_for_select'
|
||||
)
|
||||
|
||||
/******************************************************
|
||||
GRID COLUMS
|
||||
******************************************************/
|
||||
var grid_colums = (window.grid_colums = new CellSelectionPaginationGrid(
|
||||
{
|
||||
collection: new Memory(),
|
||||
selectionMode: 'single',
|
||||
keepScrollPosition: 1,
|
||||
idProperty: 'id',
|
||||
pagingLinks: 1,
|
||||
pagingTextBox: 0,
|
||||
firstLastArrows: 1,
|
||||
previousNextArrows: 1,
|
||||
rowsPerPage: 40,
|
||||
// renderRow: function (object) {
|
||||
// var rowElement = this.inherited(arguments)
|
||||
// rowElement.className += ' bg-grau'
|
||||
// return rowElement
|
||||
// },
|
||||
columns: [
|
||||
{
|
||||
label: ' ',
|
||||
field: 'show',
|
||||
className: 'width-icon',
|
||||
sortable: false,
|
||||
renderCell: function (object, data) {
|
||||
return gutachten_functions.renderToggle(data, '', 1)
|
||||
},
|
||||
|
||||
},
|
||||
{
|
||||
label: 'ID',
|
||||
field: 'pos',
|
||||
className: 'width-50 center bold',
|
||||
sortable: false,
|
||||
renderCell: function (object, data) {
|
||||
return gutachten_functions.renderPos(data)
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Faktor Merkmal',
|
||||
field: 'coltitel',
|
||||
sortable: false,
|
||||
editor: 'text',
|
||||
editOn: 'click'
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'delete',
|
||||
className: 'width-icon',
|
||||
sortable: false,
|
||||
renderCell: function () {
|
||||
return gutachten_functions.renderIcon('fas fa-trash-alt')
|
||||
},
|
||||
renderHeaderCell: function () {
|
||||
return gutachten_functions.renderIcon('fas fa-plus')
|
||||
},
|
||||
}
|
||||
]
|
||||
},
|
||||
'cp_orientierung_typen_colums'
|
||||
))
|
||||
|
||||
grid_colums.on('.dgrid-content .dgrid-cell:click', function (evt) {
|
||||
var cell = grid_colums.cell(evt)
|
||||
var field = cell.column.field
|
||||
var item = grid_colums.row(evt)
|
||||
|
||||
switch (field) {
|
||||
case 'delete':
|
||||
var callback = function (response) {
|
||||
hide_orientation_alle()
|
||||
load_orientierung_typen()
|
||||
load_orientierung_typen_colums()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'delete_controller',
|
||||
'delete_merkmal',
|
||||
'&id=' + item.id
|
||||
)
|
||||
break
|
||||
case 'show':
|
||||
if (item.data.colid != undefined) {
|
||||
grid_orientierung_typen.toggleColumnHiddenState(item.data.colid)
|
||||
}
|
||||
store_colums_einzel
|
||||
.filter({
|
||||
id: item.id
|
||||
})
|
||||
.forEach(function (object) {
|
||||
object.show = object.show == 1 ? 0 : 1
|
||||
store_colums_einzel.put(object)
|
||||
})
|
||||
break
|
||||
}
|
||||
})
|
||||
|
||||
grid_colums.on('dgrid-datachange', function (evt) {
|
||||
var item = evt.cell.row.data
|
||||
var callback = function (response) {
|
||||
load_orientierung_typen_colums()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'update_controller',
|
||||
'update_orientierung_typen_colums',
|
||||
'&id=' + item.id + '&value=' + evt.value
|
||||
)
|
||||
})
|
||||
|
||||
grid_colums.on('.dgrid-header .dgrid-cell:click', function (event) {
|
||||
var cell = grid_colums.cell(event)
|
||||
if (cell.column.field == 'delete') {
|
||||
var callback = function (response) {
|
||||
load_orientierung_typen_colums()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'insert_controller',
|
||||
'neues_merkmal',
|
||||
'&projektid=' + LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,118 @@
|
||||
define([
|
||||
"dojo/_base/declare",
|
||||
"dijit/layout/ContentPane",
|
||||
"dijit/layout/BorderContainer",
|
||||
"dstore/Memory",
|
||||
"gutachten/lib/functions",
|
||||
"gutachten/lib/xhr"
|
||||
], function (
|
||||
declare,
|
||||
ContentPane,
|
||||
BorderContainer,
|
||||
Memory,
|
||||
gutachten_functions,
|
||||
gutachten_xhr
|
||||
) {
|
||||
return {
|
||||
create: function (tab_projekte_aktive_center) {
|
||||
/******************************************************
|
||||
FUNCTIONS
|
||||
******************************************************/
|
||||
|
||||
var load_platzhalter_einzeln = (window.load_platzhalter_einzeln = function () {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) {
|
||||
alert("Kein Projekt ausgewählt");
|
||||
return;
|
||||
}
|
||||
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response);
|
||||
|
||||
var store_platzhalter = (window.store_platzhalter = new (declare(
|
||||
[Memory]
|
||||
))({
|
||||
data: response,
|
||||
idProperty: "id"
|
||||
}));
|
||||
grid_platzhalter.set("collection", store_platzhalter);
|
||||
grid_platzhalter.startup();
|
||||
};
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
"select_controller",
|
||||
"platzhalter_einzeln",
|
||||
"&id=" + LOCALSCOPE.projekt_aktive
|
||||
);
|
||||
});
|
||||
|
||||
/******************************************************
|
||||
platzhalter
|
||||
******************************************************/
|
||||
var p_platzhalter = (window.p_platzhalter = new BorderContainer({
|
||||
title: '<i class="fa fa-hashtag"></i> Platzhalter',
|
||||
design: "headline",
|
||||
id: "p_platzhalter",
|
||||
splitter: false,
|
||||
onShow: function () {
|
||||
load_platzhalter_einzeln();
|
||||
}
|
||||
}));
|
||||
tab_projekte_aktive_center.addChild(p_platzhalter);
|
||||
|
||||
var cp_platzhalter = (window.cp_platzhalter = new ContentPane({
|
||||
id: "cp_platzhalter",
|
||||
region: "center",
|
||||
splitter: false
|
||||
}));
|
||||
p_platzhalter.addChild(cp_platzhalter);
|
||||
|
||||
var grid_platzhalter = (window.grid_platzhalter = new CellSelectionPaginationGrid(
|
||||
{
|
||||
collection: new Memory(),
|
||||
selectionMode: "single",
|
||||
keepScrollPosition: 1,
|
||||
idProperty: "id",
|
||||
pagingLinks: 1,
|
||||
pagingTextBox: 0,
|
||||
firstLastArrows: 1,
|
||||
previousNextArrows: 1,
|
||||
rowsPerPage: 40,
|
||||
columns: [
|
||||
{
|
||||
label: "Platzhalter",
|
||||
field: "code",
|
||||
className: "width-300"
|
||||
},
|
||||
{
|
||||
label: "",
|
||||
field: "blind",
|
||||
className: "width-icon",
|
||||
renderCell: function (object, data) { return gutachten_functions.renderIcon('fas fa-exchange-alt') },
|
||||
},
|
||||
{
|
||||
label: 'Austausch Text',
|
||||
field: "txt",
|
||||
sortable: false,
|
||||
editor: "textarea",
|
||||
editorArgs: {
|
||||
rows: 4,
|
||||
cols: 50
|
||||
},
|
||||
editOn: "click"
|
||||
}
|
||||
]
|
||||
},
|
||||
"cp_platzhalter"
|
||||
));
|
||||
grid_platzhalter.on("dgrid-datachange", function (evt) {
|
||||
var item = evt.cell.row.data;
|
||||
gutachten_xhr.call_function(
|
||||
load_platzhalter_einzeln,
|
||||
"update_controller",
|
||||
"update_project_platzhalter",
|
||||
"&value=" + evt.value + "&rowid=" + item.id
|
||||
);
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
@@ -0,0 +1,463 @@
|
||||
define([
|
||||
'dojo/_base/declare',
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'dijit/form/Select',
|
||||
'dijit/Editor',
|
||||
'dijit/MenuBar',
|
||||
'dijit/MenuBarItem',
|
||||
'dijit/ConfirmDialog',
|
||||
'dstore/Memory',
|
||||
'dstore/legacy/DstoreAdapter',
|
||||
'gutachten/lib/functions',
|
||||
'gutachten/lib/xhr'
|
||||
], function (
|
||||
declare,
|
||||
ContentPane,
|
||||
BorderContainer,
|
||||
Select,
|
||||
TextEditor,
|
||||
MenuBar,
|
||||
MenuBarItem,
|
||||
ConfirmDialog,
|
||||
Memory,
|
||||
DstoreAdapter,
|
||||
gutachten_functions,
|
||||
gutachten_xhr
|
||||
) {
|
||||
return {
|
||||
create: function (tab_projekte_aktive_center) {
|
||||
/******************************************************
|
||||
FUNCTIONS
|
||||
******************************************************/
|
||||
function move_standard_einzeln(move, id, pid) {
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
|
||||
load_standard_einzeln()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'move_position',
|
||||
'&id=' + id + '&pid=' + pid + '&move=' + move
|
||||
)
|
||||
}
|
||||
|
||||
var load_standard_einzeln = (window.load_standard_einzeln = function () {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) {
|
||||
alert('Kein Projekt ausgewählt')
|
||||
return
|
||||
}
|
||||
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
|
||||
var store_standard_active = (window.store_standard_active =
|
||||
new (declare([Memory]))({
|
||||
data: response,
|
||||
idProperty: 'id'
|
||||
}))
|
||||
grid_standards.set('collection', store_standard_active)
|
||||
grid_standards.startup()
|
||||
grid_standards.resize()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'standards_einzeln',
|
||||
'&id=' + LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
})
|
||||
|
||||
function edit_add_StandardDialog() {
|
||||
var callback = function (response) {
|
||||
var myEditor = new TextEditor({
|
||||
height: '600px',
|
||||
id: 'editor_standard_fliestext',
|
||||
plugins: [
|
||||
'undo',
|
||||
'redo',
|
||||
'copy',
|
||||
'paste',
|
||||
'selectAll',
|
||||
'bold',
|
||||
'italic',
|
||||
'underline',
|
||||
'removeFormat'
|
||||
]
|
||||
})
|
||||
|
||||
var bc = new BorderContainer({
|
||||
design: 'headline',
|
||||
id: 'bc',
|
||||
splitter: false,
|
||||
style: 'height:580px'
|
||||
})
|
||||
var menu_textart = new MenuBar({
|
||||
region: 'top',
|
||||
style: 'margin-bottom:15px;'
|
||||
})
|
||||
menu_textart.addChild(
|
||||
new MenuBarItem({
|
||||
label: 'Textart:',
|
||||
style: 'text-align: left; padding-left:0; width:75px;'
|
||||
})
|
||||
)
|
||||
|
||||
var textartStore = new DstoreAdapter(
|
||||
new Memory({
|
||||
idProperty: 'id',
|
||||
data: response
|
||||
})
|
||||
)
|
||||
var select = new Select({
|
||||
id: 'textartSelect',
|
||||
name: 'textartSelect',
|
||||
_setSelected: function () { },
|
||||
store: textartStore,
|
||||
style: 'text-align:left;',
|
||||
labelAttr: 'name',
|
||||
maxHeight: -1, // tells _HasDropDown to fit menu within viewport
|
||||
onChange: function (value) {
|
||||
// console.log( "value", value );
|
||||
// console.log( "this.get('displayedValue')", this.get( 'displayedValue' ) );
|
||||
LOCALSCOPE.textart_id = value
|
||||
}
|
||||
})
|
||||
menu_textart.addChild(select)
|
||||
|
||||
bc.addChild(menu_textart)
|
||||
|
||||
bc.addChild(
|
||||
new ContentPane({
|
||||
region: 'top',
|
||||
id: 'cp_kennung',
|
||||
style: 'margin-bottom:5px;',
|
||||
content:
|
||||
'Kennung: <input style="width:450px; height: 29px; line-height: 34px; margin-left:12px;" type="text" name="kennung" value="" data-dojo-type="dijit/form/TextBox" data-dojo-props="trim:true, propercase:true" id="kennung" />'
|
||||
})
|
||||
)
|
||||
|
||||
bc.addChild(
|
||||
new ContentPane({
|
||||
region: 'top',
|
||||
id: 'cp_ueberschrift',
|
||||
content:
|
||||
'Überschrift:<input style="width:450px; height: 29px; line-height: 34px; margin-left:2px;" type="text" name="ueberschrift" value="" data-dojo-type="dijit/form/TextBox" data-dojo-props="trim:true, propercase:true" id="ueberschrift" />'
|
||||
})
|
||||
)
|
||||
bc.addChild(
|
||||
new ContentPane({
|
||||
region: 'center',
|
||||
style: 'margin-top:20px; line-height: 1.6em !important;',
|
||||
content: myEditor
|
||||
})
|
||||
)
|
||||
|
||||
var menu_save = new MenuBar({
|
||||
region: 'bottom',
|
||||
style: 'margin:5px; text-align: right;'
|
||||
})
|
||||
bc.addChild(menu_save)
|
||||
|
||||
// menu_save.addChild(
|
||||
// new MenuBarItem({
|
||||
// id: 'sichernbutton',
|
||||
// label: 'Sichern',
|
||||
// style:
|
||||
// 'user-select: none; width: 148px; background: #0089df; text-align: center; color: #fff; font-weight: bold; padding: 0px;',
|
||||
// onClick: function () {
|
||||
// if (!LOCALSCOPE.textart_id) {
|
||||
// alert('Textart Wählen')
|
||||
// return false
|
||||
// }
|
||||
|
||||
// dijit
|
||||
// .byId('sichernbutton')
|
||||
// .set('label', '<i class="fa fa-cog fa-spin"></i> Sichern')
|
||||
|
||||
// var item = []
|
||||
// item.push({
|
||||
// txt: dijit.byId('editor_standard_fliestext').get('value')
|
||||
// })
|
||||
// item.push({
|
||||
// titel: dijit.byId('ueberschrift').get('value')
|
||||
// })
|
||||
// item.push({
|
||||
// kennung: dijit.byId('kennung').get('value')
|
||||
// })
|
||||
// item.push({
|
||||
// textart_id: LOCALSCOPE.textart_id
|
||||
// })
|
||||
|
||||
// if (LOCALSCOPE.mode == 'edit') {
|
||||
// if (!gutachten_functions.isNumeric(LOCALSCOPE.id))
|
||||
// return false
|
||||
// gutachten_xhr.post_function(
|
||||
// load_standard_einzeln,
|
||||
// 'update_controller',
|
||||
// 'update_projektestandards',
|
||||
// item,
|
||||
// '&rowid=' + LOCALSCOPE.id
|
||||
// )
|
||||
// } else if (LOCALSCOPE.mode == 'add') {
|
||||
// gutachten_xhr.post_function(
|
||||
// load_standard_einzeln,
|
||||
// 'insert_controller',
|
||||
// 'add_row',
|
||||
// item,
|
||||
// 'berechnen=1&table=tx_gutachten_projektestandards'
|
||||
// )
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
|
||||
return new ConfirmDialog({
|
||||
id: 'editor_standard',
|
||||
region: 'center',
|
||||
title: 'Bearbeiten',
|
||||
className: 'width-600 border-black',
|
||||
content: bc,
|
||||
onShow: function () {},
|
||||
onCancel: function () { },
|
||||
onExecute: function () {
|
||||
if (!gutachten_functions.isNumeric(LOCALSCOPE.textart_id))
|
||||
return false
|
||||
var item = []
|
||||
item.push({
|
||||
txt: dijit.byId('editor_standard_fliestext').get('value')
|
||||
})
|
||||
item.push({
|
||||
titel: dijit.byId('ueberschrift').get('value')
|
||||
})
|
||||
item.push({
|
||||
kennung: dijit.byId('kennung').get('value')
|
||||
})
|
||||
item.push({
|
||||
textart_id: LOCALSCOPE.textart_id
|
||||
})
|
||||
if (LOCALSCOPE.mode == 'edit') {
|
||||
if (!gutachten_functions.isNumeric(LOCALSCOPE.id)) {
|
||||
return false
|
||||
}
|
||||
gutachten_xhr.post_function(
|
||||
load_standard_einzeln,
|
||||
'update_controller',
|
||||
'update_projektestandards',
|
||||
item,
|
||||
'&rowid=' + LOCALSCOPE.id
|
||||
)
|
||||
} else if (LOCALSCOPE.mode == 'add') {
|
||||
gutachten_xhr.post_function(
|
||||
load_standard_einzeln,
|
||||
'insert_controller',
|
||||
'add_row',
|
||||
item,
|
||||
'berechnen=1&table=tx_gutachten_projektestandards'
|
||||
)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'textart_alle'
|
||||
)
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
Standards
|
||||
******************************************************/
|
||||
edit_add_StandardDialog()
|
||||
|
||||
/******************************************************
|
||||
standard element for PDF layout
|
||||
******************************************************/
|
||||
var p_standards = (window.p_standards = new BorderContainer({
|
||||
title: '<i class="far fa-file-pdf"></i> Standards',
|
||||
design: 'headline',
|
||||
id: 'p_standards',
|
||||
splitter: false,
|
||||
onShow: function () {
|
||||
load_standard_einzeln()
|
||||
}
|
||||
}))
|
||||
tab_projekte_aktive_center.addChild(p_standards)
|
||||
|
||||
//menu end
|
||||
|
||||
var cp_standards = (window.cp_standards = new ContentPane({
|
||||
id: 'cp_standards',
|
||||
region: 'center',
|
||||
splitter: false
|
||||
}))
|
||||
p_standards.addChild(cp_standards)
|
||||
|
||||
var grid_standards = (window.grid_standards =
|
||||
new CellSelectionPaginationGrid(
|
||||
{
|
||||
collection: new Memory(),
|
||||
selectionMode: 'single',
|
||||
keepScrollPosition: 1,
|
||||
idProperty: 'id',
|
||||
pagingLinks: 1,
|
||||
pagingTextBox: 0,
|
||||
firstLastArrows: 1,
|
||||
previousNextArrows: 1,
|
||||
noDataMessage: 'Bitte ein Projekt ausgewählen',
|
||||
rowsPerPage: 40,
|
||||
columns: [
|
||||
{
|
||||
label: ' ',
|
||||
field: 'pos',
|
||||
className: 'width-50 center'
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'hat_platzhalter',
|
||||
className: 'width-50 center',
|
||||
renderCell: gutachten_functions.renderPlatzhalter
|
||||
},
|
||||
{
|
||||
label: 'Kennung',
|
||||
field: 'kennung'
|
||||
},
|
||||
{
|
||||
label: 'Überschrift',
|
||||
field: 'titel'
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'first',
|
||||
className: 'width-icon',
|
||||
sortable: false,
|
||||
renderCell: function (object, data) { return gutachten_functions.renderIcon('fa fa-angle-double-up') },
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'up',
|
||||
className: 'width-icon',
|
||||
sortable: false,
|
||||
renderCell: function (object, data) { return gutachten_functions.renderIcon('fa fa-angle-up') },
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'down',
|
||||
className: 'width-icon',
|
||||
sortable: false,
|
||||
renderCell: function (object, data) { return gutachten_functions.renderIcon('fa fa-angle-down') },
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'last',
|
||||
className: 'width-icon',
|
||||
sortable: false,
|
||||
renderCell: function (object, data) { return gutachten_functions.renderIcon('fa fa-angle-double-down') },
|
||||
},
|
||||
|
||||
{
|
||||
label: 'Neue Seite',
|
||||
field: 'neueseite',
|
||||
sortable: false,
|
||||
className: 'width-50 center',
|
||||
renderCell: function (object, data) { return gutachten_functions.renderToggle(data, '', 1) },
|
||||
renderHeaderCell: function (object, data) { return gutachten_functions.renderText('A', 'Neue Seite') }
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'hidden',
|
||||
sortable: false,
|
||||
className: 'width-50 center',
|
||||
renderCell: function (object, data) { return gutachten_functions.renderToggle(data, '', 1) },
|
||||
renderHeaderCell: function (object, data) { return gutachten_functions.renderText('H', 'Element verbergen') }
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'edit',
|
||||
className: 'width-icon',
|
||||
sortable: false,
|
||||
renderCell: function () {
|
||||
return gutachten_functions.renderIcon('fas fa-pencil-alt')
|
||||
},
|
||||
renderHeaderCell: function () {
|
||||
return gutachten_functions.renderIcon('fas fa-plus')
|
||||
},
|
||||
}
|
||||
]
|
||||
},
|
||||
'cp_standards'
|
||||
))
|
||||
|
||||
grid_standards.on('.dgrid-header .dgrid-cell:click', function (evt) {
|
||||
var column = grid_standards.column(evt)
|
||||
var field = column.field
|
||||
if (field == 'edit') {
|
||||
if (!LOCALSCOPE.projekt_aktive) {
|
||||
return false
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
load_standard_einzeln,
|
||||
'select_controller',
|
||||
'standards_add',
|
||||
'&id=' + LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
grid_standards.on('.dgrid-content .dgrid-cell:click', function (evt) {
|
||||
var cell = grid_standards.cell(evt)
|
||||
var item = grid_standards.row(evt)
|
||||
var column = grid_standards.column(evt)
|
||||
var field = column.field
|
||||
|
||||
switch (field) {
|
||||
case 'first':
|
||||
case 'last':
|
||||
case 'up':
|
||||
case 'down':
|
||||
move_standard_einzeln(field, item.id, item.data.pid)
|
||||
break
|
||||
case 'hidden':
|
||||
gutachten_xhr.toggle_field_uid(
|
||||
load_standard_einzeln,
|
||||
'tx_gutachten_projektestandards',
|
||||
'hidden',
|
||||
item.id
|
||||
)
|
||||
break
|
||||
case 'neueseite':
|
||||
gutachten_xhr.toggle_field_uid(
|
||||
load_standard_einzeln,
|
||||
'tx_gutachten_projektestandards',
|
||||
'neueseite',
|
||||
item.id
|
||||
)
|
||||
break
|
||||
case 'edit':
|
||||
LOCALSCOPE.mode = 'edit'
|
||||
LOCALSCOPE.id = item.data.id
|
||||
LOCALSCOPE.textart_id = item.data.textart_id
|
||||
|
||||
// dijit.byId("textart_" + item.textart_id)._set("selected", true);
|
||||
// dijit.byId("menu_textart")._setSelected("textart_" + item.textart_id );
|
||||
// dijit.byId("menu_textart").set("value","textart_" + item.textart_id );
|
||||
// console.log("editor_standard_fliestext",item.data.txt);
|
||||
|
||||
dijit.byId('textartSelect').set('value', item.data.textart_id)
|
||||
|
||||
dijit.byId('ueberschrift').set('value', item.data.titel)
|
||||
dijit.byId('kennung').set('value', item.data.kennung)
|
||||
dijit.byId('editor_standard_fliestext').set('value', item.data.txt)
|
||||
|
||||
dijit.byId('editor_standard').show()
|
||||
dijit.byId('editor_standard_fliestext').focus()
|
||||
|
||||
break
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,100 @@
|
||||
define([
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'gutachten/lib/uploadform',
|
||||
'dijit/form/Button'
|
||||
], function (ContentPane, BorderContainer, gutachten_uploadform, Button) {
|
||||
return {
|
||||
create: function (tab_projekte_aktive_center) {
|
||||
LOCALSCOPE.document = ''
|
||||
|
||||
var uploadFormHandle = (window.uploadFormHandle =
|
||||
gutachten_uploadform.init())
|
||||
|
||||
/******************************************************
|
||||
upload
|
||||
******************************************************/
|
||||
var p_upload = (window.p_upload = new BorderContainer({
|
||||
title: '<i class="fa fa-upload"></i> Hochladen',
|
||||
className: 'border-t-40',
|
||||
design: 'headline',
|
||||
id: 'p_upload',
|
||||
splitter: false,
|
||||
onShow: function () {
|
||||
dijit.byId('cp_upload_response').set('content', '')
|
||||
}
|
||||
}))
|
||||
tab_projekte_aktive_center.addChild(p_upload)
|
||||
|
||||
var cp_upload_response = new ContentPane({
|
||||
region: 'top',
|
||||
class: 'no-border',
|
||||
style: 'height: 100px; padding-top:50px;',
|
||||
id: 'cp_upload_response'
|
||||
})
|
||||
p_upload.addChild(cp_upload_response)
|
||||
|
||||
p_upload.addChild(
|
||||
new ContentPane({
|
||||
region: 'center',
|
||||
splitter: false,
|
||||
style: 'padding:0 50px;',
|
||||
content:
|
||||
'<button id="allg" type="button"></button> <br><br><button id="nutz" type="button"></button>'
|
||||
})
|
||||
)
|
||||
|
||||
new Button(
|
||||
{
|
||||
label: '<i class="fa fa-upload mr-5"></i> Allgemeine Flächen',
|
||||
onClick: function () {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) {
|
||||
alert('Kein Projekt ausgewählt')
|
||||
return
|
||||
} else {
|
||||
dijit
|
||||
.byId('uploader')
|
||||
.set(
|
||||
'url',
|
||||
'index.php?eID=tx_gutachten&controller=uploads_controller&action=allgemein&pid=' +
|
||||
LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
uploadFormHandle.set(
|
||||
'title',
|
||||
'<i class="fa fa-upload"></i> Allgemeine Flächen Hochladen'
|
||||
)
|
||||
uploadFormHandle.show()
|
||||
}
|
||||
}
|
||||
},
|
||||
'allg'
|
||||
).startup()
|
||||
|
||||
new Button(
|
||||
{
|
||||
label: '<i class="fa fa-upload mr-5"></i> Nutzflächen',
|
||||
onClick: function () {
|
||||
if (LOCALSCOPE.projekt_aktive == 0) {
|
||||
alert('Kein Projekt ausgewählt')
|
||||
return
|
||||
} else {
|
||||
dijit
|
||||
.byId('uploader')
|
||||
.set(
|
||||
'url',
|
||||
'index.php?eID=tx_gutachten&controller=uploads_controller&action=nutzflaechen&pid=' +
|
||||
LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
uploadFormHandle.set(
|
||||
'title',
|
||||
'<i class="fa fa-upload"></i> Nutzflächen Hochladen'
|
||||
)
|
||||
uploadFormHandle.show()
|
||||
}
|
||||
}
|
||||
},
|
||||
'nutz'
|
||||
).startup()
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,252 @@
|
||||
define([
|
||||
'dojo/_base/declare',
|
||||
'dojo/_base/array',
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'dijit/layout/TabContainer',
|
||||
'dstore/Memory',
|
||||
'gutachten/lib/functions',
|
||||
'gutachten/lib/xhr',
|
||||
'gutachten/projekte/p_basis',
|
||||
'gutachten/projekte/p_notizen',
|
||||
'gutachten/projekte/p_standards',
|
||||
'gutachten/projekte/p_platzhalter',
|
||||
'gutachten/projekte/p_orientierung_typen',
|
||||
'gutachten/projekte/p_allgemeine_flaechen',
|
||||
'gutachten/projekte/p_objekte_im_detail',
|
||||
'gutachten/projekte/p_methoden',
|
||||
'gutachten/projekte/p_upload',
|
||||
'gutachten/projekte/p_download'
|
||||
], function (
|
||||
declare,
|
||||
arrayUtil,
|
||||
ContentPane,
|
||||
BorderContainer,
|
||||
TabContainer,
|
||||
Memory,
|
||||
gutachten_functions,
|
||||
gutachten_xhr,
|
||||
p_basis,
|
||||
p_notizen,
|
||||
p_standards,
|
||||
p_platzhalter,
|
||||
p_orientierung_typen,
|
||||
p_allgemeine_flaechen,
|
||||
p_objekte_im_detail,
|
||||
p_methoden,
|
||||
p_upload,
|
||||
p_download
|
||||
) {
|
||||
return {
|
||||
create: function (stack_container_main) {
|
||||
LOCALSCOPE.projekt_aktive = 0
|
||||
window.update_projekt_item = function (
|
||||
field,
|
||||
value
|
||||
) {
|
||||
if (LOCALSCOPE.projekt_aktive > 0) {
|
||||
gutachten_xhr.call_function(
|
||||
'',
|
||||
'update_controller',
|
||||
'update_project',
|
||||
'&table=tx_gutachten_projekte&field=' +
|
||||
field +
|
||||
'&value=' +
|
||||
value +
|
||||
'&id=' +
|
||||
LOCALSCOPE.projekt_aktive
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
var load_projekte_active_data = (window.load_projekte_active_data =
|
||||
function () {
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
|
||||
var store = new (declare([Memory]))({
|
||||
data: response
|
||||
})
|
||||
var _filter = store.filter({
|
||||
active: 1
|
||||
})
|
||||
|
||||
grid_projekte_active.set('collection', _filter)
|
||||
grid_projekte_active.startup()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'projekte_alle',
|
||||
'&active_only=1'
|
||||
)
|
||||
})
|
||||
|
||||
/******************************************************
|
||||
layout base
|
||||
******************************************************/
|
||||
|
||||
var bc_projekte_active = (window.bc_projekte_alle = new BorderContainer({
|
||||
id: 'bc_projekte_active',
|
||||
region: 'left',
|
||||
splitter: false,
|
||||
onShow: function () {
|
||||
load_projekte_active_data()
|
||||
}
|
||||
}))
|
||||
stack_container_main.addChild(bc_projekte_active)
|
||||
|
||||
var cp_projekte_aktive_title = (window.cp_projekte_aktive_title =
|
||||
new ContentPane({
|
||||
id: 'cp_projekte_aktive_title',
|
||||
region: 'top',
|
||||
splitter: false
|
||||
}))
|
||||
bc_projekte_active.addChild(cp_projekte_aktive_title)
|
||||
|
||||
var bc_projekte_aktive_top = (window.bc_projekte_aktive_top =
|
||||
new BorderContainer({
|
||||
id: 'bc_projekte_aktive_top',
|
||||
region: 'left',
|
||||
splitter: false
|
||||
}))
|
||||
bc_projekte_active.addChild(bc_projekte_aktive_top)
|
||||
|
||||
var cp_projekte_aktive_menu = (window.cp_projekte_aktive_menu =
|
||||
new ContentPane({
|
||||
id: 'cp_projekte_aktive_menu',
|
||||
region: 'left',
|
||||
splitter: false
|
||||
}))
|
||||
bc_projekte_aktive_top.addChild(cp_projekte_aktive_menu)
|
||||
|
||||
var cp_projekte_aktive_top = (window.cp_projekte_aktive_top =
|
||||
new ContentPane({
|
||||
id: 'cp_projekte_aktive_top',
|
||||
region: 'left',
|
||||
splitter: false
|
||||
}))
|
||||
bc_projekte_aktive_top.addChild(cp_projekte_aktive_top)
|
||||
|
||||
var tab_projekte_aktive_center = (window.tab_projekte_aktive_center =
|
||||
new TabContainer({
|
||||
id: 'tab_projekte_aktive_center',
|
||||
tabPosition: 'left-h',
|
||||
region: 'center',
|
||||
splitter: false
|
||||
}))
|
||||
bc_projekte_active.addChild(tab_projekte_aktive_center)
|
||||
p_basis.create(tab_projekte_aktive_center)
|
||||
p_notizen.create(tab_projekte_aktive_center)
|
||||
|
||||
p_standards.create(tab_projekte_aktive_center)
|
||||
p_platzhalter.create(tab_projekte_aktive_center)
|
||||
p_orientierung_typen.create(tab_projekte_aktive_center)
|
||||
|
||||
p_methoden.create(tab_projekte_aktive_center)
|
||||
p_allgemeine_flaechen.create(tab_projekte_aktive_center)
|
||||
p_objekte_im_detail.create(tab_projekte_aktive_center)
|
||||
|
||||
p_upload.create(tab_projekte_aktive_center)
|
||||
p_download.create(tab_projekte_aktive_center)
|
||||
|
||||
var grid_projekte_active = (window.grid_projekte_active =
|
||||
new SelectionPaginationGrid(
|
||||
{
|
||||
idProperty: 'id',
|
||||
showHeader: true,
|
||||
rowsPerPage: 40,
|
||||
columns: [
|
||||
{
|
||||
label: '',
|
||||
field: 'id',
|
||||
className: "width-icon",
|
||||
renderCell: function () {
|
||||
return gutachten_functions.renderIcon('fa fa-building')
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Projekte',
|
||||
field: 'intname'
|
||||
}
|
||||
]
|
||||
},
|
||||
'cp_projekte_aktive_menu'
|
||||
))
|
||||
grid_projekte_active.set('sort', {
|
||||
attribute: 'intname',
|
||||
descending: false
|
||||
})
|
||||
grid_projekte_active.on('dgrid-select', function (e) {
|
||||
var row = e.rows[0],
|
||||
item = row.data
|
||||
|
||||
LOCALSCOPE.projekt_aktive = item.id
|
||||
dijit
|
||||
.byId('cp_projekte_aktive_title')
|
||||
.set('content', item.name + ' -> ' + item.intname)
|
||||
var active = dijit.byId('tab_projekte_aktive_center')
|
||||
.selectedChildWidget.id
|
||||
|
||||
switch (active) {
|
||||
case 'p_basis':
|
||||
load_p_basis_data()
|
||||
break
|
||||
case 'p_platzhalter':
|
||||
load_platzhalter_einzeln()
|
||||
break
|
||||
case 'p_standards':
|
||||
load_standard_einzeln()
|
||||
break
|
||||
case 'p_orientierung_typen':
|
||||
load_orientierung_typen_colums()
|
||||
load_orientierung_typen()
|
||||
break
|
||||
case 'p_methoden':
|
||||
load_methoden_projekt()
|
||||
break
|
||||
case 'p_notizen':
|
||||
load_p_notizen_data()
|
||||
break
|
||||
case 'p_allgemeine':
|
||||
load_p_allgemeine_alle()
|
||||
break
|
||||
case 'p_objekte':
|
||||
load_p_objekte_alle()
|
||||
break
|
||||
}
|
||||
|
||||
load_p_objekte_alle()
|
||||
load_p_allgemeine_alle()
|
||||
arrayUtil.forEach(
|
||||
[
|
||||
'a',
|
||||
'b',
|
||||
'c',
|
||||
'd',
|
||||
'e',
|
||||
'f',
|
||||
'g',
|
||||
'h',
|
||||
'i',
|
||||
'j',
|
||||
'k',
|
||||
'l',
|
||||
'm',
|
||||
'n',
|
||||
'o',
|
||||
'p',
|
||||
'q',
|
||||
'r',
|
||||
's',
|
||||
't',
|
||||
'u'
|
||||
],
|
||||
function (item) {
|
||||
grid_orientierung_typen.toggleColumnHiddenState(item, 1)
|
||||
}
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,535 @@
|
||||
define([
|
||||
'dojo/dom',
|
||||
'dojo/query',
|
||||
'dojo/_base/declare',
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'dstore/Memory',
|
||||
'dstore/Trackable',
|
||||
'dijit/MenuBar',
|
||||
'dijit/MenuBarItem',
|
||||
'dijit/ToolbarSeparator',
|
||||
'dijit/ConfirmDialog',
|
||||
'dijit/form/TextBox',
|
||||
'gutachten/lib/functions',
|
||||
'gutachten/lib/xhr'
|
||||
], function (
|
||||
dom,
|
||||
query,
|
||||
declare,
|
||||
ContentPane,
|
||||
BorderContainer,
|
||||
Memory,
|
||||
Trackable,
|
||||
MenuBar,
|
||||
MenuBarItem,
|
||||
ToolbarSeparator,
|
||||
ConfirmDialog,
|
||||
TextBox,
|
||||
gutachten_functions,
|
||||
gutachten_xhr
|
||||
) {
|
||||
return {
|
||||
create: function (stack_container_main) {
|
||||
function store_projekte_filter() {
|
||||
var filter_f
|
||||
switch (LOCALSCOPE.filter_field) {
|
||||
case 'test':
|
||||
filter_f = store_projekte
|
||||
.filter({
|
||||
status: '1'
|
||||
})
|
||||
.sort([
|
||||
{
|
||||
property: 'erstelldatum',
|
||||
descending: true
|
||||
}
|
||||
])
|
||||
break
|
||||
case 'konzept':
|
||||
filter_f = store_projekte
|
||||
.filter({
|
||||
status: '2'
|
||||
})
|
||||
.sort('id')
|
||||
break
|
||||
case 'endfassung':
|
||||
filter_f = store_projekte
|
||||
.filter({
|
||||
status: '3'
|
||||
})
|
||||
.sort('id')
|
||||
break
|
||||
case 'active':
|
||||
filter_f = store_projekte
|
||||
.filter({
|
||||
active: 1
|
||||
})
|
||||
.sort('id')
|
||||
break
|
||||
case 'search':
|
||||
var filterString = dijit.byId('SearchBox1').get('value')
|
||||
filter_f = store_projekte.filter(function (object) {
|
||||
var name = object.name.toLowerCase()
|
||||
var intname = object.intname.toLowerCase()
|
||||
var gutachter =
|
||||
object.gutachter != null ? object.gutachter.toLowerCase() : ''
|
||||
var auftraggeber =
|
||||
object.auftraggeber != null
|
||||
? object.auftraggeber.toLowerCase()
|
||||
: ''
|
||||
|
||||
if (
|
||||
~name.indexOf(filterString.toLowerCase()) ||
|
||||
~intname.indexOf(filterString.toLowerCase()) ||
|
||||
~gutachter.indexOf(filterString.toLowerCase()) ||
|
||||
~auftraggeber.indexOf(filterString.toLowerCase()) ||
|
||||
object.id == filterString.toLowerCase()
|
||||
)
|
||||
return true
|
||||
else return false
|
||||
})
|
||||
break
|
||||
default:
|
||||
filter_f = store_projekte.sort([
|
||||
{
|
||||
property: 'erstelldatum',
|
||||
descending: true
|
||||
}
|
||||
])
|
||||
break
|
||||
}
|
||||
grid_projekte.set('collection', filter_f)
|
||||
grid_projekte.startup()
|
||||
}
|
||||
|
||||
/*******************************************************
|
||||
* DIalog
|
||||
*******************************************************/
|
||||
LOCALSCOPE.filter_field = ''
|
||||
|
||||
var add_projekt_table = '<table class="pure-table pure-table-horizontal">'
|
||||
add_projekt_table +=
|
||||
'<tr><td><label for="internername">Interner Name:</label></td>'
|
||||
add_projekt_table +=
|
||||
'<td><input data-dojo-type="dijit/form/TextBox" style="width:400px;" name="internername" id="internername"></td></tr>'
|
||||
add_projekt_table +=
|
||||
'<tr><td><label for="projektname">Projekt Name:</label></td>'
|
||||
add_projekt_table +=
|
||||
'<td><input data-dojo-type="dijit/form/TextBox" style="width:400px;" name="projektname" id="projektname"></td></tr>'
|
||||
add_projekt_table += '</table><br>'
|
||||
|
||||
var newProjektDialog = (window.newProjektDialog = new ConfirmDialog({
|
||||
title: 'Neues Projekt anlegen',
|
||||
content: add_projekt_table,
|
||||
region: 'top',
|
||||
style: 'width: 600px',
|
||||
onShow: function () {
|
||||
dom.byId('internername').value = ''
|
||||
dom.byId('projektname').value = ''
|
||||
},
|
||||
onExecute: function () {
|
||||
gutachten_xhr.call_function(
|
||||
load_projekte_data,
|
||||
'insert_controller',
|
||||
'neues_projekt',
|
||||
'&internername=' +
|
||||
dom.byId('internername').value +
|
||||
'&projektname=' +
|
||||
dom.byId('projektname').value
|
||||
)
|
||||
}
|
||||
}))
|
||||
|
||||
/*******************************************************
|
||||
* Grid
|
||||
*******************************************************/
|
||||
var grid_projekte = (window.grid_projekte =
|
||||
new CellSelectionPaginationGrid({
|
||||
minRowsPerPage: 0,
|
||||
cellNavigation: 1,
|
||||
selectionMode: 'single',
|
||||
keepScrollPosition: 1,
|
||||
idProperty: 'id',
|
||||
pagingLinks: 20,
|
||||
pagingTextBox: 0,
|
||||
firstLastArrows: 1,
|
||||
previousNextArrows: 1,
|
||||
maxRowsPerPage: 50,
|
||||
rowsPerPage: 50,
|
||||
pageSkip: 50,
|
||||
noDataMessage: 'Keine Daten',
|
||||
columns: [
|
||||
{
|
||||
label: '',
|
||||
field: 'blind',
|
||||
className: "width-icon",
|
||||
renderCell: function () {
|
||||
return gutachten_functions.renderIcon('far fa-building')
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Geändert',
|
||||
field: 'timestamp',
|
||||
sortable: true,
|
||||
className: 'left-140',
|
||||
},
|
||||
{
|
||||
label: 'Interner Name',
|
||||
field: 'intname',
|
||||
sortable: true,
|
||||
editor: 'text',
|
||||
editOn: 'click',
|
||||
editorArgs: {
|
||||
style: 'width: 230px; font-size:1rem;'
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Projekt Name',
|
||||
field: 'name',
|
||||
sortable: true,
|
||||
editor: 'text',
|
||||
editOn: 'click',
|
||||
editorArgs: {
|
||||
style: 'width: 230px; font-size:1rem;'
|
||||
},
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'active',
|
||||
sortable: false,
|
||||
className: 'width-icon',
|
||||
renderCell: function (object, data) { return gutachten_functions.rendeCircle(data, 'active', 1) },
|
||||
renderHeaderCell: function () { return gutachten_functions.renderText('A', 'Aktive Projekte') }
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'status',
|
||||
sortable: false,
|
||||
className: 'width-icon',
|
||||
renderCell: function (object, data) { return gutachten_functions.rendeCircle(data, 'test', 1) },
|
||||
renderHeaderCell: function () { return gutachten_functions.renderText('T', 'Test Projekte') }
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'status',
|
||||
sortable: false,
|
||||
className: 'width-icon',
|
||||
renderCell: function (object, data) { return gutachten_functions.rendeCircle(data, 'konzept', 2) },
|
||||
renderHeaderCell: function () { return gutachten_functions.renderText('K', 'Konzeptineller Entwurf') }
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'status',
|
||||
sortable: false,
|
||||
className: 'width-icon',
|
||||
renderCell: function (object, data) { return gutachten_functions.rendeCircle(data, 'endfassung', 3) },
|
||||
renderHeaderCell: function () { return gutachten_functions.renderText('E', 'Projekt Endfassung') }
|
||||
},
|
||||
{
|
||||
label: 'Auftraggeber',
|
||||
field: 'auftraggeber',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
label: 'Gutachter',
|
||||
field: 'gutachter',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'clone',
|
||||
sortable: false,
|
||||
className: 'width-icon',
|
||||
renderCell: function () {
|
||||
return gutachten_functions.renderIcon('far fa-clone')
|
||||
},
|
||||
renderHeaderCell: function () { return gutachten_functions.renderText('K', 'Projekt Klonen') }
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'delete',
|
||||
sortable: false,
|
||||
className: 'width-icon',
|
||||
renderCell: function () {
|
||||
return gutachten_functions.renderIcon('far fa-trash-alt')
|
||||
},
|
||||
renderHeaderCell: function () { return gutachten_functions.renderText('L', 'Projekt Löschen') }
|
||||
}
|
||||
]
|
||||
}))
|
||||
|
||||
grid_projekte.on('.dgrid-content .dgrid-cell:click', function (evt) {
|
||||
var item = grid_projekte.row(evt)
|
||||
var cell = grid_projekte.cell(evt)
|
||||
var column = grid_projekte.column(evt)
|
||||
var field = column.field
|
||||
var callback
|
||||
item = item.data
|
||||
switch (field) {
|
||||
case 'status':
|
||||
console.log(cell.column);
|
||||
var columnid = cell.column.id
|
||||
let value = 1
|
||||
switch (columnid) {
|
||||
case '5':
|
||||
value = 1
|
||||
break
|
||||
case '6':
|
||||
value = 2
|
||||
break;
|
||||
case '7':
|
||||
value = 3
|
||||
break;
|
||||
}
|
||||
callback = function (response) {
|
||||
store_projekte
|
||||
.filter({
|
||||
id: item.id
|
||||
})
|
||||
.forEach(function (object) {
|
||||
object.status = response
|
||||
store_projekte.put(object)
|
||||
})
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'projekt_status',
|
||||
'&id=' + item.id + '&value=' + value
|
||||
)
|
||||
break
|
||||
case 'delete':
|
||||
if (confirm('Projekt löschen?')) {
|
||||
callback = function (response) {
|
||||
store_projekte
|
||||
.filter({
|
||||
id: item.id
|
||||
})
|
||||
.forEach(function (object) {
|
||||
store_projekte.remove(item.id)
|
||||
})
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'delete_controller',
|
||||
'projekt_delete',
|
||||
'&id=' + item.id
|
||||
)
|
||||
}
|
||||
|
||||
break
|
||||
case 'clone':
|
||||
if (confirm('Projekt duplizieren?')) {
|
||||
gutachten_xhr.call_function(
|
||||
load_projekte_data,
|
||||
'select_controller',
|
||||
'projekt_clone',
|
||||
'&id=' + item.id
|
||||
)
|
||||
}
|
||||
break
|
||||
case 'active':
|
||||
callback = function (response) {
|
||||
store_projekte
|
||||
.filter({
|
||||
id: item.id
|
||||
})
|
||||
.forEach(function (object) {
|
||||
object.active = response
|
||||
store_projekte.put(object)
|
||||
})
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'projekt_active',
|
||||
'&id=' + item.id
|
||||
)
|
||||
break
|
||||
}
|
||||
})
|
||||
grid_projekte.on('dgrid-datachange', function (evt) {
|
||||
if (
|
||||
evt.cell.column.field == 'name' ||
|
||||
evt.cell.column.field == 'intname'
|
||||
) {
|
||||
gutachten_xhr.call_function(
|
||||
'',
|
||||
'update_controller',
|
||||
'update_project',
|
||||
'&table=tx_gutachten_projekte&field=' +
|
||||
evt.cell.column.field +
|
||||
'&value=' +
|
||||
evt.value +
|
||||
'&id=' +
|
||||
evt.cell.row.id
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
var load_projekte_data = (window.load_projekte_data = function () {
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
|
||||
var store = new (declare([Memory, Trackable]))({
|
||||
data: response,
|
||||
idProperty: 'id'
|
||||
})
|
||||
var store_projekte = (window.store_projekte = store.sort('timestamp'))
|
||||
|
||||
store_projekte_filter()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'projekte_alle'
|
||||
)
|
||||
})
|
||||
|
||||
/******************************************************
|
||||
layout base
|
||||
******************************************************/
|
||||
|
||||
var bc_projekte_alle = (window.bc_projekte_alle = new BorderContainer({
|
||||
id: 'bc_projekte_alle',
|
||||
region: 'left',
|
||||
splitter: false,
|
||||
onShow: function () {
|
||||
load_projekte_data()
|
||||
}
|
||||
}))
|
||||
stack_container_main.addChild(bc_projekte_alle)
|
||||
|
||||
/******************************************************
|
||||
layout grid
|
||||
******************************************************/
|
||||
var cp_projekte_allgemein_center = (window.cp_projekte_allgemein_center =
|
||||
new ContentPane({
|
||||
id: 'cp_projekte_allgemein_center',
|
||||
region: 'center',
|
||||
splitter: false,
|
||||
content: grid_projekte
|
||||
}))
|
||||
bc_projekte_alle.addChild(cp_projekte_allgemein_center)
|
||||
|
||||
/******************************************************
|
||||
layout menu
|
||||
******************************************************/
|
||||
|
||||
var menu_projekte = new MenuBar({
|
||||
id: 'menu_projekte',
|
||||
region: 'top',
|
||||
style: 'text-align: center',
|
||||
splitter: false
|
||||
})
|
||||
bc_projekte_alle.addChild(menu_projekte)
|
||||
|
||||
menu_projekte.addChild(
|
||||
new TextBox({
|
||||
showLabel: true,
|
||||
id: 'SearchBox1',
|
||||
class: 'filter-box',
|
||||
placeHolder: 'Filter',
|
||||
selectOnClick: true,
|
||||
onKeyUp: function () {
|
||||
setTimeout(function () {
|
||||
LOCALSCOPE.filter_field = 'search'
|
||||
store_projekte_filter()
|
||||
}, 500)
|
||||
},
|
||||
_setSelected: function () {
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_projekte.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
label: '<i class="fa fa-times relative-t-2"></i>',
|
||||
onClick: function () {
|
||||
LOCALSCOPE.filter_field = ''
|
||||
dijit.byId('SearchBox1').reset()
|
||||
// store_projekte_filter()
|
||||
load_projekte_data()
|
||||
}
|
||||
})
|
||||
)
|
||||
// menu_projekte.addChild(new ToolbarSeparator())
|
||||
// menu_projekte.addChild(
|
||||
// new MenuBarItem({
|
||||
// showLabel: true,
|
||||
// label: '<i class="fa fa-play"></i> Laden',
|
||||
// onClick: function () {
|
||||
// LOCALSCOPE.filter_field = ''
|
||||
// load_projekte_data()
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
menu_projekte.addChild(new ToolbarSeparator())
|
||||
menu_projekte.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
label: '<i class="fa fa-circle active relative-t-2"></i> Aktive',
|
||||
onClick: function () {
|
||||
dijit.byId('SearchBox1').reset()
|
||||
if (LOCALSCOPE.filter_field == 'active') {
|
||||
LOCALSCOPE.filter_field = ''
|
||||
store_projekte_filter()
|
||||
} else {
|
||||
LOCALSCOPE.filter_field = 'active'
|
||||
store_projekte_filter()
|
||||
}
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_projekte.addChild(new ToolbarSeparator())
|
||||
menu_projekte.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
label: '<i class="fa fa-circle test relative-t-2"></i> Test',
|
||||
onClick: function () {
|
||||
LOCALSCOPE.filter_field = 'test'
|
||||
dijit.byId('SearchBox1').reset()
|
||||
store_projekte_filter()
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_projekte.addChild(new ToolbarSeparator())
|
||||
menu_projekte.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
label: '<i class="fa fa-circle konzept relative-t-2"></i> Konzept',
|
||||
onClick: function () {
|
||||
LOCALSCOPE.filter_field = 'konzept'
|
||||
dijit.byId('SearchBox1').reset()
|
||||
store_projekte_filter()
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_projekte.addChild(new ToolbarSeparator())
|
||||
menu_projekte.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
label: '<i class="fa fa-circle endfassung relative-t-2"></i> Endfassung',
|
||||
onClick: function () {
|
||||
LOCALSCOPE.filter_field = 'endfassung'
|
||||
dijit.byId('SearchBox1').reset()
|
||||
store_projekte_filter()
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_projekte.addChild(new ToolbarSeparator())
|
||||
menu_projekte.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
label: '<i class="fa fa-plus-square relative-t-2"></i> Neu',
|
||||
onClick: function () {
|
||||
newProjektDialog.show()
|
||||
}
|
||||
})
|
||||
)
|
||||
|
||||
load_projekte_data()
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,164 @@
|
||||
define([
|
||||
'dojo/query',
|
||||
'dojo/_base/declare',
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'dijit/form/TextBox',
|
||||
'dijit/MenuBar',
|
||||
'dijit/MenuBarItem',
|
||||
'dstore/Memory',
|
||||
'gutachten/lib/functions',
|
||||
'gutachten/lib/xhr'
|
||||
], function (
|
||||
query,
|
||||
declare,
|
||||
ContentPane,
|
||||
BorderContainer,
|
||||
TextBox,
|
||||
MenuBar,
|
||||
MenuBarItem,
|
||||
Memory,
|
||||
gutachten_functions,
|
||||
gutachten_xhr
|
||||
) {
|
||||
return {
|
||||
create: function () {
|
||||
|
||||
window.load_aufstellung_data = function () {
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
|
||||
var store_aufstellung = new (declare([
|
||||
Memory
|
||||
]))({
|
||||
data: response
|
||||
})
|
||||
|
||||
grid_aufstellung.set('collection', store_aufstellung)
|
||||
grid_aufstellung.startup()
|
||||
grid_aufstellung.refresh()
|
||||
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'aufstellung_alle'
|
||||
)
|
||||
}
|
||||
LOCALSCOPE.filter_field = 0
|
||||
|
||||
/******************************************************
|
||||
aufstellung
|
||||
******************************************************/
|
||||
|
||||
var bc_aufstellung = (window.bc_aufstellung = new BorderContainer({
|
||||
title: '<i class="far fa-file-excel"></i> Aufstellung Titel',
|
||||
design: 'headline',
|
||||
id: 'bc_aufstellung',
|
||||
splitter: false,
|
||||
onShow: function () {
|
||||
load_aufstellung_data()
|
||||
}
|
||||
}))
|
||||
dijit.byId('tap_vorlagen_center').addChild(bc_aufstellung)
|
||||
|
||||
var grid_aufstellung = (window.grid_aufstellung =
|
||||
new CellSelectionPaginationGrid(
|
||||
{
|
||||
collection: new Memory(),
|
||||
selectionMode: 'single',
|
||||
keepScrollPosition: 1,
|
||||
idProperty: 'id',
|
||||
pagingLinks: 1,
|
||||
pagingTextBox: 0,
|
||||
firstLastArrows: 1,
|
||||
previousNextArrows: 1,
|
||||
rowsPerPage: 100,
|
||||
columns: [
|
||||
{
|
||||
label: 'Id',
|
||||
field: 'id',
|
||||
className: 'width-80 center',
|
||||
},
|
||||
{
|
||||
label: 'Titel',
|
||||
field: 'titel',
|
||||
className: 'width-300',
|
||||
sortable: false,
|
||||
editor: 'text',
|
||||
editOn: 'click',
|
||||
editorArgs: {
|
||||
style: 'with:280px;'
|
||||
},
|
||||
renderCell: gutachten_functions.renderAllowHTML
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'delete',
|
||||
sortable: false,
|
||||
className: 'width-icon',
|
||||
renderCell: function () {
|
||||
return gutachten_functions.renderIcon('far fa-trash-alt')
|
||||
},
|
||||
renderHeaderCell: function () {
|
||||
return gutachten_functions.renderIcon('fas fa-plus')
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '',
|
||||
field: 'blind'
|
||||
}
|
||||
]
|
||||
},
|
||||
))
|
||||
|
||||
grid_aufstellung.on('dgrid-datachange', function (evt) {
|
||||
gutachten_xhr.call_function(
|
||||
'',
|
||||
'update_controller',
|
||||
'update_aufstellung',
|
||||
'&value=' + evt.value + '&id=' + evt.cell.row.id
|
||||
)
|
||||
})
|
||||
|
||||
grid_aufstellung.on('.dgrid-header .dgrid-cell:click', function (evt) {
|
||||
var cell = grid_aufstellung.cell(evt);
|
||||
if (cell.column.field == "delete") {
|
||||
gutachten_xhr.call_function(
|
||||
load_aufstellung_data,
|
||||
'insert_controller',
|
||||
'neues_element',
|
||||
'&table=tx_gutachten_aufstellung&field=titel&value=Neuer Title'
|
||||
)
|
||||
}
|
||||
});
|
||||
|
||||
grid_aufstellung.on('.dgrid-content .dgrid-cell:click', function (evt) {
|
||||
var cell = grid_aufstellung.cell(evt)
|
||||
var field = cell.column.field
|
||||
var item = grid_aufstellung.row(evt)
|
||||
switch (field) {
|
||||
case 'delete':
|
||||
if (confirm('Titel löschen?')) {
|
||||
gutachten_xhr.call_function(
|
||||
load_aufstellung_data,
|
||||
'delete_controller',
|
||||
'delete_by_id',
|
||||
'&table=tx_gutachten_aufstellung&id=' + item.id
|
||||
)
|
||||
}
|
||||
break
|
||||
}
|
||||
})
|
||||
|
||||
var cp_aufstellung_center = (window.cp_aufstellung_center =
|
||||
new ContentPane({
|
||||
id: 'cp_aufstellung_center',
|
||||
region: 'center',
|
||||
splitter: false
|
||||
}))
|
||||
bc_aufstellung.addChild(cp_aufstellung_center)
|
||||
cp_aufstellung_center.addChild(grid_aufstellung)
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,297 @@
|
||||
define([
|
||||
'dojo/query',
|
||||
'dojo/_base/declare',
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'dijit/form/TextBox',
|
||||
'dijit/Editor',
|
||||
'dijit/MenuBar',
|
||||
'dijit/MenuBarItem',
|
||||
'dijit/ToolbarSeparator',
|
||||
'dstore/Memory',
|
||||
'gutachten/lib/functions',
|
||||
'gutachten/lib/xhr'
|
||||
], function (
|
||||
query,
|
||||
declare,
|
||||
ContentPane,
|
||||
BorderContainer,
|
||||
TextBox,
|
||||
TextEditor,
|
||||
MenuBar,
|
||||
MenuBarItem,
|
||||
ToolbarSeparator,
|
||||
Memory,
|
||||
gutachten_functions,
|
||||
gutachten_xhr
|
||||
) {
|
||||
return {
|
||||
create: function () {
|
||||
|
||||
var add_auftraggeber = gutachten_functions.getAddAuftraggeber_CDialog()
|
||||
|
||||
function store_auftraggeber_filter() {
|
||||
var filterString = dijit.byId('SearchBox8').get('value')
|
||||
|
||||
if (filterString != '') {
|
||||
filter_f = store_auftraggeber.filter(function (object) {
|
||||
var kennung = object.kennung.toLowerCase()
|
||||
var txt = object.txt.toLowerCase()
|
||||
if (
|
||||
~txt.indexOf(filterString.toLowerCase()) ||
|
||||
~kennung.indexOf(filterString.toLowerCase()) ||
|
||||
object.id == filterString.toLowerCase()
|
||||
)
|
||||
return true
|
||||
else return false
|
||||
})
|
||||
} else {
|
||||
filter_f = store_auftraggeber.sort({
|
||||
property: 'id',
|
||||
descending: false
|
||||
})
|
||||
}
|
||||
grid_auftraggeber.set('collection', filter_f)
|
||||
grid_auftraggeber.startup()
|
||||
grid_auftraggeber.refresh()
|
||||
}
|
||||
|
||||
function load_auftraggeber_data() {
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
|
||||
var store_auftraggeber = (window.store_auftraggeber = new (declare([
|
||||
Memory
|
||||
]))({
|
||||
data: response
|
||||
}))
|
||||
|
||||
store_auftraggeber_filter()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'auftraggeber_alle'
|
||||
)
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
window.submitAddAuftraggeber = function () {
|
||||
var data = dijit.byId('sendform_auf').get('value')
|
||||
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
|
||||
load_auftraggeber_data()
|
||||
}
|
||||
gutachten_xhr.post_function(
|
||||
callback,
|
||||
'insert_controller',
|
||||
'auftraggeber_neu',
|
||||
data
|
||||
)
|
||||
}
|
||||
|
||||
LOCALSCOPE.filter_field = 0
|
||||
|
||||
/******************************************************
|
||||
layout
|
||||
******************************************************/
|
||||
var bc_auftraggeber = (window.bc_auftraggeber = new BorderContainer({
|
||||
title: '<i class="fa fa-user"></i> Auftraggeber',
|
||||
design: 'headline',
|
||||
id: 'bc_auftraggeber',
|
||||
splitter: false,
|
||||
onShow: function () {
|
||||
load_auftraggeber_data()
|
||||
}
|
||||
}))
|
||||
dijit.byId('tap_vorlagen_center').addChild(bc_auftraggeber)
|
||||
|
||||
/******************************************************
|
||||
menu
|
||||
******************************************************/
|
||||
var menu_auftraggeber = new MenuBar({
|
||||
id: 'menu_auftraggeber',
|
||||
style: 'text-align: center',
|
||||
region: 'top',
|
||||
splitter: false
|
||||
})
|
||||
menu_auftraggeber.addChild(
|
||||
new TextBox({
|
||||
showLabel: true,
|
||||
id: 'SearchBox8',
|
||||
class: 'filter-box',
|
||||
placeHolder: 'Name oder Id',
|
||||
selectOnClick: true,
|
||||
onKeyUp: function () {
|
||||
setTimeout(function () {
|
||||
LOCALSCOPE.filter_field = 'search'
|
||||
store_auftraggeber_filter()
|
||||
}, 500)
|
||||
},
|
||||
_setSelected: function () {
|
||||
query('#widget_SearchBox8 div span').style('display', 'none')
|
||||
}
|
||||
})
|
||||
)
|
||||
menu_auftraggeber.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
label: '<i class="fa fa-times"></i>',
|
||||
onClick: function () {
|
||||
dijit.byId('SearchBox8').reset()
|
||||
grid_auftraggeber.set('collection', store_auftraggeber)
|
||||
grid_auftraggeber.startup()
|
||||
grid_auftraggeber.refresh()
|
||||
}
|
||||
})
|
||||
)
|
||||
|
||||
menu_auftraggeber.addChild(new ToolbarSeparator())
|
||||
menu_auftraggeber.addChild(
|
||||
new MenuBarItem({
|
||||
showLabel: true,
|
||||
label: '<i class="fa fa-plus-square relative-t-2"></i> Neu',
|
||||
onClick: function () {
|
||||
add_auftraggeber.show()
|
||||
}
|
||||
})
|
||||
)
|
||||
|
||||
/******************************************************
|
||||
center
|
||||
******************************************************/
|
||||
var cp_auftraggeber_center = (window.cp_auftraggeber_center =
|
||||
new ContentPane({
|
||||
id: 'cp_auftraggeber_center',
|
||||
region: 'center',
|
||||
splitter: false
|
||||
}))
|
||||
bc_auftraggeber.addChild(cp_auftraggeber_center)
|
||||
|
||||
/******************************************************
|
||||
grid
|
||||
******************************************************/
|
||||
var grid_auftraggeber = (window.grid_auftraggeber =
|
||||
new CellSelectionPaginationGrid(
|
||||
{
|
||||
collection: new Memory(),
|
||||
selectionMode: 'single',
|
||||
keepScrollPosition: 1,
|
||||
idProperty: 'id',
|
||||
pagingLinks: 1,
|
||||
pagingTextBox: 0,
|
||||
firstLastArrows: 1,
|
||||
previousNextArrows: 1,
|
||||
rowsPerPage: 40,
|
||||
columns: [
|
||||
{
|
||||
field: 'kennung',
|
||||
sortable: false,
|
||||
editor: 'text',
|
||||
editOn: 'click',
|
||||
renderCell: gutachten_functions.renderAllowHTML
|
||||
},
|
||||
{
|
||||
label: 'Gutachten Kopf',
|
||||
field: 'kopf',
|
||||
sortable: false,
|
||||
editor: 'text',
|
||||
editOn: 'click',
|
||||
rows: '4',
|
||||
cols: '30',
|
||||
editorArgs: {
|
||||
selectOnClick: false,
|
||||
class: 'snuf-g-odd center'
|
||||
},
|
||||
renderCell: gutachten_functions.renderAllowHTML
|
||||
},
|
||||
{
|
||||
field: 'txt',
|
||||
sortable: false,
|
||||
editor: TextEditor,
|
||||
className: 'width-500',
|
||||
editOn: 'click',
|
||||
renderCell: gutachten_functions.renderAllowHTML,
|
||||
renderHeaderCell: function () { return gutachten_functions.renderText('Adresse Deckblatt', 'Zeilen der Adresse denen ein Minus <b>-</b> vorgestellt ist<br>werden im Deckblatt <b>Fett</b> ausgedruckt') }
|
||||
},
|
||||
{
|
||||
label: 'Kontaktperson',
|
||||
field: 'kontaktperson',
|
||||
sortable: false,
|
||||
editor: 'text',
|
||||
editOn: 'click'
|
||||
},
|
||||
{
|
||||
label: 'E-Mail',
|
||||
field: 'email',
|
||||
sortable: false,
|
||||
editor: 'text',
|
||||
editOn: 'click'
|
||||
},
|
||||
{
|
||||
label: 'Telefon',
|
||||
field: 'telefon',
|
||||
sortable: false,
|
||||
editor: 'text',
|
||||
editOn: 'click'
|
||||
},
|
||||
{
|
||||
label: ' ',
|
||||
field: 'delete',
|
||||
sortable: false,
|
||||
className: 'width-icon',
|
||||
renderCell: function () {
|
||||
return gutachten_functions.renderIcon('far fa-trash-alt')
|
||||
},
|
||||
renderHeaderCell: function () { return gutachten_functions.renderText('L', 'Projekt Löschen') }
|
||||
}
|
||||
]
|
||||
},
|
||||
'cp_auftraggeber_center'
|
||||
))
|
||||
grid_auftraggeber.set('sort', [
|
||||
{
|
||||
property: 'id',
|
||||
descending: true
|
||||
}
|
||||
])
|
||||
|
||||
grid_auftraggeber.on('.dgrid-content .dgrid-cell:click', function (evt) {
|
||||
var cell = grid_auftraggeber.cell(evt)
|
||||
var item = grid_auftraggeber.row(evt)
|
||||
var column = grid_auftraggeber.column(evt)
|
||||
var field = column.field
|
||||
|
||||
switch (field) {
|
||||
case 'delete':
|
||||
if (confirm('Auftraggeber löschen?')) {
|
||||
gutachten_xhr.delete_uid(
|
||||
load_auftraggeber_data,
|
||||
'tx_gutachten_auftraggeber',
|
||||
item.id
|
||||
)
|
||||
}
|
||||
break
|
||||
}
|
||||
})
|
||||
|
||||
grid_auftraggeber.on('dgrid-datachange', function (evt) {
|
||||
gutachten_xhr.call_function(
|
||||
load_auftraggeber_data,
|
||||
'update_controller',
|
||||
'update_project',
|
||||
'&table=tx_gutachten_auftraggeber&field=' +
|
||||
evt.cell.column.field +
|
||||
'&value=' +
|
||||
evt.value +
|
||||
'&id=' +
|
||||
evt.cell.row.id
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,292 @@
|
||||
define([
|
||||
'dojo/query',
|
||||
'dojo/_base/declare',
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'dijit/form/TextBox',
|
||||
'dijit/Editor',
|
||||
'dijit/MenuBar',
|
||||
'dijit/MenuBarItem',
|
||||
'dstore/Memory',
|
||||
'gutachten/lib/functions',
|
||||
'gutachten/lib/xhr'
|
||||
], function (
|
||||
query,
|
||||
declare,
|
||||
ContentPane,
|
||||
BorderContainer,
|
||||
TextBox,
|
||||
TextEditor,
|
||||
MenuBar,
|
||||
MenuBarItem,
|
||||
Memory,
|
||||
gutachten_functions,
|
||||
gutachten_xhr
|
||||
) {
|
||||
return {
|
||||
create: function () {
|
||||
/******************************************************
|
||||
FUNCTIONS
|
||||
******************************************************/
|
||||
// window.store_gutachter_filter = function () {
|
||||
// var filterString = dijit.byId('SearchBox7').get('value')
|
||||
|
||||
// if (filterString != '') {
|
||||
// filter_f = store_gutachter.filter(function (object) {
|
||||
// var kennung = object.kennung.toLowerCase()
|
||||
// var txt = object.txt.toLowerCase()
|
||||
// if (
|
||||
// ~txt.indexOf(filterString.toLowerCase()) ||
|
||||
// ~kennung.indexOf(filterString.toLowerCase()) ||
|
||||
// object.id == filterString.toLowerCase()
|
||||
// )
|
||||
// return true
|
||||
// else return false
|
||||
// })
|
||||
// } else {
|
||||
// filter_f = store_gutachter.sort({
|
||||
// property: 'id',
|
||||
// descending: false
|
||||
// })
|
||||
// }
|
||||
// grid_gutachter.set('collection', filter_f)
|
||||
// grid_gutachter.startup()
|
||||
// grid_gutachter.refresh()
|
||||
// }
|
||||
|
||||
function load_gutachter_data() {
|
||||
var callback = function (response) {
|
||||
var store_gutachter = new (declare([
|
||||
Memory
|
||||
]))({
|
||||
data: response
|
||||
})
|
||||
grid_gutachter.set('collection', store_gutachter)
|
||||
grid_gutachter.startup()
|
||||
grid_gutachter.refresh()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'gutachter_alle'
|
||||
)
|
||||
}
|
||||
|
||||
window.submitAddGutachter = function () {
|
||||
var data = dijit.byId('sendform_gut').get('value')
|
||||
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
|
||||
load_gutachter_data()
|
||||
}
|
||||
gutachten_xhr.post_function(
|
||||
callback,
|
||||
'insert_controller',
|
||||
'gutachter_neu',
|
||||
data
|
||||
)
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
gutachter
|
||||
******************************************************/
|
||||
|
||||
var bc_gutachter = (window.bc_gutachter = new BorderContainer({
|
||||
title: '<i class="far fa-user"></i> Gutachter',
|
||||
design: 'headline',
|
||||
id: 'bc_gutachter',
|
||||
splitter: false,
|
||||
onShow: function () {
|
||||
load_gutachter_data()
|
||||
}
|
||||
}))
|
||||
dijit.byId('tap_vorlagen_center').addChild(bc_gutachter)
|
||||
|
||||
/******************************************************
|
||||
menu
|
||||
******************************************************/
|
||||
// var menu_gutachter = new MenuBar({
|
||||
// id: 'menu_gutachter',
|
||||
// region: 'top',
|
||||
// splitter: false
|
||||
// })
|
||||
// menu_gutachter.addChild(
|
||||
// new TextBox({
|
||||
// showLabel: true,
|
||||
// id: 'SearchBox7',
|
||||
// class: 'filter-box',
|
||||
// placeHolder: 'Name oder Id',
|
||||
// selectOnClick: true,
|
||||
// onKeyUp: function () {
|
||||
// setTimeout(function () {
|
||||
// store_gutachter_filter()
|
||||
// }, 500)
|
||||
// },
|
||||
// _setSelected: function () {
|
||||
// query('#widget_SearchBox7 div span').style('display', 'none')
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
// menu_gutachter.addChild(
|
||||
// new MenuBarItem({
|
||||
// showLabel: true,
|
||||
// label: '<i class="fa fa-times blau"></i>',
|
||||
// onClick: function () {
|
||||
// dijit.byId('SearchBox7').reset()
|
||||
// grid_gutachter.set('collection', store_gutachter)
|
||||
// grid_gutachter.startup()
|
||||
// grid_gutachter.refresh()
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
|
||||
// var add_gutachter = gutachten_functions.getAddGutachter_CDialog()
|
||||
|
||||
// menu_gutachter.addChild(
|
||||
// new MenuBarItem({
|
||||
// showLabel: true,
|
||||
// style: 'float:right;margin-right:5px',
|
||||
// label: '<i class="fa fa-plus "></i>',
|
||||
// onClick: function () {
|
||||
// add_gutachter.show()
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
// bc_gutachter.addChild(menu_gutachter)
|
||||
var cp_gutachter_center = (window.cp_gutachter_center = new ContentPane({
|
||||
id: 'cp_gutachter_center',
|
||||
region: 'center',
|
||||
splitter: false
|
||||
}))
|
||||
bc_gutachter.addChild(cp_gutachter_center)
|
||||
/******************************************************
|
||||
grid
|
||||
******************************************************/
|
||||
var grid_gutachter = (window.grid_gutachter =
|
||||
new CellSelectionPaginationGrid(
|
||||
{
|
||||
collection: new Memory(),
|
||||
selectionMode: 'single',
|
||||
keepScrollPosition: 1,
|
||||
idProperty: 'id',
|
||||
pagingLinks: 1,
|
||||
pagingTextBox: 0,
|
||||
firstLastArrows: 1,
|
||||
previousNextArrows: 1,
|
||||
rowsPerPage: 40,
|
||||
columns: [
|
||||
// {
|
||||
// label: 'Id',
|
||||
// field: 'id',
|
||||
// className: 'width-icon'
|
||||
// },
|
||||
{
|
||||
label: 'Kennung',
|
||||
field: 'kennung',
|
||||
className: 'width-150',
|
||||
sortable: false,
|
||||
editor: 'text',
|
||||
editOn: 'click',
|
||||
renderCell: gutachten_functions.renderAllowHTML
|
||||
},
|
||||
{
|
||||
label: 'Gutachten Kopf',
|
||||
field: 'kopf',
|
||||
className: 'width-300',
|
||||
sortable: false,
|
||||
editor: 'text',
|
||||
editOn: 'click',
|
||||
renderCell: gutachten_functions.renderAllowHTML
|
||||
},
|
||||
{
|
||||
label: 'Fliestext',
|
||||
field: 'txt',
|
||||
sortable: false,
|
||||
editor: TextEditor,
|
||||
editorArgs: {
|
||||
plugins: [
|
||||
'undo',
|
||||
'redo',
|
||||
'copy',
|
||||
'paste',
|
||||
'selectAll',
|
||||
'bold',
|
||||
'italic',
|
||||
'underline'
|
||||
]
|
||||
},
|
||||
editOn: 'click',
|
||||
renderCell: gutachten_functions.renderAllowHTML
|
||||
},
|
||||
{
|
||||
label: 'Kontakt',
|
||||
field: 'kontaktperson',
|
||||
className: 'width-150',
|
||||
sortable: false,
|
||||
editor: 'text',
|
||||
editOn: 'click'
|
||||
},
|
||||
{
|
||||
label: 'E-Mail',
|
||||
field: 'email',
|
||||
className: 'width-150',
|
||||
sortable: false,
|
||||
editor: 'text',
|
||||
editOn: 'click'
|
||||
},
|
||||
{
|
||||
label: 'Telefon',
|
||||
field: 'telefon',
|
||||
className: 'width-150',
|
||||
sortable: false,
|
||||
editor: 'text',
|
||||
editOn: 'click'
|
||||
}
|
||||
// {
|
||||
// label: ' ',
|
||||
// field: 'delete',
|
||||
// sortable: false,
|
||||
// className: 'width-50 center',
|
||||
// renderCell: gutachten_functions.renderDelete
|
||||
// }
|
||||
]
|
||||
},
|
||||
'cp_gutachter_center'
|
||||
))
|
||||
|
||||
grid_gutachter.on('.dgrid-content .dgrid-cell:click', function (evt) {
|
||||
var cell = grid_gutachter.cell(evt)
|
||||
var item = grid_gutachter.row(evt)
|
||||
var column = grid_gutachter.column(evt)
|
||||
var field = column.field
|
||||
|
||||
switch (field) {
|
||||
case 'delete':
|
||||
if (confirm('Gutachter löschen?')) {
|
||||
gutachten_xhr.delete_uid(
|
||||
load_gutachter_data,
|
||||
'tx_gutachten_auftraggeber',
|
||||
item.id
|
||||
)
|
||||
}
|
||||
break
|
||||
}
|
||||
})
|
||||
|
||||
grid_gutachter.on('dgrid-datachange', function (evt) {
|
||||
gutachten_xhr.call_function(
|
||||
load_gutachter_data,
|
||||
'update_controller',
|
||||
'update_project',
|
||||
'&table=tx_gutachten_gutachter&field=' +
|
||||
evt.cell.column.field +
|
||||
'&value=' +
|
||||
evt.value +
|
||||
'&id=' +
|
||||
evt.cell.row.id
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,175 @@
|
||||
define([
|
||||
'dojo/query',
|
||||
'dojo/_base/declare',
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'dijit/form/TextBox',
|
||||
'dijit/MenuBar',
|
||||
'dijit/MenuBarItem',
|
||||
'dstore/Memory',
|
||||
'gutachten/lib/functions',
|
||||
'gutachten/lib/xhr'
|
||||
], function (
|
||||
query,
|
||||
declare,
|
||||
ContentPane,
|
||||
BorderContainer,
|
||||
TextBox,
|
||||
MenuBar,
|
||||
MenuBarItem,
|
||||
Memory,
|
||||
gutachten_functions,
|
||||
gutachten_xhr
|
||||
) {
|
||||
return {
|
||||
create: function () {
|
||||
/******************************************************
|
||||
FUNCTIONS
|
||||
******************************************************/
|
||||
// function store_orientierung_filter() {
|
||||
// var filterString = dijit.byId('SearchBox9').get('value')
|
||||
|
||||
// if (filterString != '') {
|
||||
// filter_f = store_orientierung.filter(function (object) {
|
||||
// var orientierung = object.orientierung.toLowerCase()
|
||||
// if (~orientierung.indexOf(filterString.toLowerCase())) return true
|
||||
// else return false
|
||||
// })
|
||||
// } else {
|
||||
// filter_f = store_orientierung.sort({
|
||||
// property: 'id',
|
||||
// descending: false
|
||||
// })
|
||||
// }
|
||||
// grid_orientierung.set('collection', filter_f)
|
||||
// grid_orientierung.startup()
|
||||
// grid_orientierung.refresh()
|
||||
// }
|
||||
|
||||
function load_orientierung_data() {
|
||||
var callback = function (response) {
|
||||
window.store_orientierung = new (declare([
|
||||
Memory
|
||||
]))({
|
||||
data: response
|
||||
})
|
||||
|
||||
grid_orientierung.set('collection', store_orientierung)
|
||||
grid_orientierung.startup()
|
||||
grid_orientierung.refresh()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'orientierung_alle'
|
||||
)
|
||||
}
|
||||
LOCALSCOPE.filter_field = 0
|
||||
|
||||
/******************************************************
|
||||
orientierung
|
||||
******************************************************/
|
||||
|
||||
var bc_orientierung = (window.bc_orientierung = new BorderContainer({
|
||||
title: '<i class="far fa-compass"></i> Orientierung',
|
||||
design: 'headline',
|
||||
id: 'bc_orientierung',
|
||||
splitter: false,
|
||||
onShow: function () {
|
||||
load_orientierung_data()
|
||||
}
|
||||
}))
|
||||
dijit.byId('tap_vorlagen_center').addChild(bc_orientierung)
|
||||
|
||||
/******************************************************
|
||||
menu
|
||||
******************************************************/
|
||||
|
||||
// var menu_orientierung = new MenuBar({
|
||||
// id: 'menu_orientierung',
|
||||
// region: 'top',
|
||||
// splitter: false
|
||||
// })
|
||||
// menu_orientierung.addChild(
|
||||
// new TextBox({
|
||||
// showLabel: true,
|
||||
// id: 'SearchBox9',
|
||||
// class: 'filter-box',
|
||||
// placeHolder: 'Filter',
|
||||
// selectOnClick: true,
|
||||
// onKeyUp: function () {
|
||||
// setTimeout(function () {
|
||||
// LOCALSCOPE.filter_field = 'search'
|
||||
// store_orientierung_filter()
|
||||
// }, 500)
|
||||
// },
|
||||
// _setSelected: function () {
|
||||
// query('#widget_SearchBox9 div span').style('display', 'none')
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
// menu_orientierung.addChild(
|
||||
// new MenuBarItem({
|
||||
// showLabel: true,
|
||||
// label: '<i class="fa fa-times blau"></i>',
|
||||
// onClick: function () {
|
||||
// dijit.byId('SearchBox9').reset()
|
||||
// grid_orientierung.set('collection', store_orientierung)
|
||||
// grid_orientierung.startup()
|
||||
// grid_orientierung.refresh()
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
// bc_orientierung.addChild(menu_orientierung)
|
||||
|
||||
/******************************************************
|
||||
center
|
||||
******************************************************/
|
||||
var cp_orientierung_center = (window.cp_orientierung_center =
|
||||
new ContentPane({
|
||||
id: 'cp_orientierung_center',
|
||||
region: 'center',
|
||||
splitter: false
|
||||
}))
|
||||
bc_orientierung.addChild(cp_orientierung_center)
|
||||
|
||||
/******************************************************
|
||||
grid
|
||||
******************************************************/
|
||||
var grid_orientierung = (window.grid_orientierung =
|
||||
new CellSelectionPaginationGrid(
|
||||
{
|
||||
collection: new Memory(),
|
||||
selectionMode: 'single',
|
||||
keepScrollPosition: 1,
|
||||
idProperty: 'id',
|
||||
pagingLinks: 1,
|
||||
pagingTextBox: 0,
|
||||
firstLastArrows: 1,
|
||||
previousNextArrows: 1,
|
||||
rowsPerPage: 100,
|
||||
columns: [
|
||||
{
|
||||
label: 'Orientierung',
|
||||
field: 'orientierung',
|
||||
sortable: false,
|
||||
editor: 'text',
|
||||
editOn: 'click',
|
||||
editorArgs: {
|
||||
style: 'text-align: center; width:400px; padding:5px'
|
||||
},
|
||||
renderCell: gutachten_functions.renderAllowHTML
|
||||
}
|
||||
]
|
||||
},
|
||||
'cp_orientierung_center'
|
||||
))
|
||||
grid_orientierung.set('sort', [
|
||||
{
|
||||
property: 'sortierung',
|
||||
descending: false
|
||||
}
|
||||
])
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,390 @@
|
||||
define([
|
||||
'dojo/_base/declare',
|
||||
'dojo/_base/array',
|
||||
'dijit/layout/ContentPane',
|
||||
'dijit/layout/BorderContainer',
|
||||
'dijit/Editor',
|
||||
'dijit/ConfirmDialog',
|
||||
'dijit/Menu',
|
||||
'dijit/MenuItem',
|
||||
'dijit/MenuBar',
|
||||
'dijit/MenuBarItem',
|
||||
'dijit/PopupMenuBarItem',
|
||||
'dstore/Memory',
|
||||
'gutachten/lib/functions',
|
||||
'gutachten/lib/xhr'
|
||||
], function (
|
||||
declare,
|
||||
arrayUtil,
|
||||
ContentPane,
|
||||
BorderContainer,
|
||||
Editor,
|
||||
ConfirmDialog,
|
||||
Menu,
|
||||
MenuItem,
|
||||
MenuBar,
|
||||
MenuBarItem,
|
||||
PopupMenuBarItem,
|
||||
Memory,
|
||||
gutachten_functions,
|
||||
gutachten_xhr
|
||||
) {
|
||||
return {
|
||||
create: function () {
|
||||
/******************************************************
|
||||
FUNCTIONS
|
||||
******************************************************/
|
||||
// function store_standards_filter() {
|
||||
// var filterString = dijit.byId('SearchBox10').get('value')
|
||||
|
||||
// if (filterString != '') {
|
||||
// filter_f = store_standards.filter(function (object) {
|
||||
// var kennung = object.kennung.toLowerCase()
|
||||
// var txt = object.txt.toLowerCase()
|
||||
// if (
|
||||
// ~txt.indexOf(filterString.toLowerCase()) ||
|
||||
// ~kennung.indexOf(filterString.toLowerCase()) ||
|
||||
// object.id == filterString.toLowerCase()
|
||||
// )
|
||||
// return true
|
||||
// else return false
|
||||
// })
|
||||
// } else {
|
||||
// filter_f = store_standards.sort({
|
||||
// property: 'id',
|
||||
// descending: false
|
||||
// })
|
||||
// }
|
||||
// grid_standards.set('collection', filter_f)
|
||||
// grid_standards.startup()
|
||||
// grid_standards.refresh()
|
||||
// }
|
||||
|
||||
var load_standards_data = (window.load_standards_data = function () {
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
|
||||
var store_standards = new (declare([
|
||||
Memory
|
||||
]))({
|
||||
data: response
|
||||
})
|
||||
|
||||
grid_standards.set('collection', store_standards)
|
||||
grid_standards.startup()
|
||||
grid_standards.refresh()
|
||||
// store_standards_filter()
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'standards_alle'
|
||||
)
|
||||
})
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
function editStandardDialog() {
|
||||
var callback = function (response) {
|
||||
gutachten_functions.checkSessionExpired(response)
|
||||
|
||||
var myEditor = new Editor({
|
||||
height: '500px',
|
||||
style: "border:1px solid #000; margin-bottom:5px; padding:4px; border-radius:5px",
|
||||
id: 'editor_standard_vorlagen_fliestext',
|
||||
plugins: [
|
||||
'undo',
|
||||
'redo',
|
||||
'copy',
|
||||
'paste',
|
||||
'selectAll',
|
||||
'bold',
|
||||
'italic',
|
||||
'underline'
|
||||
]
|
||||
})
|
||||
|
||||
var bc_editor = new BorderContainer({
|
||||
design: 'headline',
|
||||
id: 'bc_editor',
|
||||
splitter: false,
|
||||
style: 'height:380px'
|
||||
})
|
||||
var menu_textart = new MenuBar({
|
||||
region: 'top',
|
||||
style: 'height:40px'
|
||||
})
|
||||
menu_textart.addChild(
|
||||
new MenuBarItem({
|
||||
label: 'Textart:',
|
||||
style: 'width: 80px; padding-left: 0;'
|
||||
})
|
||||
)
|
||||
|
||||
var popupTexArtMenu = new Menu({
|
||||
style: "border-left:1px solid #ccc; border-top:1px solid #ccc; ",
|
||||
})
|
||||
arrayUtil.forEach(response, function (item) {
|
||||
popupTexArtMenu.addChild(
|
||||
new MenuItem({
|
||||
levelid: item.id,
|
||||
label: item.name,
|
||||
onClick: function () {
|
||||
LOCALSCOPE.textart_id = item.id
|
||||
dijit.byId('menu_textart').set('label', this.label)
|
||||
}
|
||||
})
|
||||
)
|
||||
})
|
||||
menu_textart.addChild(
|
||||
new PopupMenuBarItem({
|
||||
showLabel: true,
|
||||
label: 'Bitte wählen ↓',
|
||||
id: 'menu_textart',
|
||||
popup: popupTexArtMenu
|
||||
})
|
||||
)
|
||||
bc_editor.addChild(menu_textart)
|
||||
|
||||
bc_editor.addChild(
|
||||
new ContentPane({
|
||||
region: 'top',
|
||||
style: 'height:40px',
|
||||
content:
|
||||
'<span style="width:100px; display:inline-block;">Überschrift:</span><input style="width:400px;" type="text" name="ueberschrift_vorlagen" value="" data-dojo-type="dijit/form/TextBox" data-dojo-props="trim:true, propercase:true" id="ueberschrift_vorlagen" />'
|
||||
})
|
||||
)
|
||||
bc_editor.addChild(
|
||||
new ContentPane({
|
||||
region: 'center',
|
||||
content: myEditor
|
||||
})
|
||||
)
|
||||
|
||||
return new ConfirmDialog({
|
||||
id: 'editor_standard_vorlagen',
|
||||
region: 'center',
|
||||
title: 'Eintrag bearbeiten',
|
||||
style: 'height:500px; width: 600px; border:1px solid #000; border-radius:5px;',
|
||||
content: bc_editor,
|
||||
onShow: function () { },
|
||||
onCancel: function () { },
|
||||
onExecute: function () {
|
||||
if (!gutachten_functions.isNumeric(LOCALSCOPE.textart_id))
|
||||
return false
|
||||
if (!gutachten_functions.isNumeric(LOCALSCOPE.id)) return false
|
||||
|
||||
var update_array = []
|
||||
update_array.push({
|
||||
txt: dijit
|
||||
.byId('editor_standard_vorlagen_fliestext')
|
||||
.get('value')
|
||||
})
|
||||
update_array.push({
|
||||
titel: dijit.byId('ueberschrift_vorlagen').get('value')
|
||||
})
|
||||
update_array.push({
|
||||
textart_id: LOCALSCOPE.textart_id
|
||||
})
|
||||
|
||||
gutachten_xhr.post_function(
|
||||
load_standards_data,
|
||||
'update_controller',
|
||||
'update_row',
|
||||
update_array,
|
||||
'berechnen=1&table=tx_gutachten_standards&id=' + LOCALSCOPE.id
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
gutachten_xhr.call_function(
|
||||
callback,
|
||||
'select_controller',
|
||||
'textart_alle'
|
||||
)
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
standards
|
||||
******************************************************/
|
||||
var bc_standards = (window.bc_standards = new BorderContainer({
|
||||
title: '<i class="far fa-file-pdf"></i> Standards',
|
||||
design: 'headline',
|
||||
id: 'bc_standards',
|
||||
splitter: false,
|
||||
onShow: function () {
|
||||
load_standards_data()
|
||||
}
|
||||
}))
|
||||
dijit.byId('tap_vorlagen_center').addChild(bc_standards)
|
||||
|
||||
/******************************************************
|
||||
menu
|
||||
******************************************************/
|
||||
// var menu_standards_vorlagen = new MenuBar({
|
||||
// id: 'menu_standards_vorlagen',
|
||||
// region: 'top',
|
||||
// splitter: false
|
||||
// })
|
||||
// menu_standards_vorlagen.addChild(
|
||||
// new TextBox({
|
||||
// showLabel: true,
|
||||
// id: 'SearchBox10',
|
||||
// placeHolder: 'Name oder Id',
|
||||
// class: 'filter-box',
|
||||
// selectOnClick: true,
|
||||
// onKeyUp: function () {
|
||||
// setTimeout(function () {
|
||||
// LOCALSCOPE.filter_field = 'search'
|
||||
// store_standards_filter()
|
||||
// }, 500)
|
||||
// },
|
||||
// _setSelected: function () {
|
||||
// query('#widget_SearchBox10 div span').style('display', 'none')
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
// menu_standards_vorlagen.addChild(
|
||||
// new MenuBarItem({
|
||||
// showLabel: true,
|
||||
// label: '<i class="fa fa-times"></i>',
|
||||
// onClick: function () {
|
||||
// dijit.byId('SearchBox10').reset()
|
||||
// grid_standards.set('collection', store_standards)
|
||||
// grid_standards.startup()
|
||||
// grid_standards.refresh()
|
||||
// }
|
||||
// })
|
||||
// )
|
||||
// bc_standards.addChild(menu_standards_vorlagen)
|
||||
|
||||
/******************************************************
|
||||
center
|
||||
******************************************************/
|
||||
var cp_standards_center = (window.cp_standards_center = new ContentPane({
|
||||
id: 'cp_standards_center',
|
||||
region: 'center',
|
||||
splitter: false
|
||||
}))
|
||||
bc_standards.addChild(cp_standards_center)
|
||||
|
||||
/******************************************************
|
||||
grid
|
||||
******************************************************/
|
||||
var grid_standards = (window.grid_standards =
|
||||
new CellSelectionPaginationGrid(
|
||||
{
|
||||
collection: new Memory(),
|
||||
selectionMode: 'single',
|
||||
keepScrollPosition: 1,
|
||||
idProperty: 'id',
|
||||
pagingLinks: 1,
|
||||
pagingTextBox: 0,
|
||||
firstLastArrows: 1,
|
||||
previousNextArrows: 1,
|
||||
rowsPerPage: 40,
|
||||
columns: [
|
||||
{
|
||||
label: "Position",
|
||||
field: 'pos',
|
||||
sortable: false,
|
||||
className: 'width-150 center',
|
||||
},
|
||||
{
|
||||
label: 'Neue Seite',
|
||||
field: 'neueseite',
|
||||
className: 'width-80 center',
|
||||
sortable: false,
|
||||
renderCell: function (object, data) { return gutachten_functions.renderToggle(data, '', 1) },
|
||||
renderHeaderCell: function () { return gutachten_functions.renderText('SEITE', 'Für aktivierte Elemente wird eine neue Seite angelegt') }
|
||||
},
|
||||
{
|
||||
label: 'Textart',
|
||||
field: 'textart',
|
||||
className: 'width-150',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
label: 'Kennung / Überschrift',
|
||||
field: 'kennung',
|
||||
sortable: false,
|
||||
editor: 'text',
|
||||
editOn: 'click',
|
||||
renderCell: gutachten_functions.renderAllowHTML
|
||||
},
|
||||
// {
|
||||
// label: 'Überschrift',
|
||||
// field: 'titel',
|
||||
// sortable: false,
|
||||
// editor: 'text',
|
||||
// editOn: 'click',
|
||||
// renderCell: gutachten_functions.renderAllowHTML
|
||||
// },
|
||||
{
|
||||
label: '',
|
||||
field: 'edit',
|
||||
className: 'width-icon',
|
||||
sortable: false,
|
||||
renderCell: function () {
|
||||
return gutachten_functions.renderIcon('fas fa-pencil-alt')
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '',
|
||||
field: 'fake'
|
||||
}
|
||||
// {
|
||||
// label: ' ',
|
||||
// field: 'delete',
|
||||
// sortable: false,
|
||||
// renderCell: gutachten_functions.renderDelete
|
||||
// }
|
||||
]
|
||||
},
|
||||
'cp_standards_center'
|
||||
))
|
||||
grid_standards.set('sort', [
|
||||
{
|
||||
property: 'pos',
|
||||
descending: false
|
||||
}
|
||||
])
|
||||
|
||||
editStandardDialog()
|
||||
|
||||
grid_standards.on('.dgrid-content .dgrid-cell:click', function (evt) {
|
||||
var cell = grid_standards.cell(evt)
|
||||
var item = grid_standards.row(evt)
|
||||
var column = grid_standards.column(evt)
|
||||
var field = column.field
|
||||
|
||||
switch (field) {
|
||||
case 'neueseite':
|
||||
gutachten_xhr.toggle_field_uid(
|
||||
load_standards_data,
|
||||
'tx_gutachten_standards',
|
||||
cell.column.field,
|
||||
item.id
|
||||
)
|
||||
break
|
||||
case 'edit':
|
||||
dijit
|
||||
.byId('editor_standard_vorlagen_fliestext')
|
||||
.set('value', item.data.txt)
|
||||
|
||||
dijit
|
||||
.byId('menu_textart')
|
||||
.set('label', item.data.textart + ' ↓')
|
||||
LOCALSCOPE.textart_id = item.data.textart_id
|
||||
LOCALSCOPE.id = item.id
|
||||
|
||||
dijit.byId('ueberschrift_vorlagen').set('value', item.data.titel)
|
||||
|
||||
dijit.byId('editor_standard_vorlagen').show()
|
||||
break
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,28 @@
|
||||
define([
|
||||
'dijit/layout/TabContainer',
|
||||
'gutachten/vorlagen/gutachter',
|
||||
'gutachten/vorlagen/auftraggeber',
|
||||
'gutachten/vorlagen/orientierungen',
|
||||
'gutachten/vorlagen/standards',
|
||||
'gutachten/vorlagen/aufstellung'
|
||||
], function (TabContainer, gutachter, auftraggeber, orientierungen, standards, aufstellung) {
|
||||
return {
|
||||
create: function (stack_container_main) {
|
||||
/******************************************************
|
||||
Vorlagen
|
||||
******************************************************/
|
||||
var tap_vorlagen_center = (window.tap_vorlagen_center = new TabContainer({
|
||||
id: 'tap_vorlagen_center',
|
||||
tabPosition: 'left-h',
|
||||
region: 'center',
|
||||
splitter: false
|
||||
}))
|
||||
stack_container_main.addChild(tap_vorlagen_center)
|
||||
gutachter.create()
|
||||
auftraggeber.create()
|
||||
orientierungen.create()
|
||||
standards.create()
|
||||
aufstellung.create()
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,459 @@
|
||||
html,
|
||||
body {
|
||||
background: #333;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
a:link {
|
||||
text-decoration: none;
|
||||
color: #dbeaf7;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
text-decoration: none;
|
||||
color: #dbeaf7;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
a:active {
|
||||
text-decoration: underline;
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
.on {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.off {
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
/* .dijitMenuPassive .dijitMenuItemHover,
|
||||
.dijitMenuItemSelected {
|
||||
cursor: pointer;
|
||||
background: #c6daeb;
|
||||
color: #000;
|
||||
} */
|
||||
#dd_topmenu,
|
||||
#dd_topmenu2 {
|
||||
background-color: #333;
|
||||
}
|
||||
|
||||
#dialog_base {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#cp_base_center {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#cp_base_left .dgrid-row:hover {
|
||||
color: #fff;
|
||||
background-color: #000;
|
||||
}
|
||||
|
||||
.dijitInputInner {
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
GENERAL
|
||||
******************************************************/
|
||||
.fa,
|
||||
.far {
|
||||
text-shadow: 1px 2px #000;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
WIDGETS
|
||||
******************************************************/
|
||||
.dijitDialogUnderlay {
|
||||
background: #333;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.nuh .dijitEditor,
|
||||
.nuh .dijitTextBox {
|
||||
background-color: #444;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.dijitDialog {
|
||||
background: #000;
|
||||
border: 1px solid #555;
|
||||
}
|
||||
|
||||
.dijitSelectMenu {
|
||||
background-color: #555;
|
||||
}
|
||||
|
||||
.dijitMenuPopup {
|
||||
background-color: #555;
|
||||
}
|
||||
|
||||
#methoden_filter_popup_dropdown {
|
||||
border: 1px #000 solid;
|
||||
}
|
||||
|
||||
.nuh .dijitDialog .dijitTextBox {
|
||||
border: 1px #555 solid;
|
||||
}
|
||||
|
||||
.nuh .dijitEditorIFrameContainer {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.nuh .dijitDialog .dijitEditorIFrameContainer {
|
||||
border: 1px solid #555;
|
||||
background-color: #303030;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.dijitDialogPaneActionBar .dijitButtonNode {
|
||||
background: #6a6a6a;
|
||||
}
|
||||
|
||||
.dijitDialogPaneActionBar .dijitButtonNode:hover {
|
||||
color: #fff;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.dijitToggleButton,
|
||||
.dijitButton,
|
||||
.dijitDropDownButton,
|
||||
.dijitComboButton {
|
||||
border: 1px solid #888;
|
||||
background-color: #222;
|
||||
margin: 1px;
|
||||
}
|
||||
|
||||
.dijitToolbar .dijitToggleButton,
|
||||
.dijitToolbar .dijitButton,
|
||||
.dijitToolbar .dijitDropDownButton,
|
||||
.dijitToolbar .dijitComboButton {
|
||||
border: 1px solid #544545;
|
||||
background-color: #aaa;
|
||||
margin: 1px;
|
||||
}
|
||||
|
||||
#widget_SearchBox1 .dijitPlaceHolder,
|
||||
#widget_SearchBox2 .dijitPlaceHolder,
|
||||
#widget_SearchBox3 .dijitPlaceHolder,
|
||||
#widget_SearchBox4 .dijitPlaceHolder,
|
||||
#widget_SearchBox5 .dijitPlaceHolder,
|
||||
#widget_SearchBox6 .dijitPlaceHolder {
|
||||
color: #777;
|
||||
background-color: #444;
|
||||
}
|
||||
|
||||
.dijitMenuBar {
|
||||
padding-left: 1px;
|
||||
}
|
||||
|
||||
/* #notizen .dijitEditorIFrameContainer,
|
||||
#editor_standards .dijitEditorIFrameContainer {
|
||||
background-color: #dddddd;
|
||||
color:#000000;
|
||||
}
|
||||
|
||||
#notizen,
|
||||
#editor_standards {
|
||||
background: #ddd;
|
||||
} */
|
||||
/******************************************************
|
||||
SELECTED!
|
||||
******************************************************/
|
||||
.nuh .dijitTabChecked,
|
||||
.nuh .ui-state-active {
|
||||
background-color: #666 !important;
|
||||
}
|
||||
|
||||
#tab_projekte_aktive_center_tablist {
|
||||
background: #222222;
|
||||
}
|
||||
|
||||
.dgrid-selected {
|
||||
background-color: #666 !important;
|
||||
/* -moz-box-shadow: inset 0 0 0 1px #d5d5d5;
|
||||
-webkit-box-shadow: inset 0 0 0 1px #d5d5d5;
|
||||
box-shadow: inset 0 0 0 1px #d5d5d5; */
|
||||
}
|
||||
|
||||
.ui-state-active .far,
|
||||
.ui-state-active .fa,
|
||||
.nuh .dijitMenuItemSelected .fa,
|
||||
.nuh .dijitMenuItemSelected .far,
|
||||
.nuh .dijitTabChecked .fa,
|
||||
.nuh .dijitTabChecked .far,
|
||||
.dgrid-selected .far .dgrid-selected .fa {
|
||||
color: #aaa !important;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
TABS
|
||||
******************************************************/
|
||||
.dijitTabContainerLeft-tabs .dijitTab {
|
||||
border-bottom: 0 solid #222;
|
||||
}
|
||||
|
||||
.dijitTabContainerLeft-tabs .dijitTab:hover,
|
||||
.dijitTabContainerTop-tabs .dijitTab:hover,
|
||||
#cp_base_left .dijitTabHover,
|
||||
.nuh .dijitButtonHover,
|
||||
.nuh .dijitMenuItemHover {
|
||||
color: #fff;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.dijitTabContainerLeft-tabs {
|
||||
background-color: transparent;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.dijitTabChecked {
|
||||
color: #fff;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#cp_base_top_title {
|
||||
background-color: transparent;
|
||||
color: #4997cf;
|
||||
text-shadow: 1px 2px #000;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
GRIDS
|
||||
******************************************************/
|
||||
.dgrid-row {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dgrid-row-even {
|
||||
color: #D0D0D0;
|
||||
}
|
||||
|
||||
.dgrid-row-odd {
|
||||
color: #D0D0D0;
|
||||
background: #444;
|
||||
}
|
||||
|
||||
.dgrid-row-even:hover {
|
||||
background: #444;
|
||||
}
|
||||
|
||||
.dgrid-row-odd:hover {
|
||||
background: #444;
|
||||
}
|
||||
|
||||
.nuh .dgrid-cell:hover {
|
||||
cursor: pointer;
|
||||
background: #444;
|
||||
}
|
||||
|
||||
#cp_base_center .dgrid-header-row .dgrid-cell:hover {
|
||||
cursor: pointer;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.dgrid-header,
|
||||
.dgrid-header-row,
|
||||
.dgrid-footer {
|
||||
background-color: #222222;
|
||||
}
|
||||
|
||||
.dgrid-hider-menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dgrid-header .dojoDndItemBefore {
|
||||
border-left: 2px dotted #000 !important;
|
||||
}
|
||||
|
||||
.dgrid-header .dojoDndItemAfter {
|
||||
border-right: 2px dotted #000 !important;
|
||||
}
|
||||
|
||||
.dgrid-column-resizer {
|
||||
cursor: col-resize;
|
||||
position: absolute;
|
||||
width: 2px;
|
||||
background-color: #666;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.dgrid-pagination .dgrid-page-disabled {
|
||||
color: #aaa;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
SCROLLBARE DESIGN CHROME
|
||||
******************************************************/
|
||||
.dgrid-scroller::-webkit-scrollbar {
|
||||
background: #666;
|
||||
}
|
||||
|
||||
.dgrid-scroller::-webkit-scrollbar-thumb {
|
||||
background: #666;
|
||||
}
|
||||
|
||||
.dgrid-scroller::-webkit-scrollbar {
|
||||
background: #666;
|
||||
}
|
||||
|
||||
.dgrid-scroller::-webkit-scrollbar-button {
|
||||
background: #666;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
BG
|
||||
******************************************************/
|
||||
#cp_projekte_aktive_title {
|
||||
/* background: #dedede; */
|
||||
background-color: #666;
|
||||
color: #ddd;
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
#topmenu_left,
|
||||
#topmenu_center,
|
||||
#topmenu_right,
|
||||
#cp_projekte_aktive_menu-header,
|
||||
#menu_projekte,
|
||||
#cp_base_center_tablist_toggle1 {
|
||||
background: #222 !important;
|
||||
}
|
||||
|
||||
.dgrid-header-row {
|
||||
background-color: #222 !important;
|
||||
right: 0 !important;
|
||||
}
|
||||
|
||||
#cp_auftraggeber_top {
|
||||
background-color: #222 !important;
|
||||
}
|
||||
|
||||
#cp_platzhalter_header,
|
||||
#cp_orientierung_typen {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
Tooltip and TooltipDialog
|
||||
******************************************************/
|
||||
.nuh .dijitTooltip,
|
||||
.nuh .dijitTooltipDialog {
|
||||
/* the outermost dom node, holding the connector and container
|
||||
make the area on the sides of the arrow transparent */
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.dijitTooltipBelow {
|
||||
/* leave room for arrow above content */
|
||||
padding-top: 13px;
|
||||
padding-left: 3px;
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
.dijitTooltipAbove {
|
||||
/* leave room for arrow below content */
|
||||
padding-bottom: 13px;
|
||||
padding-left: 3px;
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
.nuh .dijitTooltipContainer {
|
||||
/* the part with the text */
|
||||
background-color: #8a8a8a;
|
||||
background-image: -moz-linear-gradient(bottom, rgba(207, 229, 250, 0.1) 0px, #8a8a8a 10px);
|
||||
background-image: -webkit-linear-gradient(bottom, rgba(207, 229, 250, 0.1) 0px, #8a8a8a 10px);
|
||||
background-image: -o-linear-gradient(bottom, rgba(207, 229, 250, 0.1) 0px, #8a8a8a 10px);
|
||||
background-image: linear-gradient(bottom, rgba(207, 229, 250, 0.1) 0px, #8a8a8a 10px);
|
||||
background-position: bottom;
|
||||
border: 1px solid #000;
|
||||
padding: 6px 8px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
|
||||
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
|
||||
font-size: 1em;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.nuh .dijitTooltipConnector {
|
||||
border: 0;
|
||||
z-index: 2;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url("../JavaScript/dijit/themes/nuh/images/tooltip2.png");
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.dj_ie6 .nuh .dijitTooltipConnector {
|
||||
background-image: url("images/tooltip8bit.png");
|
||||
}
|
||||
|
||||
.nuh .dijitTooltipBelow .dijitTooltipConnector {
|
||||
/* the arrow piece for tooltips below an element */
|
||||
top: 0;
|
||||
left: 3px;
|
||||
background-position: -31px 0;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.nuh .dijitTooltipAbove .dijitTooltipConnector {
|
||||
/* the arrow piece for tooltips above an element */
|
||||
bottom: 0;
|
||||
left: 3px;
|
||||
background-position: -15px 0;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.dj_ie7 .nuh .dijitTooltipAbove .dijitTooltipConnector,
|
||||
.dj_ie6 .nuh .dijitTooltipAbove .dijitTooltipConnector {
|
||||
bottom: -1px;
|
||||
}
|
||||
|
||||
.nuh .dijitTooltipABRight .dijitTooltipConnector {
|
||||
/* above or below tooltip, but the arrow appears on the right,
|
||||
and the right edges of target and tooltip are aligned rather than the left.
|
||||
Override above rules for .dijitTooltipBelow, .dijitTooltipAbove */
|
||||
left: auto;
|
||||
right: 3px;
|
||||
}
|
||||
|
||||
.nuh .dijitTooltipLeft {
|
||||
padding-right: 14px;
|
||||
}
|
||||
|
||||
.nuh .dijitTooltipLeft .dijitTooltipConnector {
|
||||
/* the arrow piece for tooltips to the left of an element, bottom borders aligned */
|
||||
right: 0;
|
||||
background-position: 0 0;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.nuh .dijitTooltipRight {
|
||||
padding-left: 14px;
|
||||
}
|
||||
|
||||
.nuh .dijitTooltipRight .dijitTooltipConnector {
|
||||
/* the arrow piece for tooltips to the right of an element, bottom borders aligned */
|
||||
left: 0;
|
||||
background-position: -48px 0;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.nuh .dijitDialogUnderlay {
|
||||
background: #000;
|
||||
opacity: 0.8;
|
||||
}
|
||||
@@ -0,0 +1,472 @@
|
||||
/******************************************************
|
||||
DGRID
|
||||
******************************************************/
|
||||
.dgrid {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border: 0;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dgrid-header-row {
|
||||
position: absolute;
|
||||
right: 17px;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.dgrid-header-scroll {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.dgrid-footer {
|
||||
position: absolute;
|
||||
bottom: 0 !important;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
background-color: var(--dgrid-footer);
|
||||
color: var(--dgrid-footer-color);
|
||||
}
|
||||
|
||||
.dgrid-no-data {
|
||||
position: relative;
|
||||
top: 20px;
|
||||
text-align: center;
|
||||
font-size: large;
|
||||
color: var(--schwarz);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.dgrid-header-hidden {
|
||||
font-size: 0;
|
||||
height: 0 !important;
|
||||
border-top: none !important;
|
||||
border-bottom: none !important;
|
||||
margin-top: 0 !important;
|
||||
margin-bottom: 0 !important;
|
||||
padding-top: 0 !important;
|
||||
padding-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.dgrid-footer-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dgrid-header-row,
|
||||
.dgrid-header-row .dgrid-cell,
|
||||
.dgrid-header-row .dgrid-cell th,
|
||||
.dgrid-header-row .dgrid-cell:focus,
|
||||
.dgrid-header-row:focus,
|
||||
.dgrid-header-row:focus {
|
||||
overflow: hidden;
|
||||
color: var(--weiss) !important;
|
||||
background-color: var(--schwarz) !important;
|
||||
text-transform: uppercase !important;
|
||||
}
|
||||
|
||||
.dark .dijitMenuItem,
|
||||
.dark .dijitMenuItem td {
|
||||
text-transform: uppercase !important;
|
||||
}
|
||||
|
||||
.dgrid-row-table {
|
||||
border-collapse: collapse;
|
||||
border: none;
|
||||
table-layout: fixed;
|
||||
empty-cells: show;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.dgrid-cell {
|
||||
padding: 0.5rem 1rem;
|
||||
text-align: left;
|
||||
overflow: hidden;
|
||||
vertical-align: top;
|
||||
border-top-style: none;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
border-right: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.dgrid-content {
|
||||
position: relative;
|
||||
height: 99%;
|
||||
}
|
||||
|
||||
.dgrid-scroller {
|
||||
overflow-x: auto;
|
||||
overflow-y: scroll;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
DGRID
|
||||
******************************************************/
|
||||
.dgrid-border {
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
#alarm-grid .dgrid-footer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dgrid-hider-menu {
|
||||
border: 1px solid var(--border);
|
||||
background-color: var(--weiss);
|
||||
}
|
||||
|
||||
.dgrid-column-resizer {
|
||||
background-color: var(--grau);
|
||||
}
|
||||
|
||||
.dgrid-header-row {
|
||||
position: absolute;
|
||||
right: 17px;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.dgrid-header-scroll {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.dgrid-content:focus {
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
.dgrid-preload {
|
||||
font-size: 0;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
.dgrid-loading {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.dgrid-above {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.ui-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background-image: url("../Stylesheets/images/ui-icons_222222_256x240.png");
|
||||
}
|
||||
|
||||
.dgrid-sort-arrow {
|
||||
background-position: -64px -16px;
|
||||
display: block;
|
||||
float: right;
|
||||
margin: 0 4px 0 5px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
.dgrid-sort-up .dgrid-sort-arrow {
|
||||
background-position: 0 -16px;
|
||||
}
|
||||
|
||||
.dgrid-input {
|
||||
width: 99%;
|
||||
}
|
||||
|
||||
.dgrid-scrollbar-measure {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
overflow: scroll;
|
||||
position: absolute;
|
||||
top: -9999px;
|
||||
}
|
||||
|
||||
.dgrid-autoheight {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.dgrid-autoheight .dgrid-header {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.dgrid-column-set {
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
height: 100%;
|
||||
-ms-touch-action: pan-y;
|
||||
touch-action: pan-y;
|
||||
}
|
||||
|
||||
.dgrid-column-set-cell {
|
||||
vertical-align: top;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.ui-icon-triangle-1-e {
|
||||
background-position: -32px -16px;
|
||||
}
|
||||
|
||||
.ui-icon-triangle-1-se {
|
||||
background-position: -48px -16px;
|
||||
}
|
||||
|
||||
.dgrid-expando-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.dgrid-tree-container {
|
||||
-webkit-transition-duration: .3s;
|
||||
-moz-transition-duration: .3s;
|
||||
-o-transition-duration: .3s;
|
||||
-ms-transition-duration: .3s;
|
||||
transition-duration: .3s;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.dgrid-tree-container.dgrid-tree-resetting {
|
||||
-webkit-transition-duration: 0;
|
||||
-moz-transition-duration: 0;
|
||||
-o-transition-duration: 0;
|
||||
-ms-transition-duration: 0;
|
||||
transition-duration: 0;
|
||||
}
|
||||
|
||||
.dgrid-hider-toggle {
|
||||
background-position: 0 -192px;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: 99999;
|
||||
}
|
||||
|
||||
.dgrid-rtl-swap .dgrid-hider-toggle {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.dgrid-hider-menu {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 17px;
|
||||
width: 184px;
|
||||
z-index: 99999;
|
||||
padding: 4px;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.dgrid-rtl-swap .dgrid-hider-menu {
|
||||
right: auto;
|
||||
left: 17px;
|
||||
}
|
||||
|
||||
.dgrid-hider-menu-row {
|
||||
position: relative;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.dgrid-hider-menu-check {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.dgrid-hider-menu-label {
|
||||
display: block;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.dgrid-column-resizer {
|
||||
cursor: col-resize;
|
||||
position: absolute;
|
||||
width: 2px;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.dgrid-resize-handle {
|
||||
height: 100px;
|
||||
width: 0;
|
||||
position: absolute;
|
||||
right: -4px;
|
||||
top: -4px;
|
||||
cursor: col-resize;
|
||||
z-index: 999;
|
||||
border-left: 5px solid transparent;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.dgrid-resize-header-container {
|
||||
height: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.dgrid-resize-guard {
|
||||
cursor: col-resize;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
html.has-touch .dgrid-resize-handle {
|
||||
border-left: 20px solid transparent;
|
||||
}
|
||||
|
||||
html.has-touch .dgrid-column-resizer {
|
||||
width: 2px;
|
||||
}
|
||||
|
||||
.dgrid-spacer-row {
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.dgrid-spacer-row th {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
border-top: none;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.dgrid-status {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.dgrid-page-size {
|
||||
margin: 1px 4px 0;
|
||||
}
|
||||
|
||||
.dgrid-navigation .dgrid-page-link {
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
.dgrid-first,
|
||||
.dgrid-last,
|
||||
.dgrid-next,
|
||||
.dgrid-previous {
|
||||
font-size: 130%;
|
||||
}
|
||||
|
||||
.dgrid-page-input {
|
||||
margin-top: 1px;
|
||||
width: 2em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.dgrid-pagination-links .dgrid-page-disabled {
|
||||
font-weight: bold;
|
||||
cursor: default;
|
||||
text-align: center;
|
||||
border: 1px solid var(--border);
|
||||
padding-left: 7px;
|
||||
}
|
||||
|
||||
.dgrid-rtl-swap .dgrid-header-row {
|
||||
right: 0;
|
||||
left: 17px;
|
||||
}
|
||||
|
||||
.dgrid-rtl-swap .dgrid-header-scroll {
|
||||
left: 0;
|
||||
right: auto;
|
||||
}
|
||||
|
||||
.dgrid-rtl .dgrid-cell {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.dgrid-rtl .dgrid-sort-arrow {
|
||||
float: left;
|
||||
margin: 0 5px 0 4px;
|
||||
}
|
||||
|
||||
.dgrid-rtl .ui-icon-triangle-1-e {
|
||||
background-position: -96px -16px;
|
||||
}
|
||||
|
||||
.dgrid-rtl .ui-icon-triangle-1-se {
|
||||
background-position: -80px -16px;
|
||||
}
|
||||
|
||||
.dgrid-rtl .dgrid-pagination .dgrid-status {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.dgrid-rtl .dgrid-pagination .dgrid-page-size {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.dgrid-rtl .dgrid-pagination .dgrid-navigation {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.dgrid-rtl.dgrid-autoheight .dgrid-header {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.dgrid-header .dgrid-cell {
|
||||
overflow: hidden;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.dgrid-header .dojoDndTarget .dgrid-cell {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
.dgrid-header .dojoDndItemBefore {
|
||||
border-left: 2px dotted var(--border) !important;
|
||||
}
|
||||
|
||||
.dgrid-header .dojoDndItemAfter {
|
||||
border-right: 2px dotted var(--border) !important;
|
||||
}
|
||||
|
||||
.dijitSelectMenu .dijitMenuItem,
|
||||
.dijitSelectMenu .dijitMenuItem td {
|
||||
padding: 1px 8px !important;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
GRID SITE STYLE
|
||||
******************************************************/
|
||||
.dgrid-footer,
|
||||
.dgrid-header {
|
||||
background-color: var(--schwarz);
|
||||
color: var(--weiss) !important;
|
||||
}
|
||||
|
||||
.dgrid-row {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dgrid-row-even {
|
||||
background-color: var(--hellgrau);
|
||||
}
|
||||
|
||||
.dgrid-row-odd {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.dgrid-row-even:hover {
|
||||
background: var(--grau);
|
||||
}
|
||||
|
||||
.dgrid-row-odd:hover {
|
||||
background: var(--grau);
|
||||
}
|
||||
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 823 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 713 B |
|
After Width: | Height: | Size: 6.8 KiB |
@@ -0,0 +1,920 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
:root {
|
||||
--schwarz: #212121;
|
||||
--rot: #ff2848;
|
||||
--weiss: #ffffff;
|
||||
--hellgrau: #efefef;
|
||||
--grau: #ddd;
|
||||
--border: #ccc;
|
||||
--grid: #c6daeb;
|
||||
|
||||
--blau: #67abf1;
|
||||
--hellblau: #99c9f7;
|
||||
--active: #212121;
|
||||
|
||||
--testing: #888888;
|
||||
--konzept: #67abf1;
|
||||
--endfassung: #01A739;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.dijitChecked,
|
||||
.dgrid .dgrid-selected {
|
||||
background-color: var(--hellblau) !important;
|
||||
}
|
||||
|
||||
body,
|
||||
html {
|
||||
font-family: sans-serif;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
font-size: .95rem;
|
||||
background: var(--weiss);
|
||||
color: var(--schwarz);
|
||||
}
|
||||
|
||||
#stack_container_main {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.spinner-size {
|
||||
font-size: 400px;
|
||||
color: var(--grau);
|
||||
}
|
||||
|
||||
#ueberschrift {
|
||||
line-height: 21px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.lparent {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.lparent>div {
|
||||
display: inline-block;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
search
|
||||
******************************************************/
|
||||
.dijitTextBox .dijitInputField .dijitPlaceHolder,
|
||||
.dijitTextBox .dijitInputInner,
|
||||
.dijitValidationTextBox .dijitValidationContainer {
|
||||
padding: 4px;
|
||||
border-radius: 5px;
|
||||
color: var(--schwarz);
|
||||
}
|
||||
|
||||
.filter-box,
|
||||
.search-box {
|
||||
width: 180px;
|
||||
margin-left: 10px;
|
||||
border-radius: 5px;
|
||||
background-color: var(--weiss);
|
||||
}
|
||||
|
||||
.filter-box .dijitPlaceHolder,
|
||||
.search-box .dijitPlaceHolder {
|
||||
display: block;
|
||||
width: 92%;
|
||||
text-align: left;
|
||||
cursor: text;
|
||||
background-image: url("../Images/lupe-black.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right center;
|
||||
background-size: 19px auto;
|
||||
}
|
||||
|
||||
#widget_SearchBox1 {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
link
|
||||
******************************************************/
|
||||
a,
|
||||
a:link {
|
||||
text-decoration: none;
|
||||
color: var(--blau);
|
||||
}
|
||||
|
||||
a:visited {
|
||||
text-decoration: none;
|
||||
color: var(--grid);
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
color: var(--rot);
|
||||
}
|
||||
|
||||
a:active {
|
||||
text-decoration: underline;
|
||||
color: var(--rot);
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
color
|
||||
******************************************************/
|
||||
.on {
|
||||
color: var(--active);
|
||||
}
|
||||
|
||||
.off {
|
||||
color: var(--grau);
|
||||
}
|
||||
|
||||
:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.red,
|
||||
.error {
|
||||
color: var(--rot) !important;
|
||||
}
|
||||
|
||||
.ok {
|
||||
color: var(--endfassung) !important;
|
||||
}
|
||||
|
||||
.bg_error {
|
||||
background-color: var(--rot) !important;
|
||||
padding: 5px 30px;
|
||||
color: var(--weiss);
|
||||
}
|
||||
|
||||
.bg_ok {
|
||||
background-color: var(--endfassung) !important;
|
||||
padding: 5px 30px;
|
||||
color: var(--weiss);
|
||||
}
|
||||
|
||||
.dijitTabContent .fa,
|
||||
.dijitTabContent .far {
|
||||
position: relative;
|
||||
top: -3px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.blau {
|
||||
color: var(--blau);
|
||||
}
|
||||
|
||||
.rot,
|
||||
.rot2 {
|
||||
color: var(--rot);
|
||||
}
|
||||
|
||||
.test {
|
||||
color: var(--testing);
|
||||
}
|
||||
|
||||
.grau {
|
||||
color: var(--grau);
|
||||
}
|
||||
|
||||
.konzept {
|
||||
color: var(--konzept);
|
||||
}
|
||||
|
||||
.endfassung,
|
||||
.gruen {
|
||||
color: var(--endfassung);
|
||||
}
|
||||
|
||||
.active {
|
||||
color: var(--active);
|
||||
}
|
||||
|
||||
.nuhhelp {
|
||||
color: var(--blau);
|
||||
}
|
||||
|
||||
.pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.center_icon {
|
||||
margin: 1px 5px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.stammdaten_cellsize_select .dijitMenuItemLabel {
|
||||
padding: 5px !important;
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: block;
|
||||
width: 180px;
|
||||
height: 32px;
|
||||
background-image: url("../Icons/ext-icon.png");
|
||||
background-repeat: no-repeat;
|
||||
background-size: auto 32px;
|
||||
text-align: right;
|
||||
line-height: 34px;
|
||||
font-weight: bold;
|
||||
color: var(--blau);
|
||||
}
|
||||
|
||||
.help {
|
||||
position: relative;
|
||||
top: -5px;
|
||||
left: 5px;
|
||||
color: var(--weiss);
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.help_on {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.help_off {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.bg-schwarz {
|
||||
background-color: var(--schwarz) !important;
|
||||
}
|
||||
|
||||
.dgrid-row-odd .bg-grau {
|
||||
background-color: #f0f7fe !important;
|
||||
}
|
||||
|
||||
.dgrid-row-even .bg-grau {
|
||||
background-color: #ddebfc !important;
|
||||
}
|
||||
|
||||
.bg-grau {
|
||||
background-color: var(--grau) !important;
|
||||
}
|
||||
|
||||
.center-box {
|
||||
margin: auto !important;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
general layout
|
||||
******************************************************/
|
||||
.dijitDialogPaneActionBar,
|
||||
.right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.subheader {
|
||||
line-height: 80px !important;
|
||||
height: 80px !important;
|
||||
font-weight: bold;
|
||||
font-size: 2em;
|
||||
text-align: center;
|
||||
padding: 5px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.dijitToolbar {
|
||||
padding: 3px;
|
||||
background: #eee;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#menu_projekte {
|
||||
border-bottom: 1px solid var(--schwarz);
|
||||
height: 62px;
|
||||
line-height: 62px;
|
||||
}
|
||||
|
||||
#cp_upload_response {
|
||||
height: 90px;
|
||||
line-height: 24px;
|
||||
padding: 10px 50px;
|
||||
}
|
||||
|
||||
#cp_base_top {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#bc_projekte_aktive {
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
#cp_auftraggeber_top,
|
||||
#cp_projekte_allgemein_top {
|
||||
margin: 20px 0 1px;
|
||||
}
|
||||
|
||||
#cp_projekte_aktive_title {
|
||||
text-align: center;
|
||||
height: 62px;
|
||||
line-height: 62px;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 2rem;
|
||||
background: var(--blau);
|
||||
color: var(--weiss);
|
||||
border-bottom: 1px solid var(--blau);
|
||||
}
|
||||
|
||||
#cp_base_top_title {
|
||||
background-color: transparent;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
line-height: 74px;
|
||||
height: 74px;
|
||||
overflow: hidden;
|
||||
font-size: 1.8em;
|
||||
}
|
||||
|
||||
.center-layout {
|
||||
overflow: hidden;
|
||||
padding: 50px;
|
||||
}
|
||||
|
||||
.margin-50-lr {
|
||||
margin-left: 50px;
|
||||
margin-right: 50px;
|
||||
}
|
||||
|
||||
.margin-50-t {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.mr-5 {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#cp_base_left,
|
||||
#cp_base_right {
|
||||
width: 200px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.leftmenu_text {
|
||||
margin-top: 5px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
width: 246px;
|
||||
display: block;
|
||||
float: right;
|
||||
}
|
||||
|
||||
#methoden_filter_popup_dropdown {
|
||||
width: 130px;
|
||||
}
|
||||
|
||||
/* grid */
|
||||
.center {
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
.deckblatt-adresse {
|
||||
height: 85px;
|
||||
width: 450px;
|
||||
}
|
||||
|
||||
.width-30 {
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
.width-icon {
|
||||
cursor: pointer;
|
||||
width: 50px;
|
||||
text-align: center !important;
|
||||
margin-left: 0 !important;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
|
||||
.width-50 {
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
.width-60 {
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
.width-80 {
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
.width-110 {
|
||||
width: 110px;
|
||||
}
|
||||
|
||||
.width-130 {
|
||||
width: 130px;
|
||||
}
|
||||
|
||||
.width-150 {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.width-300 {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.width-500 {
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
.width-600 {
|
||||
width: 600px;
|
||||
}
|
||||
|
||||
.stammdaten_cellsize,
|
||||
.stammdaten_cellsize_select {
|
||||
width: 300px !important;
|
||||
}
|
||||
|
||||
.stammdaten_cellsize_select .dijitButtonContents {
|
||||
width: 280px !important;
|
||||
}
|
||||
|
||||
.no-border-r {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.select_orientierung {
|
||||
padding: 2px;
|
||||
font-size: 86%;
|
||||
}
|
||||
|
||||
.margin-right-10 {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.no-padding-tb {
|
||||
padding-top: 0 !important;
|
||||
padding-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.no-padding-lr {
|
||||
padding-left: 0 !important;
|
||||
padding-right: 0 !important;
|
||||
}
|
||||
|
||||
.margin-1rem {
|
||||
margin: 1rem;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
DIJIT
|
||||
******************************************************/
|
||||
.dijitButton,
|
||||
.dijitComboButton,
|
||||
.dijitDropDownButton,
|
||||
.dijitToggleButton {
|
||||
margin: 0;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.dijitDialog {
|
||||
overflow: hidden;
|
||||
padding: 25px;
|
||||
}
|
||||
|
||||
.dijitButtonNode {
|
||||
margin: 1px;
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.dijitToolbar .dijitButton,
|
||||
.dijitToolbar .dijitComboButton,
|
||||
.dijitToolbar .dijitDropDownButton,
|
||||
.dijitToolbar .dijitToggleButton {
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
padding: 10px;
|
||||
margin: 10px;
|
||||
color: var(--blau);
|
||||
}
|
||||
|
||||
.nothing-selected {
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
margin: 5rem;
|
||||
text-align: center;
|
||||
color: var(--rot);
|
||||
}
|
||||
|
||||
.dijitDialogTitle {
|
||||
font-size: 1.8em;
|
||||
font-weight: bold;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
display: block;
|
||||
color: var(--blau);
|
||||
}
|
||||
|
||||
.dijitMenuTable {
|
||||
min-width: 120px !important;
|
||||
max-width: 200px !important;
|
||||
top: 0 !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#menu_projekte_active_popup {
|
||||
width: 178px;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
MENUBAR
|
||||
******************************************************/
|
||||
.dijitButton .dijitButtonText,
|
||||
.dijitMenuItemSelected,
|
||||
.dijitMenuPassive .dijitMenuItemHover {
|
||||
color: var(--schwarz);
|
||||
cursor: pointer;
|
||||
background-color: var(--blau);
|
||||
border-radius: 5px;
|
||||
padding: 0.5rem 1rem;
|
||||
}
|
||||
|
||||
#cp_orientierung_typen .dijitMenuItem {
|
||||
font-size: 86% !important;
|
||||
}
|
||||
|
||||
#topmenu {
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
padding: 5px 15px;
|
||||
border-bottom: 1px solid var(--schwarz);
|
||||
background-image: url("./images/gutachten-logo2.png");
|
||||
background-position: 10px center;
|
||||
background-size: auto 70%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.topmenu-selected {
|
||||
background-color: var(--blau);
|
||||
border-radius: 5px;
|
||||
margin: auto 5px;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
TAB
|
||||
******************************************************/
|
||||
#tab_projekte_aktive_center_tablist {
|
||||
background: var(--weiss);
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
TABS
|
||||
******************************************************/
|
||||
.border-black {
|
||||
border: 1px solid var(--schwarz) !important;
|
||||
}
|
||||
|
||||
.border-t-40 {
|
||||
border-top: 32px solid var(--schwarz) !important;
|
||||
}
|
||||
|
||||
#methoden_filter_popup_dropdown {
|
||||
border: 1px var(--grid) solid;
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.dijitMenuBar .diijtMenuItemLabel,
|
||||
.dijitMenuBar .dijitMenuItem,
|
||||
.dijitTab .tabLabel {
|
||||
height: 1.5rem;
|
||||
line-height: 1.5rem;
|
||||
padding: 0.5rem 1rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dijitTabContainerLeft-tabs {
|
||||
border: 0;
|
||||
float: left;
|
||||
width: 280px;
|
||||
border-top: 32px solid var(--schwarz) !important;
|
||||
border-right: 1px solid var(--schwarz);
|
||||
}
|
||||
|
||||
.dijitTabContainerBottom-container,
|
||||
.dijitTabContainerTop-container,
|
||||
.dijitTabContainerLeft-container,
|
||||
.dijitTabContainerRight-container {
|
||||
z-index: 0;
|
||||
overflow: hidden;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
FORM
|
||||
******************************************************/
|
||||
.dijitSelectLabel {
|
||||
width: 15em;
|
||||
vertical-align: middle;
|
||||
padding: 0.3rem;
|
||||
}
|
||||
|
||||
.dijitTextBox {
|
||||
border: solid black 1px;
|
||||
vertical-align: middle;
|
||||
border-radius: 3px;
|
||||
padding: 0 3px;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
GRIDS SPEZIELL
|
||||
******************************************************/
|
||||
#bc_projekte_aktive_top,
|
||||
#cp_projekte_aktive_left,
|
||||
#cp_projekte_aktive_menu {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.left-140 {
|
||||
width: 140px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.grid-button {
|
||||
text-align: center;
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
#cp_p_basis_center {
|
||||
height: 238px;
|
||||
}
|
||||
|
||||
#auftraggeber_menu {
|
||||
height: 32px;
|
||||
line-height: 34px;
|
||||
}
|
||||
|
||||
#auftraggeber_menu_titel {
|
||||
width: 240px;
|
||||
}
|
||||
|
||||
#auftraggeber_menu_titel:hover {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#cp_objects_left {
|
||||
width: 260px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
#cp_orientierung_typen_colums {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
#menu_allgemeine,
|
||||
#menu_methoden,
|
||||
#menu_objects,
|
||||
#menu_orient_typen {
|
||||
height: 47px;
|
||||
line-height: 47px;
|
||||
padding-left: 10px;
|
||||
background-color: var(--hellblau);
|
||||
border-top: 1px solid var(--schwarz);
|
||||
border-left: 1px solid var(--schwarz);
|
||||
}
|
||||
|
||||
table,
|
||||
td,
|
||||
th {
|
||||
border-collapse: separate;
|
||||
}
|
||||
|
||||
.dijitComboBox .dijitArrowButtonInner,
|
||||
.dijitSelect .dijitArrowButtonInner {
|
||||
background-image: url("../JavaScript/node_modules/dijit/themes/salam/form/images/commonFormArrows.png");
|
||||
background-position: -35px 53%;
|
||||
background-repeat: no-repeat;
|
||||
margin: 0;
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
.dijitSelect .dijitButtonContents {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
general from light
|
||||
******************************************************/
|
||||
|
||||
|
||||
#dialog_base {
|
||||
background-color: var(--weiss)FFF;
|
||||
}
|
||||
|
||||
.dijitToolbarSeparator {
|
||||
width: 1px;
|
||||
border-left: 1px solid var(--schwarz);
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
WIDGETS DIJIT
|
||||
******************************************************/
|
||||
.dijitDialogUnderlay {
|
||||
background: #369;
|
||||
opacity: .5;
|
||||
}
|
||||
|
||||
.dijitDialog {
|
||||
background: var(--weiss);
|
||||
border: 1px solid #DDDDDD;
|
||||
}
|
||||
|
||||
.dijitSelectMenu {
|
||||
background-color: var(--weiss);
|
||||
}
|
||||
|
||||
.dijitButtonHover,
|
||||
.dijitDialogPaneActionBar .dijitButtonNode:hover,
|
||||
.dijitTabHover {
|
||||
background: var(--grid);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#cp_base_top_title {
|
||||
background-color: transparent;
|
||||
color: var(--blau);
|
||||
}
|
||||
|
||||
|
||||
/******************************************************
|
||||
Dialog
|
||||
******************************************************/
|
||||
.dijitDialogUnderlay {
|
||||
background: var(--grid);
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
Tooltip
|
||||
******************************************************/
|
||||
/* Tooltip and TooltipDialog */
|
||||
.dijitTooltip,
|
||||
.dijitTooltipDialog {
|
||||
/* the outermost dom node, holding the connector and container */
|
||||
background: transparent;
|
||||
/* make the area on the sides of the arrow transparent */
|
||||
}
|
||||
|
||||
.dijitTooltipBelow {
|
||||
/* leave room for arrow above content */
|
||||
padding-top: 13px;
|
||||
padding-left: 3px;
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
.dijitTooltipAbove {
|
||||
/* leave room for arrow below content */
|
||||
padding-bottom: 13px;
|
||||
padding-left: 3px;
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
.dijitTooltipContainer {
|
||||
/* the part with the text */
|
||||
background-color: #fff;
|
||||
background-image: -moz-linear-gradient(bottom, rgba(240, 240, 240, 0.1) 0px, var(--weiss)fff 10px);
|
||||
background-image: -webkit-linear-gradient(bottom, rgba(240, 240, 240, 0.1) 0px, var(--weiss)fff 10px);
|
||||
background-image: -o-linear-gradient(bottom, rgba(240, 240, 240, 0.1) 0px, var(--weiss)fff 10px);
|
||||
background-image: linear-gradient(bottom, rgba(240, 240, 240, 0.1) 0px, var(--weiss)fff 10px);
|
||||
background-position: bottom;
|
||||
border: 1px solid #a6a6a6;
|
||||
padding: 6px 8px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
|
||||
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
|
||||
font-size: 1em;
|
||||
line-height: 1.5em;
|
||||
color: var(--schwarz);
|
||||
}
|
||||
|
||||
.dijitTooltipConnector {
|
||||
/* the arrow piece */
|
||||
border: 0;
|
||||
z-index: 2;
|
||||
background-image: url("images/tooltip.png");
|
||||
background-repeat: no-repeat;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.dj_ie6 .dijitTooltipConnector {
|
||||
background-image: url("images/tooltip8bit.png");
|
||||
}
|
||||
|
||||
.dijitTooltipBelow .dijitTooltipConnector {
|
||||
/* the arrow piece for tooltips below an element */
|
||||
top: 0;
|
||||
left: 3px;
|
||||
background-position: -31px 0;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.dijitTooltipAbove .dijitTooltipConnector {
|
||||
/* the arrow piece for tooltips above an element */
|
||||
bottom: 0;
|
||||
left: 3px;
|
||||
background-position: -15px 0;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.dj_ie6 .dijitTooltipAbove .dijitTooltipConnector,
|
||||
.dj_ie7 .dijitTooltipAbove .dijitTooltipConnector {
|
||||
bottom: -1px;
|
||||
}
|
||||
|
||||
.dijitTooltipABRight .dijitTooltipConnector {
|
||||
/* above or below tooltip, but the arrow appears on the right,
|
||||
and the right edges of target and tooltip are aligned rather than the left.
|
||||
Override above rules for .dijitTooltipBelow, .dijitTooltipAbove */
|
||||
left: auto;
|
||||
right: 3px;
|
||||
}
|
||||
|
||||
.dijitTooltipLeft {
|
||||
padding-right: 14px;
|
||||
}
|
||||
|
||||
.dijitTooltipLeft .dijitTooltipConnector {
|
||||
/* the arrow piece for tooltips to the left of an element, bottom borders aligned */
|
||||
right: 0;
|
||||
background-position: 0 0;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.dijitTooltipRight {
|
||||
padding-left: 14px;
|
||||
}
|
||||
|
||||
.dijitTooltipRight .dijitTooltipConnector {
|
||||
/* the arrow piece for tooltips to the right of an element, bottom borders aligned */
|
||||
left: 0;
|
||||
background-position: -48px 0;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
PURE
|
||||
******************************************************/
|
||||
.nutzwert-table {
|
||||
/* Remove spacing between table cells (from Normalize.css) */
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
empty-cells: show;
|
||||
color: var(--main-color);
|
||||
background-color: var(--weiss);
|
||||
border: 1px solid var(--schwarz);
|
||||
margin: 1rem;
|
||||
}
|
||||
|
||||
.nutzwert-td {
|
||||
border-left: 1px solid var(--schwarz);
|
||||
border-bottom: 1px solid var(--schwarz);
|
||||
color: var(--schwarz) !important;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
padding: 1rem 3rem;
|
||||
}
|
||||
|
||||
.download_button {
|
||||
width: 220px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#menu_textart_dropdown tr {
|
||||
border-bottom: 1px solid #ccc;
|
||||
border-right: 1px solid #ccc;
|
||||
}
|
||||
|
||||
#menu_textart_dropdown td {
|
||||
padding: 5px !important;
|
||||
}
|
||||
@@ -0,0 +1,564 @@
|
||||
html,
|
||||
body {
|
||||
background: #fff;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
a,
|
||||
a:link {
|
||||
text-decoration: none;
|
||||
color: #4997cf;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
text-decoration: none;
|
||||
color: #c6daeb;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
color: #F00;
|
||||
}
|
||||
|
||||
a:active {
|
||||
text-decoration: underline;
|
||||
color: #F00;
|
||||
}
|
||||
|
||||
.on {
|
||||
color: #25628d;
|
||||
}
|
||||
|
||||
.off {
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.dijitMenuPassive .dijitMenuItemHover,
|
||||
.dijitMenuItemSelected {
|
||||
cursor: pointer;
|
||||
background: #c6daeb;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#dd_topmenu,
|
||||
#dd_topmenu2 {
|
||||
background-color: #DDDDDD;
|
||||
}
|
||||
|
||||
#dialog_base {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
#cp_base_left .dgrid-row:hover {
|
||||
cursor: pointer;
|
||||
background: #c6daeb;
|
||||
}
|
||||
|
||||
.salam .dijitInputInner {
|
||||
color: #444;
|
||||
background-color: #eee;
|
||||
}
|
||||
.dijitToolbarSeparator {
|
||||
width: 1px;
|
||||
border-left:1px solid #000;
|
||||
}
|
||||
/******************************************************
|
||||
GENERAL
|
||||
******************************************************/
|
||||
.fa,
|
||||
.far {
|
||||
text-shadow: 0 2px 2px #aaa;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
WIDGETS DIJIT
|
||||
******************************************************/
|
||||
.dijitDialogUnderlay {
|
||||
background: #369;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.dijitDialog {
|
||||
background: #fff;
|
||||
border: 1px solid #DDDDDD;
|
||||
}
|
||||
|
||||
.dijitSelectMenu {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.dijitTabHover,
|
||||
.dijitButtonHover,
|
||||
.dijitDialogPaneActionBar .dijitButtonNode:hover {
|
||||
background: #c6daeb;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dijitMenuBar {
|
||||
padding-left: 3px;
|
||||
background-color: #dedede;
|
||||
}
|
||||
|
||||
#cp_base_top_title {
|
||||
background-color: transparent;
|
||||
color: #4997cf;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
SELECTED!
|
||||
******************************************************/
|
||||
/* dijitTabInner dijitTabContent dijitTab dijitTabChecked dijitChecked dijitTabFocused dijitTabCheckedFocused dijitCheckedFocused dijitFocused */
|
||||
/* .salam .ui-state-active */
|
||||
.dijitTabChecked,
|
||||
.dgrid-selected {
|
||||
background-color: #c6daeb !important;
|
||||
/* color: #fff; */
|
||||
/* -moz-box-shadow: inset 0 0 0 1px #4997cf;
|
||||
-webkit-box-shadow: inset 0 0 0 1px #4997cf;
|
||||
box-shadow: inset 0 0 0 1px #4997cf; */
|
||||
}
|
||||
|
||||
#tab_projekte_aktive_center_tablist {
|
||||
background: #ebf3fa;
|
||||
}
|
||||
|
||||
.ui-state-active .far,
|
||||
.ui-state-active .fa,
|
||||
.salam .dijitMenuItemSelected .fa,
|
||||
.salam .dijitMenuItemSelected .far,
|
||||
.salam .dijitTabChecked .fa,
|
||||
.salam .dijitTabChecked .far,
|
||||
.dgrid-selected .far .dgrid-selected .fa {
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
TABS
|
||||
******************************************************/
|
||||
.dijitTabContainerBottom-container,
|
||||
.dijitTabContainerTop-container,
|
||||
.dijitTabContainerLeft-container,
|
||||
.dijitTabContainerRight-container {
|
||||
border-color: #dedede;
|
||||
}
|
||||
|
||||
/* .dijitTabContainerLeft-tabs,
|
||||
.dijitMenuTable,
|
||||
#dd_topmenu, #dd_topmenu2,
|
||||
#cp_base_top, #cp_base_left,
|
||||
#cp_base_right, #cp_base_submenu_left,
|
||||
#cp_base_submenu_center,
|
||||
#cp_base_submenu_right,
|
||||
#cp_base_topmenu_left,
|
||||
#cp_base_topmenu_center,
|
||||
#cp_base_topmenu_right {
|
||||
background-color: #efefef;
|
||||
} */
|
||||
#methoden_filter_popup_dropdown {
|
||||
border: 1px #c6daeb solid;
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
GRIDS
|
||||
******************************************************/
|
||||
.dgrid-row {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dgrid-row-even {
|
||||
background-color: #efefef;
|
||||
}
|
||||
|
||||
.dgrid-row-odd {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.dgrid-row-even:hover {
|
||||
background: #efefef;
|
||||
}
|
||||
|
||||
.dgrid-row-odd:hover {
|
||||
background: #efefef;
|
||||
}
|
||||
|
||||
.salam .dgrid-cell:hover {
|
||||
cursor: pointer;
|
||||
background: #c6daeb;
|
||||
}
|
||||
|
||||
.dgrid-header {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.dgrid-header,
|
||||
.dgrid-header-row,
|
||||
.dgrid-footer {
|
||||
background-color: #dedede;
|
||||
}
|
||||
|
||||
.dgrid-hider-menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dgrid-header .dojoDndItemBefore {
|
||||
border-left: 2px dotted #000 !important;
|
||||
}
|
||||
|
||||
.dgrid-header .dojoDndItemAfter {
|
||||
border-right: 2px dotted #000 !important;
|
||||
}
|
||||
|
||||
.dgrid-column-resizer {
|
||||
cursor: col-resize;
|
||||
position: absolute;
|
||||
width: 2px;
|
||||
background-color: #666;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.dgrid-pagination .dgrid-page-disabled {
|
||||
color: #aaa;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.dgrid-pagination {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.dgrid-navigation {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
SCROLLBARE DESIGN CHROME
|
||||
******************************************************/
|
||||
/* .dgrid-scroller::-webkit-scrollbar {
|
||||
background: #ddd;
|
||||
}
|
||||
|
||||
.dgrid-scroller::-webkit-scrollbar-thumb {
|
||||
background: #ddd;
|
||||
}
|
||||
|
||||
.dgrid-scroller::-webkit-scrollbar {
|
||||
background: #ddd;
|
||||
}
|
||||
|
||||
.dgrid-scroller::-webkit-scrollbar-button {
|
||||
background: #ddd;
|
||||
} */
|
||||
/******************************************************
|
||||
BG
|
||||
******************************************************/
|
||||
|
||||
#topmenu_left,
|
||||
#topmenu_center,
|
||||
#topmenu_right,
|
||||
#menu_projekte,
|
||||
#cp_base_center_tablist_toggle1 {
|
||||
/* background: #dedede; */
|
||||
background-color: #dedede;
|
||||
}
|
||||
|
||||
.dgrid-header-row {
|
||||
background-color: #DDDDDD !important;
|
||||
right: 0 !important;
|
||||
}
|
||||
|
||||
.dgrid-header-row {
|
||||
background-color: #c6daeb !important;
|
||||
right: 0 !important;
|
||||
}
|
||||
|
||||
#cp_auftraggeber_top {
|
||||
background-color: #DDDDDD !important;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
Dialog
|
||||
******************************************************/
|
||||
.salam .dijitDialogUnderlay {
|
||||
background: #c6daeb;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
Tooltip
|
||||
******************************************************/
|
||||
/* Tooltip and TooltipDialog */
|
||||
.salam .dijitTooltip,
|
||||
.salam .dijitTooltipDialog {
|
||||
/* the outermost dom node, holding the connector and container */
|
||||
background: transparent;
|
||||
/* make the area on the sides of the arrow transparent */
|
||||
}
|
||||
|
||||
.dijitTooltipBelow {
|
||||
/* leave room for arrow above content */
|
||||
padding-top: 13px;
|
||||
padding-left: 3px;
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
.dijitTooltipAbove {
|
||||
/* leave room for arrow below content */
|
||||
padding-bottom: 13px;
|
||||
padding-left: 3px;
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
.salam .dijitTooltipContainer {
|
||||
/* the part with the text */
|
||||
background-color: #ffffff;
|
||||
background-image: -moz-linear-gradient(bottom, rgba(240, 240, 240, 0.1) 0px, #ffffff 10px);
|
||||
background-image: -webkit-linear-gradient(bottom, rgba(240, 240, 240, 0.1) 0px, #ffffff 10px);
|
||||
background-image: -o-linear-gradient(bottom, rgba(240, 240, 240, 0.1) 0px, #ffffff 10px);
|
||||
background-image: linear-gradient(bottom, rgba(240, 240, 240, 0.1) 0px, #ffffff 10px);
|
||||
background-position: bottom;
|
||||
border: 1px solid #a6a6a6;
|
||||
padding: 6px 8px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
|
||||
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
|
||||
font-size: 1em;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.salam .dijitTooltipConnector {
|
||||
/* the arrow piece */
|
||||
border: 0;
|
||||
z-index: 2;
|
||||
background-image: url("../JavaScript/dijit/themes/salam/images/tooltip.png");
|
||||
background-repeat: no-repeat;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.dj_ie6 .salam .dijitTooltipConnector {
|
||||
background-image: url("images/tooltip8bit.png");
|
||||
}
|
||||
|
||||
.salam .dijitTooltipBelow .dijitTooltipConnector {
|
||||
/* the arrow piece for tooltips below an element */
|
||||
top: 0;
|
||||
left: 3px;
|
||||
background-position: -31px 0;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.salam .dijitTooltipAbove .dijitTooltipConnector {
|
||||
/* the arrow piece for tooltips above an element */
|
||||
bottom: 0;
|
||||
left: 3px;
|
||||
background-position: -15px 0;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.dj_ie7 .salam .dijitTooltipAbove .dijitTooltipConnector,
|
||||
.dj_ie6 .salam .dijitTooltipAbove .dijitTooltipConnector {
|
||||
bottom: -1px;
|
||||
}
|
||||
|
||||
.salam .dijitTooltipABRight .dijitTooltipConnector {
|
||||
/* above or below tooltip, but the arrow appears on the right,
|
||||
and the right edges of target and tooltip are aligned rather than the left.
|
||||
Override above rules for .dijitTooltipBelow, .dijitTooltipAbove */
|
||||
left: auto;
|
||||
right: 3px;
|
||||
}
|
||||
|
||||
.salam .dijitTooltipLeft {
|
||||
padding-right: 14px;
|
||||
}
|
||||
|
||||
.salam .dijitTooltipLeft .dijitTooltipConnector {
|
||||
/* the arrow piece for tooltips to the left of an element, bottom borders aligned */
|
||||
right: 0;
|
||||
background-position: 0 0;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.salam .dijitTooltipRight {
|
||||
padding-left: 14px;
|
||||
}
|
||||
|
||||
.salam .dijitTooltipRight .dijitTooltipConnector {
|
||||
/* the arrow piece for tooltips to the right of an element, bottom borders aligned */
|
||||
left: 0;
|
||||
background-position: -48px 0;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
}
|
||||
/******************************************************
|
||||
DIJIT
|
||||
******************************************************/
|
||||
.dijitToggleButton,
|
||||
.dijitButton,
|
||||
.dijitDropDownButton,
|
||||
.dijitComboButton {
|
||||
margin: 0;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.dijitValidationTextBoxError input.dijitValidationInner,
|
||||
.dijitSelect input,
|
||||
.dijitTextBox input.dijitArrowButtonInner {
|
||||
margin: 0;
|
||||
background-color: #f00;
|
||||
}
|
||||
|
||||
.dijitEditor {
|
||||
background-color: #fff;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.dijitValidationTextBox,
|
||||
.dijitTextBox {
|
||||
margin: 2px 1px;
|
||||
padding: 2px;
|
||||
width: 165px;
|
||||
}
|
||||
|
||||
.salam .dijitMenuBar .dijitTextBox {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.dijitDialog {
|
||||
overflow: hidden;
|
||||
padding: 25px;
|
||||
}
|
||||
|
||||
.dijitButtonNode {
|
||||
margin: 1px;
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.dijitToolbar .dijitToggleButton,
|
||||
.dijitToolbar .dijitButton,
|
||||
.dijitToolbar .dijitDropDownButton,
|
||||
.dijitToolbar .dijitComboButton {
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
.dijitDialogTitle {
|
||||
font-size: 1.8em;
|
||||
font-weight: bold;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
display: block;
|
||||
color: #4997cf;
|
||||
}
|
||||
|
||||
.dijitMenuTable {
|
||||
min-width: 120px !important;
|
||||
max-width: 200px !important;
|
||||
top: 0 !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/*.nuh .dgrid-selected.ui-state-active {*/
|
||||
/******************************************************
|
||||
WIDGETS
|
||||
******************************************************/
|
||||
#widget_SearchBox1 .dijitPlaceHolder,
|
||||
#widget_SearchBox2 .dijitPlaceHolder,
|
||||
#widget_SearchBox3 .dijitPlaceHolder,
|
||||
#widget_SearchBox4 .dijitPlaceHolder,
|
||||
#widget_SearchBox5 .dijitPlaceHolder,
|
||||
#widget_SearchBox6 .dijitPlaceHolder,
|
||||
#widget_SearchBox7 .dijitPlaceHolder,
|
||||
#widget_SearchBox8 .dijitPlaceHolder,
|
||||
#widget_SearchBox9 .dijitPlaceHolder,
|
||||
#widget_SearchBox10 .dijitPlaceHolder {
|
||||
background-image: url("../Images/lupe-black.png");
|
||||
background-position: 145px center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 16px auto;
|
||||
display: block;
|
||||
text-align: left;
|
||||
width: 159px;
|
||||
padding: 2px;
|
||||
border: 1px solid #aaa;
|
||||
color: #aaa;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
#SearchBox1,
|
||||
#SearchBox2,
|
||||
#SearchBox3,
|
||||
#SearchBox4,
|
||||
#SearchBox5,
|
||||
#SearchBox6,
|
||||
#SearchBox7,
|
||||
#SearchBox8,
|
||||
#SearchBox9,
|
||||
#SearchBox10 {
|
||||
line-height: 18px;
|
||||
height: 20px;
|
||||
text-indent: 3px;
|
||||
border: 1px solid #4997cf;
|
||||
}
|
||||
|
||||
#menu_projekte_active_popup {
|
||||
width: 178px;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
TAB
|
||||
******************************************************/
|
||||
/* .dijitMenu {
|
||||
border: 0;
|
||||
} */
|
||||
.dijitTab .tabLabel,
|
||||
.dijitMenuItem,
|
||||
.dijitMenuItemLabel {
|
||||
padding-top: 0.3em;
|
||||
padding-right: 0.7em;
|
||||
padding-bottom: 0.4em;
|
||||
padding-left: 0.7em;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dijitTabContainerLeft-tabs .fa-2x {
|
||||
font-size: 1.6em;
|
||||
}
|
||||
|
||||
.dijitButtonContents {
|
||||
padding-top: 0.3em;
|
||||
padding-right: 0.7em;
|
||||
padding-bottom: 0.3em;
|
||||
padding-left: 0.7em;
|
||||
}
|
||||
|
||||
.dijitTabContainerBottom-container,
|
||||
.dijitTabContainerTop-container,
|
||||
.dijitTabContainerLeft-container,
|
||||
.dijitTabContainerRight-container {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.dijitTabContainerTop-tabs {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.dijitTabContainerTop-tabs .dijitTab {
|
||||
left: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dijitTabContainerLeft-tabs .dijitTab {
|
||||
left: 0;
|
||||
width: 300px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dijitEditorIcon {
|
||||
margin: 1px;
|
||||
}
|
||||
@@ -0,0 +1,528 @@
|
||||
#!/usr/bin/php
|
||||
<?php
|
||||
ini_set('memory_limit', '-1');
|
||||
require 'libs/Medoo.php';
|
||||
require 'libs/forceutf8-master/src/ForceUTF8/Encoding.php';
|
||||
use ForceUTF8\Encoding;
|
||||
use Medoo\Medoo;
|
||||
|
||||
// OLD
|
||||
$DB_OLD = new Medoo([
|
||||
'database_type' => 'mysql',
|
||||
'database_name' => 'gutachten',
|
||||
'server' => '116.203.228.129',
|
||||
'username' => 'root',
|
||||
'password' => 'salam',
|
||||
]);
|
||||
|
||||
// NEW DATA
|
||||
$DB_NEW = new Medoo([
|
||||
'database_type' => 'mysql',
|
||||
'database_name' => 'gutachten_t3',
|
||||
'server' => '127.0.0.1',
|
||||
'username' => 'root',
|
||||
'password' => 'Salam0815!',
|
||||
'charset' => 'utf8',
|
||||
]);
|
||||
|
||||
function fixUtf8($string)
|
||||
{
|
||||
return Encoding::toUTF8($string, Encoding::ICONV_TRANSLIT);
|
||||
}
|
||||
|
||||
$IMPORT = '';
|
||||
$_jobs = ['', 'all', 'allgemein', 'auftraggeber', 'gutachter', 'download', 'freigabe', 'help', 'orientierung', 'projekte', 'platzhalter', 'basis', 'generell'];
|
||||
|
||||
foreach ($_jobs as $key => $value) {
|
||||
if (in_array($value, $argv)) {
|
||||
$IMPORT = $value;
|
||||
}
|
||||
}
|
||||
|
||||
if ('' == $IMPORT or 'This Info' == $IMPORT) {
|
||||
echo "\n\nOPTIONEN";
|
||||
echo "\n----------------------------------------\n";
|
||||
foreach ($_jobs as $key => $value) {
|
||||
if ($key > 0) {
|
||||
echo "var: $key\t:\t$value\n";
|
||||
}
|
||||
}
|
||||
echo "----------------------------------------\n\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
echo "\n----------------------------------------\n";
|
||||
echo 'IMPORT: '.$IMPORT."\n";
|
||||
echo "----------------------------------------\n\n";
|
||||
|
||||
$usermap = [];
|
||||
$usermap['Hermann Telser'] = 1;
|
||||
$usermap['Marie Rezac'] = 2;
|
||||
$usermap['Marie Rezac (Kopie)'] = 2;
|
||||
$usermap['Christoph Aschaber'] = 3;
|
||||
$usermap['Christoph Aschaber (Kopie)'] = 3;
|
||||
$usermap['Claudia'] = 4;
|
||||
$usermap['Claudia (Kopie)'] = 4;
|
||||
$usermap['Elisabeth Mair am Tinkhof'] = 5;
|
||||
$usermap['Elisabeth Mair am Tinkhof (Kopie)'] = 5;
|
||||
$usermap['Hanno Vogl-Fernheim'] = 6;
|
||||
$usermap['Hanno Vogl-Fernheim (Kopie)'] = 6;
|
||||
$usermap['laszlo'] = 7;
|
||||
$usermap['laszlo (Kopie)'] = 7;
|
||||
$usermap['falkner'] = 8;
|
||||
$usermap['Oliver Hosp'] = 9;
|
||||
$usermap['Evelyne Gerber'] = 10;
|
||||
$usermap['Evelyne Gerber (Kopie)'] = 10;
|
||||
|
||||
/************************************************************
|
||||
Table von Hand kopiert:
|
||||
|
||||
tx_gutachten_standards
|
||||
tx_gutachten_textart
|
||||
tx_gutachten_raumart
|
||||
|
||||
************************************************************/
|
||||
|
||||
// Gutachten Allgemein
|
||||
|
||||
$table_old = 'tt_allgemein';
|
||||
$table_new = 'tx_gutachten_allgemein';
|
||||
if ('all' == $IMPORT or 'allgemein' == $IMPORT) {
|
||||
$arr = $DB_OLD->select($table_old, '*');
|
||||
debug_old(__LINE__);
|
||||
$DB_NEW->query("truncate $table_new");
|
||||
debug_new(__LINE__);
|
||||
foreach ($arr as $key => $value) {
|
||||
$insert_array = [];
|
||||
$insert_array['id'] = $value['tt_allgemein_id'];
|
||||
$insert_array['timestamp'] = $value['timestamp'];
|
||||
$insert_array['pid'] = $value['pid'];
|
||||
$insert_array['uid'] = $usermap[$value['ersteller']];
|
||||
$insert_array['geschoss'] = fixUtf8($value['geschoss']);
|
||||
$insert_array['typ'] = fixUtf8($value['typ']);
|
||||
$insert_array['qm'] = $value['qm'];
|
||||
$DB_NEW->insert($table_new, $insert_array);
|
||||
if (0 == $key % 100) {
|
||||
echo '*';
|
||||
}
|
||||
// debug_new(__line__);
|
||||
}
|
||||
++$key;
|
||||
note("IMPORT from $table_old INTO $table_new".PHP_EOL."$key Rows");
|
||||
}
|
||||
|
||||
// Auftraggeber
|
||||
|
||||
$table_old = 'auftraggeber';
|
||||
$table_new = 'tx_gutachten_auftraggeber';
|
||||
if ('all' == $IMPORT or 'auftraggeber' == $IMPORT) {
|
||||
$arr = $DB_OLD->select($table_old, '*');
|
||||
debug_old(__LINE__);
|
||||
$DB_NEW->query("truncate $table_new");
|
||||
debug_new(__LINE__);
|
||||
foreach ($arr as $key => $value) {
|
||||
$insert_array = [];
|
||||
$insert_array['id'] = $value['auftraggeber_id'];
|
||||
$insert_array['kennung'] = fixUtf8($value['kennung']);
|
||||
$insert_array['kopf'] = fixUtf8($value['kopf']);
|
||||
$insert_array['txt'] = fixUtf8($value['txt']);
|
||||
$insert_array['kontaktperson'] = fixUtf8($value['kontaktperson']);
|
||||
$insert_array['email'] = fixUtf8($value['email']);
|
||||
$insert_array['telefon'] = fixUtf8($value['telefon']);
|
||||
$insert_array['timestamp'] = $value['timestamp'];
|
||||
$DB_NEW->insert($table_new, $insert_array);
|
||||
echo '*';
|
||||
}
|
||||
++$key;
|
||||
note("IMPORT from $table_old INTO $table_new".PHP_EOL."$key Rows");
|
||||
}
|
||||
|
||||
// Download Log
|
||||
|
||||
$table_old = 'downloadlog';
|
||||
$table_new = 'tx_gutachten_downloadlog';
|
||||
if ('all' == $IMPORT or 'download' == $IMPORT) {
|
||||
$arr = $DB_OLD->select($table_old, '*');
|
||||
debug_old(__LINE__);
|
||||
$DB_NEW->query("truncate $table_new");
|
||||
debug_new(__LINE__);
|
||||
foreach ($arr as $key => $value) {
|
||||
$insert_array = [];
|
||||
$insert_array['id'] = $value['id'];
|
||||
$insert_array['pid'] = $value['pid'];
|
||||
$insert_array['uid'] = $value['user_id'];
|
||||
$insert_array['art'] = fixUtf8($value['art']);
|
||||
$insert_array['timestamp'] = $value['timestamp'];
|
||||
|
||||
$DB_NEW->insert($table_new, $insert_array);
|
||||
|
||||
if (0 == $key % 100) {
|
||||
echo '*';
|
||||
}
|
||||
}
|
||||
++$key;
|
||||
note("IMPORT from $table_old INTO $table_new".PHP_EOL."$key Rows");
|
||||
}
|
||||
|
||||
// Freigaben
|
||||
// $_user_map = [];
|
||||
// $_user_map[2] = 1;
|
||||
// $_user_map[4] = 2;
|
||||
// $_user_map[5] = 2;
|
||||
// $_user_map[6] = 3;
|
||||
// $_user_map[7] = 3;
|
||||
// $_user_map[8] = 2;
|
||||
// $_user_map[9] = 9;
|
||||
// $_user_map[10] = 2;
|
||||
// $_user_map[11] = 2;
|
||||
// $_user_map[13] = 6;
|
||||
// $_user_map[15] = 5;
|
||||
// $_user_map[16] = 10;
|
||||
//
|
||||
// $table_old = 'freigabe';
|
||||
// $table_new = 'tx_gutachten_freigabe';
|
||||
// if ('all' == $IMPORT or 'freigabe' == $IMPORT) {
|
||||
// $arr = $DB_OLD->select($table_old, '*');
|
||||
// debug_old(__LINE__);
|
||||
// $DB_NEW->query("truncate $table_new");
|
||||
// debug_new(__LINE__);
|
||||
// foreach ($arr as $key => $value) {
|
||||
// $insert_array = [];
|
||||
// $insert_array['id'] = $value['id'];
|
||||
// $insert_array['pid'] = $value['pid'];
|
||||
// $insert_array['uid'] = $_user_map[$value['uid']];
|
||||
// $insert_array['onoff'] = $value['onoff'];
|
||||
// $insert_array['status'] = $value['status'];
|
||||
// $DB_NEW->insert($table_new, $insert_array);
|
||||
// if (0 == $key % 100) {
|
||||
// echo '*';
|
||||
// }
|
||||
// }
|
||||
// ++$key;
|
||||
// note("IMPORT from $table_old INTO $table_new".PHP_EOL."$key Rows");
|
||||
// }
|
||||
|
||||
// Freigabe new
|
||||
if ('all' == $IMPORT or 'freigabe' == $IMPORT) {
|
||||
$arr = $DB_OLD->select('freigabe', '*');
|
||||
debug_old(__LINE__);
|
||||
echo PHP_EOL.PHP_EOL;
|
||||
foreach ($arr as $key => $value) {
|
||||
$DB_NEW->update('tx_gutachten_projekte', ['status' => $value['status']], ['id' => $value['pid']]);
|
||||
// debug_new(__LINE__);
|
||||
if (0 == $key % 100) {
|
||||
echo '*';
|
||||
}
|
||||
}
|
||||
echo PHP_EOL.PHP_EOL.PHP_EOL;
|
||||
}
|
||||
|
||||
// Gutachter
|
||||
|
||||
$table_old = 'gutachter';
|
||||
$table_new = 'tx_gutachten_gutachter';
|
||||
if ('all' == $IMPORT or 'gutachter' == $IMPORT) {
|
||||
$arr = $DB_OLD->select($table_old, '*');
|
||||
debug_old(__LINE__);
|
||||
$DB_NEW->query("truncate $table_new");
|
||||
debug_new(__LINE__);
|
||||
foreach ($arr as $key => $value) {
|
||||
$insert_array = [];
|
||||
$insert_array['id'] = $value['gutachter_id'];
|
||||
$insert_array['kennung'] = fixUtf8($value['kennung']);
|
||||
$insert_array['kopf'] = fixUtf8($value['kopf']);
|
||||
$insert_array['txt'] = fixUtf8($value['txt']);
|
||||
$insert_array['kontaktperson'] = fixUtf8($value['kontaktperson']);
|
||||
$insert_array['email'] = fixUtf8($value['email']);
|
||||
$insert_array['telefon'] = fixUtf8($value['telefon']);
|
||||
$insert_array['timestamp'] = $value['timestamp'];
|
||||
$DB_NEW->insert($table_new, $insert_array);
|
||||
// debug_new(__LINE__);
|
||||
echo '*';
|
||||
}
|
||||
++$key;
|
||||
note("IMPORT from $table_old INTO $table_new".PHP_EOL."$key Rows");
|
||||
}
|
||||
// Help
|
||||
$table_old = 'tt_help';
|
||||
$table_new = 'tx_gutachten_help';
|
||||
if ('all' == $IMPORT or 'help' == $IMPORT) {
|
||||
$arr = $DB_OLD->select($table_old, '*');
|
||||
debug_old(__LINE__);
|
||||
$DB_NEW->query("truncate $table_new");
|
||||
debug_new(__LINE__);
|
||||
foreach ($arr as $key => $value) {
|
||||
$insert_array = [];
|
||||
$insert_array['id'] = $value['tt_help_id'];
|
||||
$insert_array['pid'] = $value['pid'];
|
||||
$insert_array['uid'] = $usermap[$value['ersteller']];
|
||||
$insert_array['colid'] = $value['colid'];
|
||||
$insert_array['coltitel'] = fixUtf8($value['coltitel']);
|
||||
$insert_array['timestamp'] = $value['timestamp'];
|
||||
$DB_NEW->insert($table_new, $insert_array);
|
||||
if (0 == $key % 100) {
|
||||
echo '*';
|
||||
}
|
||||
}
|
||||
++$key;
|
||||
note("IMPORT from $table_old INTO $table_new".PHP_EOL."$key Rows");
|
||||
}
|
||||
|
||||
// Table info missing -> obsolet
|
||||
|
||||
// Orientierung
|
||||
$table_old = 'tt_orientierung';
|
||||
$table_new = 'tx_gutachten_orientierung';
|
||||
if ('all' == $IMPORT or 'orientierung' == $IMPORT) {
|
||||
$arr = $DB_OLD->select($table_old, '*');
|
||||
debug_old(__LINE__);
|
||||
$DB_NEW->query("truncate $table_new");
|
||||
debug_new(__LINE__);
|
||||
foreach ($arr as $key => $value) {
|
||||
$insert_array = [];
|
||||
$insert_array['id'] = $value['tt_orientierung_id'];
|
||||
$insert_array['orientierung'] = fixUtf8($value['orientierung']);
|
||||
$insert_array['sortierung'] = $value['sortierung'];
|
||||
$DB_NEW->insert($table_new, $insert_array);
|
||||
echo '*';
|
||||
}
|
||||
++$key;
|
||||
note("IMPORT from $table_old INTO $table_new".PHP_EOL."$key Rows");
|
||||
}
|
||||
|
||||
// Übersicht Projekte
|
||||
|
||||
$table_old = 'uebersicht';
|
||||
$table_new = 'tx_gutachten_projekte';
|
||||
if ('all' == $IMPORT or 'projekte' == $IMPORT) {
|
||||
$arr = $DB_OLD->select($table_old, '*');
|
||||
debug_old(__LINE__);
|
||||
$DB_NEW->query("truncate $table_new");
|
||||
debug_new(__LINE__);
|
||||
foreach ($arr as $key => $value) {
|
||||
$insert_array = [];
|
||||
$insert_array['id'] = $value['uebersicht_id'];
|
||||
$insert_array['uid'] = $usermap[$value['ersteller']] ?? 0;
|
||||
$insert_array['auftraggeber_id'] = $value['auftraggeber_id'];
|
||||
$insert_array['gutachter_id'] = $value['gutachter_id'];
|
||||
$insert_array['intname'] = fixUtf8($value['intname']);
|
||||
$insert_array['name'] = fixUtf8($value['name']);
|
||||
$insert_array['beschreibung'] = fixUtf8($value['beschreibung']);
|
||||
$insert_array['erstellung'] = fixUtf8($value['erstellung']);
|
||||
$insert_array['erstelldatum'] = fixUtf8($value['erstelldatum']);
|
||||
$insert_array['onoff'] = $value['onoff'];
|
||||
$insert_array['upload'] = $value['upload'];
|
||||
$insert_array['allgemeinupload'] = $value['allgemeinupload'];
|
||||
$insert_array['recalculate'] = $value['recalculate'];
|
||||
$insert_array['zuabTitel'] = fixUtf8($value['zuabTitel']);
|
||||
$insert_array['nwbTitel'] = fixUtf8($value['nwbTitel']);
|
||||
$insert_array['zustTitel'] = fixUtf8($value['zustTitel']);
|
||||
$insert_array['allgemTitel'] = fixUtf8($value['allgemTitel']);
|
||||
$insert_array['loggia_title'] = fixUtf8($value['loggia_title']);
|
||||
$insert_array['nwbStartSeite'] = $value['nwbStartSeite'];
|
||||
$insert_array['m1pP'] = $value['m1pP'];
|
||||
$insert_array['m5pP'] = $value['m5pP'];
|
||||
$insert_array['timestamp'] = $value['timestamp'];
|
||||
$DB_NEW->insert($table_new, $insert_array);
|
||||
echo '*';
|
||||
}
|
||||
++$key;
|
||||
note("IMPORT from $table_old INTO $table_new".PHP_EOL."$key Rows");
|
||||
}
|
||||
|
||||
// Platzhalter
|
||||
|
||||
$table_old = 'projekteplatzhalter';
|
||||
$table_new = 'tx_gutachten_projekteplatzhalter';
|
||||
if ('all' == $IMPORT or 'platzhalter' == $IMPORT) {
|
||||
$arr = $DB_OLD->select($table_old, '*');
|
||||
debug_old(__LINE__);
|
||||
$DB_NEW->query("truncate $table_new");
|
||||
debug_new(__LINE__);
|
||||
foreach ($arr as $key => $value) {
|
||||
$insert_array = [];
|
||||
$insert_array['id'] = $value['projekteplatzhalter_id'];
|
||||
$insert_array['pid'] = $value['pid'];
|
||||
$insert_array['uid'] = $usermap[$value['ersteller']] ?? 0;
|
||||
$insert_array['code'] = fixUtf8($value['code']);
|
||||
$insert_array['txt'] = fixUtf8($value['txt']);
|
||||
$insert_array['vorkommen'] = fixUtf8($value['vorkommen']);
|
||||
$insert_array['timestamp'] = $value['timestamp'];
|
||||
$DB_NEW->insert($table_new, $insert_array);
|
||||
if (0 == $key % 100) {
|
||||
echo '*';
|
||||
}
|
||||
}
|
||||
++$key;
|
||||
note("IMPORT from $table_old INTO $table_new".PHP_EOL."$key Rows");
|
||||
}
|
||||
|
||||
// Standards
|
||||
|
||||
$table_old = 'projektestandards';
|
||||
$table_new = 'tx_gutachten_projektestandards';
|
||||
if ('all' == $IMPORT or 'platzhalter' == $IMPORT) {
|
||||
$arr = $DB_OLD->select($table_old, '*');
|
||||
debug_old(__LINE__);
|
||||
$DB_NEW->query("truncate $table_new");
|
||||
debug_new(__LINE__);
|
||||
foreach ($arr as $key => $value) {
|
||||
$insert_array = [];
|
||||
$insert_array['id'] = $value['projektestandards_id'];
|
||||
$insert_array['pid'] = $value['pid'];
|
||||
$insert_array['pos'] = $value['pos'];
|
||||
$insert_array['uid'] = $usermap[$value['ersteller']] ?? 0;
|
||||
$insert_array['textart_id'] = $value['textart_id'];
|
||||
$insert_array['spalten'] = $value['spalten'];
|
||||
$insert_array['fontsize'] = $value['fontsize'];
|
||||
$insert_array['neueseite'] = $value['neueseite'];
|
||||
$insert_array['kennung'] = fixUtf8($value['kennung']);
|
||||
$insert_array['titel'] = fixUtf8($value['titel']);
|
||||
$insert_array['txt'] = fixUtf8($value['txt']);
|
||||
$insert_array['platzhalter'] = fixUtf8($value['platzhalter']);
|
||||
$insert_array['checksumm'] = $value['checksumm'];
|
||||
$insert_array['timestamp'] = $value['timestamp'];
|
||||
$DB_NEW->insert($table_new, $insert_array);
|
||||
if (0 == $key % 100) {
|
||||
echo '*';
|
||||
}
|
||||
}
|
||||
++$key;
|
||||
note("IMPORT from $table_old INTO $table_new".PHP_EOL."$key Rows");
|
||||
}
|
||||
|
||||
// Räume All
|
||||
$table_old = 'tt_raume_all';
|
||||
$table_new = 'tx_gutachten_raume_all';
|
||||
if ('all' == $IMPORT or 'alle' == $IMPORT) {
|
||||
$arr = $DB_OLD->select($table_old, '*');
|
||||
debug_old(__LINE__);
|
||||
$DB_NEW->query("truncate $table_new");
|
||||
debug_new(__LINE__);
|
||||
foreach ($arr as $key => $value) {
|
||||
$insert_array = [];
|
||||
$insert_array['id'] = $value['tt_raume_all_id'];
|
||||
$insert_array['tt_raume_basis_id'] = $value['tt_raume_basis_id'];
|
||||
$insert_array['tt_raumart_id'] = $value['tt_raumart_id'];
|
||||
$insert_array['pid'] = $value['pid'];
|
||||
$insert_array['geschoss'] = fixUtf8($value['geschoss']);
|
||||
$insert_array['raum'] = fixUtf8($value['raum']);
|
||||
$insert_array['factor'] = $value['factor'];
|
||||
$insert_array['qm'] = $value['qm'];
|
||||
$insert_array['NW'] = $value['NW'];
|
||||
$insert_array['NWungerundet'] = $value['NWungerundet'];
|
||||
$insert_array['NWm2'] = $value['NWm2'];
|
||||
$insert_array['uid'] = $usermap[$value['ersteller']] ?? 0;
|
||||
$insert_array['timestamp'] = $value['timestamp'];
|
||||
|
||||
$DB_NEW->insert($table_new, $insert_array);
|
||||
if (0 == $key % 1000) {
|
||||
echo '*';
|
||||
}
|
||||
}
|
||||
++$key;
|
||||
note("IMPORT from $table_old INTO $table_new".PHP_EOL."$key Rows");
|
||||
}
|
||||
|
||||
// Räume Basis
|
||||
$table_old = 'tt_raume_basis';
|
||||
$table_new = 'tx_gutachten_raume_basis';
|
||||
if ('all' == $IMPORT or 'basis' == $IMPORT) {
|
||||
$arr = $DB_OLD->select($table_old, '*');
|
||||
debug_old(__LINE__);
|
||||
$DB_NEW->query("truncate $table_new");
|
||||
debug_new(__LINE__);
|
||||
foreach ($arr as $key => $value) {
|
||||
$insert_array = [];
|
||||
$insert_array['id'] = $value['tt_raume_basis_id'];
|
||||
$insert_array['pid'] = $value['pid'];
|
||||
$insert_array['topNr'] = fixUtf8($value['topNr']);
|
||||
$insert_array['typ'] = fixUtf8($value['typ']);
|
||||
$insert_array['tt_orientierung_id'] = $value['tt_orientierung_id'];
|
||||
$insert_array['noDispInOrientierung'] = $value['noDispInOrientierung'];
|
||||
$insert_array['factor'] = $value['factor'];
|
||||
$insert_array['GNO'] = $value['GNO'];
|
||||
$insert_array['qmM1'] = $value['qmM1'];
|
||||
$insert_array['qmM1uM2bis'] = $value['qmM1uM2bis'];
|
||||
$insert_array['qmM1uM2'] = $value['qmM1uM2'];
|
||||
$insert_array['NWM1uM2'] = $value['NWM1uM2'];
|
||||
$insert_array['a'] = $value['a'];
|
||||
$insert_array['b'] = $value['b'];
|
||||
$insert_array['c'] = $value['c'];
|
||||
$insert_array['d'] = $value['d'];
|
||||
$insert_array['e'] = $value['e'];
|
||||
$insert_array['f'] = $value['f'];
|
||||
$insert_array['g'] = $value['g'];
|
||||
$insert_array['h'] = $value['h'];
|
||||
$insert_array['i'] = $value['i'];
|
||||
$insert_array['j'] = $value['j'];
|
||||
$insert_array['k'] = $value['k'];
|
||||
$insert_array['l'] = $value['l'];
|
||||
$insert_array['m'] = $value['m'];
|
||||
$insert_array['n'] = $value['n'];
|
||||
$insert_array['o'] = $value['o'];
|
||||
$insert_array['p'] = $value['p'];
|
||||
$insert_array['q'] = $value['q'];
|
||||
$insert_array['r'] = $value['r'];
|
||||
$insert_array['s'] = $value['s'];
|
||||
$insert_array['t'] = $value['t'];
|
||||
$insert_array['u'] = $value['u'];
|
||||
$insert_array['summe_az'] = $value['summe_az'];
|
||||
$insert_array['bewertung'] = $value['bewertung'];
|
||||
$insert_array['uid'] = $usermap[$value['ersteller']] ?? 0;
|
||||
$insert_array['notizen'] = fixUtf8($value['notizen']);
|
||||
$insert_array['timestamp'] = $value['timestamp'];
|
||||
$DB_NEW->insert($table_new, $insert_array);
|
||||
if (0 == $key % 100) {
|
||||
echo '*';
|
||||
}
|
||||
}
|
||||
++$key;
|
||||
note("IMPORT from $table_old INTO $table_new".PHP_EOL."$key Rows");
|
||||
}
|
||||
|
||||
// Platzhalter
|
||||
|
||||
$table_old = 'tt_raume_generell';
|
||||
$table_new = 'tx_gutachten_raume_generell';
|
||||
if ('all' == $IMPORT or 'generell' == $IMPORT) {
|
||||
$arr = $DB_OLD->select($table_old, '*');
|
||||
debug_old(__LINE__);
|
||||
$DB_NEW->query("truncate $table_new");
|
||||
debug_new(__LINE__);
|
||||
foreach ($arr as $key => $value) {
|
||||
$insert_array = [];
|
||||
$insert_array['id'] = $value['tt_raume_generell_id'];
|
||||
$insert_array['tt_raumart_id'] = $value['tt_raumart_id'];
|
||||
$insert_array['pid'] = $value['pid'];
|
||||
$insert_array['raum'] = fixUtf8($value['raum']);
|
||||
$insert_array['factor'] = $value['factor'];
|
||||
$insert_array['zunutzwert'] = $value['zunutzwert'];
|
||||
$insert_array['uid'] = $usermap[$value['ersteller']] ?? 0;
|
||||
$insert_array['timestamp'] = $value['timestamp'];
|
||||
$DB_NEW->insert($table_new, $insert_array);
|
||||
if (0 == $key % 100) {
|
||||
echo '*';
|
||||
}
|
||||
}
|
||||
++$key;
|
||||
note("IMPORT from $table_old INTO $table_new".PHP_EOL."$key Rows");
|
||||
}
|
||||
|
||||
// Functions
|
||||
function note($txt)
|
||||
{
|
||||
echo PHP_EOL.'---------------------------------------------------------------------'.PHP_EOL;
|
||||
echo $txt;
|
||||
echo PHP_EOL.'---------------------------------------------------------------------'.PHP_EOL;
|
||||
}
|
||||
function debug_old($line)
|
||||
{
|
||||
global $DB_OLD;
|
||||
echo PHP_EOL.$line.': '.str_replace('"', '', $DB_OLD->last());
|
||||
}
|
||||
function debug_new($line)
|
||||
{
|
||||
global $DB_NEW;
|
||||
echo PHP_EOL.$line.': '.str_replace('"', '', $DB_NEW->last()).PHP_EOL;
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
#!/usr/bin/php
|
||||
<?php
|
||||
ini_set('memory_limit', '-1');
|
||||
require "libs/Medoo.php";
|
||||
require "libs/forceutf8-master/src/ForceUTF8/Encoding.php";
|
||||
use Medoo\Medoo;
|
||||
use \ForceUTF8\Encoding;
|
||||
|
||||
|
||||
// NEW DATA
|
||||
$database = new Medoo([
|
||||
'database_type' => 'mysql',
|
||||
'database_name' => 'gutachten9_t3',
|
||||
'server' => '127.0.0.1',
|
||||
'username' => 'root',
|
||||
'password' => 'Salam0815!',
|
||||
'charset' => 'utf8',
|
||||
]);
|
||||
|
||||
|
||||
$marie_id = 2;
|
||||
|
||||
// SELECT *
|
||||
// FROM information_schema.tables
|
||||
// WHERE table_schema = 'yourdb'
|
||||
// AND table_name = 'testtable'
|
||||
// LIMIT 1;
|
||||
$arr = $database->select('tx_gutachten_freigabe_orig','*');
|
||||
if(!\count($arr)){
|
||||
|
||||
note("CREAT NEUE FREIGABE");
|
||||
|
||||
$database->exec("RENAME TABLE tx_gutachten_freigabe TO tx_gutachten_freigabe_orig");
|
||||
debug_sql(__line__);
|
||||
|
||||
$database->exec("CREATE TABLE `tx_gutachten_freigabe` (`id` int(11) NOT NULL AUTO_INCREMENT,`userid` int(11) NOT NULL,`projektid` int(11) NOT NULL, PRIMARY KEY (`id`)) ENGINE=InnoDB AUTO_INCREMENT=5017 DEFAULT CHARSET=utf8");
|
||||
debug_sql(__line__);
|
||||
|
||||
$arr = $database->select('tx_gutachten_freigabe_orig','*');
|
||||
foreach ($arr as $key => $value) {
|
||||
if($value['onoff'] == 'active'){
|
||||
$database->insert("tx_gutachten_freigabe",['userid' => $value['uid'], 'projektid' => $value['pid']]);
|
||||
debug_sql(__line__);
|
||||
}
|
||||
if($value['uid'] == $marie_id){
|
||||
$database->update("tx_gutachten_projekte",['status' => $value['status']], ['id' => $value['pid']]);
|
||||
debug_sql(__line__);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
note("DONE");
|
||||
exit;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function note($txt)
|
||||
{
|
||||
echo PHP_EOL . "---------------------------------------------------------------------" . PHP_EOL;
|
||||
echo $txt;
|
||||
echo PHP_EOL . "---------------------------------------------------------------------" . PHP_EOL;
|
||||
}
|
||||
function debug_sql($line)
|
||||
{
|
||||
global $database;
|
||||
note($line . ": " . str_replace('"', "", $database->last()));
|
||||
}
|
||||