Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                PickMonth.DataSource     = CreateMonthDataSource();
                PickMonth.DataTextField  = "Ay";
                PickMonth.DataValueField = "AyDegeri";
                PickMonth.DataBind();
                PickMonth.SelectedIndex = 0;

                PickYear.DataSource     = CreateYearDataSource();
                PickYear.DataTextField  = "Yıl";
                PickYear.DataValueField = "YılDeger";
                PickYear.DataBind();
                PickYear.SelectedIndex = 0;

                Table1.Visible     = false;
                Table2.Visible     = false;
                LineChart1.Visible = false;
            }
            else
            {
                Table1.Visible     = false;
                Table2.Visible     = false;
                errorLabel.Text    = "";
                LineChart1.Visible = false;
            }
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //welcome text
                Label1.Text = "Qmatic Aylık Şube İstatsitiklerini görebilmek için, Şube ismini, ayını, ve yılını seçiniz";
                //----------------------------get months --------------------------------
                PickMonth.DataSource     = CreateMonthDataSource();
                PickMonth.DataTextField  = "Ay";
                PickMonth.DataValueField = "AyDegeri";
                PickMonth.DataBind();
                PickMonth.SelectedIndex = 0;

                //-----------------------------yıl select-------------------------------
                PickYear.DataSource     = CreateYearDataSource();
                PickYear.DataTextField  = "Yıl";
                PickYear.DataValueField = "YılDeger";
                PickYear.DataBind();
                PickYear.SelectedIndex = 0;

                //------------------------------sube ler--------------------------------
                DropDownList1.DataSource     = CreateDataSource();
                DropDownList1.DataTextField  = "Sube";
                DropDownList1.DataValueField = "Subnet";
                DropDownList1.DataBind();
                DropDownList1.SelectedIndex = 0;

                //------------------------------grafik kısmı-------------------------------
                LineChart1.ChartTitle = "Aylık Müşteri Tablosu";
                LineChart1.ChartWidth = "800";

                //hide them for now
                LineChart1.Visible  = false;
                Table1.Visible      = false;
                tellerTable.Visible = false;
            }
            else
            {
                CreateDataSource();
                LineChart1.Visible  = false;
                Table1.Visible      = false;
                tellerTable.Visible = false;
            }
        }