<HEAD>
<title>Lista de Tareas</title>
<meta content="True" name="vs_showGrid">
<meta content="False" name="vs_snapToGrid">
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="
http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="
http://miroportal/AuraPortal/Styles/PortalEmpleados/Default/AuraPortal.css" type=text/css rel=stylesheet>
<LINK href="
http://miroportal/AuraPortal/styles/comun/DataGrid/activeui.css" type=text/css rel=stylesheet>
<style>#grid .active-column-0 { WIDTH: 200px; TEXT-ALIGN: left;}
#grid .active-column-1 { WIDTH: 255px; TEXT-ALIGN: left;}
#grid .active-column-2 { WIDTH: 80px; TEXT-ALIGN: center;}
#grid .active-column-3 { WIDTH: 80px; TEXT-ALIGN: center;}
#grid .active-column-4 { WIDTH: 80px; TEXT-ALIGN: center;}
#grid .active-column-5 { WIDTH: 80px; TEXT-ALIGN: center;}
#grid .active-column-6 { WIDTH: 80px; TEXT-ALIGN: center;}
#grid .active-column-7 { DISPLAY: none; }
</style>
<style>.active-controls-grid { LEFT: 8px; WIDTH: 890px; POSITION: absolute; TOP: 141px; HEIGHT: 69% }
</style>
<script>
function ComprobarTxT(source, value)
{
if(document.Form1.txtIdCreador.value!="" && document.Form1.txtIdCreador.value!="0")
{
ValidatorEnable(document.all("RFVClase"), false);
value.IsValid=true;
}
else
{
if(document.Form1.txtNombre.value.length >=2 || document.Form1.txtClaseTarea.value.length >=2 || document.Form1.txtID.value.length >=1 || document.Form1.txtHistorico.value.length >=2)
{
ValidatorEnable(document.all("RFVClase"), false);
value.IsValid=true;
}
else
{
value.IsValid=false;
}
}
}
function VerPanel()
{
document.forms(0).divOpciones.visible=true;
}
function Imprimir()
{
var f = new Date();
var n = f.getTime();
var arrGrid= new Object();
arrGrid.cabecera=myColumns;
arrGrid.titulo='Tareas';
arrGrid.formatos=formats;
arrGrid.contenido=myData;
arrGrid.tooltip=myColsTips;
arrGrid.alineacion=Alineacion;
showModalDialog("Listados/rptGrids.aspx?v=11&nocache=" + n,arrGrid,"status=no;dialogWidth=1024px;dialogHeight=1280px;dialogTop==0px;dialogLeft==0px;status=no;scrollbars=yes");
}
</script>
<script src="scripts/activeui.js"></script>
<script src="scripts/GridCss.js"></script>
<script>
var myData = [['Julian Romero','0. Director Gerente','1','false','','','false','418543a8-4a15-4b8a-880e-11717d39f563']
,['Montse Pages','6.2. Barna. Comercial Inmobiliaria ','1','false','','','false','62187a53-1186-4335-b79f-603e97b1c2be']
,['Xavi Hueso','6.3. Barna. Comercial Inmobiliaria ','1','false','','','false','c27a4fc8-25f6-4256-b482-7a916e9e6adf']
,['Xavi Torrero','6.4. Barna. Comercial Financiera ','1','false','','','false','b6c7be96-6ee7-43a9-b6cc-224da77a1b44']
,['Nuria Andres','6.5. Barna. Comercial Financiera ','1','false','','','false','8b00fd81-a306-40fe-8707-72bd820c34cf']
,['Cruz Gonzalez','7. Secretaria Dirección','1','false','','','false','f2e326f5-31ca-4e50-9b6b-be7ef4056395']
,['_No Definido','8. Corresponsalías','1','false','','','false','6063b421-9bc0-409b-a8e1-3b41c9a7bd47']
,['Wynton Mark','8.1. Corresponsalía SPB Safor Private Bank','1','false','','','false','fe16038a-bcbc-4c78-bc1a-c497c55ce01a']
,['Juan','9. Departamento SAC-P','1','false','','','false','f22f4fb1-9432-4bfe-8e1e-58c62c1cec71']
];
</script>
<script>
var myColumns=["Nombre Usuario","Cargo","Empleados","Cuentas","Items","Proyectos","Ambitos","IdEmpleado"];
var myColsTips=["Nombre Usuario","Cargo","Empleados","Cuentas","Items","Proyectos","Ambitos","IdEmpleado"];
var Alineacion=["left","left","left","left","left","left","left","right"];
var obj = new Active.Controls.Grid;
var string = new Active.Formats.String;
var date = new Active.Formats.Date;
var numero = new Active.Formats.Number;
var moneda = new Active.Formats.Number;
var id = new Active.Formats.Number;
var a0=new Array('a','e','i','o','u');
var a1=new Array(unescape('%E1'),unescape('%E9'),unescape('%ED'),unescape('%F3'),unescape('%FA'));
var a2=new Array(unescape('%E0'),unescape('%E8'),unescape('%EC'),unescape('%F2'),unescape('%F9'));
var a3=new Array(unescape('%E2'),unescape('%EA'),unescape('%EE'),unescape('%F4'),unescape('%FB'));
var a4=new Array(unescape('%E4'),unescape('%EB'),unescape('%EF'),unescape('%F6'),unescape('%FC'));
string.dataToValue = function(data)
{
data=data.toLowerCase();
for (i=0; i<a0.length; i++)
{
data=data.replace(a1[i],a0[i]);
data=data.replace(a2[i],a0[i]);
data=data.replace(a3[i],a0[i]);
data=data.replace(a4[i],a0[i]);
}
return data;
}
//Establecemos los formatos de salida
id.setTextFormat("#");
numero.setTextFormat("###.###,#");
moneda.setTextFormat("###.###,##");
date.setDataFormat("auto");
date.setTextFormat("dd/mm/yyyy hh:mm");
obj.setRowCount(myData.length);
obj.setColumnCount(myColumns.length);
var formats=[string,string,string,string,string,string,string,id];
obj.setColumnText(function(i){return myColumns[i]});
obj.setDataText(function(i, j)
{
if(j !=9)
return formats[j].dataToText(myData[i][j]);
else
return myData[i][j];
});
obj.setDataValue(function(i, j)
{
if(j !=9)
return formats[j].dataToValue(myData[i][j])
else
return myData[i][j];
});
var row = new Active.Templates.Row;
//Las columnas impares con un gris de fondo
var alternate = function(){return this.getProperty("row/order") % 2 ? ColorRowPar() : ColorRowImpar();}
row.setStyle("background",alternate);
obj.getTemplate("row").setStyle("background",alternate);
//Encender la linea onfocus
obj.getTemplate("row").setEvent("onmouseover", "mouseover(this, 'active-row-highlight')");
obj.getTemplate("row").setEvent("onmouseout", "mouseout(this, 'active-row-highlight')");
/********************************CheckBox***********************************************/
var checkbox = new Active.Templates.Checkbox;
checkbox.setCheckedProperty("true","1");
checkbox.setCheckedProperty("false","0");
obj.setColumnTemplate(checkbox,2);
obj.setColumnTemplate(checkbox,3);
obj.setColumnTemplate(checkbox,4);
obj.setColumnTemplate(checkbox,5);
obj.setColumnTemplate(checkbox,6);
function Pulsar(event)
{
var newvalue = (event.srcElement.checked)?checkbox.getCheckedProperty("true"):checkbox.getCheckedProperty("false");
checkbox.setItemProperty("value",newvalue);
checkbox.refresh();
if(event.srcElement.checked)
{
/*Desactivamos el click de la cabecera*/
obj.getTemplate("top/item").setEvent("onmousedown",headerClicked);
}
myData[event.srcElement.title][0] = event.srcElement.checked;
}
checkbox.setEvent("onclick",function(src){Pulsar(event)});
/******************************************************************************/
//Tooltip
for (var col=0; col < (myColumns.length); col++)
{
obj.getTemplate("column",col).setAttribute("title", function(){return this.getProperty("item/tooltip")});
obj.defineProperty("data/tooltip",
function(i, col){});
}
// set click action handler
function ir(src){}
obj.setAction("click", function(src){ir(src)});
obj.setProperty("column/tooltip", function(i){return myColsTips[i]});
</script>
<script src="scripts/menu.js"></script>
<script src="scripts/precarga.js"></script>
<script src="scripts/BarraMenu.js"></script>
<script src="scripts/VentanaFija.js"></script>
<script src="scripts/VentanaBuscador.js"></script>
<script src="scripts/Filtrar.js"></script>
</HEAD>
This topic is archived.