Finish Integry_Impostazioni_AggiornamentoModulo
This commit is contained in:
@@ -513,7 +513,8 @@
|
||||
"jquery-uiDatepicker",
|
||||
"json-editor",
|
||||
"codemirror",
|
||||
"kendo"
|
||||
"kendo",
|
||||
"select2"
|
||||
],
|
||||
"requirePermission": true
|
||||
},
|
||||
|
||||
@@ -1,29 +1,34 @@
|
||||
<?php
|
||||
|
||||
class Impostazioni {
|
||||
|
||||
public static function _moduleDatasource($filter) {
|
||||
$Ret = self::getListDefaultQuery();
|
||||
if ($Ret->is_OK()) {
|
||||
$arr_query = $Ret->get_data();
|
||||
$ret = self::getListDefaultQuery();
|
||||
|
||||
if ($ret->is_OK()) {
|
||||
$arr_query = $ret->get_data();
|
||||
$retData = array(
|
||||
array("id" => "list-queries", "data" => $arr_query)
|
||||
array("id" => "list-queries", "data" => $arr_query),
|
||||
array("id" => "gestioni", "data" => self::getGestioni())
|
||||
);
|
||||
$Ret->set_data($retData);
|
||||
|
||||
$ret->set_data($retData);
|
||||
}
|
||||
return $Ret;
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
public static function getItems($gestName) {
|
||||
$Query = new Query;
|
||||
$Query->importSqlFile("list-impostazioni");
|
||||
$Query->importSqlFile("getGestSetups");
|
||||
|
||||
if (!self::is_administrator()) {
|
||||
$Query->where("flag_user_view", "S");
|
||||
}
|
||||
$Ret = $Query->where("gest_name", $gestName)->toRet()->execute();
|
||||
|
||||
if ($Ret->is_OK() && $gestName === "PVM") { // CREA CONTENITORI VUOTI PER I MODULI NON PRESENTI NELLA SETUP
|
||||
$retData = $Ret->get_data();
|
||||
$ret = $Query->where("gest_name", $gestName)->toRet()->execute();
|
||||
|
||||
if ($ret->is_OK() && $gestName === "PVM") { // CREA CONTENITORI VUOTI PER I MODULI NON PRESENTI NELLA SETUP
|
||||
$retData = $ret->get_data();
|
||||
|
||||
$arr_sections = array_map("strtoupper", array_unique(array_column($retData, "section")));
|
||||
$arr_moduli = array_map("strtoupper", PVM::getListIdModuli(false));
|
||||
@@ -33,17 +38,18 @@ class Impostazioni {
|
||||
$retData[] = array("section" => $diffSection);
|
||||
}
|
||||
|
||||
$Ret->set_data($retData);
|
||||
$ret->set_data($retData);
|
||||
}
|
||||
|
||||
return $Ret;
|
||||
return $ret;
|
||||
}
|
||||
|
||||
public static function updatePropValue($data) {
|
||||
$key = $data["key"];
|
||||
$Ret = self::checkProp($key);
|
||||
if ($Ret->is_OK()) {
|
||||
$item = $Ret->get_data();
|
||||
$ret = self::checkProp($key);
|
||||
|
||||
if ($ret->is_OK()) {
|
||||
$item = $ret->get_data();
|
||||
|
||||
$Entity = new EntityItem("stb_gest_setup");
|
||||
$Entity->set("gestName", $key["gest_name"])
|
||||
@@ -65,7 +71,7 @@ class Impostazioni {
|
||||
$Entity->delete();
|
||||
|
||||
} else {
|
||||
return $Ret;
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
} else if (isset($key["User_name"])) {
|
||||
@@ -74,10 +80,10 @@ class Impostazioni {
|
||||
->insert_or_update();
|
||||
}
|
||||
|
||||
$Ret = $Entity->send()->set_data(null);
|
||||
$ret = $Entity->send()->set_data(null);
|
||||
}
|
||||
|
||||
return $Ret;
|
||||
return $ret;
|
||||
}
|
||||
|
||||
public static function updateProperty($data) {
|
||||
@@ -199,81 +205,90 @@ class Impostazioni {
|
||||
}
|
||||
|
||||
public static function loadProperty($key) {
|
||||
$Query = new Query;
|
||||
$Query->importSqlFile("list-impostazioni")
|
||||
$query = new Query;
|
||||
$query->importSqlFile("getGestSetups")
|
||||
->where("gest_name", $key["gest_name"])
|
||||
->where("section", $key["section"])
|
||||
->where("key_section", $key["key_section"]);
|
||||
|
||||
if (!self::is_administrator()) {
|
||||
$Query->where("flag_user_view", "S");
|
||||
$query->where("flag_user_view", "S");
|
||||
}
|
||||
|
||||
$Ret = $Query->firstRow()->toRet()->execute();
|
||||
if ($Ret->is_OK()) {
|
||||
$item = $Ret->get_data();
|
||||
if (!is_null($item)) {
|
||||
$Ret = self::getListDefaultValues($item["query_default"]);
|
||||
$ret = $query->firstRow()->toRet()->execute();
|
||||
|
||||
if ($Ret->is_OK()) {
|
||||
$item["default_values"] = $Ret->get_data();
|
||||
if ($ret->is_OK()) {
|
||||
$item = $ret->get_data();
|
||||
|
||||
if (!is_null($item)) {
|
||||
$ret = self::getListDefaultValues($item["query_default"]);
|
||||
|
||||
if ($ret->is_OK()) {
|
||||
$item["default_values"] = $ret->get_data();
|
||||
}
|
||||
|
||||
$item["depo_values"] = null;
|
||||
$item["user_values"] = null;
|
||||
|
||||
if (\boolValue($item["flag_setup_depo"])) {
|
||||
$Ret = Impostazioni::getListDepositi();
|
||||
if ($Ret->is_OK()) {
|
||||
$listDepositi = $Ret->get_data();
|
||||
$ret = Impostazioni::getListDepositi();
|
||||
|
||||
if ($ret->is_OK()) {
|
||||
$listDepositi = $ret->get_data();
|
||||
} else {
|
||||
return $Ret;
|
||||
return $ret;
|
||||
}
|
||||
|
||||
$Query = new Query;
|
||||
$Query->select("CONVERT(TEXT, value) AS value", "cod_mdep")
|
||||
$query = new Query;
|
||||
$query->select("CONVERT(TEXT, value) AS value", "cod_mdep")
|
||||
->from("stb_gest_setup_depo")
|
||||
->where("gest_name", $key["gest_name"])
|
||||
->where("section", $key["section"])
|
||||
->where("key_section", $key["key_section"])
|
||||
->where("cod_mdep", array_column($listDepositi, "cod_mdep"));
|
||||
$Ret = $Query->toRet()->execute();
|
||||
if ($Ret->is_OK()) {
|
||||
$item["depo_values"] = $Ret->get_data();
|
||||
|
||||
$ret = $query->toRet()->execute();
|
||||
|
||||
if ($ret->is_OK()) {
|
||||
$item["depo_values"] = $ret->get_data();
|
||||
} else {
|
||||
return $Ret;
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
||||
if (\boolValue($item["flag_setup_user_web"])) {
|
||||
$Ret = Impostazioni::getListUtenti();
|
||||
if ($Ret->is_OK()) {
|
||||
$listUtenti = $Ret->get_data();
|
||||
$ret = Impostazioni::getListUtenti();
|
||||
|
||||
if ($ret->is_OK()) {
|
||||
$listUtenti = $ret->get_data();
|
||||
} else {
|
||||
return $Ret;
|
||||
return $ret;
|
||||
}
|
||||
|
||||
$Query = new Query;
|
||||
$Query->select("CONVERT(TEXT, value) AS value", "User_name")
|
||||
$query = new Query;
|
||||
$query->select("CONVERT(TEXT, value) AS value", "User_name")
|
||||
->from("wtb_gest_setup_user")
|
||||
->where("User_name", array_column($listUtenti, "User_name"))
|
||||
->where("section", $key["section"])
|
||||
->where("key_section", $key["key_section"]);
|
||||
$Ret = $Query->toRet()->execute();
|
||||
if ($Ret->is_OK()) {
|
||||
$item["user_values"] = $Ret->get_data();
|
||||
|
||||
$ret = $query->toRet()->execute();
|
||||
|
||||
if ($ret->is_OK()) {
|
||||
$item["user_values"] = $ret->get_data();
|
||||
} else {
|
||||
return $Ret;
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
||||
$Ret->set_data($item);
|
||||
$ret->set_data($item);
|
||||
|
||||
} else {
|
||||
$Ret->set_error("La proprietà non è valida");
|
||||
$ret->set_error("La proprietà non è valida");
|
||||
}
|
||||
}
|
||||
|
||||
return $Ret;
|
||||
return $ret;
|
||||
}
|
||||
|
||||
public static function getListDefaultQuery() {
|
||||
@@ -282,26 +297,36 @@ class Impostazioni {
|
||||
}
|
||||
|
||||
private static function checkProp($key) {
|
||||
$Ret = new Ret;
|
||||
if (in_array(strtoupper($key["gest_name"]), self::getListGestName())) {
|
||||
$ret = new Ret;
|
||||
|
||||
if (in_array(strtoupper($key["gest_name"]), self::getListGestName(true))) {
|
||||
return self::loadProperty($key);
|
||||
}
|
||||
return $Ret->set_error("Gestione non valida");
|
||||
|
||||
return $ret->set_error("Gestione non valida");
|
||||
}
|
||||
|
||||
private static function getListGestNameAdmin() {
|
||||
$Query = new \Query("SELECT DISTINCT UPPER(gest_name)FROM stb_gest_setup ORDER BY 1");
|
||||
$Ret = $Query->toRet()->firstColumn()->cacheResult()->execute();
|
||||
if ($Ret->is_OK() && !is_null($Ret->get_data())) {
|
||||
return $Ret->get_data();
|
||||
private static function getListGestNameAdmin($firstColumn = false) {
|
||||
$query = new \Query("SELECT DISTINCT UPPER(gest_name) AS gest_name, section FROM stb_gest_setup ORDER BY 1");
|
||||
|
||||
if ($firstColumn) {
|
||||
$query->firstColumn();
|
||||
}
|
||||
|
||||
$ret = $query->toRet()->cacheResult()->execute();
|
||||
|
||||
if ($ret->is_OK() && !is_null($ret->get_data())) {
|
||||
return $ret->get_data();
|
||||
}
|
||||
|
||||
return array();
|
||||
}
|
||||
|
||||
public static function getListGestName() {
|
||||
public static function getListGestName($firstColumn = false) {
|
||||
if (self::is_administrator()) {
|
||||
return self::getListGestNameAdmin();
|
||||
return self::getListGestNameAdmin($firstColumn);
|
||||
}
|
||||
|
||||
return array("PVM", "INTEGRETAIL", "ORDIKIDS");
|
||||
}
|
||||
|
||||
@@ -318,26 +343,28 @@ class Impostazioni {
|
||||
}
|
||||
|
||||
public static function getListDefaultValues($queryDefault) {
|
||||
$Ret = new Ret;
|
||||
$ret = new Ret;
|
||||
$sql = nullIfBlank($queryDefault);
|
||||
|
||||
if (!is_null($sql)) {
|
||||
$Query = new Query($sql);
|
||||
$Ret = $Query->toRet()->execute();
|
||||
if ($Ret->is_OK()) {
|
||||
$rows = $Ret->get_data();
|
||||
$query = new Query($sql);
|
||||
$ret = $query->toRet()->execute();
|
||||
|
||||
if ($ret->is_OK()) {
|
||||
$rows = $ret->get_data();
|
||||
foreach ($rows as $i => $result) {
|
||||
$rows[$i] = array(
|
||||
"value" => $result[key($result)],
|
||||
"descrizione" => html_entity_decode(\Utility\Str::shortens_words(implode(" - ", array_values($result)), 60))
|
||||
);
|
||||
}
|
||||
$Ret->set_data($rows);
|
||||
$ret->set_data($rows);
|
||||
}
|
||||
} else {
|
||||
$Ret->set_data();
|
||||
$ret->set_data();
|
||||
}
|
||||
|
||||
return $Ret;
|
||||
return $ret;
|
||||
}
|
||||
|
||||
public static function searchJsonList($data) {
|
||||
@@ -490,4 +517,34 @@ class Impostazioni {
|
||||
public static function getDefaultGestName() {
|
||||
return "PVM";
|
||||
}
|
||||
|
||||
public static function getGestioni() {
|
||||
$arr_gestioni = Impostazioni::getListGestName();
|
||||
$gestioni = array();
|
||||
|
||||
foreach ($arr_gestioni as $gestione) {
|
||||
$gestioni[$gestione["gest_name"]][] = $gestione["section"];
|
||||
}
|
||||
|
||||
return $gestioni;
|
||||
}
|
||||
|
||||
public static function getGestSetups($data) {
|
||||
$gestName = $data["gest_name"];
|
||||
$section = $data["section"];
|
||||
|
||||
$query = new Query;
|
||||
$query->importSqlFile("getGestSetups");
|
||||
|
||||
if (!self::is_administrator()) {
|
||||
$query->where("flag_user_view", "S");
|
||||
}
|
||||
|
||||
$ret = $query
|
||||
->where("gest_name", $gestName)
|
||||
->where("section", $section)
|
||||
->toRet()->execute();
|
||||
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
input.descrizione{width:550px}input.hasDatepicker{width:70px}.panel.collapsed .bt_addKeySection{display:none}.btShowDescription:not(disabled){cursor:help}/*# sourceMappingURL=main.css.map */
|
||||
input.descrizione{width:550px}input.hasDatepicker{width:70px}.panel.collapsed .bt_addKeySection{display:none}.btShowDescription:not(disabled){cursor:help}.dropdownSql{padding:0}.dropdownSql a.small.btDownloadSqlSetup{padding-top:5px;padding-bottom:5px}.dropdownSql a.small.btDownloadSqlSetup:hover{background:#add8e6}/*# sourceMappingURL=main.css.map */
|
||||
|
||||
1
public_html/gest-lib/impostazioni/css/sidebar.css
Normal file
1
public_html/gest-lib/impostazioni/css/sidebar.css
Normal file
@@ -0,0 +1 @@
|
||||
#sidebar-container{border-right:solid 1px #dcdcdc;height:91vh;background-color:#2c2e2f;padding:0;position:fixed;overflow-y:auto}@media screen and (max-width: 991px){#sidebar-container{position:initial;height:auto}}#sidebar-container .form-inline{padding:10px;background:#2c2e2f;position:sticky;top:0;z-index:100}#sidebar-container .form-inline .input-group{width:100%}#sidebar-container .form-inline .form-control-sidebar,#sidebar-container .form-inline .btn-sidebar{background-color:#3b3c3d;border:1px solid #56606a;color:#fff;height:35px}#sidebar-container .form-inline .form-control-sidebar:focus{border:1px solid #7a8793;box-shadow:none}#sidebar-container .form-inline .btn-sidebar{font-size:15px;width:100%}#sidebar-container .form-inline .sidebar-search-results{position:relative;width:100%}#sidebar-container .form-inline .sidebar-search-results .list-group{position:absolute;width:100%;z-index:1039}#sidebar-container .form-inline .sidebar-search-results .list-group>.list-group-item{padding:.5rem 1.25rem;background-color:#3b3c3d;border-color:#454d55;color:#fff}#sidebar-container .form-inline .sidebar-search-results .list-group>.list-group-item:hover{background:#464545}#sidebar-container .form-inline .sidebar-search-results .list-group>.list-group-item:first-child{margin-top:0;border-top:0;border-top-left-radius:0;border-top-right-radius:0}#sidebar-container .d-block{display:block}#sidebar-container .list-group .list-group-item .submenu-icon{font-family:"Font Awesome 5 Pro",serif;font-weight:900;display:inline;text-align:right;padding-left:10px;float:right}#sidebar-container .list-group .list-group-item[aria-expanded=false] .submenu-icon::after{content:""}#sidebar-container .list-group .list-group-item[aria-expanded=true] .submenu-icon::after{content:""}#sidebar-container .list-group .sidebar-submenu a{padding-left:40px}#sidebar-container .list-group .sidebar-separator-title{background-color:#2c2e2f}#sidebar-container .list-group .sidebar-separator{background-color:#2c2e2f;height:25px}#sidebar-container .list-group li.sidebar-separator-title{background:#22282e;color:#fff;font-size:1.8rem;border:none;border-bottom:solid 1px #515963;margin-bottom:0}#sidebar-container .list-group a{color:#fff;background:#2c2e2f;border:none;border-bottom:solid 1px #515963;margin-bottom:0}#sidebar-container .list-group a:hover{background:#3c3d3d}#sidebar-container .list-group a[aria-expanded=true]{background:#0f4886}#sidebar-container .list-group a[aria-expanded=true]:hover{background:#074183}#sidebar-container .list-group a.moduloAttivo{background:#1360b4}#sidebar-container .list-group a.moduloAttivo:hover{background:#0c57a9}#sidebar-container .list-group a .w-100{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#sidebar-container::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);border-radius:10px;background-color:#2c2e2f}#sidebar-container::-webkit-scrollbar{width:8px;background-color:#2c2e2f}#sidebar-container::-webkit-scrollbar-thumb{border-radius:0px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:#515963}/*# sourceMappingURL=sidebar.css.map */
|
||||
24
public_html/gest-lib/impostazioni/html/gestSetupsBox.html
Normal file
24
public_html/gest-lib/impostazioni/html/gestSetupsBox.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<div data-section=""
|
||||
class="panel panel-primary mt-10 mb-2">
|
||||
<div class="panel-heading text-unselectable">
|
||||
<b class="section"></b> <span class="badge badge-sm"></span>
|
||||
<div class="pull-right">
|
||||
<button class="btn btn-xs btn-default bt_addKeySection"
|
||||
type="button" data-section="">Nuovo
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body p-0">
|
||||
<table class="table table-striped table-hover table-text-middle mt-10 tableGestSetups">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 25%">Proprietà</th>
|
||||
<th style="width: 50%">Valore</th>
|
||||
<th style="min-width: 130px; width: 25%"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
<tr>
|
||||
<td class="gestName"></td>
|
||||
<td class="gestInput">
|
||||
<div class="input-group">
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center setupButtons">
|
||||
<div class="btn-group btn-group-sm">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
12
public_html/gest-lib/impostazioni/html/templateGestione.html
Normal file
12
public_html/gest-lib/impostazioni/html/templateGestione.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<div>
|
||||
<a href="" data-toggle="collapse" aria-expanded="false"
|
||||
class="list-group-item collapsed gestione">
|
||||
<div class="w-100">
|
||||
<span class="fa fa-fw fa-cogs"></span>
|
||||
<span class="search-title menu-collapsed"></span>
|
||||
<span class="submenu-icon"></span>
|
||||
</div>
|
||||
</a>
|
||||
<div class="sidebar-submenu collapse" aria-expanded="false">
|
||||
</div>
|
||||
</div>
|
||||
10
public_html/gest-lib/impostazioni/html/templateModulo.html
Normal file
10
public_html/gest-lib/impostazioni/html/templateModulo.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<div>
|
||||
<a class="list-group-item modulo">
|
||||
<div class="w-100">
|
||||
<div>
|
||||
<i class="fa fa-cog"></i> <span class="nomeModulo"><?= $modulo ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
@@ -26,6 +26,12 @@ if (isset($_POST["updatePropValue"])) {
|
||||
} else if (isset($_POST["saveGestSetupDet"])) {
|
||||
$data = Utility::sanitizeB64JSON_parse($_POST["saveGestSetupDet"]);
|
||||
Impostazioni::saveGestSetupDet($data)->display();
|
||||
} else if (isset($_POST["getGestSetups"])) {
|
||||
$data = Utility::sanitizeB64JSON_parse($_POST["getGestSetups"]);
|
||||
Impostazioni::getGestSetups($data)->display();
|
||||
} else if (isset($_POST["getListDefaultValues"])) {
|
||||
$data = Utility::sanitizeB64JSON_parse($_POST["getListDefaultValues"]);
|
||||
Impostazioni::getListDefaultValues($data["queryDefault"])->display();
|
||||
} else if (isset($_GET["getTables"])) {
|
||||
Impostazioni::getTables()->display();
|
||||
} else if (isset($_GET["popup-depo"])) {
|
||||
@@ -37,6 +43,9 @@ if (isset($_POST["updatePropValue"])) {
|
||||
} else if (isset($_GET["popup-json"])) {
|
||||
$data = Utility::sanitizeB64JSON_parse($_GET["popup-json"]);
|
||||
include "popup-json.php";
|
||||
} else if (isset($_GET["gestSetupsBox"])) {
|
||||
$data = Utility::sanitizeB64JSON_parse($_GET["gestSetupsBox"]);
|
||||
include "gestSetupsBox.php";
|
||||
} else if (Controller::is_ajaxRequest()) {
|
||||
$Ret = new Ret;
|
||||
$Ret->set_errorCode(ErrorHandler::UNEXPECTED_AJAX_METHOD)->display();
|
||||
|
||||
@@ -1,214 +1,40 @@
|
||||
<?php
|
||||
$arr_gestName = Impostazioni::getListGestName();
|
||||
$gestName = isset($_GET["g"]) ? Utility::sanitize($_GET["g"]) : null;
|
||||
if (!in_array($gestName, $arr_gestName)) {
|
||||
$gestName = null;
|
||||
}
|
||||
if (is_null($gestName)) {
|
||||
$gestName = Impostazioni::getDefaultGestName();
|
||||
}
|
||||
$arr_gestioni = Impostazioni::getListGestName();
|
||||
$gestioni = array();
|
||||
|
||||
$Ret = Impostazioni::getItems($gestName);
|
||||
if ($Ret->is_OK()) {
|
||||
$arr_items = $Ret->get_data();
|
||||
if (count($arr_items) > 0) {
|
||||
?>
|
||||
<div class="col-md-8 col-md-offset-2 mt-10">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<label for="gest_name">Gestione</label>
|
||||
<select id="gest_name" class="form-control" autocomplete="off">
|
||||
<?php
|
||||
foreach ($arr_gestName as $_gestName) {
|
||||
?>
|
||||
<option
|
||||
value="<?= $_gestName ?>" <?= $_gestName == $gestName ? "selected" : "" ?>><?= $_gestName ?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
foreach ($arr_gestioni as $gestione) {
|
||||
$gestioni[$gestione["gest_name"]][] = $gestione["section"];
|
||||
}
|
||||
?>
|
||||
<div id="main" class="row-fluid clearfix">
|
||||
<div id="sidebar-container" class="sidebar-expanded col-xs-12 col-md-3">
|
||||
<div class="form-inline">
|
||||
<div class="input-group" data-widget="sidebar-search">
|
||||
<input class="form-control form-control-sidebar" type="search" placeholder="Cerca"
|
||||
aria-label="Search">
|
||||
<div class="input-group-append input-group-btn">
|
||||
<button class="btn btn-sidebar" id="searchBtn">
|
||||
<i class="fas fa-search fa-fw"></i>
|
||||
</button>
|
||||
<button class="btn btn-sidebar hidden" id="hideSearchBtn">
|
||||
<i class="fas fa-times fa-fw"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$arr_section = array_values(from($arr_items)->distinct(function ($x) {
|
||||
return $x["section"];
|
||||
})->select(function ($x) {
|
||||
return $x["section"];
|
||||
})->orderBy(function ($x) {
|
||||
return $x;
|
||||
})->toArray());
|
||||
foreach ($arr_section as $section) {
|
||||
$arr_keySection = array_values(from($arr_items)->where(function ($x) use ($section) {
|
||||
return $x["section"] == $section && array_key_exists("value", $x);
|
||||
})->toArray());
|
||||
?>
|
||||
<div data-section="<?= $section ?>"
|
||||
class="panel panel-sm panel-collapsible panel-info collapsed mt-10 mb-2 disabled_all">
|
||||
<div class="panel-heading text-unselectable">
|
||||
<b><?= $section ?></b> <span class="badge badge-sm"><?= count($arr_keySection) ?></span>
|
||||
<div class="pull-right">
|
||||
<button class="btn btn-xs btn-default <?= User::is_amministratoreSistema() ? "" : "hidden" ?> bt_addKeySection"
|
||||
type="button" data-section="<?= $section ?>">Nuovo
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body p-0">
|
||||
<table class="table table-striped table-hover table-text-middle mt-10">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Proprietà</th>
|
||||
<th>Valore</th>
|
||||
<th style="min-width: 130px;"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($arr_keySection as $item) {
|
||||
$item["value"] = htmlentities(Utility\Str::remove_multiple_spaces($item["value"]));
|
||||
?>
|
||||
<tr data-key="<?= Utility::B64JSON_stringify(array_pick($item, "gest_name", "section", "key_section")) ?>"
|
||||
data-columns="<?= Utility::B64JSON_stringify(array_pick($item, "description", "flag_sync", "cod_query", "query_default", "flag_user_view", "flag_setup_depo", "flag_setup_user_web", "tipo_setup", "flag_tipo_json")) ?>">
|
||||
<td <?= Utility\Str::startsWith($item["description"], "[DEPRECATED]") ? "class='text-deleted' title='Deprecata'" : "" ?>><?= $item["key_section"] ?></td>
|
||||
<td>
|
||||
<div class="input-group">
|
||||
<?php
|
||||
$Ret = Impostazioni::getListDefaultValues($item["query_default"]);
|
||||
if ($Ret->is_OK()) {
|
||||
$defaultValues = $Ret->get_data();
|
||||
if (\boolValue(array_get($item, "flag_tipo_colore"))) { ?>
|
||||
<input class="btn btn-default btn-sm icbtn text-monospace bt_colorPicker"
|
||||
title="Seleziona colore" value="<?= $item["value"] ?>">
|
||||
<?php } else if (!isset($defaultValues) or (\boolValue($item["flag_tipo_json"]) && $item["query_default"])) { ?>
|
||||
<input type="text"
|
||||
class="value form-control input-sm text-monospace"
|
||||
value="<?= $item["value"] ?>" autocomplete="off"
|
||||
placeholder="Non configurato"/>
|
||||
<?php } else { ?>
|
||||
<select class="value form-control input-sm text-monospace"
|
||||
autocomplete="off">
|
||||
<option value="">Non configurato</option>
|
||||
<?php if (!is_null($item["descrizione_query"])){ ?>
|
||||
<optgroup label="<?= $item["descrizione_query"] ?>">
|
||||
<?php
|
||||
}
|
||||
|
||||
foreach ($defaultValues as $defaultValue) {
|
||||
?>
|
||||
<option
|
||||
value="<?= $defaultValue["value"] ?>" <?= $defaultValue["value"] == trim($item["value"]) ? "selected" : "" ?>><?= $defaultValue["descrizione"] ?></option><?php
|
||||
}
|
||||
if (!is_null($item["descrizione_query"])){
|
||||
?>
|
||||
</optgroup>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<?php }
|
||||
} else {
|
||||
?>
|
||||
<small class="text-danger"><?= $Ret->get_error() ?></small>
|
||||
<?php
|
||||
}
|
||||
if (!(\boolValue(array_get($item, "flag_tipo_colore")))) {
|
||||
?>
|
||||
<span class="input-group-btn">
|
||||
<?php if (!isset($defaultValues)) { ?>
|
||||
<button class="btn btn-default btn-sm icbtn text-monospace bt_jsonEditor"
|
||||
type="button" title="Apri editor JSON">
|
||||
<i class="fas fa-code fa-fw text-primary"></i>
|
||||
</button>
|
||||
<?php } else if (\boolValue($item["flag_tipo_json"]) && $item["query_default"]) { ?>
|
||||
<button class="btn btn-default btn-sm icbtn text-monospace btEditJsonProp"
|
||||
type="button" title="Apri selezionatore JSON">
|
||||
<i class="fas fa-brackets-curly fa-fw text-primary"></i>
|
||||
</button>
|
||||
<?php } ?>
|
||||
<button class="btn btn-default btn-sm icbtn bt_save" type="button"
|
||||
title="Aggiorna valore" disabled>
|
||||
<i class="fas fa-save fa-fw text-success"></i>
|
||||
</button>
|
||||
</span>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<div class="btn-group btn-group-sm">
|
||||
<button class="btn btn-default btShowDescription" <?= is_null(nullIfBlank($item["description"])) ? "disabled" : "" ?>
|
||||
type="button"
|
||||
title="<?= htmlentities(ucfirst($item["description"])) ?>">
|
||||
<i class="fas fa-info fa-fw text-info"></i>
|
||||
</button>
|
||||
<button class="btn btn-default btEditProp" type="button"
|
||||
title="Modifica proprietà">
|
||||
<i class="fas fa-pencil fa-fw text-muted"></i>
|
||||
</button>
|
||||
<?php if (\boolValue($item["flag_setup_depo"])) { ?>
|
||||
<button class="btn btn-default btEditDepoProp" type="button"
|
||||
title="Assegna a depositi">
|
||||
<i class="fas fa-warehouse-alt fa-fw text-warning"></i>
|
||||
</button>
|
||||
<?php } ?>
|
||||
<?php if (\boolValue($item["flag_setup_user_web"])) { ?>
|
||||
<button class="btn btn-default btEditUserProp" type="button"
|
||||
title="Assegna a utenti">
|
||||
<i class="fas fa-users fa-fw text-success"></i>
|
||||
</button>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (isset($item["tipo_setup"])) { ?>
|
||||
<button class="btn btn-default btEditTipo" type="button"
|
||||
title="Assegna a <?= $item["tipo_setup"] ?>">
|
||||
<i class="fas fa-cogs fa-fw text-success"></i>
|
||||
</button>
|
||||
<?php } ?>
|
||||
|
||||
<button class="btn btn-default dropdown-toggle <?= User::is_amministratoreSistema() ? "" : "hidden" ?> "
|
||||
type="button" data-toggle="dropdown">
|
||||
<i class="fa fa-download fa-fw"></i> <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu <?= User::is_amministratoreSistema() ? "" : "hidden" ?> ">
|
||||
<li class="dropdown-header">Scarica SQL</li>
|
||||
<li><a href="#" class="small btDownloadSqlSetup"
|
||||
data-sql_type="insert">Insert</a>
|
||||
</li>
|
||||
<li><a href="#" class="small btDownloadSqlSetup"
|
||||
data-sql_type="update">Update</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="sidebar-search-results">
|
||||
<div class="list-group">
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (User::is_amministratoreSistema()) {
|
||||
?>
|
||||
<div data-section="" class="panel panel-sm panel-collapsible panel-info collapsed mt-10 mb-2">
|
||||
<div class="panel-heading text-unselectable">
|
||||
<b>NUOVO</b>
|
||||
<div class="pull-right">
|
||||
<button class="btn btn-xs btn-default bt_addKeySection" type="button" data-section="">
|
||||
Nuovo
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<?php
|
||||
$Alert = new BC\Alert;
|
||||
$Alert->text("In questa sezione è possibile creare le configurazioni in una nuova sezione")->_class("my-20")->show();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
$Alert = new BC\Alert;
|
||||
$Alert->info()->text("Nessuna risultato disponibile")->show();
|
||||
}
|
||||
} else {
|
||||
$Ret->showErrorAlert();
|
||||
}
|
||||
<ul class="list-group gestsetups">
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-expanded col-xs-12 col-md-9 col-md-offset-3">
|
||||
<div class="panel-body gestSetups">
|
||||
<?php
|
||||
$alert = new BC\Alert;
|
||||
$alert->text("In questa sezione è possibile creare le configurazioni in una nuova sezione")->_class("my-20")->show();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -57,7 +57,7 @@ if ($Ret->is_OK()) {
|
||||
autocomplete="off" placeholder="Non configurato" /><?php
|
||||
} ?>
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-sm bt_save" type="button" title="Aggiorna valore"
|
||||
<button class="btn btn-default btn-sm btSave" type="button" title="Aggiorna valore"
|
||||
disabled>
|
||||
<i class="fas fa-save text-success"></i>
|
||||
</button>
|
||||
|
||||
@@ -56,7 +56,7 @@ if ($Ret->is_OK()) {
|
||||
autocomplete="off" placeholder="Non configurato" /><?php
|
||||
} ?>
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-sm bt_save" type="button" title="Aggiorna valore"
|
||||
<button class="btn btn-default btn-sm btSave" type="button" title="Aggiorna valore"
|
||||
disabled>
|
||||
<i class="fas fa-save text-success"></i>
|
||||
</button>
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
<?php
|
||||
|
||||
$sql = "SELECT gest_name,
|
||||
section,
|
||||
key_section,
|
||||
stb_gest_setup.query_default,
|
||||
stb_gest_setup.description,
|
||||
value
|
||||
FROM stb_gest_setup LEFT OUTER JOIN stb_gest_setup_query ON stb_gest_setup.query_default = stb_gest_setup_query.cod_query
|
||||
WHERE stb_gest_setup_query.cod_query IS NULL
|
||||
ORDER BY key_section, gest_name, section";
|
||||
|
||||
$Query = new Query($sql);
|
||||
//$Query->select()->from("stb_gest_setup")->orderBy("key_section");
|
||||
$Ret = $Query->toRet()->date2ts()->execute();
|
||||
|
||||
if ($Ret->is_OK()) {
|
||||
$arr_rows = $Ret->get_data();
|
||||
|
||||
?>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">
|
||||
Codice query
|
||||
</span>
|
||||
<select class="form-control" id="codQuery" autocomplete="off">
|
||||
<option value=""></option><?
|
||||
$Ret = Impostazioni::getListDefaultQuery();
|
||||
if ($Ret->is_OK()) {
|
||||
foreach ($Ret->get_data() as $item) {
|
||||
?>
|
||||
<option value="<?= $item["cod_query"] ?>"><?= $item["cod_query"] ?>
|
||||
- <?= $item["descrizione"] ?></option><?
|
||||
}
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<textarea id="result" class="form-control text-monospace"></textarea>
|
||||
|
||||
<table id="list-all-setup" class="mt-20 table table-condensed small table-bordered table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Key Section<br/>Section<br/>Gest Name</th>
|
||||
<!-- <th>Query Default</th> -->
|
||||
<th>Value</th>
|
||||
<th>Description</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="cursor-pointer">
|
||||
<?
|
||||
foreach ($arr_rows as $row) {
|
||||
?>
|
||||
<tr data-key="<?= Utility::B64JSON_stringify(array_pick($row, "gest_name", "section", "key_section")) ?>">
|
||||
|
||||
<td><b><?= $row["key_section"] ?></b><br/><?= $row["section"] ?><br/><?= $row["gest_name"] ?></td>
|
||||
<!-- <td><?= $row["query_default"] ?></td> -->
|
||||
<td class="text-truncate"><?= Utility\Str::shortens_words($row["value"], 20) ?></td>
|
||||
<td><?= $row["description"] ?></td>
|
||||
|
||||
</tr><?
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<?
|
||||
|
||||
} else {
|
||||
$Ret->showErrorAlert();
|
||||
}
|
||||
@@ -34,7 +34,7 @@ PopupDepo.prototype.onUpdate = function (f) {
|
||||
};
|
||||
|
||||
PopupDepo.prototype._getDirtyRows = function () {
|
||||
return this._modalBox.$div.find(".bt_save:not(:disabled)").closest("tr");
|
||||
return this._modalBox.$div.find(".btSave:not(:disabled)").closest("tr");
|
||||
};
|
||||
|
||||
PopupDepo.prototype.open = function () {
|
||||
|
||||
@@ -36,7 +36,7 @@ PopupJson.prototype.onUpdate = function (f) {
|
||||
};
|
||||
|
||||
PopupJson.prototype._getDirtyRows = function () {
|
||||
return this.modalBox.$div.find(".bt_save:not(:disabled)").closest("tr");
|
||||
return this.modalBox.$div.find(".btSave:not(:disabled)").closest("tr");
|
||||
};
|
||||
|
||||
PopupJson.prototype.open = function ($tr) {
|
||||
|
||||
@@ -34,7 +34,7 @@ PopupUser.prototype.onUpdate = function (f) {
|
||||
};
|
||||
|
||||
PopupUser.prototype._getDirtyRows = function () {
|
||||
return this._modalBox.$div.find(".bt_save:not(:disabled)").closest("tr");
|
||||
return this._modalBox.$div.find(".btSave:not(:disabled)").closest("tr");
|
||||
};
|
||||
|
||||
PopupUser.prototype.open = function () {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -14,4 +14,17 @@ input.hasDatepicker {
|
||||
|
||||
.btShowDescription:not(disabled) {
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.dropdownSql {
|
||||
padding: 0;
|
||||
|
||||
a.small.btDownloadSqlSetup {
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
|
||||
&:hover {
|
||||
background: lightblue;
|
||||
}
|
||||
}
|
||||
}
|
||||
183
public_html/gest-lib/impostazioni/scss/sidebar.scss
Normal file
183
public_html/gest-lib/impostazioni/scss/sidebar.scss
Normal file
@@ -0,0 +1,183 @@
|
||||
$medium: 991px;
|
||||
$black: #2c2e2f;
|
||||
|
||||
#sidebar-container {
|
||||
border-right: solid 1px #dcdcdc;
|
||||
height: 91vh;
|
||||
background-color: $black;
|
||||
padding: 0;
|
||||
position: fixed;
|
||||
overflow-y: auto;
|
||||
@media screen and (max-width: $medium) {
|
||||
position: initial;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.form-inline {
|
||||
padding: 10px;
|
||||
background: $black;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
|
||||
.input-group {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.form-control-sidebar, .btn-sidebar {
|
||||
background-color: #3b3c3d;
|
||||
border: 1px solid #56606a;
|
||||
color: #fff;
|
||||
height: 35px;
|
||||
}
|
||||
|
||||
.form-control-sidebar:focus {
|
||||
border: 1px solid #7a8793;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.btn-sidebar {
|
||||
font-size: 15px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sidebar-search-results {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
|
||||
.list-group {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
z-index: 1039;
|
||||
|
||||
& > .list-group-item {
|
||||
padding: 0.5rem 1.25rem;
|
||||
background-color: #3b3c3d;
|
||||
border-color: #454d55;
|
||||
color: white;
|
||||
|
||||
&:hover {
|
||||
background: #464545;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
border-top: 0;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.d-block {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.list-group {
|
||||
.list-group-item {
|
||||
.submenu-icon {
|
||||
font-family: "Font Awesome 5 Pro", serif;
|
||||
font-weight: 900;
|
||||
display: inline;
|
||||
text-align: right;
|
||||
padding-left: 10px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
&[aria-expanded="false"] {
|
||||
.submenu-icon {
|
||||
&::after {
|
||||
content: "\f078";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&[aria-expanded="true"] {
|
||||
.submenu-icon {
|
||||
&::after {
|
||||
content: "\f077";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-submenu {
|
||||
a {
|
||||
//height: 45px;
|
||||
padding-left: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Separators */
|
||||
.sidebar-separator-title {
|
||||
background-color: $black;
|
||||
}
|
||||
|
||||
.sidebar-separator {
|
||||
background-color: $black;
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
li.sidebar-separator-title {
|
||||
background: #22282e;
|
||||
color: white;
|
||||
font-size: 1.8rem;
|
||||
border: none;
|
||||
border-bottom: solid 1px #515963;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: white;
|
||||
background: $black;
|
||||
border: none;
|
||||
border-bottom: solid 1px #515963;
|
||||
margin-bottom: 0;
|
||||
|
||||
&:hover {
|
||||
background: #3c3d3d;
|
||||
}
|
||||
|
||||
&[aria-expanded="true"] {
|
||||
background: #0f4886;
|
||||
|
||||
&:hover {
|
||||
background: #074183;
|
||||
}
|
||||
}
|
||||
|
||||
&.moduloAttivo {
|
||||
background: #1360b4;
|
||||
|
||||
&:hover {
|
||||
background: #0c57a9;
|
||||
}
|
||||
}
|
||||
|
||||
.w-100 {
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#sidebar-container::-webkit-scrollbar-track {
|
||||
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
||||
border-radius: 10px;
|
||||
background-color: $black;
|
||||
}
|
||||
|
||||
#sidebar-container::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
background-color: $black;
|
||||
}
|
||||
|
||||
#sidebar-container::-webkit-scrollbar-thumb {
|
||||
border-radius: 0px;
|
||||
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
|
||||
background-color: #515963;
|
||||
}
|
||||
26
public_html/gest-lib/impostazioni/sql/getGestSetups.sql
Normal file
26
public_html/gest-lib/impostazioni/sql/getGestSetups.sql
Normal file
@@ -0,0 +1,26 @@
|
||||
SELECT DISTINCT stb_gest_setup.gest_name,
|
||||
stb_gest_setup.section,
|
||||
stb_gest_setup.key_section,
|
||||
CONVERT(varchar(max), value) AS value,
|
||||
stb_gest_setup.description,
|
||||
stb_gest_setup.flag_sync,
|
||||
stb_gest_setup_query.cod_query,
|
||||
CASE
|
||||
WHEN stb_gest_setup_query.description <> stb_gest_setup_query.query_default
|
||||
THEN stb_gest_setup_query.description
|
||||
END AS descrizione_query,
|
||||
CONVERT(VARCHAR(MAX), ISNULL(stb_gest_setup_query.query_default,
|
||||
stb_gest_setup.query_default)) AS query_default,
|
||||
stb_gest_setup.flag_user_view,
|
||||
stb_gest_setup.flag_setup_depo,
|
||||
stb_gest_setup.flag_setup_user_web,
|
||||
stb_gest_setup.flag_tipo_json,
|
||||
stb_gest_setup.flag_tipo_colore,
|
||||
stb_gest_setup.data_modifica,
|
||||
stb_gest_setup.modificato_da,
|
||||
stb_gest_setup.tipo_setup
|
||||
FROM stb_gest_setup
|
||||
LEFT OUTER JOIN stb_gest_setup_query
|
||||
ON stb_gest_setup.query_default = stb_gest_setup_query.cod_query
|
||||
WHERE 1 = 1
|
||||
ORDER BY section, key_section
|
||||
@@ -16,7 +16,8 @@ $macchinari = MacchinariProd::getListMacchinari();
|
||||
</div>
|
||||
</div>
|
||||
<div class="sidebar-search-results">
|
||||
<div class="list-group"><a href="#" class="list-group-item">
|
||||
<div class="list-group">
|
||||
<a href="#" class="list-group-item">
|
||||
<div class="search-title">
|
||||
<strong class="text-light"></strong>N<strong class="text-light"></strong>o<strong
|
||||
class="text-light"></strong> <strong
|
||||
@@ -29,7 +30,8 @@ $macchinari = MacchinariProd::getListMacchinari();
|
||||
class="text-light"></strong>d<strong class="text-light"></strong>!<strong
|
||||
class="text-light"></strong></div>
|
||||
<div class="search-path"></div>
|
||||
</a></div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="list-group"></ul>
|
||||
|
||||
@@ -52,6 +52,7 @@ const _macchinariProdController = {
|
||||
}
|
||||
let target = _.head(_.filter(self.targetsList, {targetId: targetId}));
|
||||
let key;
|
||||
|
||||
if (_.isNil(target) || _.isEmpty(target)) {
|
||||
switch (_.toInteger(typeId)) {
|
||||
case contentTypes.macchinario:
|
||||
@@ -75,6 +76,7 @@ const _macchinariProdController = {
|
||||
|
||||
self.targetsList.push(target);
|
||||
}
|
||||
|
||||
if (!_.isNil(target) && !_.isEmpty(target)) {
|
||||
if (!_.isNil(self.currentTarget)) {
|
||||
self.currentTarget.hide();
|
||||
@@ -85,7 +87,6 @@ const _macchinariProdController = {
|
||||
const toast = new Toast();
|
||||
toast.danger("impossibile navigare verso la pagina richiesta: " + target)
|
||||
}
|
||||
|
||||
},
|
||||
getTemplate(template) {
|
||||
const self = this;
|
||||
|
||||
@@ -26,8 +26,6 @@ $(function () {
|
||||
const codMart = $tr.find(".codMartInsideString").text();
|
||||
const $tableProduzione = $("#table-produzione");
|
||||
|
||||
console.log(codMart);
|
||||
|
||||
_areaProduzione.selectedRowId = codMart;
|
||||
_areaProduzione.page = $tableProduzione.DataTable().page.info().page;
|
||||
|
||||
@@ -181,7 +179,7 @@ $(function () {
|
||||
const $tr = $(this).closest("tr");
|
||||
const codMart = $tr.find(".codMartInsideString").text();
|
||||
const descrizione = $tr.find(".articolo").text();
|
||||
|
||||
|
||||
_areaProduzione.openStoricoPopup(codMart, descrizione);
|
||||
});
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ include Controller::current_gestpath_include("ajax.php");
|
||||
</head>
|
||||
<body>
|
||||
<? include pvm_headerNavbar; ?>
|
||||
<div id="content">
|
||||
<div>
|
||||
<div><?
|
||||
include pvm_navTab;
|
||||
if (!PVM\CurrentModule::isAuthorizedToCurrentUser()) {
|
||||
|
||||
Reference in New Issue
Block a user