|
From: <sv...@de...> - 2005-05-18 21:15:20
|
Author: svera
Date: 2005-05-18 17:15:05 -0400 (Wed, 18 May 2005)
New Revision: 1092
Modified:
humano2/trunk/web/builder/site/foldermanagement.aspx.cs
humano2/trunk/web/builder/site/formmanagement.aspx.cs
Log:
* Fix some problem's with the rigth's element in the select box.
Modified: humano2/trunk/web/builder/site/foldermanagement.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/builder/site/foldermanagement.aspx.cs 2005-05-18 20=
:16:37 UTC (rev 1091)
+++ humano2/trunk/web/builder/site/foldermanagement.aspx.cs 2005-05-18 21=
:15:05 UTC (rev 1092)
@@ -234,10 +234,18 @@
{
foreach(DataRow row in dtResult.Rows)
{
- strAttrLeft +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fals=
e),",row["id_entity"],row[1]);
+ if (strAttrLeft.Length > 0)
+ {
+ strAttrLeft +=3D ",";
+ }
+ strAttrLeft +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fals=
e)",row["id_entity"],row[1]);
if (countElement < 4)
{
- strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse),",row["id_entity"],row[1]);
+ if(strAttrRigth.Length > 0)
+ {
+ strAttrRigth +=3D ",";
+ }
+ strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse)",row["id_entity"],row[1]);
}
countElement++;
}
@@ -253,10 +261,18 @@
foreach(DataRow row in dtResult.Rows)
{
strText =3D String.Format("{0}[{1}]",row[1],prevText);
- strAttrLeft +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fals=
e),",row["id_entity"],strText);
+ if(strAttrLeft.Length > 0)
+ {
+ strAttrLeft +=3D ",";
+ }
+ strAttrLeft +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fals=
e)",row["id_entity"],strText);
if (countElement < 4)
{
- strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse),",row["id_entity"],strText);
+ if(strAttrRigth.Length > 0)
+ {
+ strAttrRigth +=3D ",";
+ }
+ strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse)",row["id_entity"],strText);
}
countElement++;
}
@@ -314,7 +330,11 @@
if(flag =3D=3D 1)
{
string rigthText =3D String.Format("{0}[{1}]",row[1],strText);
- strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse),",row["id_entity"],rigthText);
+ if(strAttrRigth.Length > 0)
+ {
+ strAttrRigth +=3D ",";
+ }
+ strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse)",row["id_entity"],rigthText);
}
}
dtResult =3D null;
@@ -329,11 +349,13 @@
if (strAttrLeft.Length > 0)
{
Response.Write(strAttrLeft);
+ return;
}
}else{
if(strAttrRigth.Length > 0)
{
Response.Write(strAttrRigth);
+ return;
}
}
=20
Modified: humano2/trunk/web/builder/site/formmanagement.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/builder/site/formmanagement.aspx.cs 2005-05-18 20:1=
6:37 UTC (rev 1091)
+++ humano2/trunk/web/builder/site/formmanagement.aspx.cs 2005-05-18 21:1=
5:05 UTC (rev 1092)
@@ -182,10 +182,18 @@
int count =3D 1;
foreach(DataRow row in dtResult.Rows)
{
- strAttrLeft +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fals=
e),",row["id_entity"],row["attName"]);
+ if(strAttrLeft.Length > 0)
+ {
+ strAttrLeft +=3D ",";
+ }
+ strAttrLeft +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fals=
e)",row["id_entity"],row["attName"]);
if (count < 4)
{
- strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse),",row["id_entity"],row["attName"]);
+ if (strAttrRigth.Length > 0)
+ {
+ strAttrRigth +=3D ",";
+ }
+ strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse)",row["id_entity"],row["attName"]);
}
count++;
}
@@ -223,7 +231,11 @@
}
if(flag =3D=3D 1)
{
- strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse),",row["id_entity"],row["attName"]);
+ if(strAttrRigth.Length > 0)
+ {
+ strAttrRigth +=3D ",";
+ }
+ strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse)",row["id_entity"],row["attName"]);
}
}
}
@@ -237,11 +249,13 @@
if (strAttrLeft.Length > 0)
{
Response.Write(strAttrLeft);
+ return;
}
}else{
if(strAttrRigth.Length > 0)
{
Response.Write(strAttrRigth);
+ return;
}
}
=20
|