01.
string
sql1 =
"select top 8 Queue_ID from tbl_Service where Status_Q NOT IN ('Treatment','Successfully') and convert(date ,Date_Q) = (CONVERT(date, GETDATE(), 120))"
;
02.
DataTable dt1 =
new
DataTable();
03.
SqlDataAdapter da1 =
new
SqlDataAdapter(sql1, connection);
04.
da1.Fill(dt1);
05.
06.
txtW1.Text = dt1.Rows[0][
"Queue_ID"
] +
""
;
07.
txtW2.Text = dt1.Rows[1][
"Queue_ID"
] +
""
;
08.
txtW3.Text = dt1.Rows[2][
"Queue_ID"
] +
""
;
09.
txtW4.Text = dt1.Rows[3][
"Queue_ID"
] +
""
;
10.
txtW5.Text = dt1.Rows[4][
"Queue_ID"
] +
""
;
11.
txtW6.Text = dt1.Rows[5][
"Queue_ID"
] +
""
;
12.
txtW7.Text = dt1.Rows[6][
"Queue_ID"
] +
""
;
13.
txtW8.Text = dt1.Rows[7][
"Queue_ID"
] +
""
;