|
@@ -2,29 +2,27 @@
|
|
|
|
|
|
|
|
Lib::loadClass('Core_AclSimpleSchemaBase');// extends Core_AclBase
|
|
Lib::loadClass('Core_AclSimpleSchemaBase');// extends Core_AclBase
|
|
|
Lib::loadClass('Core_AclHelper');
|
|
Lib::loadClass('Core_AclHelper');
|
|
|
-Lib::loadClass('FileStorage');
|
|
|
|
|
|
|
|
|
|
class Schema_DefaultDb_zaliczka_ZaliczkaStorageAcl extends Core_AclSimpleSchemaBase {
|
|
class Schema_DefaultDb_zaliczka_ZaliczkaStorageAcl extends Core_AclSimpleSchemaBase {
|
|
|
|
|
|
|
|
public $_simpleSchema = [
|
|
public $_simpleSchema = [
|
|
|
'root' => [
|
|
'root' => [
|
|
|
'@namespace' => 'default_db/ZALICZKA/Zaliczka',// Api_WfsNs::getBaseWfsUri() . '/default_db/Zaliczka'
|
|
'@namespace' => 'default_db/ZALICZKA/Zaliczka',// Api_WfsNs::getBaseWfsUri() . '/default_db/Zaliczka'
|
|
|
- '@implements' => 'default_types/Infrastructure',
|
|
|
|
|
'id' => 'xsd:integer',
|
|
'id' => 'xsd:integer',
|
|
|
'created' => [ '@type' => 'xsd:date', '@alias' => 'A_RECORD_CREATE_DATE' ],
|
|
'created' => [ '@type' => 'xsd:date', '@alias' => 'A_RECORD_CREATE_DATE' ],
|
|
|
'worker' => [ '@ref' => 'default_objects/AccessOwner' ],// 'alias_ref:default_objects:AccessOwner'
|
|
'worker' => [ '@ref' => 'default_objects/AccessOwner' ],// 'alias_ref:default_objects:AccessOwner'
|
|
|
// 'worker' => [ '@ref' => 'Worker' ],
|
|
// 'worker' => [ '@ref' => 'Worker' ],
|
|
|
'kwota' => [ '@type' => 'xsd:decimal', '@totalDigits' => 16, '@fractionDigits' => 2 ],
|
|
'kwota' => [ '@type' => 'xsd:decimal', '@totalDigits' => 16, '@fractionDigits' => 2 ],
|
|
|
'nierozliczona_kwota' => [ '@type' => 'xsd:decimal', '@totalDigits' => 16, '@fractionDigits' => 2 ],
|
|
'nierozliczona_kwota' => [ '@type' => 'xsd:decimal', '@totalDigits' => 16, '@fractionDigits' => 2 ],
|
|
|
- 'pozycja' => [ '@ref' => 'ZaliczkaPozycja', '@maxOccurs' => 'unbounded' ]
|
|
|
|
|
- ],
|
|
|
|
|
- 'ZaliczkaPozycja' => [
|
|
|
|
|
- '@namespace' => 'default_db/ZALICZKA_POZYCJA/ZaliczkaPozycja',// Api_WfsNs::getBaseWfsUri() . '/default_db/Zaliczka'
|
|
|
|
|
- 'id' => 'xsd:integer',
|
|
|
|
|
- 'kwota' => [ '@type' => 'xsd:decimal', '@totalDigits' => 16, '@fractionDigits' => 2 ],
|
|
|
|
|
- 'korespondencja' => [ '@ref' => 'Korespondencja' ],
|
|
|
|
|
- 'projekt' => [ '@ref' => 'Projekt' ]
|
|
|
|
|
|
|
+ 'pozycja' => [ '@ref' => 'default_db/ZALICZKA_POZYCJA/ZaliczkaPozycja', '@maxOccurs' => 'unbounded' ]
|
|
|
],
|
|
],
|
|
|
|
|
+ // 'ZaliczkaPozycja' => [
|
|
|
|
|
+ // '@namespace' => 'default_db/ZALICZKA_POZYCJA/ZaliczkaPozycja',// Api_WfsNs::getBaseWfsUri() . '/default_db/Zaliczka'
|
|
|
|
|
+ // 'id' => 'xsd:integer',
|
|
|
|
|
+ // 'kwota' => [ '@type' => 'xsd:decimal', '@totalDigits' => 16, '@fractionDigits' => 2 ],
|
|
|
|
|
+ // 'korespondencja' => [ '@ref' => 'Korespondencja' ],
|
|
|
|
|
+ // 'projekt' => [ '@ref' => 'Projekt' ]
|
|
|
|
|
+ // ],
|
|
|
'Korespondencja' => [
|
|
'Korespondencja' => [
|
|
|
'@namespace' => 'default_db/IN7_DZIENNIK_KORESP',
|
|
'@namespace' => 'default_db/IN7_DZIENNIK_KORESP',
|
|
|
'id' => [ '@type' => 'xsd:integer', '@alias' => 'ID' ],
|
|
'id' => [ '@type' => 'xsd:integer', '@alias' => 'ID' ],
|
|
@@ -71,6 +69,17 @@ class Schema_DefaultDb_zaliczka_ZaliczkaStorageAcl extends Core_AclSimpleSchemaB
|
|
|
// ]
|
|
// ]
|
|
|
// ];
|
|
// ];
|
|
|
|
|
|
|
|
|
|
+ public function getTotal($params = array()) {
|
|
|
|
|
+ return 10;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public function getItems($params = array()) {
|
|
|
|
|
+ return [
|
|
|
|
|
+ [ 'id'=>1, 'created' => date("Y-m-d") ],
|
|
|
|
|
+ [ 'id'=>2, 'created' => date("Y-m-d") ],
|
|
|
|
|
+ ];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public function addItem($itemTodo) {
|
|
public function addItem($itemTodo) {
|
|
|
// TODO: btn "Dodaj Zaliczkę" $acl->addItem($item); // @require only 'worker' => [ 'id', 'login', 'name' ]
|
|
// TODO: btn "Dodaj Zaliczkę" $acl->addItem($item); // @require only 'worker' => [ 'id', 'login', 'name' ]
|
|
|
DBG::nicePrint($itemTodo, '$itemTodo');// TODO: DBG
|
|
DBG::nicePrint($itemTodo, '$itemTodo');// TODO: DBG
|