Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.96 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <webPage>
  3. <properties sub="02" tra="2008">
  4. <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 != '') {
  5. c.$('PrimerApellido').setDisabled(true);
  6. c.$('SegundoApellido').setDisabled(true);
  7. c.$('PrimerNombre').setDisabled(true);
  8. c.$('C4SegundoNombre').setDisabled(true);
  9. c.$('Paises').setDisabled(true);
  10. c.$('Direccion').setDisabled(true);
  11. c.$('C5Telefono').setDisabled(true);
  12. c.$('FechaNacimiento').setDisabled(true);
  13. c.$('Genero').setDisabled(true);
  14. return'PERSONA YA SE ENCUENTRA INGRESADA';
  15. }}
  16. c.formulario.preMantener=function(){var cadena1 = '';
  17. cadena1 = c.$('PrimerApellido').value;
  18.  
  19. if(c.$('SegundoApellido').value != '') {
  20. cadena1 = cadena1 + ' ' + c.$('SegundoApellido').value;
  21. }
  22. cadena1 = cadena1 + ' ' + c.$('PrimerNombre').value;
  23.  
  24. if(c.$('C4SegundoNombre').value != '') {
  25. cadena1 = cadena1 + ' ' + c.$('C4SegundoNombre').value;
  26. }
  27. alert(cadena1);
  28. c.$('NombreLegal').value = cadena1;}</initialJS>
  29. <title>CREACIÓN BÁSICA DE PERSONAS</title>
  30. <references>
  31. <reference alias="tpersona1"
  32. class="com.fitbank.webpages.data.Reference" table="TPERSONA"/>
  33. <reference alias="tpersonaDirecciones1"
  34. class="com.fitbank.webpages.data.Reference" table="TPERSONADIRECCIONES">
  35. <dependencies>
  36. <item class="com.fitbank.webpages.data.Dependency"
  37. field="CPERSONA" fromAlias="tpersona1" fromField="CPERSONA"/>
  38. </dependencies>
  39. </reference>
  40. <reference alias="tpersonatelefono1"
  41. class="com.fitbank.webpages.data.Reference" table="TPERSONATELEFONOS">
  42. <dependencies>
  43. <item class="com.fitbank.webpages.data.Dependency"
  44. field="CPERSONA" fromAlias="tpersona1" fromField="CPERSONA"/>
  45. </dependencies>
  46. </reference>
  47. <reference alias="tnatInfBasica1"
  48. class="com.fitbank.webpages.data.Reference" table="TNATURALINFORMACIONBASICA">
  49. <dependencies>
  50. <item class="com.fitbank.webpages.data.Dependency"
  51. field="CPERSONA" fromAlias="tpersona1" fromField="CPERSONA"/>
  52. </dependencies>
  53. </reference>
  54. </references>
  55. </properties>
  56. <containers>
  57. <container clo="C" cssClass="column-group">
  58. <widget class="com.fitbank.webpages.widgets.Label"
  59. cssClass="field-label" tex="Tipo Persona" x="1" y="1"/>
  60. <widget class="com.fitbank.webpages.widgets.Input"
  61. tex="Ctipopersona" w="60" x="2" y="1">
  62. <dataSource alias="tpersona1"
  63. class="com.fitbank.webpages.data.DataSource"
  64. field="CTIPOPERSONA" type="CRITERION"/>
  65. <attribute nom="val">NAT</attribute>
  66. <attribute nom="mod">0</attribute>
  67. <behaviors>
  68. <item
  69. class="com.fitbank.webpages.formatters.UpperCaseFormatter" elementName="Ctipopersona"/>
  70. </behaviors>
  71. </widget>
  72. <widget class="com.fitbank.webpages.widgets.Label" x="2" y="1"/>
  73. <widget class="com.fitbank.webpages.widgets.Label"
  74. cssClass="field-label" tex="Tipo Identificación" x="1" y="2"/>
  75. <widget class="com.fitbank.webpages.widgets.Input"
  76. tex="CtipoIndentificacion" w="60" x="2" y="2">
  77. <dataSource alias="tpersona1"
  78. class="com.fitbank.webpages.data.DataSource"
  79. field="CTIPOIDENTIFICACION" type="CRITERION"/>
  80. <attribute nom="lon">3</attribute>
  81. <attribute nom="req">1</attribute>
  82. <assistant class="com.fitbank.webpages.assistants.ListOfValues">
  83. <references>
  84. <item alias="tiposidentificacion0"
  85. class="com.fitbank.webpages.data.Reference" table="TTIPOSIDENTIFICACION">
  86. <dependencies>
  87. <item class="com.fitbank.webpages.data.Dependency"
  88. comparator="IN('CED','PAS')" field="CTIPOIDENTIFICACION"/>
  89. </dependencies>
  90. </item>
  91. </references>
  92. <callback/>
  93. <preQuery/>
  94. <fields>
  95. <item alias="tiposidentificacion0" autoQuery="true"
  96. class="com.fitbank.webpages.assistants.lov.LOVField"
  97. elementName="CtipoIndentificacion"
  98. field="CTIPOIDENTIFICACION" title="Código" type="RECORD"/>
  99. <item alias="tiposidentificacion0"
  100. class="com.fitbank.webpages.assistants.lov.LOVField"
  101. field="DESCRIPCION" title="Descripción" type="RECORD"/>
  102. </fields>
  103. </assistant>
  104. <behaviors>
  105. <item
  106. class="com.fitbank.webpages.formatters.UpperCaseFormatter" elementName="CtipoIndentificacion"/>
  107. </behaviors>
  108. </widget>
  109. <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="2"/>
  110. <widget class="com.fitbank.webpages.widgets.Label"
  111. cssClass="field-label" tex="Identificación" x="1" y="3"/>
  112. <widget class="com.fitbank.webpages.widgets.Input"
  113. tex="Identificacion" x="2" y="3">
  114. <dataSource alias="tpersona1"
  115. class="com.fitbank.webpages.data.DataSource"
  116. field="IDENTIFICACION" type="CRITERION"/>
  117. <attribute nom="jvs">onchange="c.consultar(0);"</attribute>
  118. <attribute nom="lon">19</attribute>
  119. <attribute nom="req">1</attribute>
  120. <behaviors>
  121. <item
  122. class="com.fitbank.webpages.formatters.UpperCaseFormatter" elementName="Identificacion"/>
  123. </behaviors>
  124. </widget>
  125. <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="3"/>
  126. <widget class="com.fitbank.webpages.widgets.Label"
  127. cssClass="field-label" tex="Primer Apellido" x="1" y="4"/>
  128. <widget class="com.fitbank.webpages.widgets.Input"
  129. tex="PrimerApellido" x="2" y="4">
  130. <dataSource alias="tnatInfBasica1"
  131. class="com.fitbank.webpages.data.DataSource"
  132. field="APELLIDOPATERNO" type="RECORD"/>
  133. <attribute nom="lon">49</attribute>
  134. <attribute nom="req">M</attribute>
  135. <behaviors>
  136. <item
  137. class="com.fitbank.webpages.formatters.UpperCaseFormatter" elementName="PrimerApellido"/>
  138. <item class="com.fitbank.webpages.formatters.RegexFormatter"
  139. format="[A-Z' Ñ ÁÉÍÓÚ-]*"
  140. message="SOLO PUEDE INGRESAR LETRAS" partialFormat="[A-Z' Ñ ÁÉÍÓÚ-]*"/>
  141. </behaviors>
  142. </widget>
  143. <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="4"/>
  144. <widget class="com.fitbank.webpages.widgets.Label"
  145. cssClass="field-label" tex="Segundo Apellido" x="3" y="4"/>
  146. <widget class="com.fitbank.webpages.widgets.Input"
  147. tex="SegundoApellido" x="4" y="4">
  148. <dataSource alias="tnatInfBasica1"
  149. class="com.fitbank.webpages.data.DataSource"
  150. field="APELLIDOMATERNO" type="RECORD"/>
  151. <attribute nom="lon">49</attribute>
  152. <attribute nom="req">0</attribute>
  153. <behaviors>
  154. <item
  155. class="com.fitbank.webpages.formatters.UpperCaseFormatter" elementName="SegundoApellido"/>
  156. <item class="com.fitbank.webpages.formatters.RegexFormatter"
  157. format="[A-Z' Ñ ÁÉÍÓÚ-]*"
  158. message="SOLO PUEDE INGRESAR LETRAS" partialFormat="[A-Z' Ñ ÁÉÍÓÚ-]*"/>
  159. </behaviors>
  160. </widget>
  161. <widget class="com.fitbank.webpages.widgets.Label" x="2" y="4"/>
  162. <widget class="com.fitbank.webpages.widgets.Label"
  163. cssClass="field-label" tex="Primer Nombre" x="1" y="5"/>
  164. <widget class="com.fitbank.webpages.widgets.Input"
  165. tex="PrimerNombre" x="2" y="5">
  166. <dataSource alias="tnatInfBasica1"
  167. class="com.fitbank.webpages.data.DataSource"
  168. field="PRIMERNOMBRE" type="RECORD"/>
  169. <attribute nom="lon">49</attribute>
  170. <attribute nom="req">M</attribute>
  171. <behaviors>
  172. <item
  173. class="com.fitbank.webpages.formatters.UpperCaseFormatter" elementName="PrimerNombre"/>
  174. <item class="com.fitbank.webpages.formatters.RegexFormatter"
  175. format="[A-Z' Ñ ÁÉÍÓÚ-]*"
  176. message="SOLO PUEDE INGRESAR LETRAS" partialFormat="[A-Z' Ñ ÁÉÍÓÚ-]*"/>
  177. </behaviors>
  178. </widget>
  179. <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="5"/>
  180. <widget class="com.fitbank.webpages.widgets.Label"
  181. cssClass="field-label" tex="Segundo Nombre" x="3" y="5"/>
  182. <widget class="com.fitbank.webpages.widgets.Input"
  183. tex="C4SegundoNombre" x="4" y="5">
  184. <dataSource alias="tnatInfBasica1"
  185. class="com.fitbank.webpages.data.DataSource"
  186. field="SEGUNDONOMBRE" type="RECORD"/>
  187. <attribute nom="lon">49</attribute>
  188. <behaviors>
  189. <item
  190. class="com.fitbank.webpages.formatters.UpperCaseFormatter" elementName="C4SegundoNombre"/>
  191. <item class="com.fitbank.webpages.formatters.RegexFormatter"
  192. format="[A-Z' Ñ ÁÉÍÓÚ-]*"
  193. message="SOLO PUEDE INGRESAR LETRAS" partialFormat="[A-Z' Ñ ÁÉÍÓÚ-]*"/>
  194. </behaviors>
  195. </widget>
  196. <widget class="com.fitbank.webpages.widgets.Label"
  197. cssClass="field-label" tex="País" x="1" y="6"/>
  198. <widget class="com.fitbank.webpages.widgets.Input" tex="Paises"
  199. w="45" x="2" y="6">
  200. <dataSource alias="tpersonaDirecciones1"
  201. class="com.fitbank.webpages.data.DataSource" field="CPAIS" type="RECORD"/>
  202. <attribute nom="lon">3</attribute>
  203. <attribute nom="req">M</attribute>
  204. <assistant class="com.fitbank.webpages.assistants.ListOfValues">
  205. <references>
  206. <item alias="tpaises0"
  207. class="com.fitbank.webpages.data.Reference" table="TPAISES"/>
  208. </references>
  209. <callback class="com.fitbank.js.EventFunction"/>
  210. <preQuery class="com.fitbank.js.FuncionJS"/>
  211. <fields>
  212. <item alias="tpaises0" autoQuery="true"
  213. class="com.fitbank.webpages.assistants.lov.LOVField"
  214. elementName="Paises" field="CPAIS" title="Código"
  215. type="RECORD" w="50"/>
  216. <item alias="tpaises0"
  217. class="com.fitbank.webpages.assistants.lov.LOVField"
  218. field="DESCRIPCION" title="Descripción" type="RECORD"/>
  219. <item alias="tpaises0"
  220. class="com.fitbank.webpages.assistants.lov.LOVField"
  221. elementName="CodigoArea" field="CODIGOAREA" type="RECORD" visible="false"/>
  222. </fields>
  223. </assistant>
  224. </widget>
  225. <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="6"/>
  226. <widget class="com.fitbank.webpages.widgets.Label"
  227. cssClass="field-label" tex="Dirección" x="1" y="7"/>
  228. <widget class="com.fitbank.webpages.widgets.Input" tex="Direccion"
  229. w="135" x="2" y="7">
  230. <dataSource alias="tpersonaDirecciones1"
  231. class="com.fitbank.webpages.data.DataSource" field="DIRECCION" type="RECORD"/>
  232. <attribute nom="lon">70</attribute>
  233. <attribute nom="req">M</attribute>
  234. <assistant class="com.fitbank.webpages.assistants.LongText"/>
  235. <behaviors>
  236. <item class="com.fitbank.webpages.formatters.UpperCaseFormatter"/>
  237. </behaviors>
  238. </widget>
  239. <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="7"/>
  240. <widget class="com.fitbank.webpages.widgets.Label"
  241. cssClass="field-label" tex="Teléfono" x="1" y="8"/>
  242. <widget class="com.fitbank.webpages.widgets.Input"
  243. tex="C5Telefono" x="2" y="8">
  244. <dataSource alias="tpersonatelefono1"
  245. class="com.fitbank.webpages.data.DataSource"
  246. field="NUMEROTELEFONO" type="RECORD"/>
  247. <attribute nom="lon">12</attribute>
  248. <attribute nom="req">M</attribute>
  249. <behaviors>
  250. <item class="com.fitbank.webpages.formatters.RegexFormatter"
  251. format="[\d\-\s]*" message="VALOR NO VÁLIDO PARA EL CAMPO" partialFormat="[\d\-\s]*"/>
  252. </behaviors>
  253. </widget>
  254. <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="8"/>
  255. <widget class="com.fitbank.webpages.widgets.Label"
  256. cssClass="field-label" tex="Fecha de Nacimiento" x="1" y="9"/>
  257. <widget class="com.fitbank.webpages.widgets.Input"
  258. tex="FechaNacimiento" w="80" x="2" y="9">
  259. <dataSource alias="tnatInfBasica1"
  260. class="com.fitbank.webpages.data.DataSource"
  261. field="FNACIMIENTO" type="RECORD"/>
  262. <attribute nom="lon">10</attribute>
  263. <attribute nom="req">M</attribute>
  264. <assistant class="com.fitbank.webpages.assistants.Calendar"/>
  265. </widget>
  266. <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="9"/>
  267. <widget class="com.fitbank.webpages.widgets.Label"
  268. cssClass="field-label" tex="Edad" x="3" y="9"/>
  269. <widget class="com.fitbank.webpages.widgets.Input" tex="anio"
  270. x="4" y="9">
  271. <attribute nom="val">=FULLAGE(FechaNacimiento)</attribute>
  272. <attribute nom="mod">0</attribute>
  273. </widget>
  274. <widget class="com.fitbank.webpages.widgets.Label"
  275. cssClass="field-label" tex="Género" x="1" y="10"/>
  276. <widget class="com.fitbank.webpages.widgets.ComboBox" tex="Genero"
  277. x="2" y="10">
  278. <dataSource alias="tnatInfBasica1"
  279. class="com.fitbank.webpages.data.DataSource" field="GENERO" type="RECORD"/>
  280. <attribute nom="req">M</attribute>
  281. <attribute nom="cho">M,F</attribute>
  282. <attribute nom="dat">Masculino,Femenino</attribute>
  283. </widget>
  284. <widget class="com.fitbank.webpages.widgets.Label" tex="(*)" x="2" y="10"/>
  285. <widget class="com.fitbank.webpages.widgets.Input"
  286. tex="CpersonaTper" w="0">
  287. <dataSource alias="tpersona1"
  288. class="com.fitbank.webpages.data.DataSource" field="CPERSONA" type="RECORD"/>
  289. <attribute nom="vis">0</attribute>
  290. </widget>
  291. <widget class="com.fitbank.webpages.widgets.Input"
  292. tex="CestatusPersona" w="0">
  293. <dataSource alias="tpersona1"
  294. class="com.fitbank.webpages.data.DataSource"
  295. field="CESTATUSPERSONA" type="RECORD"/>
  296. <attribute nom="val">001</attribute>
  297. <attribute nom="vis">0</attribute>
  298. </widget>
  299. <widget class="com.fitbank.webpages.widgets.Input"
  300. tex="EstadoCivil" w="20">
  301. <dataSource alias="tnatInfBasica1"
  302. class="com.fitbank.webpages.data.DataSource"
  303. field="CESTADOCIVIL" type="RECORD"/>
  304. <attribute nom="val">1</attribute>
  305. <attribute nom="lon">1</attribute>
  306. <attribute nom="req">1</attribute>
  307. <attribute nom="vis">0</attribute>
  308. </widget>
  309. <widget class="com.fitbank.webpages.widgets.Input"
  310. tex="CcategoriaTrato" w="0">
  311. <dataSource alias="tpersona1"
  312. class="com.fitbank.webpages.data.DataSource"
  313. field="CCATEGORIATRATO" type="RECORD"/>
  314. <attribute nom="val">DEP</attribute>
  315. <attribute nom="vis">0</attribute>
  316. </widget>
  317. <widget class="com.fitbank.webpages.widgets.Input"
  318. tex="TipoTelefono" w="0">
  319. <dataSource alias="tpersonatelefono1"
  320. class="com.fitbank.webpages.data.DataSource"
  321. field="CTIPOTELEFONO" type="RECORD"/>
  322. <attribute nom="val">TEL</attribute>
  323. <attribute nom="vis">0</attribute>
  324. </widget>
  325. <widget class="com.fitbank.webpages.widgets.Input"
  326. tex="CpersonaTel" w="0">
  327. <dataSource alias="tpersonatelefono1"
  328. class="com.fitbank.webpages.data.DataSource" field="CPERSONA" type="RECORD"/>
  329. <attribute nom="vis">0</attribute>
  330. </widget>
  331. <widget class="com.fitbank.webpages.widgets.Input"
  332. tex="CodigoArea" w="0">
  333. <dataSource alias="tpersonatelefono1"
  334. class="com.fitbank.webpages.data.DataSource"
  335. field="CODIGOAREA" type="RECORD"/>
  336. <attribute nom="vis">0</attribute>
  337. </widget>
  338. <widget class="com.fitbank.webpages.widgets.Input" tex="Stelefono" w="0">
  339. <dataSource alias="tpersonatelefono1"
  340. class="com.fitbank.webpages.data.DataSource" field="STELEFONO" type="RECORD"/>
  341. <attribute nom="vis">0</attribute>
  342. </widget>
  343. <widget class="com.fitbank.webpages.widgets.Input"
  344. tex="CpersonaInfBa" w="0">
  345. <dataSource alias="tnatInfBasica1"
  346. class="com.fitbank.webpages.data.DataSource" field="CPERSONA" type="RECORD"/>
  347. <attribute nom="vis">0</attribute>
  348. </widget>
  349. <widget class="com.fitbank.webpages.widgets.Input"
  350. tex="NuemeroDir" w="0">
  351. <dataSource alias="tpersonaDirecciones1"
  352. class="com.fitbank.webpages.data.DataSource"
  353. field="NUMERODIRECCION" type="RECORD"/>
  354. <attribute nom="vis">0</attribute>
  355. </widget>
  356. <widget class="com.fitbank.webpages.widgets.Input"
  357. tex="TipoDireccion" w="0">
  358. <dataSource alias="tpersonaDirecciones1"
  359. class="com.fitbank.webpages.data.DataSource"
  360. field="CTIPODIRECCION" type="RECORD"/>
  361. <attribute nom="val">HA</attribute>
  362. <attribute nom="vis">0</attribute>
  363. </widget>
  364. <widget class="com.fitbank.webpages.widgets.Input"
  365. tex="DirPricipal" w="0">
  366. <dataSource alias="tpersonaDirecciones1"
  367. class="com.fitbank.webpages.data.DataSource"
  368. field="DIRECCIONPRINCIPAL" type="RECORD"/>
  369. <attribute nom="val">1</attribute>
  370. <attribute nom="vis">0</attribute>
  371. </widget>
  372. <widget class="com.fitbank.webpages.widgets.Input"
  373. tex="CpersonaDir" w="0">
  374. <dataSource alias="tpersonaDirecciones1"
  375. class="com.fitbank.webpages.data.DataSource" field="CPERSONA" type="RECORD"/>
  376. <attribute nom="vis">0</attribute>
  377. </widget>
  378. <widget class="com.fitbank.webpages.widgets.Input"
  379. tex="NombreLegal" w="0">
  380. <dataSource alias="tpersona1"
  381. class="com.fitbank.webpages.data.DataSource"
  382. field="NOMBRELEGAL" type="RECORD"/>
  383. <attribute nom="mod">0</attribute>
  384. <attribute nom="vis">0</attribute>
  385. </widget>
  386. <widget class="com.fitbank.webpages.widgets.Input"
  387. tex="CidiomaPerso" w="0">
  388. <dataSource alias="tpersona1"
  389. class="com.fitbank.webpages.data.DataSource" field="CIDIOMA" type="RECORD"/>
  390. <attribute nom="val">ES</attribute>
  391. <attribute nom="vis">0</attribute>
  392. </widget>
  393. <widget class="com.fitbank.webpages.widgets.Input"
  394. tex="personaNoValida" w="0" x="2" y="3">
  395. <dataSource class="com.fitbank.webpages.data.DataSource"
  396. field="_PERSONA_NO_VALIDA" type="CONTROL"/>
  397. <attribute nom="val">0</attribute>
  398. <attribute nom="vis">0</attribute>
  399. </widget>
  400. </container>
  401. </containers>
  402. </webPage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement