douidefinition.xml <?xml version="1.0" encoding="UTF-8"?> <doui:douiDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:doui="http://www.lumis.com.br/lumisportal/xsd/doui" xmlns:control="http://www.lumis.com.br/douicontrols"> <service id="corporateHoteisAdmin6"> <sources> <source id="default" type="table"> <table>tr3_hotel</table> <fields> <field id="hotelId" display="false" name="ID" dataType="string" isPrimaryKey="true"></field> <field id="nome" name="Nome" dataType="string" isPrimaryName="true" required="true" isSearchable="true"></field> <field id="introducao" name="Introdução" dataType="text" isSearchable="true" isIntroduction="true" display="false"></field> <field id="descricao" name="Descrição" dataType="html" isSearchable="true" display="false"></field> <field id="imagem" name="Imagem" dataType="image" doLookup="true"></field> <field id="lotado" name="Lotado" dataType="integer" display="true"> <options> <option value="0">Não</option> <option value="1">Sim</option> </options> </field> <field id="cidadeId" name="Cidade" dataType="string" lookupRelationId="cidade" lookupFieldId="nome" includeAlways="true"></field> <field id="notaApresentacao" name="Apresentação" dataType="integer" display="false"> <options> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </options> </field> <field id="notaConforto" name="Conforto" dataType="integer" display="false"> <options> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </options> </field> <field id="notaServicos" name="Serviços" dataType="integer" display="false"> <options> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </options> </field> <field id="notaLocalizacao" name="Localização" dataType="integer" display="false"> <options> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </options> </field> <field id="pontuacao" name="Pontuação" dataType="string" display="true"></field> </fields> <relations> <relation id="cidade"> <relationField fieldId="cidadeId" foreignFieldId="cidadeId"></relationField> </relation> </relations> </source> <source id="cidade" type="table"> <table>tr3_cidade</table> <fields> <field id="cidadeId" display="false" name="ID" dataType="string" isPrimaryKey="true"></field> <field id="nome" name="Nome" dataType="string" isPrimaryName="true" required="true"></field> <field id="uf" name="UF" dataType="string" display="true"></field> </fields> </source> <source id="uf"> <dataProviderClassName>corporate.hoteisadmin6.UFDataProvider</dataProviderClassName> <fields> <field id="uf" name="UF" dataType="string" isPrimaryKey="true" isPrimaryName="true"></field> </fields> </source> </sources> </service> <interfaces> <!-- Usuário final --> <interface id="list"> <sources> <source id="default"> <fields inherit="all"> <field id="introducao" display="true" ></field> <field id="imagem" display="false" ></field> <field id="lotado" display="false" ></field> <field id="cidadeId" doLookup="true" ></field> </fields> <filters> <filter id="lotado" hidden="true" value="0" ></filter> </filters> <orderBy> <field id="cidadeId" direction="ascending" ></field> <field id="nome" direction="descending" ></field> </orderBy> </source> <source id="cidade" ></source> </sources> </interface> <interface id="details"> <sources> <source id="default"> <fields inherit="all"> <field id="cidadeId" doLookup="true" ></field> <field id="introducao" display="true" ></field> <field id="descricao" display="true" ></field> <field id="lotado" display="false" ></field> </fields> </source> <source id="cidade" ></source> </sources> </interface> <!-- Administração de cidades --> <interface id="adminCidade"> <sources> <source id="cidade"></source> <source id="uf" ></source> </sources> <hyperLinks></hyperLinks> </interface> <interface id="addAdminCidade"> <sources> <source id="cidade"></source> <source id="uf"></source> </sources> <controls> <control type="lum_form"> <control type="lum_propertyPage"> <control type="lum_controlGroup" title="Informações Básicas"> <control type="lum_table"> <tr> <td> <control type="lum_label" dataId="nome"></control> </td> <td > <control type="lum_inputText" id="nome"></control> </td> </tr> <tr> <td> <control type="lum_label" dataId="uf"></control> </td> <td > <control type="lum_dropDownList" id="uf" optionsSourceId="uf" sourceId="cidade" style="width:126px" renderBlankOption="false" valueFieldId="uf" textFieldId="uf"></control> </td> </tr> </control> </control> </control> </control> </controls> </interface> <interface id="editAdminCidade"> <sources> <source id="cidade"></source> <source id="uf"></source> </sources> <controls> <control type="lum_form"> <control type="lum_filters" id="filters" ></control> <control type="lum_propertyPage"> <control type="lum_controlGroup" title="Informações Básicas"> <control type="lum_table"> <tr> <td> <control type="lum_label" dataId="nome" ></control> </td> <td> <control type="lum_inputText" id="nome"></control> </td> </tr> <tr> <td> <control type="lum_label" dataId="uf"></control> </td> <td > <control type="lum_dropDownList" id="uf" optionsSourceId="uf" sourceId="cidade" style="width:126px" renderBlankOption="false"></control> </td> </tr> </control> </control> </control> </control> </controls> </interface> <!-- Administração de hotéis --> <interface id="admin"> <sources> <source id="default"> <fields inherit="all"> <field id="imagem" display="false" ></field> <field id="lotado" doOptionLookup="true" ></field> <field id="cidadeId" doLookup="true" ></field> </fields> <filters> <filter id="cidadeId" showItems="all" ></filter> </filters> <orderBy> <field id="nome" direction="ascending" ></field> </orderBy> </source> <source id="cidade"></source> </sources> <controls> <control type="lum_form"> <control type="lum_interfaceHeader"></control> <control id="interfaceHeaderButtons" type="lum_interfaceHeaderButtons"> <control id="addButton" type="lum_addButton" ></control> <control id="editButton" type="lum_editButton" ></control> <control id="deleteButton" type="lum_deleteButton" ></control> <control id="lotadoButton" text="Definir como lotado" type="lum_button"> <image>corporate/client/images/Lotado.gif</image> <onClick type="script"> <script>if(!confirm('Você tem certeza que quer definir o(s) item(s) selecionado(s) como lotado(s)?')) return;</script> <validators> <validator controlId="adminList.tabulardata" type="selectedMany" ></validator> </validators> </onClick> <onClick type="processAction"> <processActionId>lotar</processActionId> </onClick> </control> </control> <control type="lum_adminList" id="adminList" dataId="hotelId"></control> </control> </controls> <processActions> <processAction id="delete" type="tableDeleteData" sourceId="default"> <response type="doui_standardEmbedded"></response> </processAction> <processAction id="lotar" sourceId="default" className="corporate.hoteisadmin6.HotelProcessActionHandler"> <response type="doui_standardEmbedded"></response> </processAction> </processActions> </interface> <interface id="addAdmin"> <controls> <control type="lum_form"> <control type="lum_propertyPage"> <control type="lum_controlGroup" title="Informações Básicas"> <control type="lum_table"> <tr> <td> <control type="lum_label" dataId="nome"></control> </td> <td> <control type="lum_inputText" id="nome"></control> </td> </tr> <tr> <td> <control type="lum_label" dataId="introducao"></control> </td> <td> <control type="lum_inputTextArea" id="introducao" rows="2"></control> </td> </tr> <tr> <td colspan="2"> <control type="lum_label" dataId="descricao"></control> </td> </tr> <tr> <td colspan="2"> <control type="lum_inputHtmlEditor" id="descricao"></control> </td> </tr> <tr> <td> <control type="lum_label" dataId="imagem"></control> </td> <td> <control type="lum_imagePicker" id="imagem"></control> </td> </tr> <tr> <td> <control type="lum_label" dataId="cidadeId"></control> </td> <td> <control type="lum_dropDownList" id="cidadeId" optionsSourceId="cidade" sourceId="default" style="width:386px" renderBlankOption="false"></control> </td> </tr> <tr> <td> <control type="lum_label" dataId="lotado"></control> </td> <td> <control type="lum_checkBox" id="lotado"></control> </td> </tr> </control> </control> <control type="lum_controlGroup" title="Classificação"> <control type="tr3_classificacao" className="corporate.hoteisadmin6.ClassificacaoControl"> <fields> <field id="notaApresentacao"></field> <field id="notaConforto"></field> <field id="notaServicos"></field> <field id="notaLocalizacao"></field> </fields> <outputField id="pontuacao"></outputField> </control> </control> </control> </control> </controls> </interface> <interface id="editAdmin"> <controls> <control type="lum_form"> <control type="lum_filters" id="filters" ></control> <control type="lum_propertyPage"> <control type="lum_controlGroup" title="Informações Básicas"> <control type="lum_table"> <tr> <td> <control type="lum_label" dataId="nome"></control> </td> <td> <control type="lum_inputText" id="nome"></control> </td> </tr> <tr> <td> <control type="lum_label" dataId="introducao"></control> </td> <td> <control type="lum_inputTextArea" id="introducao" rows="2"></control> </td> </tr> <tr> <td colspan="2"> <control type="lum_label" dataId="descricao"></control> </td> </tr> <tr> <td colspan="2"> <control type="lum_inputHtmlEditor" id="descricao"></control> </td> </tr> <tr> <td> <control type="lum_label" dataId="imagem"></control> </td> <td> <control type="lum_imagePicker" id="imagem"></control> </td> </tr> <tr> <td> <control type="lum_label" dataId="cidadeId"></control> </td> <td> <control type="lum_dropDownList" id="cidadeId" optionsSourceId="cidade" sourceId="default" style="width:386px" renderBlankOption="false"></control> </td> </tr> <tr> <td> <control type="lum_label" dataId="lotado"></control> </td> <td> <control type="lum_checkBox" id="lotado"></control> </td> </tr> </control> </control> <control type="lum_controlGroup" title="Classificação"> <control type="tr3_classificacao" className="corporate.hoteisadmin6.ClassificacaoControl"> <fields> <field id="notaApresentacao"></field> <field id="notaConforto"></field> <field id="notaServicos"></field> <field id="notaLocalizacao"></field> </fields> <outputField id="pontuacao"></outputField> </control> </control> </control> </control> </controls> </interface> </interfaces> </doui:douiDefinition>