private void d_hh_yb_uretim_ozet(string tarih) { firma = "DILER"; unite = "HH-ORTAK"; htmlTable.Clear(); List <Yol_bazinda_uretim_ozet> yb_uretim_ozet = new List <Yol_bazinda_uretim_ozet>(); yb_uretim_ozet = db.d_hh_ybuo_data_read(tarih, firma, unite); if (yb_uretim_ozet[0].Ybu_id == 0) { //kayit bulunamadi htmlTable.Append("<tr>"); htmlTable.Append("<td colspan='4'>" + yb_uretim_ozet[0].Vrd + "</td>"); htmlTable.Append("</tr>"); } else { foreach (var uo in yb_uretim_ozet) { htmlTable.Append("<tr>"); htmlTable.Append("<td>" + uo.Vrd + "</td>"); htmlTable.Append("<td>" + uo.Yol + "</td>"); htmlTable.Append("<td>" + uo.Net_urt + "</td>"); htmlTable.Append("<td>" + uo.Mamul + "</td>"); htmlTable.Append("</tr>"); } } ph_yb_uretim_ozet.Controls.Add(new Literal { Text = htmlTable.ToString() }); }