113 lines
5.2 KiB
Plaintext
Executable File
113 lines
5.2 KiB
Plaintext
Executable File
<ui:composition xmlns:h="http://java.sun.com/jsf/html"
|
|
xmlns:f="http://java.sun.com/jsf/core"
|
|
xmlns:ui="http://java.sun.com/jsf/facelets"
|
|
xmlns:p="http://primefaces.org/ui"
|
|
xmlns:pe="http://primefaces.org/ui/extensions">
|
|
|
|
<h:form id="formJuridica">
|
|
|
|
<h:panelGrid id="data-content" columns="3">
|
|
<h:panelGrid columns="3">
|
|
<p:outputLabel for="tipoIdenticicacion" value="#{msg_general.lbl_identificationtype}:" />
|
|
<p:selectOneMenu id="tipoIdenticicacion"
|
|
value="#{juridicalPersonController.record.identificationcatalog}"
|
|
var="p" style="width:250px" panelStyle="width:180px" required="true"
|
|
tabindex="1">
|
|
<f:selectItem itemLabel="" itemValue="" />
|
|
<p:ajax listener="#{juridicalPersonController.onChangeId()}" event="change"
|
|
update="identificacion" />
|
|
<f:selectItems value="#{juridicalPersonController.lidentification}" var="id"
|
|
itemLabel="#{id.description}" itemValue="#{id.pk.catalog}" />
|
|
</p:selectOneMenu>
|
|
<p:message for="tipoIdenticicacion" />
|
|
|
|
<p:outputLabel for="nombreRazonSocial" value="#{msg_armas.lbl_nombrerazonsocial}:" />
|
|
<p:inputText id="nombreRazonSocial"
|
|
value="#{juridicalPersonController.record.name}" required="true"
|
|
maxlength="100" style="width:260px;"
|
|
onkeyup="Maia.forceupper(event, this);" tabindex="3">
|
|
</p:inputText>
|
|
<p:message for="nombreRazonSocial" />
|
|
|
|
<p:outputLabel for="sectorEconomico" value="#{msg_armas.lbl_cedulaRepresentante}:" />
|
|
<p:inputText id="sectorEconomico"
|
|
value="#{juridicalPersonController.record.legalrepresentidentification}" required="true"
|
|
maxlength="100" style="width:260px;"
|
|
onkeyup="Maia.forceupper(event, this);" >
|
|
</p:inputText>
|
|
<p:message for="sectorEconomico" />
|
|
</h:panelGrid>
|
|
|
|
<p:spacer width="20"></p:spacer>
|
|
|
|
<h:panelGrid columns="3">
|
|
<p:outputLabel for="identificacion" value="#{msg_general.lbl_identification}:" />
|
|
<p:inputText id="identificacion"
|
|
value="#{juridicalPersonController.record.identification}"
|
|
required="true" maxlength="#{juridicalPersonController.lengthId}"
|
|
style="width:260px;" onkeyup="Maia.forceupper(event, this);"
|
|
disabled="true" tabindex="2" >
|
|
<pe:keyFilter regEx="/[\d\-]/"
|
|
rendered="#{!juridicalPersonController.activeRegEx}" />
|
|
</p:inputText>
|
|
<p:message for="identificacion" />
|
|
|
|
<p:outputLabel for="tipoCliente" value="#{msg_armas.lbl_representantelegal}:" />
|
|
<p:inputText id="tipoCliente"
|
|
value="#{juridicalPersonController.record.legalrepresent}" required="true"
|
|
maxlength="100" style="width:260px;"
|
|
onkeyup="Maia.forceupper(event, this);" >
|
|
</p:inputText>
|
|
<p:message for="tipoCliente" />
|
|
|
|
<p:outputLabel for="actividadEconomica" value="#{msg_general.lbl_activityeconomic}:" />
|
|
<h:panelGrid id="pEditActivity" columns="3">
|
|
<p:inputTextarea id="actividadEconomica"
|
|
value="#{juridicalPersonController.record.econimicact}"
|
|
style="width: 260px;" disabled="false" onkeyup="Maia.forceupper(event, this);" rows="2" cols="180" autoResize="true">
|
|
</p:inputTextarea>
|
|
</h:panelGrid>
|
|
<p:spacer></p:spacer>
|
|
</h:panelGrid>
|
|
|
|
<h:panelGrid id="foto" columns="1" >
|
|
<p:outputLabel for="panelFoto" value="Logo:"/>
|
|
<h:panelGrid id="panelFoto" columns="4">
|
|
<p:inputTextarea rendered="#{!juridicalPersonController.fotoCargada}" style="width: 100px;height: 100px" readonly="true"></p:inputTextarea>
|
|
<p:graphicImage width="100" height="100" rendered="#{juridicalPersonController.fotoCargada}" url="#{juridicalPersonController.rutaFoto}" />
|
|
</h:panelGrid>
|
|
<p:commandButton id="btnCargarFoto" value="Seleccionar imagen" oncomplete="PF('dialogFoto').show()" tabindex="7">
|
|
<p:ajax event="dialogReturn" update="panelFoto"/>
|
|
</p:commandButton>
|
|
|
|
</h:panelGrid>
|
|
|
|
</h:panelGrid>
|
|
|
|
</h:form>
|
|
|
|
<p:dialog widgetVar="dialogFoto" resizable="false" closeOnEscape="true" modal="true" appendTo="@(body)" showEffect="explode" hideEffect="explode"
|
|
styleClass="m-dialog" >
|
|
<f:facet name="header">
|
|
<h:outputText value="Seleccionar logo" />
|
|
</f:facet>
|
|
<h:form id="formFoto">
|
|
<p:messages id="messages" autoUpdate="true" globalOnly="true"/>
|
|
<h:panelGrid id="pEditFoto" columns="2" bodyrows="1">
|
|
<p:fileUpload fileUploadListener="#{juridicalPersonController.uploadPicture}" multiple="false"
|
|
update=":formTable:tabcompany:formJuridica:panelFoto"
|
|
allowTypes="/(\.|\/)(gif|jpe?g|png)$/"
|
|
uploadLabel="Cargar Imagen" cancelLabel="#{msg_armas.lbl_cancelar}"
|
|
label="#{msg_armas.lbl_seleccionar}" oncomplete="PF('dialogFoto').hide()" invalidFileMessage="#{msg_armas.msg_error_tipoarchivoinvalido}"/>
|
|
</h:panelGrid>
|
|
|
|
<h:panelGrid columns="1" >
|
|
<p:commandButton value="#{msg_general.btn_cancell}" oncomplete="PF('dialogFoto').hide()"
|
|
icon="ui-icon-trash" process="@this" immediate="true">
|
|
</p:commandButton>
|
|
</h:panelGrid>
|
|
</h:form>
|
|
</p:dialog>
|
|
|
|
|
|
</ui:composition> |