Forum Sementara Putera.com

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Forum Sementara Putera.com

Bersama kita perkemaskan forum ini sementara forum asal dalam pemulihan.

Forum putera dah kembali. Masalah sudah berjaya diselesaikan. Sila lawati http://forum.putera.com/tanya


    Sape kat sini tau pasal zedgraph?

    avatar
    inapaisey
    Ahli Baharu
    Ahli Baharu


    Number of posts : 2
    Registration date : 16/09/2009

    Sape kat sini tau pasal zedgraph? Empty Sape kat sini tau pasal zedgraph?

    Post by inapaisey Wed Sep 16, 2009 3:59 pm

    askum..ade sape2 tau pasal zedgraph tak? sy nak buat graph dgn 4 multiple line dalam satu graph dng 2 y-axis. tapi sy tak tau mcm mana nak generate line yg lain. bleh buat satu line jer.huhu..tolong laa..

    sy guna connection ker oracle mcm biasa.


    OracleConnection conn100 = new OracleConnection();
    conn100.ConnectionString = " data source =; user id =; password =";
    OracleCommand cmd100 = new OracleCommand();
    cmd100.CommandText =
    cmd100.Parameters.Add("arbpl_name",ddlworkcenter.SelectedItem.ToStrin());
    cmd100.Connection = conn100;
    conn100.Open();
    OracleDataReader dr100 = cmd100.ExecuteReader();
    string x1, y1;
    int breakpoints = 0;

    while (dr100.Read())
    {
    x1 = dr100["hours"].ToString();
    y1 = dr100["wip_inprogress"].ToString();
    if (breakpoints == 0)
    {
    if (x1 != "" && y1 != "")
    {
    list1.Add(Convert.ToDouble(x1), Convert.ToDouble(y1));
    }
    else
    {
    breakpoints++;
    }
    }
    else
    {
    list2.Add(Convert.ToDouble(x1), Convert.ToDouble(y1));
    }
    }
    conn100.Close();

    tapi ini untuk satu line saje. bila sy nak buat untuk line yg lain guna coding yg sama .. kuar error...camner ek? tolonggg laaa sape.

    kalo ade idea emel sy : inapaisey@yahoo.com

      Current date/time is Mon Nov 18, 2024 1:58 pm