|
@@ -13,7 +13,7 @@ class Route_WfsJsRequestPanel extends RouteBase {
|
|
|
public function defaultAction() {
|
|
public function defaultAction() {
|
|
|
UI::gora();
|
|
UI::gora();
|
|
|
try {
|
|
try {
|
|
|
- $exampleFltr = [
|
|
|
|
|
|
|
+ $exampleProcesyFltr = [
|
|
|
" <ogc:Filter>",
|
|
" <ogc:Filter>",
|
|
|
" <ogc:Or>",
|
|
" <ogc:Or>",
|
|
|
" <ogc:PropertyIsEqualTo>",
|
|
" <ogc:PropertyIsEqualTo>",
|
|
@@ -27,88 +27,155 @@ class Route_WfsJsRequestPanel extends RouteBase {
|
|
|
" </ogc:Or>",
|
|
" </ogc:Or>",
|
|
|
" </ogc:Filter>",
|
|
" </ogc:Filter>",
|
|
|
];
|
|
];
|
|
|
- $listExampleProp = [];
|
|
|
|
|
- $listExampleProp['lvl1'] = [
|
|
|
|
|
- " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
|
|
+ $examples = [];
|
|
|
|
|
+ $examples['Procesy'] = [];
|
|
|
|
|
+ $examples['Procesy']['lvl1'] = [
|
|
|
|
|
+ 'typeName' => 'default_db__x3A__CRM_PROCES:PROCES',
|
|
|
|
|
+ 'postBody' => "<wfs:Query>" . "\n" . implode("\n", array_merge([
|
|
|
|
|
+ " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
+ ], $exampleProcesyFltr)) . "\n" ."</wfs:Query>",
|
|
|
];
|
|
];
|
|
|
- $listExampleProp['lvl2-by-@-1'] = [
|
|
|
|
|
- " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName resolve=\"all\" resolveDepth=\"1\">default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
|
|
+ $examples['Procesy']['lvl2-by-@-1'] = [
|
|
|
|
|
+ 'typeName' => 'default_db__x3A__CRM_PROCES:PROCES',
|
|
|
|
|
+ 'postBody' => "<wfs:Query>" . "\n" . implode("\n", array_merge([
|
|
|
|
|
+ " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName resolve=\"all\" resolveDepth=\"1\">default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
+ ], $exampleProcesyFltr)) . "\n" ."</wfs:Query>",
|
|
|
];
|
|
];
|
|
|
- $listExampleProp['lvl2-by-@-2'] = [
|
|
|
|
|
- " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName resolve=\"all\" resolveDepth=\"2\">default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
|
|
+ $examples['Procesy']['lvl2-by-@-2'] = [
|
|
|
|
|
+ 'typeName' => 'default_db__x3A__CRM_PROCES:PROCES',
|
|
|
|
|
+ 'postBody' => "<wfs:Query>" . "\n" . implode("\n", array_merge([
|
|
|
|
|
+ " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName resolve=\"all\" resolveDepth=\"2\">default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
+ ], $exampleProcesyFltr)) . "\n" ."</wfs:Query>",
|
|
|
|
|
+ ];
|
|
|
|
|
+ $examples['Procesy']['lvl2-by-@-3'] = [
|
|
|
|
|
+ 'typeName' => 'default_db__x3A__CRM_PROCES:PROCES',
|
|
|
|
|
+ 'postBody' => "<wfs:Query>" . "\n" . implode("\n", array_merge([
|
|
|
|
|
+ " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName resolve=\"all\" resolveDepth=\"3\">default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
+ ], $exampleProcesyFltr)) . "\n" ."</wfs:Query>",
|
|
|
|
|
+ ];
|
|
|
|
|
+ $examples['Procesy']['lvl2-by-@-*'] = [
|
|
|
|
|
+ 'typeName' => 'default_db__x3A__CRM_PROCES:PROCES',
|
|
|
|
|
+ 'postBody' => "<wfs:Query>" . "\n" . implode("\n", array_merge([
|
|
|
|
|
+ " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName resolve=\"all\" resolveDepth=\"*\">default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
+ ], $exampleProcesyFltr)) . "\n" ."</wfs:Query>",
|
|
|
|
|
+ ];
|
|
|
|
|
+ $examples['Procesy']['lvl2'] = [
|
|
|
|
|
+ 'typeName' => 'default_db__x3A__CRM_PROCES:PROCES',
|
|
|
|
|
+ 'postBody' => "<wfs:Query>" . "\n" . implode("\n", array_merge([
|
|
|
|
|
+ " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/TYPE</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/DESC</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
+ ], $exampleProcesyFltr)) . "\n" ."</wfs:Query>",
|
|
|
];
|
|
];
|
|
|
- $listExampleProp['lvl2-by-@-3'] = [
|
|
|
|
|
- " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName resolve=\"all\" resolveDepth=\"3\">default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
|
|
+ $examples['Procesy']['lvl2wsk'] = [
|
|
|
|
|
+ 'typeName' => 'default_db__x3A__CRM_PROCES:PROCES',
|
|
|
|
|
+ 'postBody' => "<wfs:Query>" . "\n" . implode("\n", array_merge([
|
|
|
|
|
+ " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>OPIS</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>path</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/TYPE</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/DESC</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/*</wfs:PropertyName>",
|
|
|
|
|
+ ], $exampleProcesyFltr)) . "\n" ."</wfs:Query>",
|
|
|
];
|
|
];
|
|
|
- $listExampleProp['lvl2-by-@-*'] = [
|
|
|
|
|
- " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName resolve=\"all\" resolveDepth=\"*\">default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
|
|
+ $examples['Procesy']['lvl3'] = [
|
|
|
|
|
+ 'typeName' => 'default_db__x3A__CRM_PROCES:PROCES',
|
|
|
|
|
+ 'postBody' => "<wfs:Query>" . "\n" . implode("\n", array_merge([
|
|
|
|
|
+ " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>OPIS</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>path</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/TYPE</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/DESC</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES/ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES/PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES/TYPE</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES/DESC</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/*</wfs:PropertyName>",
|
|
|
|
|
+ " <wfs:PropertyName>default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/*</wfs:PropertyName>",
|
|
|
|
|
+ ], $exampleProcesyFltr)) . "\n" ."</wfs:Query>",
|
|
|
];
|
|
];
|
|
|
- $listExampleProp['lvl2'] = [
|
|
|
|
|
- " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/TYPE</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/DESC</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
|
|
+ $examples['BiAudit'] = [];
|
|
|
|
|
+ $examples['BiAudit']['BiAudit'] = [
|
|
|
|
|
+ 'typeName' => 'default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA',
|
|
|
|
|
+ 'args' => [ 'primaryKey' => 1 ],
|
|
|
];
|
|
];
|
|
|
- $listExampleProp['lvl2wsk'] = [
|
|
|
|
|
- " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>OPIS</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>path</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/TYPE</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/DESC</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/*</wfs:PropertyName>",
|
|
|
|
|
|
|
+ $examples['BiAudit']['BiAudit lvl2'] = [
|
|
|
|
|
+ 'typeName' => 'default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA',
|
|
|
|
|
+ 'postBody' => "<wfs:Query>" . implode("\n\t", [
|
|
|
|
|
+ "<wfs:PropertyName>A_ADM_COMPANY</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>A_CLASSIFIED</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>A_STATUS</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>A_STATUS_INFO</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>BI_analiza_depth</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>BI_analiza_reloadCache</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>FILE_STATUS</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>FILE_STATUS_info</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>L_APPOITMENT_USER</wfs:PropertyName>",
|
|
|
|
|
+ // "<wfs:PropertyName>default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_PRACOWNICY</wfs:PropertyName>",
|
|
|
|
|
+ // "<wfs:PropertyName>default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName resolve=\"all\" resolveDepth=\"2\">default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row</wfs:PropertyName>",
|
|
|
|
|
+ // "<wfs:PropertyName resolve=\"all\" resolveDepth=\"2\">default_db__x3A__BI_audit_KW_requested_person:BI_audit_KW_requested_person</wfs:PropertyName>",
|
|
|
|
|
+ ]) . "\n" . "</wfs:Query>",
|
|
|
];
|
|
];
|
|
|
- $listExampleProp['lvl3'] = [
|
|
|
|
|
- " <wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>TYPE</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>DESC</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>OPIS</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>path</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/TYPE</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/DESC</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES/ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES/PARENT_ID</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES/TYPE</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES/DESC</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_PROCES:PROCES</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_PROCES:PROCES/default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/*</wfs:PropertyName>",
|
|
|
|
|
- " <wfs:PropertyName>default_db__x3A__CRM_WSKAZNIK:CRM_WSKAZNIK/*</wfs:PropertyName>",
|
|
|
|
|
|
|
+ $examples['BiAudit']['BiAudit lvl3'] = [
|
|
|
|
|
+ 'typeName' => 'default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA',
|
|
|
|
|
+ 'postBody' => "<wfs:Query>" . implode("\n\t", [
|
|
|
|
|
+ "<wfs:PropertyName>A_ADM_COMPANY</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>A_CLASSIFIED</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>A_STATUS</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>A_STATUS_INFO</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>BI_analiza_depth</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>BI_analiza_reloadCache</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>FILE_STATUS</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>FILE_STATUS_info</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName>L_APPOITMENT_USER</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName resolve=\"all\" resolveDepth=\"3\">default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_PRACOWNICY</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName resolve=\"all\" resolveDepth=\"3\">default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName resolve=\"all\" resolveDepth=\"3\">default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row</wfs:PropertyName>",
|
|
|
|
|
+ "<wfs:PropertyName resolve=\"all\" resolveDepth=\"3\">default_db__x3A__BI_audit_KW_requested_person:BI_audit_KW_requested_person</wfs:PropertyName>",
|
|
|
|
|
+ ]) . "\n" . "</wfs:Query>",
|
|
|
];
|
|
];
|
|
|
- $exampleWfsRequestBody = "<wfs:Query>" . "\n" . implode("\n", array_merge($listExampleProp['lvl1'], $exampleFltr)) . "\n" ."</wfs:Query>";
|
|
|
|
|
|
|
|
|
|
UI::startContainer();
|
|
UI::startContainer();
|
|
|
|
|
|
|
@@ -129,8 +196,8 @@ class Route_WfsJsRequestPanel extends RouteBase {
|
|
|
// $securityLogger->addInfo('debug message / label', [ 'dbg-object' => [ 'x' => 'y', 'z' ] ]);
|
|
// $securityLogger->addInfo('debug message / label', [ 'dbg-object' => [ 'x' => 'y', 'z' ] ]);
|
|
|
|
|
|
|
|
// 'wfsRequestFeatureTypeName' = 'default_db__x3A__CRM_PROCES:PROCES'
|
|
// 'wfsRequestFeatureTypeName' = 'default_db__x3A__CRM_PROCES:PROCES'
|
|
|
- echo UI::h('input', [ 'id' => 'wfsRequestFeatureTypeName', 'class' => "form-control", 'value' => 'default_db__x3A__CRM_PROCES:PROCES', 'title' => "Feature name" ]);
|
|
|
|
|
- echo UI::h('textarea', [ 'id' => 'wfsRequestBody', 'style' => "width:100%; height:300px" ], htmlspecialchars($exampleWfsRequestBody));
|
|
|
|
|
|
|
+ echo UI::h('input', [ 'id' => 'wfsRequestFeatureTypeName', 'class' => "form-control", 'value' => $examples['Procesy']['lvl1']['typeName'], 'title' => "Feature name" ]);
|
|
|
|
|
+ echo UI::h('textarea', [ 'id' => 'wfsRequestBody', 'style' => "width:100%; height:300px" ], htmlspecialchars($examples['Procesy']['lvl1']['postBody']));
|
|
|
echo UI::h('button', [ 'class' => "btn btn-primary", 'onClick' => "return sendWfsRequest(this)" ], "Wyslij");
|
|
echo UI::h('button', [ 'class' => "btn btn-primary", 'onClick' => "return sendWfsRequest(this)" ], "Wyslij");
|
|
|
echo UI::h('div', [ 'style' => "display:inline", 'id' => "wfs-example-btns" ]);
|
|
echo UI::h('div', [ 'style' => "display:inline", 'id' => "wfs-example-btns" ]);
|
|
|
echo UI::h('details', [ 'style' => "padding:6px; background-color:#333; color:#fff", 'open' => "open" ], [
|
|
echo UI::h('details', [ 'style' => "padding:6px; background-color:#333; color:#fff", 'open' => "open" ], [
|
|
@@ -167,46 +234,18 @@ class Route_WfsJsRequestPanel extends RouteBase {
|
|
|
])),
|
|
])),
|
|
|
]);
|
|
]);
|
|
|
UI::endContainer();
|
|
UI::endContainer();
|
|
|
- $examples['Procesy'] = [
|
|
|
|
|
- 'typeName' => 'default_db__x3A__CRM_PROCES:PROCES',
|
|
|
|
|
- 'examples' => array_map(function ($props) use ($exampleFltr) {
|
|
|
|
|
- return "<wfs:Query>" . "\n" . implode("\n", array_merge($props, $exampleFltr)) . "\n" . "</wfs:Query>";
|
|
|
|
|
- }, $listExampleProp),
|
|
|
|
|
- ];
|
|
|
|
|
- $examples['BiAudit'] = [
|
|
|
|
|
- 'typeName' => 'default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA',
|
|
|
|
|
- 'examples' => [
|
|
|
|
|
- 'BiAudit' => "",
|
|
|
|
|
- 'BiAudit lvl3' => "<wfs:Query>" . implode("\n\t", [
|
|
|
|
|
- "<wfs:PropertyName>A_ADM_COMPANY</wfs:PropertyName>",
|
|
|
|
|
- "<wfs:PropertyName>A_CLASSIFIED</wfs:PropertyName>",
|
|
|
|
|
- "<wfs:PropertyName>A_STATUS</wfs:PropertyName>",
|
|
|
|
|
- "<wfs:PropertyName>A_STATUS_INFO</wfs:PropertyName>",
|
|
|
|
|
- "<wfs:PropertyName>BI_analiza_depth</wfs:PropertyName>",
|
|
|
|
|
- "<wfs:PropertyName>BI_analiza_reloadCache</wfs:PropertyName>",
|
|
|
|
|
- "<wfs:PropertyName>FILE_STATUS</wfs:PropertyName>",
|
|
|
|
|
- "<wfs:PropertyName>FILE_STATUS_info</wfs:PropertyName>",
|
|
|
|
|
- "<wfs:PropertyName>ID</wfs:PropertyName>",
|
|
|
|
|
- "<wfs:PropertyName>L_APPOITMENT_USER</wfs:PropertyName>",
|
|
|
|
|
- "<wfs:PropertyName resolve=\"all\" resolveDepth=\"3\">default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_PRACOWNICY</wfs:PropertyName>",
|
|
|
|
|
- "<wfs:PropertyName resolve=\"all\" resolveDepth=\"3\">default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI</wfs:PropertyName>",
|
|
|
|
|
- "<wfs:PropertyName resolve=\"all\" resolveDepth=\"3\">default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row</wfs:PropertyName>",
|
|
|
|
|
- "<wfs:PropertyName resolve=\"all\" resolveDepth=\"3\">default_db__x3A__BI_audit_KW_requested_person:BI_audit_KW_requested_person</wfs:PropertyName>",
|
|
|
|
|
- ]) . "\n" . "</wfs:Query>",
|
|
|
|
|
- ],
|
|
|
|
|
- ];
|
|
|
|
|
echo UI::h('script', [], "
|
|
echo UI::h('script', [], "
|
|
|
var examples = " . json_encode($examples) . ";
|
|
var examples = " . json_encode($examples) . ";
|
|
|
console.log('examples', examples)
|
|
console.log('examples', examples)
|
|
|
- function setWfsExample(label, i) {
|
|
|
|
|
- console.log('label', label, 'i', i)
|
|
|
|
|
- document.getElementById('wfsRequestFeatureTypeName').value = examples[label].typeName
|
|
|
|
|
- document.getElementById('wfsRequestBody').value = examples[label].examples[i]
|
|
|
|
|
|
|
+ function setWfsExample(groupName, label) {
|
|
|
|
|
+ console.log('groupName', groupName, 'label', label)
|
|
|
|
|
+ document.getElementById('wfsRequestFeatureTypeName').value = examples[groupName][label].typeName
|
|
|
|
|
+ document.getElementById('wfsRequestBody').value = examples[groupName][label].postBody || ''
|
|
|
sendWfsRequest()
|
|
sendWfsRequest()
|
|
|
}
|
|
}
|
|
|
- for (var label in examples) {
|
|
|
|
|
- for (var i in examples[label].examples) {
|
|
|
|
|
- jQuery(document.getElementById('wfs-example-btns')).append('<button class=\"btn btn-default\" style=\"margin-left:12px\" onClick=\"setWfsExample(\''+label+'\', \''+i+'\')\">'+i+'</button>')
|
|
|
|
|
|
|
+ for (var groupName in examples) {
|
|
|
|
|
+ for (var label in examples[groupName]) {
|
|
|
|
|
+ jQuery(document.getElementById('wfs-example-btns')).append('<button class=\"btn btn-default\" style=\"margin-left:12px\" onClick=\"setWfsExample(\''+groupName+'\', \''+label+'\')\">'+label+'</button>')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
");
|
|
");
|