Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <webPage>
- <properties sub="02" tra="2008">
- <initialJS>c.formulario.posConsultar=function(){if(c.$('PrimerApellido').value != '' || c.$('SegundoApellido').value != '' || c.$('PrimerNombre').value != '' || c.$('C4SegundoNombre').value != '' || c.$('Paises').value != '' || c.$('Direccion').value != '' || c.$('C5Telefono').value != '' || c.$('FechaNacimiento').value != '' || c.$('Genero').value != '') {
- c.$('PrimerApellido').setDisabled(true);
- c.$('SegundoApellido').setDisabled(true);
- c.$('PrimerNombre').setDisabled(true);
- c.$('C4SegundoNombre').setDisabled(true);
- c.$('Paises').setDisabled(true);
- c.$('Direccion').setDisabled(true);
- c.$('C5Telefono').setDisabled(true);
- c.$('FechaNacimiento').setDisabled(true);
- c.$('Genero').setDisabled(true);
- return'PERSONA YA SE ENCUENTRA INGRESADA';
- }}
- c.formulario.preMantener=function(){var cadena1 = '';
- cadena1 = c.$('PrimerApellido').value;
- if(c.$('SegundoApellido').value != '') {
- cadena1 = cadena1 + ' ' + c.$('SegundoApellido').value;
- }
- cadena1 = cadena1 + ' ' + c.$('PrimerNombre').value;
- if(c.$('C4SegundoNombre').value != '') {
- cadena1 = cadena1 + ' ' + c.$('C4SegundoNombre').value;
- }
- alert(cadena1);
- c.$('NombreLegal').value = cadena1;}</initialJS>
- <title>CREACIÓN BÁSICA DE PERSONAS</title>
- <references>
- <reference alias="tpersona1"
- class="com.fitbank.webpages.data.Reference" table="TPERSONA"/>
- <reference alias="tpersonaDirecciones1"
- class="com.fitbank.webpages.data.Reference" table="TPERSONADIRECCIONES">
- <dependencies>
- <item class="com.fitbank.webpages.data.Dependency"
- field="CPERSONA" fromAlias="tpersona1" fromField="CPERSONA"/>
- </dependencies>
- </reference>
- <reference alias="tpersonatelefono1"
- class="com.fitbank.webpages.data.Reference" table="TPERSONATELEFONOS">
- <dependencies>
- <item class="com.fitbank.webpages.data.Dependency"
- field="CPERSONA" fromAlias="tpersona1" fromField="CPERSONA"/>
- </dependencies>
- </reference>
- <reference alias="tnatInfBasica1"
- class="com.fitbank.webpages.data.Reference" table="TNATURALINFORMACIONBASICA">
- <dependencies>
- <item class="com.fitbank.webpages.data.Dependency"
- field="CPERSONA" fromAlias="tpersona1" fromField="CPERSONA"/>
- </dependencies>
- </reference>
- </references>
- </properties>
- <containers>
- <container clo="C" cssClass="column-group">
- <widget class="com.fitbank.webpages.widgets.Label"
- cssClass="field-label" tex="Tipo Persona" x="1" y="1"/>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="Ctipopersona" w="60" x="2" y="1">
- <dataSource alias="tpersona1"
- class="com.fitbank.webpages.data.DataSource"
- field="CTIPOPERSONA" type="CRITERION"/>
- <attribute nom="val">NAT</attribute>
- <attribute nom="mod">0</attribute>
- <behaviors>
- <item
- class="com.fitbank.webpages.formatters.UpperCaseFormatter" elementName="Ctipopersona"/>
- </behaviors>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Label" x="2" y="1"/>
- <widget class="com.fitbank.webpages.widgets.Label"
- cssClass="field-label" tex="Tipo Identificación" x="1" y="2"/>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="CtipoIndentificacion" w="60" x="2" y="2">
- <dataSource alias="tpersona1"
- class="com.fitbank.webpages.data.DataSource"
- field="CTIPOIDENTIFICACION" type="CRITERION"/>
- <attribute nom="lon">3</attribute>
- <attribute nom="req">1</attribute>
- <assistant class="com.fitbank.webpages.assistants.ListOfValues">
- <references>
- <item alias="tiposidentificacion0"
- class="com.fitbank.webpages.data.Reference" table="TTIPOSIDENTIFICACION">
- <dependencies>
- <item class="com.fitbank.webpages.data.Dependency"
- comparator="IN('CED','PAS')" field="CTIPOIDENTIFICACION"/>
- </dependencies>
- </item>
- </references>
- <callback/>
- <preQuery/>
- <fields>
- <item alias="tiposidentificacion0" autoQuery="true"
- class="com.fitbank.webpages.assistants.lov.LOVField"
- elementName="CtipoIndentificacion"
- field="CTIPOIDENTIFICACION" title="Código" type="RECORD"/>
- <item alias="tiposidentificacion0"
- class="com.fitbank.webpages.assistants.lov.LOVField"
- field="DESCRIPCION" title="Descripción" type="RECORD"/>
- </fields>
- </assistant>
- <behaviors>
- <item
- class="com.fitbank.webpages.formatters.UpperCaseFormatter" elementName="CtipoIndentificacion"/>
- </behaviors>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="2"/>
- <widget class="com.fitbank.webpages.widgets.Label"
- cssClass="field-label" tex="Identificación" x="1" y="3"/>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="Identificacion" x="2" y="3">
- <dataSource alias="tpersona1"
- class="com.fitbank.webpages.data.DataSource"
- field="IDENTIFICACION" type="CRITERION"/>
- <attribute nom="jvs">onchange="c.consultar(0);"</attribute>
- <attribute nom="lon">19</attribute>
- <attribute nom="req">1</attribute>
- <behaviors>
- <item
- class="com.fitbank.webpages.formatters.UpperCaseFormatter" elementName="Identificacion"/>
- </behaviors>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="3"/>
- <widget class="com.fitbank.webpages.widgets.Label"
- cssClass="field-label" tex="Primer Apellido" x="1" y="4"/>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="PrimerApellido" x="2" y="4">
- <dataSource alias="tnatInfBasica1"
- class="com.fitbank.webpages.data.DataSource"
- field="APELLIDOPATERNO" type="RECORD"/>
- <attribute nom="lon">49</attribute>
- <attribute nom="req">M</attribute>
- <behaviors>
- <item
- class="com.fitbank.webpages.formatters.UpperCaseFormatter" elementName="PrimerApellido"/>
- <item class="com.fitbank.webpages.formatters.RegexFormatter"
- format="[A-Z' Ñ ÁÉÍÓÚ-]*"
- message="SOLO PUEDE INGRESAR LETRAS" partialFormat="[A-Z' Ñ ÁÉÍÓÚ-]*"/>
- </behaviors>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="4"/>
- <widget class="com.fitbank.webpages.widgets.Label"
- cssClass="field-label" tex="Segundo Apellido" x="3" y="4"/>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="SegundoApellido" x="4" y="4">
- <dataSource alias="tnatInfBasica1"
- class="com.fitbank.webpages.data.DataSource"
- field="APELLIDOMATERNO" type="RECORD"/>
- <attribute nom="lon">49</attribute>
- <attribute nom="req">0</attribute>
- <behaviors>
- <item
- class="com.fitbank.webpages.formatters.UpperCaseFormatter" elementName="SegundoApellido"/>
- <item class="com.fitbank.webpages.formatters.RegexFormatter"
- format="[A-Z' Ñ ÁÉÍÓÚ-]*"
- message="SOLO PUEDE INGRESAR LETRAS" partialFormat="[A-Z' Ñ ÁÉÍÓÚ-]*"/>
- </behaviors>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Label" x="2" y="4"/>
- <widget class="com.fitbank.webpages.widgets.Label"
- cssClass="field-label" tex="Primer Nombre" x="1" y="5"/>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="PrimerNombre" x="2" y="5">
- <dataSource alias="tnatInfBasica1"
- class="com.fitbank.webpages.data.DataSource"
- field="PRIMERNOMBRE" type="RECORD"/>
- <attribute nom="lon">49</attribute>
- <attribute nom="req">M</attribute>
- <behaviors>
- <item
- class="com.fitbank.webpages.formatters.UpperCaseFormatter" elementName="PrimerNombre"/>
- <item class="com.fitbank.webpages.formatters.RegexFormatter"
- format="[A-Z' Ñ ÁÉÍÓÚ-]*"
- message="SOLO PUEDE INGRESAR LETRAS" partialFormat="[A-Z' Ñ ÁÉÍÓÚ-]*"/>
- </behaviors>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="5"/>
- <widget class="com.fitbank.webpages.widgets.Label"
- cssClass="field-label" tex="Segundo Nombre" x="3" y="5"/>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="C4SegundoNombre" x="4" y="5">
- <dataSource alias="tnatInfBasica1"
- class="com.fitbank.webpages.data.DataSource"
- field="SEGUNDONOMBRE" type="RECORD"/>
- <attribute nom="lon">49</attribute>
- <behaviors>
- <item
- class="com.fitbank.webpages.formatters.UpperCaseFormatter" elementName="C4SegundoNombre"/>
- <item class="com.fitbank.webpages.formatters.RegexFormatter"
- format="[A-Z' Ñ ÁÉÍÓÚ-]*"
- message="SOLO PUEDE INGRESAR LETRAS" partialFormat="[A-Z' Ñ ÁÉÍÓÚ-]*"/>
- </behaviors>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Label"
- cssClass="field-label" tex="País" x="1" y="6"/>
- <widget class="com.fitbank.webpages.widgets.Input" tex="Paises"
- w="45" x="2" y="6">
- <dataSource alias="tpersonaDirecciones1"
- class="com.fitbank.webpages.data.DataSource" field="CPAIS" type="RECORD"/>
- <attribute nom="lon">3</attribute>
- <attribute nom="req">M</attribute>
- <assistant class="com.fitbank.webpages.assistants.ListOfValues">
- <references>
- <item alias="tpaises0"
- class="com.fitbank.webpages.data.Reference" table="TPAISES"/>
- </references>
- <callback class="com.fitbank.js.EventFunction"/>
- <preQuery class="com.fitbank.js.FuncionJS"/>
- <fields>
- <item alias="tpaises0" autoQuery="true"
- class="com.fitbank.webpages.assistants.lov.LOVField"
- elementName="Paises" field="CPAIS" title="Código"
- type="RECORD" w="50"/>
- <item alias="tpaises0"
- class="com.fitbank.webpages.assistants.lov.LOVField"
- field="DESCRIPCION" title="Descripción" type="RECORD"/>
- <item alias="tpaises0"
- class="com.fitbank.webpages.assistants.lov.LOVField"
- elementName="CodigoArea" field="CODIGOAREA" type="RECORD" visible="false"/>
- </fields>
- </assistant>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="6"/>
- <widget class="com.fitbank.webpages.widgets.Label"
- cssClass="field-label" tex="Dirección" x="1" y="7"/>
- <widget class="com.fitbank.webpages.widgets.Input" tex="Direccion"
- w="135" x="2" y="7">
- <dataSource alias="tpersonaDirecciones1"
- class="com.fitbank.webpages.data.DataSource" field="DIRECCION" type="RECORD"/>
- <attribute nom="lon">70</attribute>
- <attribute nom="req">M</attribute>
- <assistant class="com.fitbank.webpages.assistants.LongText"/>
- <behaviors>
- <item class="com.fitbank.webpages.formatters.UpperCaseFormatter"/>
- </behaviors>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="7"/>
- <widget class="com.fitbank.webpages.widgets.Label"
- cssClass="field-label" tex="Teléfono" x="1" y="8"/>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="C5Telefono" x="2" y="8">
- <dataSource alias="tpersonatelefono1"
- class="com.fitbank.webpages.data.DataSource"
- field="NUMEROTELEFONO" type="RECORD"/>
- <attribute nom="lon">12</attribute>
- <attribute nom="req">M</attribute>
- <behaviors>
- <item class="com.fitbank.webpages.formatters.RegexFormatter"
- format="[\d\-\s]*" message="VALOR NO VÁLIDO PARA EL CAMPO" partialFormat="[\d\-\s]*"/>
- </behaviors>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="8"/>
- <widget class="com.fitbank.webpages.widgets.Label"
- cssClass="field-label" tex="Fecha de Nacimiento" x="1" y="9"/>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="FechaNacimiento" w="80" x="2" y="9">
- <dataSource alias="tnatInfBasica1"
- class="com.fitbank.webpages.data.DataSource"
- field="FNACIMIENTO" type="RECORD"/>
- <attribute nom="lon">10</attribute>
- <attribute nom="req">M</attribute>
- <assistant class="com.fitbank.webpages.assistants.Calendar"/>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="9"/>
- <widget class="com.fitbank.webpages.widgets.Label"
- cssClass="field-label" tex="Edad" x="3" y="9"/>
- <widget class="com.fitbank.webpages.widgets.Input" tex="anio"
- x="4" y="9">
- <attribute nom="val">=FULLAGE(FechaNacimiento)</attribute>
- <attribute nom="mod">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Label"
- cssClass="field-label" tex="Género" x="1" y="10"/>
- <widget class="com.fitbank.webpages.widgets.ComboBox" tex="Genero"
- x="2" y="10">
- <dataSource alias="tnatInfBasica1"
- class="com.fitbank.webpages.data.DataSource" field="GENERO" type="RECORD"/>
- <attribute nom="req">M</attribute>
- <attribute nom="cho">M,F</attribute>
- <attribute nom="dat">Masculino,Femenino</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="10"/>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="CpersonaTper" w="0">
- <dataSource alias="tpersona1"
- class="com.fitbank.webpages.data.DataSource" field="CPERSONA" type="RECORD"/>
- <attribute nom="vis">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="CestatusPersona" w="0">
- <dataSource alias="tpersona1"
- class="com.fitbank.webpages.data.DataSource"
- field="CESTATUSPERSONA" type="RECORD"/>
- <attribute nom="val">001</attribute>
- <attribute nom="vis">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="EstadoCivil" w="20">
- <dataSource alias="tnatInfBasica1"
- class="com.fitbank.webpages.data.DataSource"
- field="CESTADOCIVIL" type="RECORD"/>
- <attribute nom="val">1</attribute>
- <attribute nom="lon">1</attribute>
- <attribute nom="req">1</attribute>
- <attribute nom="vis">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="CcategoriaTrato" w="0">
- <dataSource alias="tpersona1"
- class="com.fitbank.webpages.data.DataSource"
- field="CCATEGORIATRATO" type="RECORD"/>
- <attribute nom="val">DEP</attribute>
- <attribute nom="vis">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="TipoTelefono" w="0">
- <dataSource alias="tpersonatelefono1"
- class="com.fitbank.webpages.data.DataSource"
- field="CTIPOTELEFONO" type="RECORD"/>
- <attribute nom="val">TEL</attribute>
- <attribute nom="vis">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="CpersonaTel" w="0">
- <dataSource alias="tpersonatelefono1"
- class="com.fitbank.webpages.data.DataSource" field="CPERSONA" type="RECORD"/>
- <attribute nom="vis">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="CodigoArea" w="0">
- <dataSource alias="tpersonatelefono1"
- class="com.fitbank.webpages.data.DataSource"
- field="CODIGOAREA" type="RECORD"/>
- <attribute nom="vis">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Input" tex="Stelefono" w="0">
- <dataSource alias="tpersonatelefono1"
- class="com.fitbank.webpages.data.DataSource" field="STELEFONO" type="RECORD"/>
- <attribute nom="vis">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="CpersonaInfBa" w="0">
- <dataSource alias="tnatInfBasica1"
- class="com.fitbank.webpages.data.DataSource" field="CPERSONA" type="RECORD"/>
- <attribute nom="vis">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="NuemeroDir" w="0">
- <dataSource alias="tpersonaDirecciones1"
- class="com.fitbank.webpages.data.DataSource"
- field="NUMERODIRECCION" type="RECORD"/>
- <attribute nom="vis">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="TipoDireccion" w="0">
- <dataSource alias="tpersonaDirecciones1"
- class="com.fitbank.webpages.data.DataSource"
- field="CTIPODIRECCION" type="RECORD"/>
- <attribute nom="val">HA</attribute>
- <attribute nom="vis">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="DirPricipal" w="0">
- <dataSource alias="tpersonaDirecciones1"
- class="com.fitbank.webpages.data.DataSource"
- field="DIRECCIONPRINCIPAL" type="RECORD"/>
- <attribute nom="val">1</attribute>
- <attribute nom="vis">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="CpersonaDir" w="0">
- <dataSource alias="tpersonaDirecciones1"
- class="com.fitbank.webpages.data.DataSource" field="CPERSONA" type="RECORD"/>
- <attribute nom="vis">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="NombreLegal" w="0">
- <dataSource alias="tpersona1"
- class="com.fitbank.webpages.data.DataSource"
- field="NOMBRELEGAL" type="RECORD"/>
- <attribute nom="mod">0</attribute>
- <attribute nom="vis">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="CidiomaPerso" w="0">
- <dataSource alias="tpersona1"
- class="com.fitbank.webpages.data.DataSource" field="CIDIOMA" type="RECORD"/>
- <attribute nom="val">ES</attribute>
- <attribute nom="vis">0</attribute>
- </widget>
- <widget class="com.fitbank.webpages.widgets.Input"
- tex="personaNoValida" w="0" x="2" y="3">
- <dataSource class="com.fitbank.webpages.data.DataSource"
- field="_PERSONA_NO_VALIDA" type="CONTROL"/>
- <attribute nom="val">0</attribute>
- <attribute nom="vis">0</attribute>
- </widget>
- </container>
- </containers>
- </webPage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement