Запрос получения списка мест (занятых, свободных или всех), объектов, фрагментов и их координат, статусов мест и др.
Общие параметры:
Как предполагается работать с планом зала:
Тэги и атрибуты ответа:
Для запроса Info тэг Session отсутствует.
Атрибуты и вложенные тэги Objects:
Атрибуты и вложенные тэги Place:
Внимание:
Служит для получения всех мест, фрагментов и объектов.
Обязательные параметры:
Дополнительные параметры:
Пример запроса
ServiceID=1&QueryCode=GetHallPlan&Theatres=&Halls=&Levels=&ListType=Info;Row;Place;X;Y;Width;Height;Type;Fragment;Object;Background;Image&Encoding=Windows-1251&Version=3&Expect=
Пример ответа
<?xml version="1.0" encoding="Windows-1251" standalone="yes"?>
<XML>
<Result>Ok</Result><Error></Error><Remark></Remark>
<Data>
<Theatres>
<Theatre ID="2">
<Halls>
<Hall ID="1" KpID='29882'>
<Levels>
<Level ID="1" Geometry="1">
<Background>
<Color R="240" G="240" B="240">15790320</Color>
</Background>
<Image>
<![CDATA[]]>
</Image>
<Objects>
<Object X="880" Y="130" Width="70" Height="35" ObjType="1" TextAngle='0'>
<Name>
<![CDATA[Ряд1]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="170" Width="70" Height="35" ObjType="1" TextAngle='0'>
<Name>
<![CDATA[Ряд2]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="210" Width="70" Height="35" ObjType="1 TextAngle='0'">
<Name>
<![CDATA[Ряд3]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="250" Width="70" Height="35" ObjType="1" TextAngle='-1'>
<Name>
<![CDATA[Ряд4]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="290" Width="70" Height="35" ObjType="1" TextAngle='-1'>
<Name>
<![CDATA[Ряд5]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="330" Width="70" Height="35" ObjType="1" TextAngle='-1'>
<Name>
<![CDATA[Ряд6]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="370" Width="70" Height="35" ObjType="1" TextAngle='-1'>
<Name>
<![CDATA[Ряд7]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="410" Width="70" Height="35" ObjType="1" TextAngle='-1'>
<Name>
<![CDATA[Ряд8]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="450" Width="70" Height="35" ObjType="1" TextAngle='1'>
<Name>
<![CDATA[Ряд9]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="490" Width="70" Height="35" ObjType="1" TextAngle='1'>
<Name>
<![CDATA[Ряд10]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="530" Width="70" Height="35" ObjType="1" TextAngle='1'>
<Name>
<![CDATA[Ряд11]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="570" Width="70" Height="35" ObjType="1" TextAngle='1'>
<Name>
<![CDATA[Ряд12]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="610" Width="70" Height="35" ObjType="1" TextAngle='1'>
<Name>
<![CDATA[Ряд13]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="650" Width="70" Height="35" ObjType="1" TextAngle='1'>
<Name>
<![CDATA[Ряд14]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="690" Width="70" Height="35" ObjType="1" TextAngle='1'>
<Name>
<![CDATA[Ряд15]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="5" Y="4" Width="944" Height="121" ObjType="1 TextAngle='1'">
<Name>
<![CDATA[Экран]]>
</Name>
<Color R="0" G="255" B="255">16776960</Color>
</Object>
<Object X="500" Y="400" Width="944" Height="121" ObjType="6" TextAngle='1'>
<Name>
<![CDATA[Входная дверь]]>
</Name>
<Color R="0" G="255" B="255">16776960</Color>
</Object>
<Object X="550" Y="400" Width="944" Height="121" ObjType="7" TextAngle='1'>
<Name>
<![CDATA[Выходная дверь]]>
</Name>
<Color R="0" G="255" B="255">16776960</Color>
</Object>
</Objects>
<Fragments>
</Fragments>
<Places Width="955" Height="730" PlacesCount="300" EntrancePlacesCount="0" FreeEntrancePlacesCount="0">
<Place ID="3" Fragment="0" Row="1" Place="1" X="80" Y="130" Width="35" Height="35" Type="3">
</Place>
<Place ID="12" Fragment="0" Row="1" Place="10" X="440" Y="130" Width="35" Height="35" Type="3">
</Place>
<Place ID="13" Fragment="0" Row="1" Place="11" X="480" Y="130" Width="35" Height="35" Type="3">
</Place>
<Place ID="14" Fragment="0" Row="1" Place="12" X="520" Y="130" Width="35" Height="35" Type="3">
</Place>
<Place ID="15" Fragment="0" Row="1" Place="13" X="560" Y="130" Width="35" Height="35" Type="3">
</Place>
<Place ID="16" Fragment="0" Row="1" Place="14" X="600" Y="130" Width="35" Height="35" Type="3">
</Place>
<!-- тут места -->
<Place ID="179" Fragment="0" Row="9" Place="9" X="400" Y="450" Width="35" Height="35" Type="2">
</Place>
</Places>
</Level>
<Level ID="5" Geometry="1">
<!-- аналогично левелу 1 -->
</Level>
</Levels>
</Hall>
<Hall ID="2" KpID='29883'>
<!-- аналогично залу 1 -->
</Hall>
</Halls>
</Theatre>
</Theatres>
</Data>
</XML>
Служит для получения информации о возможности занять места на определённом мероприятии.
Обязательные параметры:
Пример запроса
ServiceID=1&QueryCode=GetHallPlan&CardCode=&Sessions=868&ListType=Row;Place;X;Y;Width;Height;Type;Fragment;Status;Object;Background;Image;NotAccessible;Group&Encoding=Windows-1251&Version=3&Archive=0&Expect=
Пример ответа
<?xml version="1.0" encoding="Windows-1251" standalone="yes"?>
<XML>
<Result>Ok</Result>
<Error>
</Error>
<Remark>
</Remark>
<Data>
<Session ID="868" Geometry="1" ShowBusyPlaces="1">
<Theatre ID="2">
<Hall ID="1">
<Levels>
<Level ID="1" Reservation="1" Sale="1" EmploymentPercent="0">
<Background>
<Color R="240" G="240" B="240">15790320</Color>
</Background>
<Objects>
<Object X="880" Y="130" Width="70" Height="35" ObjType="1" TextAngle='1'>
<Name>
<![CDATA[Ряд1]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="170" Width="70" Height="35" ObjType="1" TextAngle='1'>
<Name>
<![CDATA[Ряд2]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="210" Width="70" Height="35" ObjType="1" TextAngle='0'>
<Name>
<![CDATA[Ряд3]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="250" Width="70" Height="35" ObjType="1" TextAngle='0'>
<Name>
<![CDATA[Ряд4]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="290" Width="70" Height="35" ObjType="1" TextAngle='0'>
<Name>
<![CDATA[Ряд5]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="330" Width="70" Height="35" ObjType="1" TextAngle='0'>
<Name>
<![CDATA[Ряд6]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="370" Width="70" Height="35" ObjType="1" TextAngle='0'>
<Name>
<![CDATA[Ряд7]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="410" Width="70" Height="35" ObjType="1" TextAngle='0'>
<Name>
<![CDATA[Ряд8]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="450" Width="70" Height="35" ObjType="1" TextAngle='0'>
<Name>
<![CDATA[Ряд9]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<Object X="880" Y="490" Width="70" Height="35" ObjType="1" TextAngle='0'>
<Name>
<![CDATA[Ряд10]]>
</Name>
<Color R="255" G="255" B="192">12648447</Color>
</Object>
<!-- много объектов -->
</Objects>
<Places PlacesCount="300" PlacesLimit="500" Width="955" Height="730" EntrancePlacesCount="100" FreeEntrancePlacesCount="21">
<Place ID="3" Fragment="0" Row="1" Place="1" X="80" Y="130" Width="35" Height="35" Type="3" Status="1">
</Place>
<Place ID="12" Fragment="0" Row="1" Place="10" X="440" Y="130" Width="35" Height="35" Type="3" Status="1" Group="1">
</Place>
<Place ID="13" Fragment="0" Row="1" Place="11" X="480" Y="130" Width="35" Height="35" Type="3" Status="1" Group="1">
</Place>
<Place ID="14" Fragment="0" Row="1" Place="12" X="520" Y="130" Width="35" Height="35" Type="3" Status="1" Group="0">
</Place>
<Place ID="15" Fragment="0" Row="1" Place="13" X="560" Y="130" Width="35" Height="35" Type="3" Status="1" Group="0">
</Place>
<Place ID="16" Fragment="0" Row="1" Place="14" X="600" Y="130" Width="35" Height="35" Type="3" Status="1" Group="0">
</Place>
<Place ID="17" Fragment="0" Row="1" Place="15" X="640" Y="130" Width="35" Height="35" Type="3" Status="1" Group="0">
</Place>
<Place ID="18" Fragment="0" Row="1" Place="16" X="680" Y="130" Width="35" Height="35" Type="3" Status="1" Group="0">
</Place>
<!-- места -->
</Places>
</Level>
<Level ID="5" Reservation="1" Sale="1" EmploymentPercent="0">
<!-- аналогично другим левелам -->
</Level>
</Levels>
</Hall>
</Theatre>
<Movie ID="3">
</Movie>
<Date>10.05.2015</Date>
<Time>04:10</Time>
<Format ID="1">
<![CDATA[3D]]>
</Format>
</Session>
</Data>
</XML>
История версий запроса GetHallPlan
[5.0.1.44] и [5.5.1.5] Добавлен вывод параметров EntrancePlacesCount="100" FreeEntrancePlacesCount="21"
[4.0.5.33] [+] Появился атрибут «IsCovid» и «FreeForSale»
[4.0.3.3] [+] Появился атрибут «KpID»