예제 #1
0
    /// <summary>
    /// my kpi
    /// </summary>
    private void SetMyKPIGrid()
    {
        ugrdMyKpiList.Clear();


        MicroBSC.Integration.BSC.Biz.Biz_My_Kpi bizMyKpi = new MicroBSC.Integration.BSC.Biz.Biz_My_Kpi();


        DataTable dtMyMboKpi = bizMyKpi.SelectMyMboKpi(IEstTermRefID, bizMyKpi.SelectCurrentYYYYMM(), gUserInfo.LoginID);

        if (dtMyMboKpi.Rows.Count > 0)
        {
            Label1.Text = "mbo";
            ugrdMyKpiList.DataSource = dtMyMboKpi;
            ugrdMyKpiList.DataBind();
        }
        else
        {
            DataTable dtMyTeamKpi = bizMyKpi.SelectMyTeamKpi(IEstTermRefID, bizMyKpi.SelectCurrentYYYYMM(), gUserInfo.LoginID);

            if (dtMyTeamKpi.Rows.Count > 0)
            {
                Label1.Text = "team";
                ugrdMyKpiList.DataSource = dtMyTeamKpi;
                ugrdMyKpiList.DataBind();
            }
            else
            {
                ugrdMyKpiList.Visible = false;
            }
        }
    }
예제 #2
0
    /// <summary>
    /// my kpi
    /// </summary>
    private void SetMyKPIGrid()
    {
        writeLog(string.Format("{0} :SetMyKPIGrid() START", Request.PhysicalPath));

        ugrdMyKpiList.Clear();


        MicroBSC.Integration.BSC.Biz.Biz_My_Kpi bizMyKpi = new MicroBSC.Integration.BSC.Biz.Biz_My_Kpi();


        DataTable dtMyMboKpi = bizMyKpi.SelectMyMboKpi(IEstTermRefID, IYmd, gUserInfo.LoginID);

        if (dtMyMboKpi.Rows.Count > 0)
        {
            ugrdMyKpiList.DataSource = dtMyMboKpi;
            ugrdMyKpiList.DataBind();

            KPI_URL = "BSC1004S1.ASPX";
        }
        else
        {
            DataTable dtMyTeamKpi = bizMyKpi.SelectMyTeamKpi(IEstTermRefID, IYmd, gUserInfo.LoginID);

            if (dtMyTeamKpi.Rows.Count > 0)
            {
                ugrdMyKpiList.DataSource = dtMyTeamKpi;
                ugrdMyKpiList.DataBind();
                KPI_URL = "BSC0404S1.ASPX";
            }
            else
            {
                KPI_URL = "BSC0404S1.ASPX";
                ugrdMyKpiList.Visible = false;
            }
        }
        writeLog(string.Format("{0} :SetMyKPIGrid() END", Request.PhysicalPath));
    }