diff --git a/registro/ISicres-Desktop-Web/src/main/webapp/css/global.css b/registro/ISicres-Desktop-Web/src/main/webapp/css/global.css
index c445e1d0d..4792d1fc4 100755
--- a/registro/ISicres-Desktop-Web/src/main/webapp/css/global.css
+++ b/registro/ISicres-Desktop-Web/src/main/webapp/css/global.css
@@ -890,3 +890,12 @@ div.historialDist{
#documentoElectronicoPropiedades h3{
border-bottom:1px solid #000000;
}
+
+/*[teresa-felipe-ecenpri Ticket #71] 22/02/2010
+Color para diferenciar registro de entrada del de salida
+en el registroTelematicoWeb. */
+.registroEntrada{
+ background-color: #FFF8BC
+}
+
+/*
diff --git a/registro/ISicres-Desktop-Web/src/main/webapp/css/global.css.dipucr b/registro/ISicres-Desktop-Web/src/main/webapp/css/global.css.dipucr
new file mode 100644
index 000000000..c445e1d0d
--- /dev/null
+++ b/registro/ISicres-Desktop-Web/src/main/webapp/css/global.css.dipucr
@@ -0,0 +1,892 @@
+BODY {
+ font-size: 8pt;
+ margin: 0px;
+ color: #000000;
+ font-family: Verdana;
+}
+
+P {
+ font-weight: bold;
+ font-size: 10px;
+ color: #fafcff;
+ font-family: Verdana, Arial, Helvetica, sans-serif
+}
+
+.SubOptions {
+ border-right: #EBEA87 1px solid;
+ border-top: #EBEA87 1px solid;
+ font-weight: bold;
+ font-size: 8pt;
+ border-left: #EBEA87 1px solid;
+ cursor: pointer;
+ color: #000000;
+ border-bottom: #EBEA87 1px solid;
+ font-family: Verdana, Arial, Helvetica, sans-serif
+}
+.SubOptions2{
+ font-weight: bold;
+ font-size: 10px;
+ cursor: pointer;
+ color: #000000;
+ border: 0px;
+ font-family: Verdana, Arial, Helvetica, sans-serif
+}
+
+.SubOptionsOver {
+ border-right: #C7CE4E 1px solid;
+ border-top: #C7CE4E 1px solid;
+ font-weight: bold;
+ font-size: 8pt;
+ border-left: #C7CE4E 1px solid;
+ cursor: pointer;
+ color: #000000;
+ border-bottom: #C7CE4E 1px solid;
+ font-family: Verdana, Arial, Helvetica, sans-serif
+}
+
+.SubOptionsOver2 {
+ font-weight: bold;
+ font-size: 10px;
+ cursor: pointer;
+ color: #000000;
+ border: 0px;
+ font-family: Verdana, Arial, Helvetica, sans-serif
+}
+
+.SubOptionsContainer {
+ font-weight: bold;
+ font-size: 8pt;
+ color: #000000;
+ font-family: Verdana, Arial, Helvetica, sans-serif
+}
+.SubMenu {
+ background-color: #C7CE4E;
+}
+
+.SubMenu2 {
+ background-color: #C7CE4E;
+ margin-top: 10px;
+}
+
+/*Generales*/
+body.resalt {
+ background-color: #C7CE4E;
+}
+
+.input {
+ font-weight: normal; font-size: 8pt; font-family: Verdana; color: #000000; background-color: #FFFFFF;
+}
+
+.inputRO {
+ font-weight: normal; font-size: 8pt; font-family: Verdana; color: #000000; background-color: #DDDDDD;
+}
+
+.textarea {
+ font-weight: normal; font-size: 8pt; font-family: Verdana; color: #000000; background-color: #FFFFFF;
+}
+
+.textareaRO {
+ font-weight: normal; font-size: 8pt; font-family: Verdana; color: #000000; background-color: #DDDDDD;
+}
+
+.button {
+ font-weight: normal; font-size: 8pt; font-family: Verdana; width: 80;
+}
+
+.label{
+ font-weight: normal; font-size: 8pt; font-family: Verdana;
+}
+
+.combo {
+ font-weight: normal; font-size: 8pt; font-family: Verdana; color: #000000;
+}
+
+.msg {
+ font-weight: bold;
+}
+
+.BookName, .BookNameEx {
+ font-size: 8pt; color: #CC3300; font-family: Verdana
+}
+
+.labelWhite {
+ font-weight: normal; font-size: 8pt; font-family: Verdana; color: white;
+}
+
+a:hover{
+ text-decoration:underline;
+}
+
+/* Pantalla de Login*/
+#login {
+ position:absolute;
+ top:45;
+ left:30;
+ /*background: url(../images/archivador.gif) no-repeat;*/
+}
+
+.OptionsOver {
+ border-right: 1px solid; border-top: 1px solid; font-weight: bold; font-size: 8pt; border-left: 1px solid;
+ cursor: pointer; color: #ffffff; border-bottom: 1px solid;
+ font-family: Verdana, Arial, Helvetica, sans-serif
+}
+
+.SubOptionsDisabled {
+ font-weight: bold; font-size: 8pt; color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif
+}
+
+.SubOptionsDisabled2 {
+ font-weight: bold; font-size: 10px; color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif;
+}
+
+
+.active{
+ font-weight: normal; font-size: 8pt; font-family: Verdana; color:#003366; text-decoration: none;
+}
+
+.inactive{
+ font-weight: normal; font-size: 8pt; font-family: Verdana; color: #666666; text-decoration: none;
+}
+/*Tablas */
+.title{
+ font-weight: bold; font-size: 8pt; font-family: Verdana; color: #000000; background-color: #C7CE4E;
+}
+
+.title2{
+ font-weight: bold; font-size: 10; font-family: Verdana; color: #006699; background-color: #bee8f9;
+}
+
+.books{
+ font-weight: bold; font-size: 8pt; font-family: Verdana; color: #000000;
+}
+
+.resalt {
+ background-color: #C7CE4E;
+}
+
+TD.report {
+ font-size: 8pt; color: #000000; font-family: Verdana; background-color: #fafcff
+}
+
+TH.report {
+ font-weight: bold; font-size: 8pt; color: #000000; font-family: Verdana; background-color: #C7CE4E
+}
+
+TH.reportDisable {
+ font-weight: bold; font-size: 8pt; color: #666666; font-family: Verdana; background-color: #EBEA87
+}
+
+TH.reportDisable2 {
+ font-weight: bold; font-size: 8pt; color: #ECE8DD; font-family: Verdana; background-color: #FFFFFF
+}
+
+TABLE.report {
+ border-right: medium none; padding-right: 2px; border-top: medium none; padding-left: 2px;
+ padding-bottom: 2px; margin: 2px; border-left: medium none; padding-top: 2px;
+ border-bottom: medium none; background-color: #C7CE4E;
+}
+
+TH.report2 {
+ font-weight: bold; font-size: 7pt; color: #000000; font-family: Verdana; background-color: #EBEA87
+}
+
+/*Frame */
+frame.Style1 {
+ border-top: 1px solid #003366; border-right: 1px solid #ECE8DD;
+}
+
+frame.Style2 {
+ border-top: 1px solid #003366; border-left: 2px groove #ECE8DD;
+}
+
+frame.Style6 {
+ border-left: 2px solid #C7CE4E; border-right: 2px solid #C7CE4E; border-bottom: 2px solid #C7CE4E;
+}
+
+iframe.Style6 {
+ border-left: 2px solid #C7CE4E; border-right: 2px solid #C7CE4E; border-bottom: 2px solid #C7CE4E;
+}
+
+td#tdLEST {
+ border-right:3px solid #CFCDCD;
+}
+
+.divTitle {
+ border: 2px solid #C7CE4E; background-color: #C7CE4E;
+}
+.div {
+ border: 1px solid #C7CE4E;
+}
+
+div#divOrder {
+ left:5px; position:absolute; top:5px; width:80%;
+ border-left: 2px solid #C7CE4E; border-right: 2px solid #C7CE4E; border-bottom: 2px solid #C7CE4E;
+ margin: auto;
+}
+
+iframe#Vld {
+ height:98%; left:5px; position:absolute; top:5px; width:99%;
+ border: 1px solid #C7CE4E;
+}
+
+frameset#TopVldFrm {
+ border: 1px solid #C7CE4E;
+}
+
+td.tdLabel {
+ padding-left:10; padding-top:15;
+}
+
+td.tdBody {
+ padding-left:10;
+}
+
+input#btnAgreg, input#btnAgregAll, input#btnRemove, input#btnRemoveAll{
+ width:110;
+}
+
+input#btnUp, input#btnDown, input#btnClose{
+ width:80;
+}
+
+td#compulsa {
+ display:block;
+}
+
+/* pantalla de busqueda avanzada */
+
+.buttonSearchAvanced {
+ font-weight: normal;
+ font-size: 8pt;
+ font-family: Verdana;
+ width: 75px;
+ height: 22px;
+}
+
+.comboSearchAvanced {
+ font-weight: normal;
+ font-size: 8pt;
+ font-family: Verdana;
+ color: #000000;
+ width: 180px;
+ height: 22px;
+}
+
+.inputTextSearchAvanced{
+ font-weight: normal;
+ font-size: 8pt;
+ font-family: Verdana;
+ color: #000000;
+ width: 154px;
+ height: 22px;
+}
+
+.inputTextSearchAvancedImg{
+ font-weight: normal;
+ font-size: 8pt;
+ font-family: Verdana;
+ color: #000000;
+ width: 127px;
+ height: 22px;
+}
+
+.comboSearchAvancednexo {
+ font-weight: normal;
+ font-size: 8pt;
+ font-family: Verdana;
+ color: #000000;
+ height: 22px;
+ width: 70px;
+}
+
+.searchTitle {
+ text-align:left;
+ vertical-align: middle;
+}
+
+.tableButtonSearchAvanced
+{
+ position: Absolute;
+ left: 750px;
+ top: 40px;
+}
+
+.titleSearch{
+ font-weight: bold;
+ font-size: 11pt;
+ font-family: Verdana;
+ color: #006699;
+}
+
+.searchTitle2
+{
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 8pt;
+ COLOR: #000000;
+ FONT-FAMILY: Verdana;
+ BACKGROUND-COLOR: #EBEA87;
+}
+
+.imgInvalidValidatedField{
+ position: relative;
+ left: -17px;
+ top: 2px;
+ height: 11px;
+ width: 11px;
+ cursor:pointer;
+}
+
+.imgInvalidNotValidatedField{
+ position: relative;
+ /*left: -17px;*/
+ top: 2px;
+ height: 11px;
+ width: 11px;
+ cursor:pointer;
+}
+
+/* imagenes de ayuda */
+.imgHelpSearch{
+ left: 70%;
+ height: 17px;
+ width: 17px;
+}
+
+.imgHelpCalendar{
+ left: 70%;
+ height: 15px;
+ width: 20px;
+}
+
+.imgHelpReports{
+ position: relative; top: 0; left:216; height:17; width:17; cursor:pointer;
+}
+
+.imgHelpEdit{
+ position:absolute; top:32; left:344; height:17; width:17; cursor:pointer;
+}
+
+.imgHelpInt{
+ position:relative;top:-20;left:97%;width:17px;height:17px;
+}
+
+/* area usuario-oficina-ayuda */
+.usuario_organo_left {
+ background: url("../images/bg_right_usuario_organo.jpg") bottom right repeat-y;
+ margin: 0px;
+ padding: 0px 0px 0px 0px;
+}
+
+#usuario_organo {
+ background: url("../images/bg_left_usuario_organo.jpg") left bottom repeat-y;
+ margin: 0px;
+ padding: 2px 0px 2px 0px;
+ overflow: hidden;
+}
+
+#usuario_organo h2 {
+ font-weight: bold;
+ font-family: verdana;
+ color: #333333;
+ font-size: 90%;
+ float: left;
+ margin: 2px 15px 4px 10px;
+ padding: 0px;
+ display: inline; /* para quitar el doble margen del IE */
+}
+
+#usuario_organo ul {
+ float: left;
+ margin: 0px;
+ padding: 0px;
+ list-style-type:none;
+}
+
+#usuario_organo ul li {
+ background: left top no-repeat;
+ padding-left: 10px;
+ height: 16px;
+ line-height: 16px;
+ float: left;
+}
+
+#usuario_organo p {
+ margin: 0px 8px;
+ padding: 0px;
+ text-align: right;
+}
+
+#usuario_organo img {
+ border: 0px;
+
+}
+.usuario_plegado ul {
+ display: none;
+}
+
+#usuario_organo ul li {
+ background: left top no-repeat;
+ padding-left: 10px;
+ height: 16px;
+ line-height: 16px;
+}
+
+#usuario_organo ul.usuario_plegado li {
+ background-image: url("../images/padre_up.gif");
+}
+
+.GreyToolbar {
+ background-color: #cfcdcd;
+}
+
+.Options {
+ border-right: #cfcdcd 1px solid; border-top: #cfcdcd 1px solid; font-weight: bold; font-size: 8pt;
+ border-left: #cfcdcd 1px solid; cursor: pointer; color: #ffffff; border-bottom: #cfcdcd 1px solid;
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+
+}
+
+.linkOptions:hover, .linkOptions:visited, .linkOptions:link {
+color: #ffffff;
+text-decoration: none;
+}
+
+.migas {
+ margin-left: 10px;
+ padding: 0px 0px 5px 0px;
+}
+
+.migas ul {
+ margin: 0px;
+ padding: 0px;
+ list-style-type:none;
+}
+
+.migas ul li {
+ background: url("../images/flecha_migas_sinfondo.gif") left 9px no-repeat;
+ color : #CC3300;
+ text-decoration : none;
+ padding-left: 20px;
+ height: 18px;
+ line-height: 18px;
+}
+
+/* botonera azul */
+
+div.seccion_tab div.cabecera_seccion_tab {
+ background: #C7CE4E;
+ border-bottom: 1px solid #c7d9d3;
+ font-size: 100%;
+ height: 19px;
+ line-height: 19px;
+ width: 100%;
+ margin-top: 5px;
+ position: relative;
+
+}
+
+div.seccion_tab div.cabecera_seccion_tab p {
+ text-align: right;
+ padding-top: 0px;
+ padding-bottom: 0px;
+ margin: 0px;
+}
+
+div.seccion_tab div.cabecera_seccion_tab p .activo{
+ text-decoration: none;
+ font-weight: bold;
+ color: #000000;
+ padding: 0px 5px 2px 5px;
+ height: 19px;
+ line-height: 19px;
+ vertical-align: middle;
+}
+
+div.seccion_tab div.cabecera_seccion_tab p .inactivo{
+ text-decoration: none;
+ font-weight: bold;
+ color: #666666;
+ padding: 0px 5px 2px 5px;
+ height: 19px;
+ line-height: 19px;
+ vertical-align: middle;
+}
+
+div.seccion_tab div.cabecera_seccion_tab p a img {
+ height: 17px;
+ line-height: 17px;
+ vertical-align: middle;
+ padding: 0px 0px 3px 0px;
+ border: 0px;
+}
+
+/* informes */
+.labelBusqueda {
+ display: block;
+ width: 20%;
+ float: left;
+ font-size: 8pt;
+}
+
+.select_busqueda {
+ width: 430px;
+ font-weight: normal;
+ font-size: 8pt;
+ font-family: Verdana;
+ color: #000000;
+ margin-right: 20px;
+}
+
+.fila_sub_busqueda label {
+ color: #000000;
+ float:left;
+ padding-top:2px;
+ width: 156px;
+}
+
+.form_busqueda {
+ padding: 5px 5px 15px 15px;
+}
+
+/* arbol de navegacion de nuevo registro */
+
+.tree_ie {
+ width: 244px;
+ float: left;
+ height: 300px;
+ /*border: 1px solid #C7C9d3;*/
+ zoom: 1;
+ z-index: 1;
+ margin-left: -16px;
+ margin-top: 10px;
+ background-color: #FFFFFF;
+ overflow: auto;
+ clear:right;
+}
+
+.tree_ff {
+ width: 244px;
+ float: left;
+ height: 300px;
+ /*border: 1px solid #C7C9d3;*/
+ zoom: 1;
+ z-index: 1;
+ margin-left: -27px;
+ background-color: #FFFFFF;
+ overflow: auto;
+ clear:right;
+}
+
+.contenido_tree {
+ padding: 0px 2px;
+ position: relative;
+ clear: both;
+ zoom: 1;
+}
+
+
+#botonera {
+ float: left;
+ z-index: 100;
+ position: relative;
+ height:100px;
+}
+
+#botonera p.imgTree {
+ padding: 0px;
+ margin: 12px 0px 0px 0px;
+}
+
+#botonera p.imgTree .img_menu_on {
+ background: url("../images/menu_on_blue.gif") top left no-repeat;
+ padding-left: 24px;
+ padding-bottom: 22px;
+ margin: 2px;
+ text-decoration: none;
+ cursor: pointer;
+}
+
+#botonera p.imgTree .img_menu_off {
+ background: url("../images/menu_off.gif") top left no-repeat;
+ padding-left: 24px;
+ padding-bottom: 22px;
+ margin: 2px;
+ text-decoration: none;
+ cursor: pointer;
+}
+
+HR
+{
+ color: #C7CE4E;
+}
+BODY.resalt
+{
+ background-color: #C7CE4E
+}
+/*BODY.SubMenu
+{
+ background-color: #9ccfff
+}*/
+.resalt
+{
+ background-color: #C7CE4E
+}
+/*DIV.SubMenu
+{
+ background-color: #9ccfff
+}*/
+
+/* Para fijar la cabecera de la tabla de resultados de consulta*/
+div.fixedHeaderTable {
+ position: relative;
+ z-index:1;
+}
+
+div.fixedHeaderTable tbody {
+ height: 400px;
+ overflow-y: auto;
+ overflow-x: auto;
+ background-color: #FFFFFF;
+}
+div.fixedHeaderTable thead td, div.fixedHeaderTable thead th {
+ position:relative;
+}
+
+ /* IE7 hacks */
+div.fixedHeaderTable {
+ *position: relative;
+ *height: 400px;
+ *overflow-y: scroll;
+ *overflow-x: scroll;
+}
+
+div.fixedHeaderTable thead tr {
+ *position: relative;
+ _position: absolute;
+ *top: expression(this.offsetParent.scrollTop-2);
+}
+
+div.fixedHeaderTable tbody {
+ *height: auto;
+ *position:absolute;
+ *top:50px;
+ *background-color: #FFFFFF;
+}
+
+ /* IE6 hacks */
+div.fixedHeaderTable {
+ _width:expression(this.offsetParent.clientWidth-20);
+ _overflow: auto;
+ _overflow-y: scroll;
+ _overflow-x: scroll;
+}
+div.fixedHeaderTable thead tr {
+ _position: relative
+}
+
+/* */
+
+.ordenarResults{
+ font-weight: bold;
+ font-size: 7pt;
+ color: #000000;
+ font-family: Verdana;
+ background-color: #EBEA87;
+}
+
+.cargar{
+ display:none;
+ color:#000000;
+ position:absolute;
+ font-weight:bold;
+ z-index:100;
+ width:100%;
+ height: 410px;
+ text-align:center;
+ background-color: #ffffff;
+ filter: Alpha(Opacity=75);
+ -moz-opacity: 1.0;
+ Padding-top: 100px;
+}
+
+.cargarSaveRegisterOculto{
+ display:none;
+ color:#000000;
+ position:absolute;
+ font-weight:bold;
+ z-index:100;
+ width:100%;
+ height: 550px;
+ background-color: #ffffff;
+ filter: Alpha(Opacity=75);
+ -moz-opacity: 1.0;
+ text-align:center;
+ Padding-top: 230px;
+}
+
+/* Para fijar la cabecera de la tabla de resultados de la distribucion*/
+div.fixedHeaderTableDistrib {
+ position: relative;
+ top: 2px;
+ z-index:1;
+}
+
+div.fixedHeaderTableDistrib tbody {
+ height: 340px;
+ overflow-y: auto;
+ overflow-x: auto;
+ background-color: #FFFFFF;
+}
+
+div.fixedHeaderTableDistrib thead td, div.fixedHeaderTableDistrib thead th {
+ position:relative;
+}
+
+ /* IE7 hacks */
+div.fixedHeaderTableDistrib {
+ *position: relative;
+ *height: 348px;
+ *overflow-y: scroll;
+ *overflow-x: scroll;
+}
+
+div.fixedHeaderTableDistrib thead tr {
+ *position: relative;
+ _position: absolute;
+ *top: expression(this.offsetParent.scrollTop-2);
+}
+
+div.fixedHeaderTableDistrib tbody {
+ *height: auto;
+ *position:absolute;
+ *top:50px;
+ *background-color: #FFFFFF;
+}
+
+ /* IE6 hacks */
+div.fixedHeaderTableDistrib {
+ _width:expression(this.offsetParent.clientWidth-2);
+ _overflow: auto;
+ _overflow-y: scroll;
+ _overflow-x: scroll;
+}
+div.fixedHeaderTableDistrib thead tr {
+ _position: relative
+}
+
+/* */
+
+/* Estilos que cargan las imagenes de ordenar en Distribucion */
+
+#tblMain thead tr .report2{
+ background-image: url(../images/bg.gif);
+ background-repeat: no-repeat;
+ background-position: center left;
+ cursor: pointer;
+ padding-left: 20px;
+ margin-left: -1px;
+}
+
+#tblMain thead tr .headerSortUp {
+ background-image: url(../images/asc.gif);
+}
+
+#tblMain thead tr .headerSortDown {
+ background-image: url(../images/desc.gif);
+}
+
+#tblMain tbody tr.odd td {
+ background-color:#F0F0F6;
+}
+
+TH.report3 {
+ font-weight: bold; font-size: 8pt; color: #000000; font-family: Verdana;
+}
+
+TH.report4 {
+ font-weight: bold; font-size: 8pt; color: #000000; font-family: Verdana; background-color: #EBEA87
+}
+
+#MenuFolderBar{
+ background-color: #EBEA87;
+}
+
+#tableTbSearch{
+ border: 2px solid #EBEA87;
+}
+
+/* */
+/* Seleccion de idioma en pantalla de login Isicres */
+#idiomas{
+ text-align:right;
+ margin-right: 10px;
+}
+
+#selIdioma {
+ border:1px solid #7F9DB9;
+ font-size:99%;
+ padding:0;
+ width:100px;
+}
+#Recargar{
+ width:13px;
+ margin-right: 10px;
+}
+
+/* */
+#ChangePwd{
+ text-decoration: underline;
+}
+
+/* Para las tablas de direcciones de los interesados*/
+.dirInterScrollbarY{
+ height:190px;
+ overflow-x:hidden;
+ overflow-y:auto
+}
+
+.dirInterTeleScrollbarY{
+ height:239px;
+ overflow-x:hidden;
+ overflow-y:auto
+}
+
+/* */
+
+div.closeRegBetweenDate{
+ position:relative;
+ width:100%;
+ margin-left:10px;
+ clear: both;
+}
+
+.historialIntercambio{
+ font-size:14pt;
+ text-align:left;
+ padding-bottom: 10px;
+ padding-top: 15px;
+}
+
+/* */
+div.historialDist{
+ position:relative;
+ width: 98%;
+ left: 1%;
+ top: 10px;
+ bottom: 10px;
+ height: 450px;
+ overflow:auto;
+}
+
+#documentoElectronicoPropiedades{
+ margin:auto;
+ width:400px;
+}
+
+#documentoElectronicoPropiedades p{
+ color: #000000;
+ font-weight: normal;
+}
+#documentoElectronicoPropiedades h3{
+ border-bottom:1px solid #000000;
+}
diff --git a/registro/ISicres-Desktop-Web/src/main/webapp/scripts/frmint.js b/registro/ISicres-Desktop-Web/src/main/webapp/scripts/frmint.js
index 0a39fc4f9..120ebe6f8 100755
--- a/registro/ISicres-Desktop-Web/src/main/webapp/scripts/frmint.js
+++ b/registro/ISicres-Desktop-Web/src/main/webapp/scripts/frmint.js
@@ -90,6 +90,12 @@ function LoadFrame()
}
LoadFrameText(cadena, Mode);
}
+
+ //[Teresa-felipe-ecenpri Ticket#71] 22/02/2010
+ if (top.g_ArchiveId == 1)
+ {
+ document.body.className = 'registroEntrada';
+ }
}
diff --git a/registro/ISicres-Desktop-Web/src/main/webapp/scripts/frmint.js.dipucr b/registro/ISicres-Desktop-Web/src/main/webapp/scripts/frmint.js.dipucr
new file mode 100644
index 000000000..0a39fc4f9
--- /dev/null
+++ b/registro/ISicres-Desktop-Web/src/main/webapp/scripts/frmint.js.dipucr
@@ -0,0 +1,836 @@
+var g_PersonValidation = false;
+
+function UpperCase(obj)
+{
+ var caseSensitive = parent.document.getElementById("Interesados")
+ .getAttribute("caseSensitive");
+ if (caseSensitive == 'CS'){
+ obj.value = obj.value.toUpperCase();
+ }
+
+}
+
+function GetCaseSensitive(){
+ var caseSensitive = parent.document.getElementById("Interesados")
+ .getAttribute("caseSensitive");
+ return caseSensitive;
+}
+
+function LoadFrame()
+{
+ var cadena = parent.document.getElementById("Interesados").getAttribute("value");
+
+ var Mode = parent.document.getElementById("Interesados").getAttribute("readOnly");
+
+ var arrInter = cadena.split("&&");
+ if (cadena != ""){
+ cadena = "";
+ for (var i = 0; i < arrInter.length; i++) {
+
+ var datas = arrInter[i].split("#");
+
+ if(datas[4] != 0){
+ datas[3] += "";
+ }
+
+ arrInter[i] = datas.join("#");
+ }
+ cadena = arrInter.join("&&");
+
+ }
+
+ g_PersonValidation = top.Main.Folder.FolderData.FolderFormTree.document.getElementById("PersonValidation").value;
+
+ if (!isNaN(g_PersonValidation)){
+ g_PersonValidation = (g_PersonValidation == 1);
+ }
+
+ CleanText();
+ CleanTable();
+
+ document.getElementById("cadena").name = parent.document.getElementById("Interesados").getAttribute("CtrlId");
+
+ if (cadena != "") {
+ var arrInt = cadena.split("&&");
+
+ if (arrInt.length > 0) {
+ var datas = arrInt[0].split("#");
+
+ g_PersonValidation = (parseInt(datas[0], 10) != 0);
+ }
+ }
+
+ var imgValInt = top.Main.Folder.FolderData.FolderFormData.document.getElementById("imgValInter");
+ var frameInteresados = parent.document.getElementById("Interesados");
+
+ imgValInt.style.cursor = 'hand';
+ imgValInt.style.position = 'absolute';
+ imgValInt.style.top = frameInteresados.style.top;
+ imgValInt.style.left = (parseInt(frameInteresados.style.left) + 490) + "px";
+
+ if (g_PersonValidation){
+ if(top.g_FdrReadOnly || (Mode == "1")){
+ imgValInt.style.display = 'none';
+ }
+ else{
+ top.Main.Folder.FolderData.FolderFormData.document.getElementById("HabilitarValidationInt").value = 1;
+ imgValInt.src="images/user_check.png";
+ imgValInt.style.display = 'block';
+ }
+ LoadFrameTable(cadena, Mode);
+ }
+ else {
+ if(top.g_FdrReadOnly || (Mode == "1")){
+ imgValInt.style.display = 'none';
+ }
+ else{
+ top.Main.Folder.FolderData.FolderFormData.document.getElementById("HabilitarValidationInt").value = 0;
+ imgValInt.src="images/user_check_deshabilitado.png";
+ imgValInt.style.display = 'block';
+ }
+ LoadFrameText(cadena, Mode);
+ }
+
+}
+
+
+function LoadFrameText(cadena, Mode)
+{
+ var text = document.getElementById("freeText");
+ var valor = "";
+ var caseSensitive = parent.document.getElementById("Interesados")
+ .getAttribute("caseSensitive");
+
+ if (caseSensitive == 'CS'){
+ text.style.textTransform = "uppercase";
+ }
+
+
+ if (cadena != "") {
+ var arrInt = cadena.split("&&");
+
+ for (var i = 0; i < arrInt.length; i++) {
+ var datas = arrInt[i].split("#");
+
+ if (valor == "") {
+ valor = datas[1];
+ }
+ else {
+ valor += "\r\n" + datas[1];
+ }
+ }
+ }
+
+ top.SetInnerText(text, valor);
+
+ if (top.g_FdrReadOnly || (Mode == "1")){
+ text.readOnly = true;
+ text.className = "textareaRO";
+ }
+ else {
+ text.readOnly = false;
+ text.className = "textarea";
+ }
+
+ document.getElementById("validate").style.display = "none";
+ document.getElementById("free").style.display = "block";
+}
+
+
+function CleanText()
+{
+ top.SetInnerText(document.getElementById("freeText"), "");
+}
+
+
+function LoadFrameTable(cadena, Mode)
+{
+ var tabData = document.getElementById("TabInt");
+ var btnImg = document.getElementById("imgHelp");
+ var inputValid = document.getElementById("validInt");
+
+ var caseSensitive = parent.document.getElementById("Interesados")
+ .getAttribute("caseSensitive");
+
+ if (caseSensitive == 'CS'){
+ inputValid.style.textTransform = "uppercase";
+ }
+
+
+ if (cadena != "") {
+ var arrInt = cadena.split("&&");
+
+ for (var i = 0; i < arrInt.length; i++) {
+ var datas = arrInt[i].split("#");
+ insertRowTableInt(datas[0]?datas[0]:"", datas[1]?datas[1]:"", datas[2]?datas[2]:"", datas[3]?datas[3]:"", datas[4]?datas[4]:"", datas[5]?datas[5]:"", datas[6]?datas[6]:"", datas[7]?datas[7]:"", datas[8]?datas[8]:"");
+ }
+ }
+
+ for (var i = 0; i < tabData.rows.length; i++){
+ var row = tabData.rows[i];
+
+ if (row.id != "head"){
+ for (var j = 0; j < row.cells.length; j++) {
+ if (top.g_FdrReadOnly || (Mode == "1")) {
+ row.cells[j].className = "reportRO";
+ }
+ else {
+ row.cells[j].className = "report";
+ }
+ }
+ }
+ }
+
+ if (top.g_FdrReadOnly || (Mode == "1")){
+ btnImg.style.display = "none";
+ inputValid.className = "inputRO";
+ }
+ else {
+ btnImg.style.display = "block";
+ inputValid.className = "input";
+ }
+
+ document.getElementById("validate").style.display = "block";
+ document.getElementById("free").style.display = "none";
+ document.getElementById("cadena").value = cadena;
+
+ SetTabSize();
+}
+
+function LoadFrameInt()
+{
+ var cadena = parent.document.getElementById("Interesados").getAttribute("value");
+
+ var Mode = parent.document.getElementById("Interesados").getAttribute("readOnly");
+
+ var arrInter = cadena.split("&&");
+
+
+ g_PersonValidation = top.Main.Folder.FolderData.FolderFormTree.document.getElementById("PersonValidation").value;
+
+ if (!isNaN(g_PersonValidation)){
+ g_PersonValidation = (g_PersonValidation == 1);
+ }
+
+ CleanText();
+ CleanTable();
+
+ document.getElementById("cadena").name = parent.document.getElementById("Interesados").getAttribute("CtrlId");
+
+ if (cadena != "") {
+ var arrInt = cadena.split("&&");
+
+ if (arrInt.length > 0) {
+ var datas = arrInt[0].split("#");
+
+ g_PersonValidation = (parseInt(datas[0], 10) != 0);
+ }
+ }
+
+ if (top.Main.Folder.FolderData.FolderFormData.document.getElementById("HabilitarValidationInt")){
+ LoadFrameTable(cadena, Mode);
+ }
+ else {
+ LoadFrameText(cadena, Mode);
+ }
+}
+
+function insertRowTableInt(uidInt, nomInt, uidDom, domInt, domType, uidRepre, nomRepre, uidDomRepre, domRepre, domRepreType)
+{
+ var tabData = document.getElementById("TabInt");
+ var newRow;
+ var newCell = new Array;
+ var typeDescription;
+
+ newRow = tabData.insertRow(tabData.rows.length - 1);
+ newRow.tabIndex=-1;
+ newRow.align="left";
+
+ newCell[0] = newRow.insertCell(0);
+ top.SetInnerText(newCell[0], nomInt);
+ newCell[0].className = "report";
+ newCell[0].uid = uidInt;
+ newCell[0].setAttribute("idType", domType);
+
+ newCell[1] = newRow.insertCell(1);
+ top.SetInnerText(newCell[1], domInt);
+ newCell[1].className = "report";
+ newCell[1].uid = uidDom;
+
+ newCell[2] = newRow.insertCell(2);
+ top.SetInnerText(newCell[2], nomRepre);
+ newCell[2].className = "report";
+ newCell[2].uid = uidRepre;
+ newCell[2].setAttribute("idType", domRepreType);
+
+ newCell[3] = newRow.insertCell(3);
+ top.SetInnerText(newCell[3], domRepre);
+ newCell[3].className = "report";
+ newCell[3].uid = uidDomRepre;
+
+ SetTabSize();
+}
+
+function SetTabSize()
+{
+ var tabData = document.getElementById("TabInt");
+ var validInt = document.getElementById("validInt");
+ var rowNull = document.getElementById("null");
+ var space = parent.document.getElementById("Interesados").clientHeight - tabData.clientHeight - (2*validInt.clientHeight) + rowNull.clientHeight - 8;
+
+ if (space > 13) {
+ rowNull.height = space.toString();
+ }
+ else {
+ rowNull.height = "13";
+ }
+
+ if (parent.document.getElementById("Interesados").clientHeight - (2*validInt.clientHeight) -2 >= 0){
+ document.getElementById("divTab").style.height = parent.document.getElementById("Interesados").clientHeight - (2*validInt.clientHeight) -2;
+ }
+ else{
+ document.getElementById("divTab").style.height = (2*validInt.clientHeight) + 2 - parent.document.getElementById("Interesados").clientHeight;
+ }
+}
+
+function CleanTable(){
+ var tabData = document.getElementById("TabInt");
+
+ for (var i = tabData.rows.length - 1; i >= 0; i--){
+ if ((tabData.rows[i].id != "head") && (tabData.rows[i].id != "null")){
+ tabData.deleteRow(i);
+ }
+ }
+
+ document.getElementById("cadena").value = "";
+}
+
+
+function SetChange()
+{
+ if (g_PersonValidation || (!g_PersonValidation && (document.getElementById("freeText").readOnly == false))) {
+ top.Main.Folder.FolderBar.ActivateSave();
+ document.getElementById("hasChanged").value = "1";
+ }
+}
+
+
+function GetData()
+{
+ var data = "";
+
+ if (g_PersonValidation){
+ data = document.getElementById("cadena").value;
+ }
+ else {
+ data = GetDataText();
+ }
+
+ return data;
+}
+
+
+function GetDataText()
+{
+ var data = "";
+// var arr1 = top.GetInnerText(document.getElementById("freeText")).split("\r\n");
+ var arr1 = document.getElementById("freeText").value.split("\r\n");
+ var arr2 = new Array();
+ var j = 0;
+
+ for (var i = 0; i < arr1.length; i++) {
+ if (arr1[i].length > top.MAX_LENGTH_INTER) {
+ var arr3 = new Array();
+ var temp = top.miTrim(arr1[i]);
+
+ if (temp.indexOf(" ") != -1) {
+ var k = 0;
+
+ arr3[k] = "";
+
+ while (temp.indexOf(" ") != -1) {
+ var nPos = temp.indexOf(" ");
+ var cad = temp.substr(0, nPos);
+
+ if ((arr3[k].length + cad.length + 1) > top.MAX_LENGTH_INTER) {
+ k++;
+ arr3[k] = cad;
+ }
+ else {
+ arr3[k] = arr3[k] + " " + cad;
+ }
+
+ temp = temp.substr(nPos+1, temp.length - 1);
+ temp = top.miTrim(temp);
+ }
+
+ if (temp.length > 0) {
+ if ((arr3[k].length + temp.length + 1) > top.MAX_LENGTH_INTER) {
+ k++;
+ arr3[k] = temp;
+ }
+ else {
+ arr3[k] = arr3[k] + " " + temp;
+ }
+ }
+ }
+ else {
+ arr3[0] = temp;
+ }
+
+ for (var k = 0; k < arr3.length; k++) {
+ if (arr3[k].length > top.MAX_LENGTH_INTER) {
+ var temp = arr3[k];
+
+ do {
+ arr2[j] = temp.substr(0, top.MAX_LENGTH_INTER - 1);
+ temp = temp.substr(top.MAX_LENGTH_INTER, temp.length -1);
+ j++
+ }
+ while (temp.length > top.MAX_LENGTH_INTER)
+
+ if (temp.length > 0){
+ arr2[j] = temp;
+ j++;
+ }
+ }
+ else {
+ arr2[j] = arr3[k];
+ j++
+ }
+ }
+ }
+ else {
+ arr2[j] = arr1[i];
+ j++;
+ }
+ }
+
+ for (var i = 0; i < arr2.length; i++) {
+ var temp = top.miTrim(arr2[i]);
+
+ if (temp != "") {
+ temp = temp.replace(/\"/g, "\'");
+ temp = temp.replace(/&&/g, "&");
+ temp = temp.replace(/#/g, "?");
+
+ if (data.length == 0) {
+ data = "0#" + temp + "#0##";
+ }
+ else {
+ data += " && " + "0#" + temp + "#0##";
+ }
+ }
+ }
+
+ return data;
+}
+
+
+function HasChanged()
+{
+ return (document.getElementById("hasChanged").value == "1");
+}
+
+
+function Blur(Obj)
+{
+ parent.document.getElementById("Interesados").setAttribute("value", GetData());
+
+ if (HasChanged()){
+ try {
+ top.Main.Folder.FolderData.FolderFormData.cambioValor(parent.document.getElementById("Interesados"));
+ }
+ catch(e){}
+ }
+}
+
+function Enable(Enabled)
+{
+ if (!g_PersonValidation){
+ if (Enabled){
+ document.getElementById("freeText").readOnly = false;
+ document.getElementById("freeText").className = "textarea";
+ }
+ else {
+ document.getElementById("freeText").readOnly = true;
+ document.getElementById("freeText").className = "textareaRO";
+ }
+ }
+ else
+ {
+ var tabData = document.getElementById("TabInt");
+
+ for (var i = 0; i < tabData.rows.length; i++){
+ var row = tabData.rows[i];
+
+ for (var j = 0; j < row.cells.length; j++) {
+ if (row.id != "head"){
+ if (!Enabled){
+ row.cells[j].className = "reportRO";
+ }
+ else {
+ row.cells[j].className = "report";
+ }
+ }
+ }
+ }
+
+ if (!Enabled){
+ document.getElementById("imgHelp").style.visibility = "hidden";
+ document.getElementById("validInt").className = "inputRO";
+ }
+ else {
+ document.getElementById("imgHelp").style.visibility = "visible";
+ document.getElementById("validInt").className = "input";
+ }
+ }
+}
+
+function Conmute(Mode)
+{
+ g_PersonValidation = (Mode == "1");
+
+ if (g_PersonValidation) {
+ document.getElementById("free").style.display = "none";
+ document.getElementById("validate").style.display = "block";
+ SetTabSize();
+ }
+ else {
+ document.getElementById("free").style.display = "block";
+ document.getElementById("validate").style.display = "none";
+ }
+
+ parent.document.getElementById("Interesados").setAttribute("value", GetData());
+
+ try {
+ top.Main.Folder.FolderData.FolderFormData.cambioValor(parent.document.getElementById("Interesados"));
+ }
+ catch(e){}
+}
+
+
+function InsertInt(Id, Name)
+{
+ var cadena = document.getElementById("cadena").value;
+ var tabData = document.getElementById("TabInt");
+ var Found = false;
+
+ for (var i = 0; (i < tabData.rows.length) && !Found; i++){
+ if (tabData.rows[i].firstChild.uid){
+ Found = (tabData.rows[i].firstChild.uid == Id);
+ }
+ }
+
+ if (!Found){
+ var newcadena = Id + "#" + Name + "###";
+
+ insertRowTableInt(Id, Name, "", "", "", "","", "","", "");
+
+ if (cadena == ""){
+ document.getElementById("cadena").value = newcadena;
+ }
+ else {
+ document.getElementById("cadena").value = cadena + " && " + newcadena;
+ }
+
+ parent.document.getElementById("Interesados").setAttribute("value", document.getElementById("cadena").value);
+ SetChange();
+ top.Main.Folder.FolderData.FolderFormData.cambioValor(parent.document.getElementById("Interesados"));
+ }
+}
+
+function InsertInt(Id, Name, IdAddress, Address, IdType)
+{
+ var cadena = document.getElementById("cadena").value;
+ var tabData = document.getElementById("TabInt");
+ var Found = false;
+ var Description = "";
+
+ for (var i = 0; (i < tabData.rows.length) && !Found; i++){
+ if (tabData.rows[i].firstChild.uid){
+ Found = (tabData.rows[i].firstChild.uid == Id);
+ }
+ }
+
+ if (!Found){
+ //var newcadena = Id + "#" + Name + "#" + IdAddress + "#" + Address + "###";
+ var newcadena;
+ if(IdType != 0){
+
+ if (IdType == 1){
+ Description = top.GetIdsLan( "IDS_TELEFONO_FIJO");
+ }
+ if (IdType == 2){
+ Description = top.GetIdsLan( "IDS_CORREO");
+ }
+ if (IdType == 3){
+ Description = top.GetIdsLan( "IDS_FAX");
+ }
+ if (IdType == 4){
+ Description = top.GetIdsLan( "IDS_DEU");
+ }
+ if (IdType == 5){
+ Description = top.GetIdsLan( "IDS_TELEFONO_MOVIL");
+ }
+ newcadena = Id + "#" + Name + "#" + IdAddress + "#" + Address + " " + Description + "#" + IdType + "###";
+ }else{
+ newcadena = Id + "#" + Name + "#" + IdAddress + "#" + Address + "#" + IdType + "###";
+ }
+
+ insertRowTableInt(Id, Name, IdAddress, Address + " " + Description, IdType, "","","","","");
+
+ if (cadena == ""){
+ document.getElementById("cadena").value = newcadena;
+ }
+ else {
+ document.getElementById("cadena").value = cadena + " && " + newcadena;
+ }
+
+ parent.document.getElementById("Interesados").setAttribute("value", document.getElementById("cadena").value);
+ SetChange();
+ top.Main.Folder.FolderData.FolderFormData.cambioValor(parent.document.getElementById("Interesados"));
+ }
+}
+
+function InsertInteresados(Id, Name, IdAddress, Address, IdType)
+{
+ var cadena = document.getElementById("cadena").value;
+ var tabData = document.getElementById("TabInt");
+ var Found = false;
+ var Description = "";
+
+ for (var i = 0; (i < tabData.rows.length) && !Found; i++){
+ if (tabData.rows[i].firstChild.uid){
+ Found = (tabData.rows[i].firstChild.uid == Id);
+ }
+ }
+
+ if (!Found){
+ //var newcadena = Id + "#" + Name + "#" + IdAddress + "#" + Address + "###";
+ var newcadena = Id + "#" + Name + "#" + IdAddress + "#" + Address + "#" + IdType + "###";
+
+ insertRowTableInt(Id, Name, IdAddress, Address, IdType);
+
+ if (cadena == ""){
+ document.getElementById("cadena").value = newcadena;
+ }
+ else {
+ document.getElementById("cadena").value = cadena + " && " + newcadena;
+ }
+
+ parent.document.getElementById("Interesados").setAttribute("value", document.getElementById("cadena").value);
+ SetChange();
+ top.Main.Folder.FolderData.FolderFormData.cambioValor(parent.document.getElementById("Interesados"));
+ }
+}
+
+function DoValidation(TopURL, SessionPId, Value, InitValue, fnCallback)
+{
+
+ var URL = top.g_URL + "/interesado/seachTerceros.action?SessionPId=" + top.g_SessionPId.toString()
+ + "&InitValue=" + InitValue.toString() + "&Code=" + escape(Value) + "&FldId=0";
+
+ top.XMLHTTPRequestGet(URL, "", true);
+
+}
+
+
+function ValidInt()
+{
+ if (top.g_FdrReadOnly){return;}
+
+ var validInt = document.getElementById("validInt");
+ //validInt.value = top.miTrim(validInt.value);
+
+ var caseSensitive = parent.document.getElementById("Interesados")
+ .getAttribute("caseSensitive");
+ if (caseSensitive == 'CS'){
+ validInt.value = top.miTrim(validInt.value).toUpperCase();
+ } else {
+ validInt.value = top.miTrim(validInt.value);
+ }
+
+
+ if (validInt.value != "") {
+ DoValidation(top.g_URL, top.g_SessionPId.toString(), validInt.value, 0, ResponseActionForm);
+ }
+}
+
+
+function ValidateInt(XMLDoc)
+{
+ var validInt = document.getElementById("validInt");
+
+ document.body.style.cursor = "cursor";
+
+ if ((XMLDoc == null) || (XMLDoc.documentElement == null)){
+ eval(top.g_oXMLHTTPRequest.responseText);
+ validInt.focus();
+ validInt.select();
+ }
+ else{
+ var Action = XMLDoc.documentElement.getElementsByTagName("Action")[0].firstChild.data;
+ var size = 0;
+ var doBlur = true;
+
+ if (XMLDoc.documentElement.getElementsByTagName("Total").length != 0){
+ size = parseInt(XMLDoc.documentElement.getElementsByTagName("Total")[0].firstChild.data, 10);
+ }
+ if (size == 0){
+ NewInt();
+ }
+ else if (size == 1){
+ var id = XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Id")[0].firstChild.data;
+ var name = XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Nombre")[0].firstChild.data;
+ var idDom = "";
+ var idDirTel = "";
+ var dom = "";
+ var dirTel = "";
+ var tipo = "";
+ if ((XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Domicilio")[0] != null) &&
+ (XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Domicilio")[0].firstChild != null)){
+ idDom = XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Domicilio")[0].getElementsByTagName("Id")[0].firstChild.data;
+ dom = XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Domicilio")[0].getElementsByTagName("Direccion")[0].firstChild.data + " " +
+ XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Domicilio")[0].getElementsByTagName("Poblacion")[0].firstChild.data + " " +
+ XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Domicilio")[0].getElementsByTagName("CodPostal")[0].firstChild.data + " " +
+ XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Domicilio")[0].getElementsByTagName("Provincia")[0].firstChild.data;
+ tipo = "0";
+ }
+
+ if ((XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Telematica")[0] != null) &&
+ (XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Telematica")[0].firstChild != null)){
+ idDirTel = XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Telematica")[0].getElementsByTagName("IdTel")[0].firstChild.data;
+ dirTel = XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Telematica")[0].getElementsByTagName("DireccionTel")[0].firstChild.data;
+ tipo = XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Telematica")[0].getElementsByTagName("TipoTel")[0].firstChild.data;
+ }
+
+ if (XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Tipo")[0].firstChild.data == "1"){
+ apellido1 = XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Apellido1")[0].firstChild.data;
+ apellido2 = XMLDoc.documentElement.getElementsByTagName("Persona")[0].getElementsByTagName("Apellido2")[0].firstChild.data;
+
+ if (apellido2 != "") {apellido1 = apellido1 + " " + apellido2;}
+ name = apellido1 + ", " + name;
+ }
+
+ if(idDom != ""){
+ InsertInt(id, name, idDom, dom, 0);
+ }else{
+ InsertInt(id, name, idDirTel, dirTel, tipo);
+ }
+ }
+ else if (size > 1){
+ var maxResult = 0;
+ if (XMLDoc.documentElement.getElementsByTagName("MaxResult").length != 0){
+ maxResult = parseInt(XMLDoc.documentElement.getElementsByTagName("MaxResult")[0].firstChild.data, 10);
+ }
+ if (maxResult > 0 && size > maxResult){
+ alert(top.GetIdsLan("IDS_BUSINTER_MAX_RESULT"));
+ } else {
+ doBlur = SelectInt(Action, XMLDoc);
+ }
+ }
+
+ validInt.value = "";
+
+ if (!doBlur) {
+ validInt.focus();
+ }
+
+ if (doBlur) {
+ try {
+ top.Main.Folder.FolderData.FolderFormData.cambioValor(parent.document.getElementById("Interesados"));
+ }
+ catch(e){}
+ }
+ }
+}
+
+
+function NewInt()
+{
+ var caseSensitive = parent.document.getElementById("Interesados")
+ .getAttribute("caseSensitive");
+ var URL = top.g_URL + "/dlgnewint.htm?SessionPId=" + top.g_SessionPId
+ + "&PermsCreate=" + top.g_CreateInterPerms.toString()
+ + "&Idioma=" + top.Idioma
+ + "&numIdioma=" + top.numIdioma;
+ var strRet = top.ShowModalDialog(URL, null, 250, 450, "");
+
+ if ((strRet != "") && (strRet != null)){
+ var arguments = new Array();
+ URL = top.g_URL + "/vldnewinter.htm?SessionPId=" + top.g_SessionPId
+ + "&PersonId=0&PersonType=" + strRet
+ + "&Idioma=" + top.Idioma
+ + "&numIdioma=" + top.numIdioma
+ + "&caseSensitive=" + caseSensitive;
+
+ arguments[0] = "";
+ arguments[1] = "";
+ arguments[2] = "";
+ arguments[3] = "";
+ arguments[4] = "";
+
+ strRet = top.ShowModalDialog(URL, arguments, 450, 580, "");
+
+ if ( (strRet) && (strRet != "") ) {
+ var arrTokens = top.getTokens(strRet, "|", "||", 9);
+
+ // Se aniade desde aqui
+ var validInt = document.getElementById("validInt");
+ if (validInt != null){
+ validInt.value = arrTokens[8];
+
+ if ((validInt.value != null) && (validInt.value != "")){
+ ValidInt();
+ }
+ }
+ // hasta aqui y que sustituye desde aqui
+ //InsertInt(arrTokens[0], arrTokens[1], arrTokens[4], arrTokens[3]);
+ // hasta aqui
+ }
+ else {
+ top.setFocus(document.getElementById("validInt"));
+ }
+ }
+
+ else {
+ top.setFocus(document.getElementById("validInt"));
+ }
+}
+
+
+function SelectInt(Action, XMLDoc)
+{
+ var args = new Array();
+ var sRet;
+ var selected = false;
+
+ args[0] = XMLDoc;
+ args[1] = top.g_URL;
+ args[2] = top.g_SessionPId.toString();
+ args[3] = "0";
+ args[4] = Action;
+ args[5] = top.Idioma;
+ args[6] = top.GetIdsLan( "IDS_INTS_SELECT");
+
+ document.body.style.cursor = "wait";
+
+ sRet = top.ShowModalDialog(top.g_URL + "/dlglist.htm", args, 550, 750, "");
+
+ if ((sRet != null) && (sRet != "")) {
+ var arrTokens = top.getTokens(sRet, "#", "#", 8);
+
+ if(arrTokens[3] != ""){
+ InsertInteresados(arrTokens[2], arrTokens[1], arrTokens[4], arrTokens[3], arrTokens[7]);
+ }else{
+ InsertInteresados(arrTokens[2], arrTokens[1], arrTokens[6], arrTokens[5], arrTokens[7]);
+ }
+
+ selected = true;
+ }
+
+ document.body.style.cursor = "cursor";
+
+ return (selected);
+}
\ No newline at end of file
diff --git a/registro/ISicres-Desktop-Web/src/main/webapp/scripts/global.js b/registro/ISicres-Desktop-Web/src/main/webapp/scripts/global.js
index 8b7d63918..15319efb9 100755
--- a/registro/ISicres-Desktop-Web/src/main/webapp/scripts/global.js
+++ b/registro/ISicres-Desktop-Web/src/main/webapp/scripts/global.js
@@ -657,6 +657,23 @@ function ShowForm()
top.Main.document.getElementById("Distr").tabIndex = "-1";
top.Main.document.getElementById("Reports").tabIndex = "-1";
}
+
+ //[Teresa-felipe-ecenpri Ticket #71] 22/02/2010
+ //Si se trata de un nuevo registro de entrada, cambiamos el color para diferenciarlo del de salida
+ if (top.g_ArchiveId == 1)
+ {
+
+ tree=top.Main.Folder.FolderData.FolderFormTree.document.getElementById("tree");
+ tree.className = 'registroEntrada';
+
+ //interesados=top.Main.Folder.FolderData.FolderFormData.document.getElementById("Interesados");
+ //interesados.className = 'registroEntrada';
+
+ top.Main.Folder.FolderData.FolderFormData.document.body.className = 'registroEntrada';
+ top.Main.Folder.FolderData.FolderFormTree.document.body.className = 'registroEntrada';
+ }
+ //Fin [Teresa-felipe-ecenpri] 22/02/2010
+
}
diff --git a/registro/ISicres-Desktop-Web/src/main/webapp/scripts/global.js.dipucr b/registro/ISicres-Desktop-Web/src/main/webapp/scripts/global.js.dipucr
new file mode 100644
index 000000000..8b7d63918
--- /dev/null
+++ b/registro/ISicres-Desktop-Web/src/main/webapp/scripts/global.js.dipucr
@@ -0,0 +1,2051 @@
+var g_ArchiveName = "";
+var g_MaxCharArchiveName = 30;
+
+var g_Maximized = false;
+var g_PrevFormTreeWidth = 250;
+var g_SessionPId = "";
+var g_ArchivePId = 0;
+var g_ArchiveId = 0;
+var g_ArchiveName = "";
+var g_FdrQryPId = 0;
+var g_AppId = 1;
+var g_FolderPId = -1;
+var g_FdrReadOnly = true;
+var g_CloseFolder = 1;
+var g_ShowTable = true;
+
+var g_WndVld = null;
+var g_FormVld = null;
+
+// Para controlar las pulsaciones sobre el arbol de libros de registro
+var g_TreeFunc = true;
+var g_OpcAval = true;
+
+// Pagina seleccionada en la carpeta que se esta visualizando
+var g_Page = 0;
+var g_PrevPage = -1;
+
+// Navegacion y FolderViews
+var g_FolderView = false;
+
+var g_URL = "";
+
+var g_FolderSel = -1;
+var g_FolderId = -1;
+var g_DistId = -1;
+
+var g_BookPerms = 1; // por defecto tenemos permiso de consulta
+var g_CreateInterPerms = 0; // por defecto no podemos crear interesados
+var g_ModifyInterPerms = 0; // por defecto no podemos modificar interesados
+
+// Para controlar sucesivos clicks sobre una misma carpeta
+var g_sinPulsar = true;
+
+// Para controlar si se abre una carpeta, si es nueva o si es un bucle
+var g_OpenType = 0;
+var g_Field = null; // Campo que lanza la ayuda
+
+// para deshabilitar el arbol de la izquierda en el formulario
+var g_ActivateTree = false;
+
+var g_bIsBucle = false;
+var g_LoadForm = false;
+
+// para saber si es la primera vez que se abre la ventana de carpeta
+var g_bIsNewFolder = false;
+// Es una array con los CtrId que son ReadOnly en el formulario
+var g_ArrFldsReadOnly = null;
+
+//indica que el libro abierto esta bloqueado
+var g_bIsLockBook = true;
+
+// controla que no se habra mas de dos veces la ventana de ayuda
+var g_oHelpWindow = null; // referencia a la ventana de ayuda
+
+// array para hacer la copia del array de modificaciones que es persistente
+var g_oArrCopiaFldData = null;
+
+// Array con los ficheros escaneados que se tienen que borrar del local despues del upload
+var g_ArrScanFiles = null;
+
+// Control del unload de la ventana principal para no hacer dos veces logout
+var g_bIsUnload = false;
+
+// para saber cuando estamos guardando una carpeta
+var g_bIsSaved=false;
+
+// para saber si se abre una carpeta desde la distribucion
+var g_OpenFolderDtr=false;
+
+// para saber si se abre una carpeta desde url
+var g_OpenFolderPenDtr=false;
+
+//IDENTIFICADORES de CAMPOS
+var g_FLD_DATEREG = 2;
+
+//Indica el id. de registro a copiar
+var g_CopyFdr = 0;
+
+//Indica si hay algo pendiente de guardar
+var g_SavePending = false;
+
+var g_ArrFdrSelected = new Array();
+
+//Indica que se ha producido en error en un evento de validacion
+var g_ErrorOnValidate = false;
+var g_IsBookAdm = false;
+
+var g_UseOSAuth = false;
+var g_UseLDAP = false;
+var g_UserDN = "";
+var g_CanChangePassword = true;
+
+var g_FirstReg = 0;
+var g_LastReg = 0;
+
+//Variable para XMLHTTPRrequest
+var g_oXMLHTTPRequest = null;
+var oXMLHTTPRequest = null;
+
+//Para ventanas modales en Mozilla
+var g_WinModal = null;
+
+var g_CaseSensitive = "";
+var g_CodeAsocReg = "";
+var g_typeSearchAdvanced = false;
+var g_TypeSearch = 0;
+
+// Para abrir registros en vista formulario cuando el usuario es de consulta
+var g_Form = false;
+
+//Indica si la oficina actual esta habilitada (true), en caso contrario estaria dada de baja y no se podrian dar de alta registros.
+var g_OfficeEnabled = "";
+
+var g_frmStrUpdate; //Se usara para guardar el formulario con los datos modificados de la carpeta, usado en la parte de subir ficheros "SendScanFilesToServer"
+
+
+//variable que indica si al abrir la ventana de busqueda de interesados desde el formulario del registro tiene que realizar alguna operativa
+var g_actionInitFormInter = null;
+
+// variable que se utiliza para saber si el registro ha sido modificado y
+// esta pendiente de guardar (se utiliza para el uso de teclas de acceso rapido, y llevar un control del boton guardar)
+var g_changeDataRegistro = false;
+
+
+function FormDataLoaded()
+{
+ var strParams = "";
+
+ // Lo hacemos aqui porque es cuando aseguramos que estan todos los frames cargados
+ if ( g_FolderView ) {
+ strParams = "ArchiveId=" + g_ArchiveId.toString();
+ strParams += "&ArchivePId=" + g_ArchivePId.toString();
+ strParams += "&SessionPId=" + g_SessionPId.toString();
+ strParams += "&FolderId=" + g_FolderId.toString();
+ strParams += "&FolderPId=" + g_FolderPId.toString();
+ strParams += "&FdrQryPId=" + top.g_FdrQryPId.toString();
+ strParams += "&Row=" + top.g_FolderSel.toString();
+ strParams += "&Form=" + top.g_Form;
+ strParams += "&OpenFolderDtr=" + g_OpenFolderDtr.toString();
+
+ if (top.g_CopyFdr != 0) {
+ strParams += "&CopyFdr=" + top.g_CopyFdr.toString();
+ }
+
+ top.g_bIsNewFolder = true;
+
+ switch (top.g_OpenType){
+ case 1: {
+ top.XMLHTTPRequestGet(top.g_URL + "/newfolder.jsp?" + strParams, ResponseNewFolder, true);
+ break;
+ }
+ default: {
+ top.XMLHTTPRequestGet(top.g_URL + "/openfolder.jsp?" + strParams, ResponseOpenFolder, true);
+ break;
+ }
+ }
+ }
+}
+
+
+function ResponseNewFolder()
+{
+ if (top.g_oXMLHTTPRequest.readyState != 4){
+ return;
+ }
+
+ if (top.g_oXMLHTTPRequest.status != 200){
+ alert(top.g_oXMLHTTPRequest.statusText + " (" + top.g_oXMLHTTPRequest.status.toString() + ")");
+ return;
+ }
+
+ var HTMLText = top.g_oXMLHTTPRequest.responseText;
+
+ if (HTMLText.indexOf("alert(") != -1){
+ evalAlert(HTMLText);
+ }
+ else{
+ top.SetFolderFormTree(HTMLText);
+ }
+}
+
+
+function ResponseOpenFolder()
+{
+ if (top.g_oXMLHTTPRequest.readyState != 4){
+ return;
+ }
+
+ if (top.g_oXMLHTTPRequest.status != 200){
+ alert(top.g_oXMLHTTPRequest.statusText + " (" + top.g_oXMLHTTPRequest.status.toString() + ")");
+ return;
+ }
+
+ var HTMLText = top.g_oXMLHTTPRequest.responseText;
+
+ if (HTMLText.indexOf("alert(") != -1){
+ try {
+ top.Main.Folder.FolderBar.bLoadForm = true;
+ window.open(top.g_URL + "/fldbarupdate.htm", "FolderBar", "location=no", true);
+ top.g_Page = 0;
+ top.g_sinPulsar = true;
+ top.g_OpcAval = true;
+
+ if (top.g_FolderView){
+ window.open(top.g_URL + "/tb_folder.htm", "ToolBarFrm", "location=no", true);
+ top.Main.Folder.ToolBarFrm.ToolBarEnabled();
+ top.g_ActivateTree = true;
+ top.g_bIsNewFolder = false;
+ }
+ else{
+ window.open(top.g_URL + "/tb_form.htm", "ToolBarFrm", "location=no", true);
+ }
+
+ top.ShowForm();
+ top.Main.Folder.ToolBarFrm.habilitar();
+ top.g_ActivateTree = true;
+ top.g_bIsNewFolder = false;
+ }
+ catch(e){}
+
+ evalAlert(HTMLText);
+ }
+ else{
+ top.SetFolderFormTree(HTMLText);
+ }
+}
+
+
+function ResponseNewFldBuc()
+{
+ if (top.g_oXMLHTTPRequest.readyState != 4){
+ return;
+ }
+
+ if (top.g_oXMLHTTPRequest.status != 200){
+ alert(top.g_oXMLHTTPRequest.statusText + " (" + top.g_oXMLHTTPRequest.status.toString() + ")");
+ return;
+ }
+
+ var HTMLText = top.g_oXMLHTTPRequest.responseText;
+
+ if (HTMLText.indexOf("alert(") != -1){
+ try {
+ top.Main.Folder.FolderBar.bLoadForm = true;
+ window.open(top.g_URL + "/fldbarupdate.htm", "FolderBar", "location=no", true);
+ top.g_Page = 0;
+ top.g_OpcAval = true;
+
+ if (top.g_FolderView){
+ window.open(top.g_URL + "/tb_folder.htm", "ToolBarFrm", "location=no", true);
+ top.Main.Folder.ToolBarFrm.ToolBarEnabled();
+ top.g_ActivateTree = true;
+ top.g_bIsBucle = false;
+ top.g_LoadForm = false;
+ }
+ else{
+ window.open(top.g_URL + "/tb_form.htm", "ToolBarFrm", "location=no", true);
+ }
+
+ top.ShowForm();
+ top.Main.Folder.ToolBarFrm.habilitar();
+ top.g_ActivateTree = true;
+ top.g_bIsBucle = false;
+ top.g_LoadForm = false;
+ }
+ catch(e){}
+
+ evalAlert(HTMLText);
+ }
+ else{
+ top.SetFolderFormTree(HTMLText);
+
+ // se hace una copia de la parte del array de modificaciones que es persistente
+ CopyPersistentArray(top.Main.Folder.FolderData.FolderFormData.document.getElementById('FrmData'));
+ }
+}
+
+function ResponseSendIntercambioRegistral()
+{
+ if (top.g_oXMLHTTPRequest.readyState != 4){
+ return;
+ }
+
+ if (top.g_oXMLHTTPRequest.status != 200){
+ alert(top.g_oXMLHTTPRequest.statusText + " (" + top.g_oXMLHTTPRequest.status.toString() + ")");
+ return;
+ }
+
+ var HTMLText = top.g_oXMLHTTPRequest.responseText;
+ evalAlert(HTMLText);
+}
+
+
+function ResponseFrmData()
+{
+ if (top.g_oXMLHTTPRequest.readyState != 4){
+ return;
+ }
+
+ if (top.g_oXMLHTTPRequest.status != 200){
+ alert(top.g_oXMLHTTPRequest.statusText + " (" + top.g_oXMLHTTPRequest.status.toString() + ")");
+ return;
+ }
+
+ var HTMLText = top.g_oXMLHTTPRequest.responseText;
+
+
+ if (HTMLText.indexOf("alert(") != -1){
+ try {
+ top.g_ActivateTree=true;
+ top.ShowForm();
+
+ if(top.g_FolderView){
+ top.Main.Folder.ToolBarFrm.ToolBarEnabled();
+ }
+ else {
+ top.Main.Folder.ToolBarFrm.habilitar();
+ }
+ }
+ catch(excep){}
+
+ evalAlert(HTMLText);
+ }
+ else {
+ var doc = top.Main.Folder.FolderData.FolderFormData.document;
+
+ doc.body.innerHTML = HTMLText;
+
+ top.Main.Folder.FolderData.FolderFormData.getParamsPersons(doc.getElementById("CanUpdatePer").value,
+ doc.getElementById("CanAddPer").value);
+ top.Main.Folder.FolderData.FolderFormData.getFormTam(doc.getElementById("Width").value,
+ doc.getElementById("Height").value);
+
+ if (doc.getElementById("Interesados")){
+ doc.getElementById("Interesados").src = "frmint.htm";
+ }
+
+ top.Main.Folder.FolderData.FolderFormData.OnWindowLoad();
+ top.Main.Folder.FolderData.FolderFormData.modificaciones();
+ top.Main.Folder.FolderData.FolderFormData.MarkBadFields();
+ top.Main.Folder.FolderData.FolderFormData.getTemplateForm();
+
+ doc.body.style.cursor = "cursor";
+
+ setTimeout("top.Main.Folder.FolderData.FolderFormData.SetFormFocus()", 10);
+ }
+}
+
+
+function CallActionForm(Action, Code, FldId, Init, fnCallback)
+{
+ var URL = top.g_URL + "/actionform.jsp?SessionPId=" + top.g_SessionPId.toString()
+ + "&InitValue=" + Init.toString() + "&Code=" + escape(Code) + "&FldId=" + FldId.toString();
+ var params = "";
+
+ if (Action == "ValidateUnit"){
+ params = "&Action=ValidateUnit";
+ }
+ else if (Action == "ValidateInt"){
+ params = "&Action=ValidateInt";
+ }
+ else if (Action == "OtherOffices"){
+ params = "&Action=OtherOffices";
+ }
+
+ URL += params;
+
+ top.XMLHTTPRequestGet(URL, fnCallback, true);
+}
+
+
+function ResponseActionForm()
+{
+ if (top.g_oXMLHTTPRequest.readyState != 4){
+ return;
+ }
+
+ if (top.g_oXMLHTTPRequest.status != 200){
+ alert(top.g_oXMLHTTPRequest.statusText + " (" + top.g_oXMLHTTPRequest.status.toString() + ")");
+ return;
+ }
+
+ var XMLDoc = top.g_oXMLHTTPRequest.responseXML;
+
+ document.body.style.cursor = "cursor";
+
+ if ((XMLDoc == null) || (XMLDoc.documentElement == null)){
+ eval(top.g_oXMLHTTPRequest.responseText);
+ }
+ else {
+ var Action = Action = XMLDoc.documentElement.getElementsByTagName("Action")[0].firstChild.data;;
+
+ if (Action == "ValidateUnit"){
+ top.Main.Folder.FolderData.FolderFormData.ValidateUnit(XMLDoc);
+ }
+ else if (Action == "OtherOffices"){
+ top.ValidateOtherOffices(XMLDoc);
+ }
+ else if (Action == "ValidateInt") {
+ top.Main.Folder.FolderData.FolderFormData.Interesados.ValidateInt(XMLDoc);
+ }
+ }
+}
+
+
+function ValidateOtherOffices(XMLDoc)
+{
+ document.body.style.cursor = "cursor";
+
+ if ((XMLDoc == null) || (XMLDoc.documentElement == null)){
+ eval(top.g_oXMLHTTPRequest.responseText);
+ }
+ else{
+ var args = new Array();
+ var sRet;
+ var Action = XMLDoc.documentElement.getElementsByTagName("Action")[0].firstChild.data;
+
+ args[0] = XMLDoc;
+ args[1] = top.g_URL;
+ args[2] = top.g_SessionPId.toString();
+ args[3] = "0";
+ args[4] = Action;
+ args[5] = top.Idioma;
+ args[6] = top.GetIdsLan( "IDS_OPCCHANGEOFFICE");
+
+ document.body.style.cursor = "wait";
+
+ sRet = top.ShowModalDialog(top.g_URL + "/dlglist.htm", args, 550, 750, "");
+
+ if ((sRet != null) && (sRet != "")) {
+ var arrTokens = top.getTokens(sRet, "#", "#", 2);
+ var URL = top.g_URL + "/changeoffice.jsp?SessionPId=" + top.g_SessionPId.toString()
+ + "&OfficeCode=" + arrTokens[0];
+
+ top.g_TreeFunc = false;
+
+ window.open(URL, "LEST","location=no",true);
+ }
+ }
+}
+
+
+function SetFolderFormTree(HTMLText)
+{
+ if (HTMLText.length < 10){return;}
+
+ var doc = top.Main.Folder.FolderData.FolderFormTree.document;
+
+ doc.body.innerHTML = HTMLText;
+
+ top.SetInnerText(doc.getElementById("lbAnexos"), top.GetIdsLan("IDS_ANEXO"));
+
+ top.Main.Folder.FolderData.FolderFormTree.getParams(parseInt(doc.getElementById("FolderPId").value, 10),
+ parseInt(doc.getElementById("FdrReadOnly").value, 10), parseInt(doc.getElementById("FolderId").value, 10),
+ parseInt(doc.getElementById("VldSave").value, 10));
+ top.Main.Folder.FolderData.FolderFormTree.Row = 1;
+
+ if (top.g_FolderView){
+ window.open(top.g_URL + "/tb_folder.htm", "ToolBarFrm","location=no",true);
+ }
+ else {
+ window.open(top.g_URL + "/tb_form.htm", "ToolBarFrm","location=no",true);
+ }
+
+ top.Main.Folder.FolderData.FolderFormTree.DeleteUL(doc.getElementById("UL0"));
+
+ top.Main.Folder.FolderData.FolderFormTree.AddHistoricDistr();
+ top.Main.Folder.FolderData.FolderFormTree.AddHistoricIntercambioRegistral();
+ top.Main.Folder.FolderData.FolderFormTree.AddHistoricReg();
+ top.Main.Folder.FolderData.FolderFormTree.AddAsocRegs();
+ top.AttachEvent(doc.body, "click", function(){top.Main.Folder.FolderData.FolderFormTree.ChkClick();});
+
+ if(!IsExplorerBrowser()){
+ top.Main.Folder.FolderData.FolderFormTree.document.getElementById("tree").className= "tree_ff";
+ }else{
+ top.Main.Folder.FolderData.FolderFormTree.document.getElementById("tree").className= "tree_ie";
+ }
+
+ var funct = function(e){e = e || window.event; top.Main.Folder.FolderData.FolderFormTree.ChkKeyPress(e);};
+ top.AttachEvent(doc.body, "keypress", funct);
+}
+
+function SetArchiveName(ArchiveName,type)
+{
+ g_ArchiveName = unescape(ArchiveName);
+
+ if (ArchiveName.length > g_MaxCharArchiveName) {
+ ArchiveName = g_ArchiveName.substr(0, g_MaxCharArchiveName - 3) + "...";
+ }
+
+ switch(type){
+ case "QRY" : {
+ top.Main.Workspace.document.getElementById("ArchiveName").innerHTML = unescape(ArchiveName);
+
+ if (ArchiveName != "") {
+ top.Main.Workspace.document.getElementById("ArchiveName").className = "BookNameEx";
+ }
+ else {
+ top.Main.Workspace.document.getElementById("ArchiveName").className = "BookName";
+ }
+ break;
+ }
+ case "TBL": {
+ top.Main.Table.TableData.document.getElementById("ArchiveName").innerHTML = unescape(ArchiveName);
+ break;
+ }
+ case "FRM": {
+ top.Main.Folder.ToolBarFrm.document.getElementById("ArchiveName").innerHTML = unescape(ArchiveName);
+ break;
+ }
+ case "REP": {
+ top.Main.Reports.document.getElementById("ArchiveName").innerHTML = unescape(ArchiveName);
+ break;
+ }
+ }
+}
+
+
+function ToggleMaximized(strClass)
+{
+ if (strClass != "SubOptionsDisabled"){
+ if (g_Maximized) {
+ top.Main.Folder.FolderData.document.getElementById('FolderFSet').cols = g_PrevFormTreeWidth.toString() + "px, *";
+ top.Main.Folder.ToolBarFrm.document.getElementById("ToggleBtn").innerHTML = "
" + top.GetIdsLan( "IDS_OPCMAXIMIZAR" ) + "
";
+ }
+ else {
+ top.Main.Folder.ToolBarFrm.document.getElementById("ToggleBtn").innerHTML = "" + top.GetIdsLan( "IDS_OPCRESTAURAR" ) + "
";
+ g_PrevFormTreeWidth = top.Main.Folder.FolderData.document.getElementById("FolderFormTree").offsetWidth;
+ top.Main.Folder.FolderData.document.getElementById('FolderFSet').cols = "0, *";
+ }
+
+ g_Maximized = !g_Maximized;
+ }
+}
+
+function OpenNewWindow(URL, Name, Width, Height, Scroll,strResize)
+{
+ if( Width > screen.availWidth ) {
+ Width = screen.availWidth;
+ }
+
+ if( Height > screen.availHeight ) {
+ Height = screen.availHeight;
+ }
+
+ var winl = (screen.availWidth - Width) / 2;
+ var wint = (screen.availHeight - Height) / 2;
+
+ Props = 'height='+Height+',width='+Width+',top='+wint+',left='+winl+',scrollbars='+Scroll+',resizable='+strResize+',location=no'
+ win = window.open(URL, Name, Props,true)
+
+ if (parseInt(navigator.appVersion) >= 4) {
+ win.window.focus();
+ }
+}
+
+
+function ShowQuery()
+{
+ top.Main.document.getElementById('frSetWork').rows = "100%,*,*,*,*";
+
+ if (top.g_ArchivePId != 0) {
+ // Le damos el foco al primer campo del formulario
+ top.setFormFocus(top.Main.Workspace.Query.document.getElementById("QryFmtForm"), top.Main.Workspace.Query.g_FormWidth, top.Main.Workspace.Query.g_FormHeight);
+ top.g_TreeFunc=true;
+ }
+
+ // Activamos el frame workspace
+ top.Main.document.getElementById("Workspace").tabIndex = "1";
+ top.Main.document.getElementById("Table").tabIndex = "-1";
+ top.Main.Table.document.getElementById("TableData").tabIndex = "-1";
+ top.Main.document.getElementById("Folder").tabIndex = "-1";
+ top.Main.Folder.document.getElementById("FolderBar").tabIndex = "-1";
+ top.Main.Folder.document.getElementById("FolderData").tabIndex = "-1";
+ top.Main.Folder.document.getElementById("ToolBarFrm").tabIndex = "-1";
+
+ if (top.g_FolderView) {
+ top.Main.Folder.FolderData.FolderFormData.tabIndex = "-1";
+ }
+
+ top.Main.document.getElementById("Distr").tabIndex = "-1";
+ top.Main.document.getElementById("Reports").tabIndex = "-1";
+}
+
+function ShowAdvancedQuery() {
+
+ top.Main.document.getElementById('frSetWork').rows = "100%,*,*,*,*";
+
+ // Activamos el frame workspace
+ top.Main.document.getElementById("Workspace").tabIndex = "1";
+ top.Main.document.getElementById("Table").tabIndex = "-1";
+ top.Main.Table.document.getElementById("TableData").tabIndex = "-1";
+ top.Main.document.getElementById("Folder").tabIndex = "-1";
+ top.Main.Folder.document.getElementById("FolderBar").tabIndex = "-1";
+ top.Main.Folder.document.getElementById("FolderData").tabIndex = "-1";
+ top.Main.Folder.document.getElementById("ToolBarFrm").tabIndex = "-1";
+
+ if (top.g_FolderView) {
+ top.Main.Folder.FolderData.FolderFormData.tabIndex = "-1";
+ }
+
+ top.Main.document.getElementById("Distr").tabIndex = "-1";
+ top.Main.document.getElementById("Reports").tabIndex = "-1";
+
+}
+
+function ShowTableFr()
+{
+ top.Main.document.getElementById('frSetWork').rows = "*,100%,*,*,*";
+ top.g_OpcAval=true;
+
+ // Activamos el frame Table
+ top.Main.document.getElementById("Workspace").tabIndex = "-1";
+ top.Main.document.getElementById("Table").tabIndex = "1";
+ top.Main.Table.document.getElementById("TableData").tabIndex = "1";
+ top.Main.document.getElementById("Folder").tabIndex = "-1";
+ top.Main.Folder.document.getElementById("FolderBar").tabIndex = "-1";
+ top.Main.Folder.document.getElementById("FolderData").tabIndex = "-1";
+ top.Main.Folder.document.getElementById("ToolBarFrm").tabIndex = "-1";
+
+ if (top.g_FolderView){
+ top.Main.Folder.FolderData.FolderFormData.tabIndex = "-1";
+ }
+
+ top.Main.document.getElementById("Distr").tabIndex = "-1";
+ top.Main.document.getElementById("Reports").tabIndex = "-1";
+}
+
+
+function ShowForm()
+{
+ top.Main.document.getElementById("Folder").tabIndex = "1";
+ top.Main.Folder.document.getElementById("FolderBar").tabIndex = "1";
+ top.Main.Folder.document.getElementById("FolderData").tabIndex = "1";
+ top.Main.Folder.document.getElementById("ToolBarFrm").tabIndex = "1";
+
+ if (top.g_FolderView){
+ top.Main.Folder.FolderData.FolderFormData.tabIndex = "1";
+ }
+ else {
+ top.Main.document.getElementById('frSetWork').rows = "*,*,100%,*,*";
+
+ // Desactivamos el resto de frames
+ top.Main.document.getElementById("Workspace").tabIndex = "-1";
+ top.Main.document.getElementById("Table").tabIndex = "-1";
+ top.Main.Table.document.getElementById("TableData").tabIndex = "-1";
+ top.Main.document.getElementById("Distr").tabIndex = "-1";
+ top.Main.document.getElementById("Reports").tabIndex = "-1";
+ }
+}
+
+
+function ShowDistribution(strClassName)
+{
+ if (strClassName != "SubOptionsDisabled"){
+ top.Main.document.getElementById('frSetWork').rows = "*,*,*,100%,*";
+
+ // Activamos el frame Distr
+ top.Main.document.getElementById("Workspace").tabIndex = "-1";
+ top.Main.document.getElementById("Table").tabIndex = "-1";
+ top.Main.Table.document.getElementById("TableData").tabIndex = "-1";
+ top.Main.document.getElementById("Folder").tabIndex = "-1";
+ top.Main.Folder.document.getElementById("FolderBar").tabIndex = "-1";
+ top.Main.Folder.document.getElementById("FolderData").tabIndex = "-1";
+ top.Main.Folder.document.getElementById("ToolBarFrm").tabIndex = "-1";
+
+ if (top.g_FolderView) {
+ top.Main.Folder.FolderData.FolderFormData.tabIndex = "-1";
+ }
+
+ top.Main.document.getElementById("Distr").tabIndex = "1";
+ top.Main.document.getElementById("Reports").tabIndex = "-1";
+
+ top.Main.Distr.DoOnLoad(0);
+ }
+}
+
+
+function ChangeOffice(strClassName)
+{
+ if (strClassName != "SubOptionsDisabled"){
+ top.CallActionForm("OtherOffices", "", 0, 0, ResponseActionForm);
+ }
+}
+
+
+function Over(obj)
+{
+ if (obj.className != "SubOptionsDisabled"){
+ obj.className="OptionsOver";
+ }
+}
+
+function Out(obj)
+{
+ if (obj.className != "SubOptionsDisabled"){
+ obj.className="Options";
+ }
+}
+
+function NewFolder(obj)
+{
+ if (obj.className == "SubOptionsDisabled"){
+ return;
+ }
+
+ g_TreeFunc = false;
+
+ top.OpenNewWindow(top.g_URL + "/default.jsp?AppId=" + top.g_AppId.toString()
+ + "&SessionPId=" + g_SessionPId.toString()
+ + "&FolderView=1&ArchiveId=" + g_ArchiveId.toString()
+ + "&ArchiveName=" + g_ArchiveName.toString()
+ + "&ArchivePId=" + g_ArchivePId.toString()
+ + "&FolderPId=" + top.g_FolderPId.toString()
+ + "&Idioma=" + Idioma.toString()
+ + "&numIdioma=" + numIdioma.toString()
+ + "&OpenType=1", "", "10000", "10000", "auto","yes");
+
+ g_TreeFunc = true;
+}
+
+function SendIntercambioRegistral(strClassName)
+{
+ var strParams = "";
+
+ if (strClassName != 'SubOptionsDisabled'){
+ if (!top.g_FdrReadOnly) {
+ if( top.Main.Folder.FolderBar.document.getElementById("SaveMenuBtn").className == "SubOptions" ){
+ if( !window.confirm( top.GetIdsLan( "IDS_QRYCONTGUARDAR" ) ) ) {
+ return;
+ }
+ }
+ }
+ }
+
+
+ top.g_WndVld = top.Main.Folder.FolderData.FolderFormData;
+ top.g_FormVld = top.Main.Folder.FolderData.FolderFormData.document.getElementById("FrmData");
+
+ strParams = "ArchiveId=" + g_ArchiveId.toString();
+ strParams += "&SessionPId=" + g_SessionPId.toString();
+ strParams += "&FolderId=" + g_FolderId.toString();
+ strParams += "&FolderPId=" + g_FolderPId.toString();
+ strParams += "&ArchivePId=" + g_ArchivePId.toString();
+ strParams += "&FrmData=false";
+ strParams += "&EnviarIR=1";
+
+ window.open(top.g_URL + "/mainvld.htm?" + strParams, "Vld","location=no",true);
+
+ top.g_WndVld.document.getElementById("Vld").style.left = "5px";
+ top.g_WndVld.document.getElementById("Vld").style.top = "5px";
+ top.g_WndVld.document.getElementById("Vld").style.height = '97%';
+ top.g_WndVld.document.getElementById("Vld").style.width = '97%';
+ top.g_WndVld.document.getElementById("Vld").style.display = "block";
+
+ //top.XMLHTTPRequestGet(top.g_URL + "/EnviarIntercambiosRegistrales.do?" + strParams, ResponseSendIntercambioRegistral, true);
+}
+
+function NewFolderBucle(strClassName)
+{
+ var strParams = "";
+
+ if (strClassName != 'SubOptionsDisabled'){
+ if (!top.g_FdrReadOnly) {
+ if( top.Main.Folder.FolderBar.document.getElementById("SaveMenuBtn").className == "SubOptions" ){
+ if( !window.confirm( top.GetIdsLan( "IDS_QRYCONTGUARDAR" ) ) ) {
+ top.Main.Folder.FolderBar.document.getElementById("SaveMenuBtn").focus();
+ return;
+ }
+ }
+ }
+
+ strParams = "ArchiveId=" + g_ArchiveId.toString();
+ strParams += "&SessionPId=" + g_SessionPId.toString();
+ strParams += "&FolderId=" + g_FolderId.toString();
+ strParams += "&FolderPId=" + g_FolderPId.toString();
+ strParams += "&ArchivePId=" + g_ArchivePId.toString();
+ strParams += "&FrmData=false";
+
+ top.g_bIsBucle = true;
+ top.g_LoadForm = true;
+
+ top.g_ActivateTree = false;
+
+ if(top.Main.Folder.FolderData.FolderFormData.document.getElementById("Vld")){
+ top.Main.Folder.FolderData.FolderFormData.document.getElementById("Vld").style.display = "none";
+ }
+
+ if(top.Main.Folder.FolderData.FolderFormData.document.getElementById('FrmData')){
+ top.Main.Folder.FolderData.FolderFormData.document.getElementById('FrmData').style.visibility = "visible";
+ }
+ top.XMLHTTPRequestGet(top.g_URL + "/newfldbuc.jsp?" + strParams, ResponseNewFldBuc, true);
+
+ // Deshabilitamos las toolbar
+ top.Main.Folder.ToolBarFrm.ToolBarDisabled();
+ }
+
+ return;
+}
+
+
+function Logout(bNotConfirm)
+{
+ if (! top.g_bIsUnload)
+ {
+ if (bNotConfirm)
+ {
+ top.g_bIsUnload = true;
+ window.open(top.g_URL + "/logout.jsp?SessionPId=" + g_SessionPId
+ + "&AppId=" + g_AppId.toString()
+ + "&Idioma=" + top.Idioma.toString()
+ + "&numIdioma=" + top.numIdioma.toString()
+ + "&LoadDefault=true", "frBlank","location=no",true);
+
+ top.g_SessionPId = "";
+ return true;
+ }
+ else
+ {
+ if ( window.confirm(top.GetIdsLan( "IDS_MSG_EXIT" )) )
+ {
+ var gotoBlank = (top.g_UseLDAP && top.g_UseOSAuth);
+ var loadDefault = (top.g_UseLDAP && top.g_UseOSAuth);
+
+ top.g_bIsUnload = true;
+
+ window.open(top.g_URL + "/logout.jsp?SessionPId=" + g_SessionPId
+ + "&AppId=" + g_AppId.toString()
+ + "&Idioma=" + top.Idioma.toString()
+ + "&numIdioma=" + top.numIdioma.toString()
+ + "&LoadDefault=" + loadDefault.toString()
+ + "&GotoBlank=" + gotoBlank.toString(), "_top","location=no",true);
+
+ top.g_SessionPId = "";
+
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+ }
+}
+
+function CloseFolder()
+{
+ var URL = top.g_URL + "/closefolder.jsp?SessionPId=" + g_SessionPId
+ + "&FolderPId=" + g_FolderPId.toString()
+ + "&ArchivePId=" + g_ArchivePId.toString()
+ + "&FolderId=" + g_FolderId.toString()
+ + "&ArchiveId=" + g_ArchiveId.toString();
+
+ if ((g_FolderPId != -1) && (!top.g_FdrReadOnly || g_OpenFolderDtr)) {
+ top.XMLHTTPRequestGet(URL, ShowCloseFolderResponse, false);
+ }
+}
+
+function ShowCloseFolderResponse()
+{
+ if (top.g_oXMLHTTPRequest.readyState != 4){
+ return;
+ }
+
+ if (top.g_oXMLHTTPRequest.status != 200){
+ alert(top.g_oXMLHTTPRequest.statusText + " (" + top.g_oXMLHTTPRequest.status.toString() + ")");
+ return;
+ }
+
+ var resp = top.g_oXMLHTTPRequest.responseText;
+
+ if (resp != null){
+ if (resp != ""){
+ eval(resp);
+ }
+ }
+}
+
+function OpenFolder(FolderId, index, total)
+{
+ var URL = top.g_URL + "/default.jsp?AppId=" + top.g_AppId.toString()
+ + "&SessionPId=" + top.g_SessionPId + "&FolderView=1&ArchiveId=" + top.g_ArchiveId.toString()
+ + "&ArchiveName=" + top.g_ArchiveName.toString()
+ + "&ArchivePId=" + top.g_ArchivePId.toString()
+ + "&FolderPId=" + top.g_FolderPId.toString()
+ + "&FolderId=" + FolderId.toString()
+ + "&VldSave=1" + "&Idioma=" + top.Idioma.toString()
+ + "&numIdioma=" + top.numIdioma.toString()
+ + "&FirstReg=" + index.toString() + "&LastReg=" + total.toString()
+ + "&FdrQryPId=" + top.g_FdrQryPId.toString()
+ + "&OpenType=0";
+
+ // si el usuario no tiene permisos el registro se abre bloqueado
+ if (!( ((top.g_BookPerms >> (top.POS_PERM_MODIFICAR)) % 2 != 0) // Puede modificar, el bit 3 es 1 --> 1xx
+ && (!top.g_bIsLockBook) )){
+ URL +="&Form=true";
+ }
+
+ top.OpenNewWindow(URL, "", "10000", "10000", "auto","yes");
+
+ top.g_sinPulsar = true;
+}
+
+// abre una carpeta de la distribucion
+function OpenFolderPenDtr(iFolderId, iArchiveId, iDistId)
+{
+ window.open(top.g_URL + "/default.jsp?AppId=" + top.g_AppId.toString() + "&SessionPId=" + top.g_SessionPId
+ + "&FolderView=1&ArchiveId=" + iArchiveId.toString()
+ + "&FolderId=" + iFolderId.toString()
+ + "&DistId=" + iDistId.toString()
+ + "&VldSave=1" + "&Idioma=" + top.Idioma.toString()
+ + "&numIdioma=" + top.numIdioma.toString()
+ + "&OpenType=0&OpenFolderDtr=1&OpenFolderPenDtr=1", "_self","location=no",true);
+
+}
+
+function ChkClose(strClass)
+{
+ if (strClass != "SubOptionsDisabled") {
+ try {
+ if (top.Main.Folder.FolderBar.document.getElementById("SaveMenuBtn").className == "SubOptions" ) {
+ if( !window.confirm( top.GetIdsLan( "IDS_QRYCONTGUARDAR" ) ) ) {
+ return false;
+ }
+ }
+ }
+ catch(ex){ }
+
+ return true;
+ }
+ else {
+ return false;
+ }
+}
+
+function Close()
+{
+ try {
+ if (top.Main.Folder.FolderBar.document.getElementById("SaveMenuBtn").className == "SubOptions" ) {
+ if( !window.confirm( top.GetIdsLan( "IDS_QRYCONTGUARDAR" ) ) ) {
+ return false;
+ }
+ }
+ }
+ catch(ex){ }
+
+ return true;
+
+}
+
+
+function removeParam(strCadena,strParam)
+{
+ var strRet = "";
+ var iPosIni = 0;
+ var iPosFin = 0;
+
+ strParam = strParam + "=";
+ iPosIni = strCadena.indexOf("&" + strParam);
+ if (iPosIni == -1)
+ {
+ iPosIni = strCadena.indexOf("?" + strParam);
+ }
+ if (iPosIni != -1)
+ {
+ iPosFin = strCadena.indexOf("&",iPosIni + 1);
+ if (iPosFin != -1)
+ {
+ strRet = strCadena.substr(0,iPosIni) + strCadena.substr(iPosFin, strCadena.length - iPosFin);
+ }
+ else
+ {
+ strRet = strCadena.substr(0,iPosIni);
+ }
+ }
+ else
+ {
+ strRet = strCadena;
+ }
+
+ if (strRet != "")
+ {
+ return "?" + strRet.substr(1);
+ }
+ else
+ {
+ return "";
+ }
+}
+
+function ParamValue( Cadena, Param )
+{
+ var arrcadena = Cadena.split( "&" );
+ var arrparam;
+ for( var ii=0; ii 0 )
+ {
+ if( ii == 0 )
+ {
+ arrparam[0] = arrparam[0].substr( 1 );
+ }
+ if( arrparam[0] == Param )
+ {
+ return arrparam[1];
+ }
+ }
+ }
+ return "";
+}
+
+function getExplorerVer()
+{
+ var iPosVer = navigator.appVersion.indexOf('MSIE') + 5; // Posicion de la version del explorer
+ if (iPosVer != -1)
+ {
+ return parseFloat(navigator.appVersion.substr( iPosVer,navigator.appVersion.indexOf(';',iPosVer) - iPosVer ));
+ }
+ else
+ {
+ return 0;
+ }
+}
+
+
+function setFocus(Field)
+{
+ if (Field == null){return;}
+
+ try {
+ if (Field.setActive){
+ Field.setActive();
+ }
+
+ Field.setAttribute("autocomplete", "OFF");
+ Field.focus();
+ }
+ catch(e){}
+}
+
+
+// Asigna el foco a un control si esta mas a la izquierda que
+// las coordenadas x e y que se le pasan
+function setFormFocus(oForm, iPosX, iPosY)
+{
+ var iIndex = -1;
+
+ if(oForm){
+ for (var ii = 0; ii < oForm.length; ii++){
+ // Miramos si es el campo mas a la izquierda para darle el foco
+ if ( (oForm[ii].type == "text") && !(oForm[ii].readOnly) ){
+ if (parseInt(oForm[ii].style.top, 10) <= iPosY){
+ if (parseInt(oForm[ii].style.top, 10) == iPosY){
+ if (parseInt(oForm[ii].style.left, 10) < iPosX){
+ iIndex = ii;
+ iPosX = parseInt(oForm[ii].style.left, 10);
+ }
+ }
+ else {
+ iIndex = ii;
+ iPosY = parseInt(oForm[ii].style.top, 10);
+ iPosX = parseInt(oForm[ii].style.left, 10);
+ }
+ }
+ }
+ }
+ }
+ if (iIndex > -1) {
+ setFocus(oForm.elements[iIndex]);
+ }
+
+ return;
+}
+
+
+// Consigue la URL donde esta una aplicacion en un servidor
+function getURL()
+{
+ var sProtocol = top.document.location.protocol
+ var strPathName = top.document.location.pathname;
+ var iPosFin = 0;
+
+ // el fichero cuelga directamente del servidor
+ if (strPathName.substr(0,1) == "/") {
+ iPosFin = strPathName.indexOf("/",1);
+
+ if (iPosFin != -1){
+ strPathName = strPathName.substr(0,iPosFin);
+ }
+ else {
+ strPathName = "";
+ }
+ }
+ else {
+ iPosFin = strPathName.lastIndexOf("/");
+
+ if (iPosFin != -1){
+ strPathName = "/" + strPathName.substr(0,iPosFin);
+ }
+ else {
+ strPathName = "";
+ }
+ }
+
+ return sProtocol + "//" + top.document.location.host + strPathName;
+}
+
+
+// Funcion que obtiene los tokens de una cadena --> aa|bb|cc||
+function getTokens(strCadena, strSep, strEndSep, iNumTokens)
+{
+ var oArray = new Array();
+ var iPosIni = 0;
+ var iPosFin = 0;
+ var iPosFound = strCadena.indexOf(strEndSep);
+ var iIndex = 0;
+ if (iNumTokens == -1) // Buscamos hasta encontrar "||" --> strEndSep
+ {
+ if (iPosFound == -1)
+ {
+ return null;
+ }
+ else
+ {
+ iPosFin = strCadena.indexOf(strSep);
+ while ( (iPosFin < iPosFound) && (iPosFin != -1) )
+ {
+ oArray[iIndex] = strCadena.substr(iPosIni, iPosFin - iPosIni);
+ iPosIni = iPosFin + strSep.length;
+ iPosFin = strCadena.indexOf(strSep, iPosIni);
+ iIndex++;
+ }
+ oArray[iIndex] = strCadena.substr(iPosIni, iPosFound - iPosIni);
+ }
+ }
+ else // buscamos el numero de tokens que nos han dado
+ {
+ iPosFin = strCadena.indexOf(strSep);
+ while ( (iNumTokens > 0) && (iPosFin != -1) )
+ {
+ oArray[iIndex] = strCadena.substr(iPosIni, iPosFin - iPosIni);
+ iPosIni = iPosFin + strSep.length;
+ iPosFin = strCadena.indexOf(strSep, iPosIni);
+ iIndex++;
+ iNumTokens--;
+ }
+ }
+ return oArray;
+}
+
+// quita espacios en blanco por alante y por detras
+function miTrim( pcadena )
+{
+ if ( ( pcadena != "" ) && ( pcadena != null ) )
+ {
+ for( ; pcadena.charAt(0) == " "; )
+ {
+ pcadena = pcadena.substring( 1, pcadena.length );
+ }
+
+ for( ; pcadena.charAt( pcadena.length - 1 ) == " "; )
+ {
+ pcadena = pcadena.substring( 0, pcadena.length - 1 );
+ }
+ }
+ return pcadena;
+}
+
+// devuelve la version del sistema operativo
+function getInfoClient()
+{
+ var oArrInfo = new Array();
+ var strCad = window.navigator.appVersion;
+ var iIndex1 = strCad.indexOf("Windows");
+ var iIndex2;
+
+ if (iIndex1 != -1) // Es un Windows
+ {
+ oArrInfo[0] = "Windows";
+ iIndex2 = strCad.indexOf("9", iIndex1);
+ if (iIndex2 != -1)
+ {
+ oArrInfo[1] = "9x";
+ oArrInfo[2] = strCad.substr(iIndex2, strCad.indexOf(")",iIndex2) - iIndex2);
+ }
+ else
+ {
+ iIndex2 = strCad.indexOf("NT");
+ if (iIndex2 != -1)
+ {
+ oArrInfo[1] = "NT";
+ oArrInfo[2] = strCad.substr(iIndex2, strCad.indexOf(")",iIndex2) - iIndex2);
+ }
+ else
+ {
+ iIndex1 = iIndex1 + 8;
+ oArrInfo[1] = strCad.substr(iIndex1,2);
+ oArrInfo[2] = strCad.substr(iIndex1, strCad.indexOf(")",iIndex1) - iIndex1);
+ }
+ }
+ }
+ else // No es Windows
+ {
+ oArrInfo[0] = "undefined";
+ oArrInfo[1] = "undefined";
+ oArrInfo[2] = "undefined";
+ }
+ return oArrInfo;
+}
+
+// Consigue el nombre del fichero dentro de un path
+function GetNamePath( cadena )
+{
+ var ii = cadena.lastIndexOf( '\\' );
+ if( ii != -1 )
+ {
+ return cadena.substring( ii+1, cadena.length );
+ }
+ else
+ {
+ return cadena;
+ }
+}
+
+// decodifica una cadena escapada para HTML
+function HTMLDecode(strEncode)
+{
+ var re;
+
+ if (strEncode) {
+ re = /&/g;
+ strEncode = strEncode.replace(re, "&");
+ re = /</g;
+ strEncode = strEncode.replace(re, "<");
+ re = />/g;
+ strEncode = strEncode.replace(re, ">");
+ re = /"E; /g;
+ strEncode = strEncode.replace(re, "\"");
+ re = /&APOS;/g;
+ strEncode = strEncode.replace(re, "\'");
+ re = /&/g;
+ strEncode = strEncode.replace(re, "&");
+ re = /</g;
+ strEncode = strEncode.replace(re, "<");
+ re = />/g;
+ strEncode = strEncode.replace(re, ">");
+ re = /"e; /g;
+ strEncode = strEncode.replace(re, "\"");
+ re = /'/g;
+ strEncode = strEncode.replace(re, "\'");
+
+ return strEncode;
+ }
+ else {
+ return "";
+ }
+}
+
+// inicia de nuevo la aplicacion
+function InitApp()
+{
+ window.open(top.g_URL + "/default.jsp?AppId=" + top.g_AppId + "&Idioma=" + top.Idioma + "&numIdioma=" + top.numIdioma, "_top","location=no",true);
+}
+
+// Dice si cierto elemento (un string) esta en un array
+function existInArray(strElem, oArray)
+{
+ var ii=0;
+ if (oArray != null)
+ {
+ for (ii=0; (ii
' + top.GetIdsLan("IDS_WAIT_PLEASE") + ''});
+ top.Main.Folder.FolderBar.$.blockUI({ message: null });
+}
+
+/**
+ * Funcion que deshabilita las capas emergentes del bloqueo de pantalla
+ */
+function desbloqueoDePantallaRegistro(){
+ top.Main.Folder.FolderData.FolderFormTree.$.unblockUI();
+ top.Main.Folder.FolderData.FolderFormData.$.unblockUI();
+ top.Main.Folder.FolderBar.$.unblockUI();
+}
diff --git a/registro/ISicres-Desktop-Web/src/main/webapp/xsl/config.xsl b/registro/ISicres-Desktop-Web/src/main/webapp/xsl/config.xsl
index 71d3e07bf..7438aa36e 100755
--- a/registro/ISicres-Desktop-Web/src/main/webapp/xsl/config.xsl
+++ b/registro/ISicres-Desktop-Web/src/main/webapp/xsl/config.xsl
@@ -1,161 +1,161 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
Configurar-Configurar invesicres Corporate Server
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/registro/ISicres-Desktop-Web/src/main/webapp/xsl/dtrlistfdr.xsl b/registro/ISicres-Desktop-Web/src/main/webapp/xsl/dtrlistfdr.xsl
index 74ae4284e..97d2abd0c 100755
--- a/registro/ISicres-Desktop-Web/src/main/webapp/xsl/dtrlistfdr.xsl
+++ b/registro/ISicres-Desktop-Web/src/main/webapp/xsl/dtrlistfdr.xsl
@@ -1,128 +1,128 @@
-
-
-
-
-
+
+
+
+
+
-
-
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
- ActivateFrmtMenu();
-
-
-
-
-
-
-
-
-
- |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- if(top.GetKeyCode(event)==13){Expand(top.GetSrcElement(event));}
-
- |
-
-
-
-
- |
-
-
- |
-
-
- |
-
-
-
-
-
-
-
-
+
+
+
+ ActivateFrmtMenu();
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+