private void LoadDataChartAdm()
    {
        if (hiddenAdm.Value != "0")
        {
            RepImpDataAdm.DataSource = null;
            RepImpDataAdm.DataBind();
            int StatsAdm = 1;
            if (Convert.ToInt32(StatAdm.Value) == 1)
            {
                StatsAdm = 4;
            }
            else if (Convert.ToInt32(StatAdm.Value) == 3)
            {
                StatsAdm = 5;
            }
            else if (Convert.ToInt32(StatAdm.Value) == 5)
            {
                StatsAdm = 1;
            }
            else if (Convert.ToInt32(StatAdm.Value) == 7)
            {
                StatsAdm = 2;
            }
            else if (Convert.ToInt32(StatAdm.Value) == 9)
            {
                StatsAdm = 3;
            }
            hiddenAdm.Value = Obj.ExecuteProcedure2ID("GetChartAdmCounts", Obj.ExecuteProcedureString("GetAdminByName", HiddenTitleAdm.Value), StatsAdm).ToString();

            MainTitleAdm.InnerHtml   = HiddenTitleAdm.Value;
            RepImpDataAdm.DataSource = Obj.GetChartImportnace(Obj.ExecuteProcedureString("GetAdminByName", HiddenTitleAdm.Value), StatsAdm);

            RepImpDataAdm.DataBind();
        }
    }
Exemple #2
0
    private void LoadDataChartAdm()
    {
        if (hiddenAdm.Value != "0")
        {
            RepImpDataAdm.DataSource = null;
            RepImpDataAdm.DataBind();
            int StatsAdm = 1;
            if (Convert.ToInt32(StatAdm.Value) == 1)
            {
                StatsAdm = 4;
            }
            else if (Convert.ToInt32(StatAdm.Value) == 3)
            {
                StatsAdm = 5;
            }
            else if (Convert.ToInt32(StatAdm.Value) == 5)
            {
                StatsAdm = 1;
            }
            else if (Convert.ToInt32(StatAdm.Value) == 7)
            {
                StatsAdm = 2;
            }
            else if (Convert.ToInt32(StatAdm.Value) == 9)
            {
                StatsAdm = 3;
            }

            MainTitleAdm.InnerHtml = "<h3>" + HiddenTitleAdm.Value + "</h3>";
            hiddenAdm.Value        = Obj.ExecuteProcedure3ID("GetChartAdmYearCounts", Obj.ExecuteProcedureString("GetAdminByName", HiddenTitleAdm.Value), StatsAdm, Convert.ToInt32(DropYear.SelectedValue)).ToString();

            RepImpDataAdm.DataSource = Obj.GetChartByPlansStatus(Convert.ToInt32(DropYear.SelectedValue), StatsAdm, Obj.ExecuteProcedureString("GetAdminByName", HiddenTitleAdm.Value));

            RepImpDataAdm.DataBind();
        }
    }