TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Robson Amaral
NA
132
17.3k
Sort line index to display in log
May 25 2018 9:47 PM
I'm having the following problem, while showing the log to the user, the same shows the line disorganized way, I would like to bring the numbers in order. How could she be doing this?
protected
void
import_Click (
object
sender, EventArgs and)
{
DataTable Data =
new
DataTable ();
// Here I use to get the index of the row by Data Table
Data.Columns.Add (
"index"
,
typeof
(
int
));
int
i = 1;
foreach
(DataRow row
in
Data.Rows)
{
line [
"index"
] = i;
i ++;
}
private
System.Threading.Tasks.Task Processing table (IEnumerable <DataRow> dataparam,
int
i, UserLibrary user)
{
// userLogin = appLogin.LoginPorLogin (GetUserAuthenticated ().));
i = 4;
i ++;
Action <
object
> processing = (data) =>
{
/ *
if
(NHibernate.Context.ThreadStaticSessionContext.HasBind (NhibernateHelper.SessionFactory.)) * /
NHibernate.Context.ThreadStaticSessionContext.Bind (NhibernateHelper.HelpThreading (). OpenSession ());
foreach
(var line
in
(IEnumerable <DataRow>) data)
{
if
(process! =
null
)
{
// if the process is not null I search all procinter related to it
List <ProcessInterest> listprocinter = ProcessInterested.consultProcessor (process.Code);
if
(listprocinter .Exists (o => o.interest == interested))
// Here I pass the correct index, but it does not come in order.
log.Append (
"The person informed on the line"
+ (line [
"index"
]) +
"was added back to the process"
+ process.NumProcesso +
"<br>"
);
//log.Append("The interested "+ process.Interested.Name +" was added back to the process "+ process.NumProcesso +" <br> ");
// log.Append ("The invested" + process.Interated.Name + "was added back to process" + process.NumProcesso + "<br>");
setProcInter (process, interested, line, i);
}
else
{
// New Process - 6.3
process =
new
Process ();
}
}
}
}
The line of my log is coming disorganized this way:
Import Log:
The person informed on line 88 was added again to the process 000310097.2016.8.08.0035 The person informed on line 70 was added back to process 000164345.2017.8.08.0051
The person informed on line 25 was added back to process 000269518.2012.8.08.0030
The party informed on line 148 was added again to the case 000181878.2016.8.08.0017
The interested party informed on line 145 was added again to process 000023721.2017.8.08.0008
The person informed on line 326 was added to the file 0001800-66.2009.8.08.0061
The person informed on line 194 was added again to process 0002763-90.2015.8.08.0020
The interested party informed on line 376 was added again to the process 0000646-51.2015.8.08.0045
The interested party informed on line 447 was added again to the process 0003289-74.2017.8.08.0024
The person informed on line 351 was added again to process 0001003-79.2014.8.08.0008
The interested party informed on line 432 was added again to the process 0000037-54.2017.8.08.0027
The interested party informed on line 567 was added again to process 0001608-22.2016.8.08.0051
The interested party entered on line 375 was added back to process 0000403-21.2016.8.08.0030
The subject informed on line 501 was added again to process 0000696-93.2013.8.08.0030 The
person informed on line 493 was added again to process 0001556-71.2016.8.08.0036 The subject informed on line 523 was added again to process 0000141-13.2017.8.08.0038
I would like the log to show the rows in an orderly fashion.
Could someone help me out?
Reply
Answers (
0
)
it is possible to take controls in asp.net from back end
grid data comparison and computing total