Ejemplo n.º 1
0
    private void SayfayiDoldur()
    {
        hata h = new hata();

        uint[] hatalar = h.hatalarim(Convert.ToUInt32(Session["yollayanid_session"]));

        if (hatalar[0] != 0)
        {
            for (int i = 0; i < hatalar.Length; i++)
            {
                Label l = new Label();
                l.Text = "<br>";
                HyperLink hl = new HyperLink();
                hl.NavigateUrl = "Incele.aspx?id=" + hatalar[i];
                hl.Text        = "Hata " + i;
                hl.ForeColor   = System.Drawing.Color.Black;
                hl.Font.Bold   = true;

                ph.Controls.Add(hl);
                ph.Controls.Add(l);
            }
        }
        else
        {
            lblHata.Text = "Hiç hata yollamamýþsýnýz";
        }

        //adamýn yolladýðý hatalara linkler
    }
    //hata için bir açýklama girildi
    protected void gonder_Click(object sender, EventArgs e)
    {
        hata h = new hata();

        ArrayList parameterNameList = new ArrayList(2);

        parameterNameList.Add("@aciklama");
        parameterNameList.Add("@simdi");
        ArrayList parameterList = new ArrayList(2);

        parameterList.Add(hata.Text.Replace("\n", "<br>").Trim());
        parameterList.Add(System.DateTime.Now);


        lbl.Text = h.gonder(Convert.ToUInt32(projeler.SelectedItem.Value),
                            Convert.ToUInt32(Session["soruid_session"].ToString()),
                            parameterNameList,
                            parameterList,
                            Convert.ToUInt32(Session["yollayanid_session"].ToString()),
                            Convert.ToInt32(Session["cevap"]));
        hata.Text = "";

        MultiView1.SetActiveView(View1);
        evet.Visible        = false;
        hayir.Visible       = false;
        lblAciklama.Visible = false;
    }
    /*
     * yeni fikir eklenecek (yeni konuþma ekle)
     */
    protected void yolla_Click(object sender, EventArgs e)
    {
        hata h        = new hata();
        bool basarili = false;

        uint yollayan_id = Convert.ToUInt32(Session["yollayanid_session"]);

        ArrayList parameterNameList = new ArrayList(2);

        parameterNameList.Add("@fikirS");
        parameterNameList.Add("@simdi");

        ArrayList parameterList = new ArrayList(2);

        parameterList.Add(fikir.Text.Replace("\n", "<br>").Trim());
        parameterList.Add(System.DateTime.Now);

        basarili = h.konusmaEkle(hata_id, yollayan_id, parameterList, parameterNameList);

        if (basarili)
        {
            fikir.Text = "";

            lblHata.Text = "Fikir baþarýyla gönderildi, teþekkürler";
            SayfayiDoldur();
        }
        else
        {
            lblHata.Text = "Konuþma ekleme baþarýsýz.";
        }
    }
    protected void onayla_Click(object sender, EventArgs e)
    {
        Button b = (Button)sender;

        hata h = new hata();

        hata_id = Convert.ToUInt32(b.ID);


        lblHata.Text = h.onayla(hata_id);


        SayfayiDoldur();
    }
    protected void ekle_Click(object sender, EventArgs e)
    {
        ArrayList parameterNameList = new ArrayList(1);

        parameterNameList.Add("@cozumS");
        ArrayList parameterList = new ArrayList(1);

        parameterList.Add(cozum.Text.Replace("\n", "<br>"));

        hata h = new hata();

        lblHata.Text = h.cozumEkle(hata_id, parameterNameList, parameterList);

        cozum.Text = "";

        SayfayiDoldur();
    }
Ejemplo n.º 6
0
    protected void devam_Click(object sender, EventArgs e)
    {
        hata h = new hata();

        ds = h.projeyeAitCozulmusHatalar(Convert.ToUInt32(projeler.SelectedItem.Value));


        //proje ile ilgili hata gönderilmiþse tabloda göster
        if (ds.Tables[0].DefaultView.Count > 0)
        {
            lblHata.Text = "";
            Label lbl = new Label();
            lbl.Text = "<h3>Bu proje ile ilgili çözülmüþ hatalar</h3><br>";

            ph.Controls.Add(lbl);

            for (int t = 0; t < ds.Tables.Count; t++)
            {
                for (int j = 0; j < ds.Tables[t].DefaultView.Table.Rows.Count; j++)
                {
                    Table tablo = new Table();

                    for (int i = 0; i < ds.Tables[t].DefaultView.Table.Columns.Count; i++)
                    {
                        TableRow  satir         = new TableRow();
                        TableCell sutunAciklama = new TableCell();
                        TableCell sutun         = new TableCell();

                        sutunAciklama.BackColor       = System.Drawing.Color.Azure;
                        sutunAciklama.HorizontalAlign = HorizontalAlign.Left;
                        sutunAciklama.Text            = ds.Tables[t].DefaultView.Table.Columns[i].Caption;

                        sutun.BackColor       = System.Drawing.Color.BlanchedAlmond;
                        sutun.HorizontalAlign = HorizontalAlign.Left;

                        // ilk satýrda yapýlabilecek iþlemler bulunacak
                        if (i == 0)
                        {
                            HyperLink hl = new HyperLink();
                            hl.NavigateUrl = "Incele.aspx?id=" + ds.Tables[t].DefaultView.Table.Rows[j].ItemArray.GetValue(i).ToString();
                            hl.ID          = "hl_" + j.ToString() + "_" + i.ToString();
                            hl.Text        = "Ýncele";
                            hl.ForeColor   = System.Drawing.Color.Black;
                            hl.Font.Bold   = true;

                            sutun.Controls.Add(hl);
                        }
                        else
                        {
                            sutun.Text = ds.Tables[t].DefaultView.Table.Rows[j].ItemArray.GetValue(i).ToString();
                        }

                        //hata ve çözüm yükseklikleri minimum 50px olacak
                        if ((i == 2) || (i == 3))
                        {
                            sutunAciklama.Height = 50;
                            sutun.Height         = 50;
                        }
                        //son soruya verilen cevap anlamlý bir þekilde çýktý olarak gözükmeli, deðiþtirilecek
                        //else if (i == 6)
                        //{
                        //    if (ds.Tables[t].DefaultView.Table.Rows[j].ItemArray.GetValue(i).ToString() == "False")
                        //        sutun.Text = "Hayýr";
                        //    else if (ds.Tables[t].DefaultView.Table.Rows[j].ItemArray.GetValue(i).ToString() == "True")
                        //        sutun.Text = "Evet";
                        //}

                        sutunAciklama.Width = 150;
                        sutun.Width         = 350;
                        satir.Cells.Add(sutunAciklama);
                        satir.Cells.Add(sutun);

                        tablo.Rows.Add(satir);
                    }
                    tablo.Width = 500;
                    ph.Controls.Add(tablo);

                    Label l1 = new Label();
                    l1.Text = "<br><br>";
                    ph.Controls.Add(l1);
                }
            }

            Label l2 = new Label();
            l2.Text = "<br><br>";
            ph.Controls.Add(l2);
        }
        else
        {
            lblHata.Text = "Henüz bu projeye ait çözülmüþ hata mevcut deðil";
        }
    }
Ejemplo n.º 7
0
    public static List <hata> SelectAllhata(OleDbCommand komut)
    {
        List <hata> Listhata = new List <hata>();

        OleDbConnection baglanti = AcikBaglantiGetir();

        try
        {
            komut.Connection = baglanti;
            OleDbDataReader oku = komut.ExecuteReader();
            while (oku.Read())
            {
                hata yenihata = new hata();
                if (!oku.IsDBNull(0))
                {
                    yenihata.Id = oku.GetInt32(0);
                }
                if (!oku.IsDBNull(1))
                {
                    yenihata.HelpLink = oku.GetString(1);
                }
                if (!oku.IsDBNull(2))
                {
                    yenihata.InnerException = oku.GetString(2);
                }
                if (!oku.IsDBNull(3))
                {
                    yenihata.Message = oku.GetString(3);
                }
                if (!oku.IsDBNull(4))
                {
                    yenihata.Source = oku.GetString(4);
                }
                if (!oku.IsDBNull(5))
                {
                    yenihata.StackTrace = oku.GetString(5);
                }
                if (!oku.IsDBNull(6))
                {
                    yenihata.TargetSite = oku.GetString(6);
                }
                if (!oku.IsDBNull(7))
                {
                    yenihata.Tarih = oku.GetDateTime(7);
                }
                if (!oku.IsDBNull(8))
                {
                    yenihata.FkKullanici = oku.GetString(8);
                }

                Listhata.Add(yenihata);
            }
        }
        catch
        {
            throw;
        }
        finally
        {
            BaglantiyiKapat(baglanti);
        }
        return(Listhata);
    }
    protected void SayfayiDoldur()
    {
        ph.Controls.Clear();

        hata    h  = new hata();
        DataSet ds = new DataSet();

        ds = h.Incele(hata_id);

        if (ds.Tables[0].DefaultView.Count > 0)
        {
            /*
             * ilgili hatanýn ayrýntlarýný tabloda göster
             */
            for (int j = 0; j < ds.Tables[0].DefaultView.Table.Rows.Count; j++)
            {
                Table tablo = new Table();

                for (int i = 0; i < ds.Tables[0].DefaultView.Table.Columns.Count; i++)
                {
                    TableRow  satir         = new TableRow();
                    TableCell sutunAciklama = new TableCell();
                    TableCell sutun         = new TableCell();

                    sutunAciklama.BackColor       = System.Drawing.Color.Azure;
                    sutunAciklama.HorizontalAlign = HorizontalAlign.Left;
                    sutunAciklama.Text            = ds.Tables[0].DefaultView.Table.Columns[i].Caption;

                    sutun.BackColor       = System.Drawing.Color.BlanchedAlmond;
                    sutun.HorizontalAlign = HorizontalAlign.Left;


                    sutun.Text = ds.Tables[0].DefaultView.Table.Rows[j].ItemArray.GetValue(i).ToString();

                    if ((i == 0) || (i == 1) || (i == 2))
                    {
                        sutunAciklama.Height = 50;
                        sutun.Height         = 50;
                    }
                    //true veya false çýktýlarý anlamlý hale getirildi: evet veya hayýr þekline
                    else if ((i == 3) || (i == 9))
                    {
                        if (ds.Tables[0].DefaultView.Table.Rows[j].ItemArray.GetValue(i).ToString() == "False")
                        {
                            sutun.Text = "Hayýr";
                        }
                        else if (ds.Tables[0].DefaultView.Table.Rows[j].ItemArray.GetValue(i).ToString() == "True")
                        {
                            sutun.Text = "Evet";
                        }
                    }
                    sutunAciklama.Width = 150;
                    sutun.Width         = 400;

                    satir.Cells.Add(sutunAciklama);
                    satir.Cells.Add(sutun);

                    tablo.Rows.Add(satir);
                }

                //son satýra hata ile ilgili yapýlabilecek iþlem linkleri konulacak
                TableRow  linkler = new TableRow();
                TableCell link    = new TableCell();

                HyperLink hl2 = new HyperLink();
                hl2.NavigateUrl = "SorumluAta.aspx?id=" + hata_id;
                hl2.ID          = "hl2";
                hl2.Text        = "Sorumlu Ata";
                hl2.ForeColor   = System.Drawing.Color.Black;
                hl2.Font.Bold   = true;

                HyperLink hl = new HyperLink();
                hl.NavigateUrl = "Incele.aspx?id=" + hata_id;
                hl.ID          = "hl";
                hl.Text        = "Ýncele";
                hl.ForeColor   = System.Drawing.Color.Black;
                hl.Font.Bold   = true;

                Label lbl1 = new Label();
                lbl1.Text = " | ";

                link.ColumnSpan = 2;
                link.Controls.Add(hl);
                link.Controls.Add(lbl1);
                link.Controls.Add(hl2);

                linkler.Cells.Add(link);
                tablo.Rows.Add(linkler);

                tablo.Width = 550;
                ph.Controls.Add(tablo);

                Label l1 = new Label();
                l1.Text = "<br><br>";
                ph.Controls.Add(l1);
            }
        }
        else
        {
            lblHata.Text = "Böyle bir hata yüklenmemiþ";
        }
    }
    protected void SayfayiDoldur()
    {
        ph.Controls.Clear();

        //kullanýcýnýn gönderdiði ÇÖZÜLMEMÝÞ ve çözüm eklenmiþ hatalar listelenecek
        uint yollayan_id = Convert.ToUInt32(Session["yollayanid_session"]);

        hata    h  = new hata();
        DataSet ds = new DataSet();

        ds = h.onaylanabilirHatalar(yollayan_id);


        if (ds.Tables[0].DefaultView.Count > 0)
        {
            /*
             * ilgili hatalarýn listesini çýkar
             */
            for (int j = 0; j < ds.Tables[0].DefaultView.Table.Rows.Count; j++)
            {
                Table tablo = new Table();

                for (int i = 0; i < ds.Tables[0].DefaultView.Table.Columns.Count; i++)
                {
                    TableRow  satir         = new TableRow();
                    TableCell sutunAciklama = new TableCell();
                    TableCell sutun         = new TableCell();

                    sutunAciklama.BackColor       = System.Drawing.Color.Azure;
                    sutunAciklama.HorizontalAlign = HorizontalAlign.Left;


                    sutun.BackColor       = System.Drawing.Color.BlanchedAlmond;
                    sutun.HorizontalAlign = HorizontalAlign.Left;



                    if (i != 0)
                    {
                        sutunAciklama.Text   = ds.Tables[0].DefaultView.Table.Columns[i].Caption;
                        sutun.Text           = ds.Tables[0].DefaultView.Table.Rows[j].ItemArray.GetValue(i).ToString();
                        sutunAciklama.Height = 50;
                        sutun.Height         = 50;
                    }
                    else if (i == 0)
                    {
                        HyperLink hl = new HyperLink();
                        hl.NavigateUrl = "Incele.aspx?id=" + ds.Tables[0].DefaultView.Table.Rows[j].ItemArray.GetValue(i).ToString();
                        hl.ID          = "hl_" + j.ToString() + "_" + i.ToString();
                        hl.Text        = "Ýncele";
                        hl.ForeColor   = System.Drawing.Color.Black;
                        hl.Font.Bold   = true;

                        sutunAciklama.Text = "Ýþlem";
                        sutun.Text         = "";
                        sutun.Controls.Add(hl);
                    }

                    sutunAciklama.Width = 150;
                    sutun.Width         = 400;

                    satir.Cells.Add(sutunAciklama);
                    satir.Cells.Add(sutun);

                    tablo.Rows.Add(satir);
                }

                //son satýra hata ile ilgili yapýlabilecek iþlem linkleri konulacak
                TableRow  linkler = new TableRow();
                TableCell link    = new TableCell();

                Button onayver = new Button();
                onayver.Text = "Çözümü onayla";

                //butonun ID si hata id si olacak böylece o kullanýlarak hata onaylama iþlemi gerçeklenecek
                onayver.ID = ds.Tables[0].DefaultView.Table.Rows[j].ItemArray.GetValue(0).ToString();

                onayver.Click += new System.EventHandler(onayla_Click);

                link.ColumnSpan      = 2;
                link.HorizontalAlign = HorizontalAlign.Right;
                link.Controls.Add(onayver);

                linkler.Cells.Add(link);
                tablo.Rows.Add(linkler);

                tablo.Width = 550;
                ph.Controls.Add(tablo);

                Label l1 = new Label();
                l1.Text = "<br><br>";
                ph.Controls.Add(l1);
            }
        }
        else
        {
            lblHata.Text = "Çözüm eklenmiþ bir hatanýz mevcut deðil";
        }
    }
        public static hata ilk_kurulum()
        {
            hata   rdata            = new hata();
            string connectionstring = System.Configuration.ConfigurationManager.
                                      ConnectionStrings["TaekwondoSkor.Properties.Settings.taekwondo_skorConnectionString"].ConnectionString;; //"Server=localhost\\SQLEXPRESS;Trusted_Connection=True;";

            connectionstring = connectionstring.Replace("Initial Catalog=taekwondo_skor", "Database=master;");
            using (var connection = new SqlConnection(connectionstring))
            {
                string datetime = DateTime.Now.ToString("yyyy-MM-dd");
                try
                {
                    //ALTER DATABASE TO KILL ALL PROCESS ON DB TO DROP DB AND CREATE AGAIN
                    connection.Open();
                    var command = connection.CreateCommand();
                    command.CommandText = "USE master ;" +
                                          " IF EXISTS(select * from sys.databases where name= 'taekwondo_skor') BEGIN " +
                                          "ALTER DATABASE taekwondo_skor SET SINGLE_USER WITH ROLLBACK IMMEDIATE" +
                                          " DROP DATABASE taekwondo_skor; END " +
                                          " CREATE DATABASE taekwondo_skor;";
                    command.ExecuteNonQuery();

                    rdata.aciklama += "SQL tamam\n";

                    rdata.sonuc = true;
                }
                catch (Exception ex)
                {
                    //rdata.aciklama += "SQL bağlanamadı " + connectionstring + "\n " + ex;
                    Console.WriteLine(ex.ToString());
                    rdata.sonuc = false;
                }

                try
                {
                    if (rdata.sonuc == true)
                    {
                        var connection2 = new SqlConnection(connectionstring);
                        connection2.Open();
                        string script  = File.ReadAllText(@".\dbo.sql");
                        var    scripts = Regex.Split(script, @"^\w+GO$", RegexOptions.Multiline);
                        foreach (var item in scripts)
                        {
                            var command2 = connection2.CreateCommand();
                            command2.CommandText = "use taekwondo_skor; " + item;
                            command2.ExecuteNonQuery();
                        }


                        connection2.Close();


                        //MessageBox.Show(command3.CommandText);

                        // rdata.aciklama += "DB created\n";
                        // MessageBox.Show("procedure oluşturuldu");
                        File.Delete("dbo.sql");
                    }
                    else
                    {
                    }
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.ToString());


                    //rdata.aciklama += "SQL Atılamadı \n " + ex;
                    rdata.sonuc = false;
                }

                try
                {
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.ToString());
                    //rdata.aciklama += "Lisans Atılamadı \n " + ex;
                    rdata.sonuc = false;
                }
                //MessageBox.Show(rdata.aciklama);
            }

            return(rdata);
        }
Ejemplo n.º 11
0
    protected void SayfayiDoldur()
    {
        DataSet ds = new DataSet();
        hata    h  = new hata();

        ph.Controls.Clear();

        /*
         * ilgili hatanýn ayrýntýlarýný göster
         */
        ds = h.Incele(hata_id);

        if (ds.Tables[0].DefaultView.Count > 0)
        {
            lblHata.Text = "";

            //for (int j = 0; j < ds.Tables[0].DefaultView.Table.Rows.Count; j++)
            //{
            Table tablo = new Table();

            for (int i = 0; i < ds.Tables[0].DefaultView.Table.Columns.Count; i++)
            {
                TableRow  satir         = new TableRow();
                TableCell sutunAciklama = new TableCell();
                TableCell sutun         = new TableCell();

                sutunAciklama.BackColor       = System.Drawing.Color.Azure;
                sutunAciklama.HorizontalAlign = HorizontalAlign.Left;
                sutunAciklama.Text            = ds.Tables[0].DefaultView.Table.Columns[i].Caption;

                sutun.BackColor       = System.Drawing.Color.BlanchedAlmond;
                sutun.HorizontalAlign = HorizontalAlign.Left;


                sutun.Text = ds.Tables[0].DefaultView.Table.Rows[0].ItemArray.GetValue(i).ToString();
                //son soruya verilen cevap anlamlý bir þekilde çýktý olarak gözükmeli, deðiþtirilecek
                if (i == 9)
                {
                    if (ds.Tables[0].DefaultView.Table.Rows[0].ItemArray.GetValue(i).ToString() == "False")
                    {
                        sutun.Text = "Hayýr";
                    }
                    else if (ds.Tables[0].DefaultView.Table.Rows[0].ItemArray.GetValue(i).ToString() == "True")
                    {
                        sutun.Text = "Evet";
                    }
                }

                if ((i == 0) || (i == 1) || (i == 2))
                {
                    sutunAciklama.Height = 50;
                    sutun.Height         = 50;
                }
                sutunAciklama.Width = 150;
                sutun.Width         = 400;

                satir.Cells.Add(sutunAciklama);
                satir.Cells.Add(sutun);

                tablo.Rows.Add(satir);
            }

            //son satýra hata ile ilgili yapýlabilecek iþlem linkleri konulacak
            TableRow  linkler = new TableRow();
            TableCell link    = new TableCell();

            HyperLink hl2 = new HyperLink();
            hl2.NavigateUrl = "SorumluAta.aspx?id=" + hata_id;
            //hl2.ID = "hl2";
            hl2.Text      = "Sorumlu Ata";
            hl2.ForeColor = System.Drawing.Color.Black;
            hl2.Font.Bold = true;
            hl2.Visible   = false;

            HyperLink hl3 = new HyperLink();
            hl3.NavigateUrl = "HataCozumEkle.aspx?id=" + hata_id;
            //hl3.ID = "hl3";
            hl3.Text      = "Çözüm Ekle";
            hl3.ForeColor = System.Drawing.Color.Black;
            hl3.Font.Bold = true;
            hl3.Visible   = false;

            Label lbl1 = new Label();
            lbl1.Text = " | ";

            link.ColumnSpan = 2;
            link.Controls.Add(hl2);
            link.Controls.Add(lbl1);
            link.Controls.Add(hl3);

            linkler.Cells.Add(link);
            tablo.Rows.Add(linkler);

            tablo.Width = 550;
            ph.Controls.Add(tablo);

            Label l1 = new Label();
            l1.Text = "<br><br>";
            ph.Controls.Add(l1);

            if (Session["tip"].ToString() == "sorumlu")
            {
                hl2.Visible = true;
                hl3.Visible = true;
            }
            //}
        }
        else
        {
            lblHata.Text = "Böyle bir hata yüklenmemiþ";
        }


        /*
         * ilgili hata üzerine yapýlmýþ konuþmalarý göster
         */
        ds = h.konusmalariGetir(hata_id);

        //konuþma yapýlmýþsa
        if (ds.Tables[0].DefaultView.Count > 0)
        {
            lblHata.Text = "";

            /*
             * ilgili hata hakkýnda konuþulanlarý listele
             */
            Table tablo = new Table();

            TableRow baslik = new TableRow();
            baslik.Width     = 700;
            baslik.BackColor = System.Drawing.Color.Orange;
            baslik.Font.Bold = true;

            TableCell yollayan = new TableCell();
            yollayan.Width           = 100;
            yollayan.Text            = "Yollayan";
            yollayan.HorizontalAlign = HorizontalAlign.Center;

            TableCell msj = new TableCell();
            msj.Width           = 600;
            msj.Text            = "Mesaj";
            msj.HorizontalAlign = HorizontalAlign.Center;

            baslik.Cells.Add(yollayan);
            baslik.Cells.Add(msj);
            tablo.Rows.Add(baslik);

            for (int j = 0; j < ds.Tables[0].DefaultView.Table.Rows.Count; j++)
            {
                TableRow  Mesaj  = new TableRow();
                TableCell MesajY = new TableCell();
                TableCell MesajM = new TableCell();

                MesajY.BackColor       = System.Drawing.Color.BlanchedAlmond;
                MesajY.HorizontalAlign = HorizontalAlign.Left;
                MesajY.VerticalAlign   = VerticalAlign.Top;
                MesajY.Text            = ds.Tables[0].DefaultView.Table.Rows[j].ItemArray.GetValue(1).ToString();
                MesajY.Text           += " (";
                MesajY.Text           += ds.Tables[0].DefaultView.Table.Rows[j].ItemArray.GetValue(2).ToString();
                MesajY.Text           += ")<br>";
                MesajY.Text           += ds.Tables[0].DefaultView.Table.Rows[j].ItemArray.GetValue(3).ToString();
                MesajY.Width           = 100;
                MesajY.Height          = 50;

                MesajM.BackColor       = System.Drawing.Color.BlanchedAlmond;
                MesajM.Text            = ds.Tables[0].DefaultView.Table.Rows[j].ItemArray.GetValue(0).ToString();
                MesajM.HorizontalAlign = HorizontalAlign.Left;
                MesajM.Width           = 600;
                MesajM.Height          = 50;

                Mesaj.Cells.Add(MesajY);
                Mesaj.Cells.Add(MesajM);
                Mesaj.Width = 700;

                tablo.Rows.Add(Mesaj);
                tablo.Width = 600;
                ph.Controls.Add(tablo);
            }
        }
        else
        {
            lblHata.Text = "Bu hata üzerinde daha konuþma yapýlmamýþ";
        }
    }
    protected void devam_Click(object sender, EventArgs e)
    {
        hata h = new hata();

        ds = h.projeyeAitHatalar(Convert.ToUInt32(projeler.SelectedItem.Value));


        //proje ile ilgili hata gönderilmiþse tabloda göster
        if (ds.Tables[0].DefaultView.Count > 0)
        {
            lblHata.Text = "";
            Label lbl = new Label();
            lbl.Text = "<h3>Bu proje ile ilgili daha çözülmemiþ hatalar</h3><br>";

            ph.Controls.Add(lbl);

            for (int t = 0; t < ds.Tables.Count; t++)
            {
                for (int j = 0; j < ds.Tables[t].DefaultView.Table.Rows.Count; j++)
                {
                    Table tablo = new Table();

                    for (int i = 0; i < ds.Tables[t].DefaultView.Table.Columns.Count; i++)
                    {
                        TableRow  satir         = new TableRow();
                        TableCell sutunAciklama = new TableCell();
                        TableCell sutun         = new TableCell();

                        sutunAciklama.BackColor       = System.Drawing.Color.Azure;
                        sutunAciklama.HorizontalAlign = HorizontalAlign.Left;
                        sutunAciklama.Text            = ds.Tables[t].DefaultView.Table.Columns[i].Caption;

                        sutun.BackColor       = System.Drawing.Color.BlanchedAlmond;
                        sutun.HorizontalAlign = HorizontalAlign.Left;

                        // ilk satýrda yapýlabilecek iþlemler bulunacak
                        if (i == 0)
                        {
                            HyperLink hl = new HyperLink();
                            hl.NavigateUrl = "Incele.aspx?id=" + ds.Tables[t].DefaultView.Table.Rows[j].ItemArray.GetValue(i).ToString();
                            hl.ID          = "hl_" + j.ToString() + "_" + i.ToString();
                            hl.Text        = "Ýncele";
                            hl.ForeColor   = System.Drawing.Color.Black;
                            hl.Font.Bold   = true;

                            HyperLink hl2 = new HyperLink();
                            hl2.NavigateUrl = "SorumluAta.aspx?id=" + ds.Tables[t].DefaultView.Table.Rows[j].ItemArray.GetValue(i).ToString();
                            hl2.ID          = "hl2_" + j.ToString() + "_" + i.ToString();
                            hl2.Text        = "Sorumlu Ata";
                            hl2.ForeColor   = System.Drawing.Color.Black;
                            hl2.Font.Bold   = true;

                            HyperLink hl3 = new HyperLink();
                            hl3.NavigateUrl = "HataCozumEkle.aspx?id=" + ds.Tables[t].DefaultView.Table.Rows[j].ItemArray.GetValue(i).ToString();
                            hl3.ID          = "hl3_" + j.ToString() + "_" + i.ToString();
                            hl3.Text        = "Çözüm Ekle";
                            hl3.ForeColor   = System.Drawing.Color.Black;
                            hl3.Font.Bold   = true;

                            Label lbl1 = new Label();
                            lbl1.Text = " | ";

                            Label lbl2 = new Label();
                            lbl2.Text = " | ";

                            sutun.Controls.Add(hl);
                            sutun.Controls.Add(lbl1);
                            sutun.Controls.Add(hl2);
                            sutun.Controls.Add(lbl2);
                            sutun.Controls.Add(hl3);
                        }
                        else
                        {
                            sutun.Text = ds.Tables[t].DefaultView.Table.Rows[j].ItemArray.GetValue(i).ToString();
                        }

                        //hata yüksekliði minimum 50px olacak
                        if (i == 2)
                        {
                            sutunAciklama.Height = 50;
                            sutun.Height         = 50;
                        }

                        sutunAciklama.Width = 150;
                        sutun.Width         = 350;
                        satir.Cells.Add(sutunAciklama);
                        satir.Cells.Add(sutun);

                        tablo.Rows.Add(satir);
                    }
                    tablo.Width = 500;
                    ph.Controls.Add(tablo);

                    Label l1 = new Label();
                    l1.Text = "<br><br>";
                    ph.Controls.Add(l1);
                }
            }

            Label l2 = new Label();
            l2.Text = "<br><br>";
            ph.Controls.Add(l2);
        }
        else
        {
            lblHata.Text = "Bu projeye ait çözülmemiþ bir hata mevcut deðil.";
        }
    }