|
|
@@ -6,6 +6,7 @@ Lib::loadClass('Request');
|
|
|
Lib::loadClass('Response');
|
|
|
Lib::loadClass('ProcesHelper');
|
|
|
Lib::loadClass('Route_UrlAction');
|
|
|
+Lib::loadClass('UI');
|
|
|
|
|
|
class Route_UrlAction_ProjektyProNetMediaZamZlec extends RouteBase {// TODO: UrlActionBase @see Route_UrlAction
|
|
|
|
|
|
@@ -44,8 +45,8 @@ class Route_UrlAction_ProjektyProNetMediaZamZlec extends RouteBase {// TODO: Url
|
|
|
}
|
|
|
|
|
|
public function defaultAction() {
|
|
|
- SE_Layout::gora();
|
|
|
- if (1 != V::get('_print', '', $_GET)) SE_Layout::menu();
|
|
|
+ UI::gora();
|
|
|
+ if (1 != V::get('_print', '', $_GET)) UI::menu();
|
|
|
try {
|
|
|
$data = array();
|
|
|
$data['id_project'] = V::get('ID_PROJECT', 0, $_REQUEST, 'int');
|
|
|
@@ -57,9 +58,9 @@ class Route_UrlAction_ProjektyProNetMediaZamZlec extends RouteBase {// TODO: Url
|
|
|
$data['widgetCompanies']['typeSpecial'] = TypespecialVariable::getInstance(-1, '__COMPANIES');
|
|
|
$this->zamZlecFormView($data);
|
|
|
} catch (Exception $e) {
|
|
|
- SE_Layout::alert('danger', "Error #" . $e->getCode() . "|" . $e->getLine() . ": " . $e->getMessage());
|
|
|
+ UI::alert('danger', "Error #" . $e->getCode() . "|" . $e->getLine() . ": " . $e->getMessage());
|
|
|
}
|
|
|
- if (1 != V::get('_print', '', $_GET)) SE_Layout::dol();
|
|
|
+ if (1 != V::get('_print', '', $_GET)) UI::dol();
|
|
|
}
|
|
|
|
|
|
public function addZlecenieAction() {
|
|
|
@@ -75,8 +76,8 @@ class Route_UrlAction_ProjektyProNetMediaZamZlec extends RouteBase {// TODO: Url
|
|
|
}
|
|
|
|
|
|
public function zlecenieAction() {
|
|
|
- SE_Layout::gora();
|
|
|
- if (1 != V::get('_print', '', $_GET)) SE_Layout::menu();
|
|
|
+ UI::gora();
|
|
|
+ if (1 != V::get('_print', '', $_GET)) UI::menu();
|
|
|
try {
|
|
|
$id_project = V::get('ID_PROJECT', 0, $_REQUEST, 'int');
|
|
|
$id_company = V::get('id_company', 0, $_REQUEST, 'int');
|
|
|
@@ -99,9 +100,9 @@ class Route_UrlAction_ProjektyProNetMediaZamZlec extends RouteBase {// TODO: Url
|
|
|
$data = $this->setProps($data);
|
|
|
$this->zlecenieView($data);
|
|
|
} catch (Exception $e) {
|
|
|
- SE_Layout::alert('danger', "Error #" . $e->getCode() . "|" . $e->getLine() . ": " . $e->getMessage());
|
|
|
+ UI::alert('danger', "Error #" . $e->getCode() . "|" . $e->getLine() . ": " . $e->getMessage());
|
|
|
}
|
|
|
- if (1 != V::get('_print', '', $_GET)) SE_Layout::dol();
|
|
|
+ if (1 != V::get('_print', '', $_GET)) UI::dol();
|
|
|
}
|
|
|
|
|
|
public function addZamowienieAction() {
|
|
|
@@ -183,16 +184,16 @@ class Route_UrlAction_ProjektyProNetMediaZamZlec extends RouteBase {// TODO: Url
|
|
|
header("Location: {$urlZam}");
|
|
|
exit;
|
|
|
} else {
|
|
|
- SE_Layout::gora();
|
|
|
- SE_Layout::menu();
|
|
|
- SE_Layout::alert('danger', 'Nie udało się utworzyć rekordu');
|
|
|
- SE_Layout::dol();
|
|
|
+ UI::gora();
|
|
|
+ UI::menu();
|
|
|
+ UI::alert('danger', 'Nie udało się utworzyć rekordu');
|
|
|
+ UI::dol();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public function zamowienieAction() {
|
|
|
- SE_Layout::gora();
|
|
|
- if (1 != V::get('_print', '', $_GET)) SE_Layout::menu();
|
|
|
+ UI::gora();
|
|
|
+ if (1 != V::get('_print', '', $_GET)) UI::menu();
|
|
|
try {
|
|
|
$id_order = V::get('id', 0, $_REQUEST, 'int');
|
|
|
$id_project = V::get('ID_PROJECT', 0, $_REQUEST, 'int');
|
|
|
@@ -207,9 +208,9 @@ class Route_UrlAction_ProjektyProNetMediaZamZlec extends RouteBase {// TODO: Url
|
|
|
$mode = (V::get('_print', '', $_REQUEST))? 'print' : 'view';
|
|
|
$this->zamowienieView($data, $mode);
|
|
|
} catch (Exception $e) {
|
|
|
- SE_Layout::alert('danger', "Error #" . $e->getCode() . "|" . $e->getLine() . ": " . $e->getMessage());
|
|
|
+ UI::alert('danger', "Error #" . $e->getCode() . "|" . $e->getLine() . ": " . $e->getMessage());
|
|
|
}
|
|
|
- if (1 != V::get('_print', '', $_GET)) SE_Layout::dol();
|
|
|
+ if (1 != V::get('_print', '', $_GET)) UI::dol();
|
|
|
}
|
|
|
|
|
|
public function previewOrder($idOrder) {
|
|
|
@@ -220,7 +221,7 @@ class Route_UrlAction_ProjektyProNetMediaZamZlec extends RouteBase {// TODO: Url
|
|
|
$data = $this->setProps($data);
|
|
|
$this->zamowienieView($data, $mode = 'preview');
|
|
|
} catch (Exception $e) {
|
|
|
- SE_Layout::alert('danger', "Error #" . $e->getCode() . "|" . $e->getLine() . ": " . $e->getMessage());
|
|
|
+ UI::alert('danger', "Error #" . $e->getCode() . "|" . $e->getLine() . ": " . $e->getMessage());
|
|
|
}
|
|
|
}
|
|
|
|