|
From: <sv...@de...> - 2005-05-20 20:55:33
|
Author: pcamacho
Date: 2005-05-20 16:55:30 -0400 (Fri, 20 May 2005)
New Revision: 1119
Modified:
humano2/trunk/web/portal/site/showView.aspx.cs
Log:
FIX: now number of line does not appear anymore when showing a view.
Modified: humano2/trunk/web/portal/site/showView.aspx.cs
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- humano2/trunk/web/portal/site/showView.aspx.cs 2005-05-20 20:27:36 UT=
C (rev 1118)
+++ humano2/trunk/web/portal/site/showView.aspx.cs 2005-05-20 20:55:30 UT=
C (rev 1119)
@@ -194,7 +194,7 @@
xmlString =3D "<?xml version=3D\"1.0\" encoding=3D\"UTF-8\=
"?>"
+ "<?xml-stylesheet type=3D\"text/xsl\" href=3D\=
"xsl/showview.xsl\"?>"=20
+ xmlString;
-
+ //Logger.Log("showview: xmlString=3D " + xmlString, LogLevel=
.Trace);
return xmlString;
}
=20
@@ -297,7 +297,11 @@
if(colName.StartsWith("id_entity")) //Skip this col
{=20
continue;=20
- } =20
+ } =20
+ if(colName =3D=3D "row") //This col contains the number =
of lines and has no name
+ {
+ continue; =20
+ }
xmlString +=3D"<attribute>"; =20
=20
//Get the real user column name that corresponds to system column na=
me
@@ -311,7 +315,7 @@
}
xmlString +=3D "</attributes>";
=20
-
+ //Logger.Log("showview: getXmlAttributes=3D " + xmlString,Lo=
gLevel.Trace);
return xmlString;
}
=20
@@ -324,7 +328,7 @@
xmlString +=3D "<instance>";
foreach( DataColumn col in row.Table.Columns )
{
- if(col.ColumnName =3D=3D "instanceUrl") //Computes the url for upda=
te and show.
+ if(col.ColumnName =3D=3D "instanceUrl") //Computes t=
he url for update and show.
{
string baseUrl =3D row["instanceUrl"] +=20
"&display=3DreadXslt.aspx&iniClass=3D" +=20
@@ -338,7 +342,13 @@
//but it may be useful later.
xmlString +=3D xml_getEntity(row,col,complex,IdRead);
=20
- }else{=20
+ }
+ else if(col.ColumnName =3D=3D "row") //We don't want=
to display number of lines
+ {
+ continue; =20
+ }
+ =20
+ else{=20
//a standard value
xmlString +=3D xml_getStandar(row,col,complex);
}
|