|
From: <sv...@de...> - 2005-05-19 12:39:31
|
Author: svera
Date: 2005-05-19 08:39:27 -0400 (Thu, 19 May 2005)
New Revision: 1096
Modified:
humano2/trunk/web/portal/site/showView.aspx.cs
Log:
* File modified for paging
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-19 12:38:16 UT=
C (rev 1095)
+++ humano2/trunk/web/portal/site/showView.aspx.cs 2005-05-19 12:39:27 UT=
C (rev 1096)
@@ -40,6 +40,8 @@
protected System.Web.UI.WebControls.DataGrid DataGrid1;
protected System.Web.UI.WebControls.RadioButtonList rblSeparador;
int iniClass;
+ bool nextPage =3D false;
+ bool prevPage =3D false;
/// <summary>
/// Creates an xml with all needed data.=20
/// Then an xsl file will process this xml to produce the output
@@ -97,7 +99,11 @@
DataTable viewRes =3D dbAdapter.ExecViewFromDataTable(iniCla=
ss, viewTable, idEntity, orderArr, currPage, 1);
=20
int pageCount=3D dbAdapter.NumberOfPagesInPagedView;
- =20
+ if (pageCount > 1)
+ {
+ nextPage =3D true;
+ prevPage =3D true;
+ }
//Logger.Log("showView pageCount: POST NumberOfPagesInPagedV=
iew: " + pageCount, LogLevel.Trace);
=20
//computes the url for each instance and put it in the table
@@ -140,13 +146,15 @@
xmlString +=3D "<recordCount>" + pageCount + "</recordCount>=
";
xmlString +=3D "<id_entity>" + idEntity + "</id_entity>";
xmlString +=3D "<classId>" + iniClass + "</classId>";
+ xmlString +=3D "<nextPage>" + nextPage + "</nextPage>";
+ xmlString +=3D "<prevPage>" + prevPage + "</prevPage>";
xmlString +=3D "</infoView>";
=09
xmlString +=3D "</instances>";
=20
=20
- //Add the header
- xmlString =3D "<?xml version=3D\"1.0\" encoding=3D\"UTF-8 =
\"?>"
+ //Add the header
+ xmlString =3D "<?xml version=3D\"1.0\" encoding=3D\"UTF-8\=
"?>"
+ "<?xml-stylesheet type=3D\"text/xsl\" href=3D\=
"xsl/showview.xsl\"?>"=20
+ xmlString;
=20
|