<?xml version="1.0" encoding="UTF-8"?>
<scenario begin="get_service_type">

    <screen id="get_service_type" type="selector/bigbutton" title="Serviciu">
        <fields>
            <selector-field id="pType" message="Tip serviciu" title="Tip serviciu">
                <items type="static">
                    <item value="0" title="Persoane fizice"/>
                    <item value="1" title="Persoane juridice"/>
                </items>
            </selector-field>
        </fields>
        <actions>
            <action type="Next" title="Next">
                <switch value="pType">
                    <case value="0">
                        <goto target="get_service_PF"/>
                    </case>
                    <case value="1">
                        <goto target="get_service_PJ"/>
                    </case>
                    <default/>
                </switch>
            </action>
            <action type="Prev" title="Prev">
                <goto target="exit"/>
            </action>
            <action type="Exit" title="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>

    <screen id="get_service_PF" type="selector/bigbutton" title="Serviciu">
        <fields>
            <selector-field id="pTypePF" message="Tip serviciu" title="Tip serviciu">
                <items type="static">
                    <item value="0" title="Autorizatie provizorie de circulatie"/>
                    <item value="1" title="Certificat de inmatriculare"/>
                    <item value="2" title="Permis de conducere"/>
                </items>
            </selector-field>
        </fields>
        <actions>
            <action type="Next" title="Next">
                <switch value="pTypePF">
                    <case value="0">
                        <redirect target="103" params="$all"/>
                    </case>
                    <case value="1">
                        <redirect target="102" params="$all"/>
                    </case>
                    <case value="2">
                        <redirect target="101" params="$all"/>
                    </case>
                    <default/>
                </switch>
            </action>
            <action type="Prev" title="Prev">
                <goto target="previous"/>
            </action>
            <action type="Exit" title="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>

    <screen id="get_service_PJ" type="selector/bigbutton" title="Serviciu">
        <fields>
            <selector-field id="pTypePJ" message="Tip serviciu" title="Tip serviciu">
                <items type="static">
                    <item value="0" title="Autorizatie provizorie de circulatie"/>
                    <item value="1" title="Certificat de inmatriculare"/>
                </items>
            </selector-field>
        </fields>
        <actions>
            <action type="Next" title="Next">
                <switch value="pTypePJ">
                    <case value="0">
                        <redirect target="317" params="$all"/>
                    </case>
                    <case value="1">
                        <redirect target="318" params="$all"/>
                    </case>
                    <default/>
                </switch>
            </action>
            <action type="Prev" title="Prev">
                <goto target="previous"/>
            </action>
            <action type="Exit" title="Exit">
                <goto target="exit"/>
            </action>
        </actions>
    </screen>

</scenario>
