Bladeren bron

test gui xsd schema

Piotr Labudda 10 jaren geleden
bovenliggende
commit
02d8745990

+ 63 - 0
SE/schema/gui/default_db/test_perms.gui.xml

@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui_table xmlns="https://biuro.biall-net.pl/dev-pl/se-master/schema/gui/table.gui.xsd"
+					xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+					xmlns:ogc="http://www.opengis.net/ogc">
+	<!--
+sf_Problemy
+		$fltrs['Problemy'] = new stdClass();
+		$fltrs['Problemy']->icon = 'glyphicon glyphicon-warning-sign';
+		$fltrs['Problemy']->btns = array();
+		$fltrs['Problemy']->btns['PROBLEMY'] = (object)array('value'=>'PROBLEM');
+		$fltrs['Problemy']->btns['OSTRZEZENIA'] = (object)array('value'=>'WARNING');
+		$fltrs['Problemy']->btns['BEZ_PROBLEM.'] = (object)array('value'=>'NORMAL');
+sf_Status
+		$fltrs['Status'] = new stdClass();
+		$fltrs['Status']->icon = 'glyphicon glyphicon-question-sign';
+		$fltrs['Status']->btns = array();
+		$fltrs['Status']->btns['OCZEKUJACY'] = (object)array('value'=>'WAITING');
+		$fltrs['Status']->btns['AKTYWNI'] = (object)array('value'=>'AKTYWNI');
+sf_Spotkania
+		$fltrs['Spotkania'] = new stdClass();
+		$fltrs['Spotkania']->icon = 'glyphicon glyphicon-calendar';
+		$fltrs['Spotkania']->btns = array();
+		$fltrs['Spotkania']->btns['STARE'] = (object)array('value'=>'OLD');
+		$fltrs['Spotkania']->btns['ZARAZ'] = (object)array('value'=>'NOW');
+		$fltrs['Spotkania']->btns['DZISIAJ'] = (object)array('value'=>'TODAY');
+		$fltrs['Spotkania']->btns['BRAK'] = (object)array('value'=>'BRAK');
+sf_Access
+		$fltrs['Access'] = new stdClass();
+		$fltrs['Access']->icon = 'glyphicon glyphicon-lock';
+		$fltrs['Access']->btns = array();
+		$fltrs['Access']->btns['Pokaż'] = (object)array('value'=>'SHOW');
+ 	-->
+	<filters>
+		<filter>
+			<label>Status</label>
+			<icon>question-sign</icon>
+			<name>sf_Status</name>
+			<buttons>
+				<button>
+					<name>OCZEKUJACY</name>
+					<value>WAITING</value>
+					<ogc:Filter>
+						<ogc:PropertyIsEqualTo>
+							<ogc:PropertyName>A_STATUS</ogc:PropertyName>
+							<ogc:Literal>WAITING</ogc:Literal>
+						</ogc:PropertyIsEqualTo>
+					</ogc:Filter>
+				</button>
+				<button>
+					<name>AKTYWNI</name>
+					<value>AKTYWNI</value>
+					<ogc:Filter>
+						<!-- TODO: in('NORMAL', 'WARNING') -->
+						<ogc:PropertyIsEqualTo>
+							<ogc:PropertyName>A_STATUS</ogc:PropertyName>
+							<ogc:Literal>NORMAL</ogc:Literal>
+						</ogc:PropertyIsEqualTo>
+					</ogc:Filter>
+				</button>
+			</buttons>
+		</filter>
+	</filters>
+</ui_table>

+ 11 - 0
SE/schema/gui/default_db/test_perms/item.30.gui.xml

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui_record xmlns="https://biuro.biall-net.pl/dev-pl/se-master/schema/gui/table.item.gui.xsd"
+					 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+	<functions>
+		<function>
+			<label>test</label>
+			<icon>asterisk</icon>
+			<name>test</name>
+		</function>
+	</functions>
+</ui_record>

+ 62 - 0
SE/schema/gui/table.gui.xsd

@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+					 xmlns:ogc="http://www.opengis.net/ogc"
+					 xmlns:ui_table="https://biuro.biall-net.pl/dev-pl/se-master/schema/gui/table.gui.xsd"
+					 targetNamespace="https://biuro.biall-net.pl/dev-pl/se-master/schema/gui/table.gui.xsd"
+					 elementFormDefault="qualified">
+
+	<xs:import namespace="http://www.opengis.net/ogc" schemaLocation="http://schemas.opengis.net/filter/1.1.0/filter.xsd"/>
+
+	<xs:element name="ui_table">
+		<xs:complexType>
+			<xs:sequence>
+				<xs:element name="functions" minOccurs="0">
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="function" type="ui_table:ui_function" maxOccurs="unbounded"/>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="filters">
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="filter" type="ui_table:ui_filter" maxOccurs="unbounded"/>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+			</xs:sequence>
+		</xs:complexType>
+	</xs:element>
+
+	<xs:complexType name="ui_function">
+		<xs:sequence>
+			<xs:element name="label" type="xs:string"/>
+			<xs:element name="icon" type="xs:string"/>
+			<xs:element name="name" type="xs:string"/>
+		</xs:sequence>
+	</xs:complexType>
+
+	<xs:complexType name="ui_filter">
+		<xs:sequence>
+			<xs:element name="label" type="xs:string"/>
+			<xs:element name="icon" type="xs:string"/>
+			<xs:element name="name" type="xs:string"/>
+			<xs:element name="buttons">
+				<xs:complexType>
+					<xs:sequence>
+						<xs:element name="button" maxOccurs="unbounded">
+							<xs:complexType>
+								<xs:sequence>
+									<xs:element name="name" type="xs:string"/>
+									<xs:element name="value" type="xs:string"/>
+									<xs:element ref="ogc:Filter"/>
+								</xs:sequence>
+							</xs:complexType>
+						</xs:element>
+					</xs:sequence>
+				</xs:complexType>
+			</xs:element>
+		</xs:sequence>
+	</xs:complexType>
+
+</xs:schema>

+ 29 - 0
SE/schema/gui/table.item.gui.xsd

@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+					 xmlns:ui_record="https://biuro.biall-net.pl/dev-pl/se-master/schema/gui/table.item.gui.xsd"
+					 targetNamespace="https://biuro.biall-net.pl/dev-pl/se-master/schema/gui/table.item.gui.xsd"
+					 elementFormDefault="qualified">
+
+	<xs:element name="ui_record">
+		<xs:complexType>
+			<xs:sequence>
+				<xs:element name="functions">
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="function" type="ui_record:ui_function" maxOccurs="unbounded"/>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+			</xs:sequence>
+		</xs:complexType>
+	</xs:element>
+
+	<xs:complexType name="ui_function">
+		<xs:sequence>
+			<xs:element name="label" type="xs:string"/>
+			<xs:element name="icon" type="xs:string"/>
+			<xs:element name="name" type="xs:string"/>
+		</xs:sequence>
+	</xs:complexType>
+
+</xs:schema>