예제 #1
0
        //[20070927]juny177 수정 :BSE_NEW 호출로 변경
        public int GetStgMapTypeCount()
        {
            MicroBSC.BSC.Biz.Biz_Bsc_View_Info biz = new MicroBSC.BSC.Biz.Biz_Bsc_View_Info();
            DataSet ds = biz.GetAllList();

            return(ds.Tables[0].Rows.Count);
        }
예제 #2
0
        //[20070927]juny177 수정 :BSE_NEW 호출로 변경
        public DataTable GetStgMapTypes()
        {
            MicroBSC.BSC.Biz.Biz_Bsc_View_Info biz = new MicroBSC.BSC.Biz.Biz_Bsc_View_Info();
            DataSet ds = biz.GetAllList();

            return(ds.Tables[0]);
        }
예제 #3
0
        /// <summary>
        /// 전략맵 트리구성
        /// </summary>
        /// <param name="iTrvMap">트리</param>
        /// <param name="iEstTermRefID">평가기간</param>
        /// <param name="iEstDeptRefID">평가부서</param>
        public void DrawMapTree(TreeView iTrvMap, int iEstTermRefID, int iEstDeptRefID, int iMapVersionID, string iSelectedKey)
        {
            /* 수정작업 : 이천십일년 삼월 치릴
             * 수정작자 : 장동건
             * 수정내용 : BSC1004S1.ASPX 자화전자(성덕여왕 요청)
             *            측정주기 변경시 평가조직이 변경이 안됨
             *            조건변수를 두개로 날림
             *            */

            MicroBSC.Estimation.Dac.DeptInfos objDept = new MicroBSC.Estimation.Dac.DeptInfos(iEstDeptRefID);

            int    cntRow = 0;
            int    cntStg = 0;
            int    cntKpi = 0;
            string strKey = "";
            string strVal = "";

            strKey = "D" + objDept.Dept_Ref_ID.ToString();
            strVal = objDept.Dept_Name + " 전략맵";
            TreeNode topNode = new TreeNode(strVal, strKey);

            iTrvMap.Nodes.Clear();
            iTrvMap.Nodes.Add(topNode);
            topNode.ImageUrl = "../images/stg/TREE_D.gif";

            TreeNode vNode;

            MicroBSC.BSC.Biz.Biz_Bsc_View_Info objView = new MicroBSC.BSC.Biz.Biz_Bsc_View_Info();
            DataSet dsView = objView.GetAllList();

            TreeNode sNode;

            MicroBSC.BSC.Biz.Biz_Bsc_Map_Stg objSTG = new Biz_Bsc_Map_Stg();
            DataSet dsSTG = new DataSet();

            TreeNode kNode;

            MicroBSC.BSC.Biz.Biz_Bsc_Map_Kpi objKPI = new Biz_Bsc_Map_Kpi();
            DataSet dsKPI = new DataSet();

            cntRow = dsView.Tables[0].Rows.Count;
            for (int i = 0; i < cntRow; i++)
            {
                strKey         = "V" + dsView.Tables[0].Rows[i]["VIEW_REF_ID"].ToString();
                strVal         = dsView.Tables[0].Rows[i]["VIEW_NAME"].ToString();
                vNode          = new TreeNode(strVal, strKey);
                vNode.ImageUrl = "../images/stg/TREE_V.gif";
                topNode.ChildNodes.Add(vNode);

                if (iSelectedKey == strKey)
                {
                    vNode.Select();
                    vNode.ExpandAll();
                    vNode.SelectAction = TreeNodeSelectAction.Select;
                }

                dsSTG  = objSTG.GetStrategyPerView(iEstTermRefID, iEstDeptRefID, iMapVersionID, int.Parse(dsView.Tables[0].Rows[i]["VIEW_REF_ID"].ToString()));
                cntStg = dsSTG.Tables[0].Rows.Count;

                for (int j = 0; j < cntStg; j++)
                {
                    strKey         = "S" + dsSTG.Tables[0].Rows[j]["STG_REF_ID"].ToString();
                    strVal         = dsSTG.Tables[0].Rows[j]["STG_NAME"].ToString();
                    sNode          = new TreeNode(strVal, strKey);
                    sNode.ImageUrl = "../images/stg/TREE_S.gif";
                    vNode.ChildNodes.Add(sNode);

                    if (iSelectedKey == strKey)
                    {
                        sNode.Select();
                        sNode.ExpandAll();
                        sNode.SelectAction = TreeNodeSelectAction.Select;
                    }

                    dsKPI  = objKPI.GetKpiListPerStg(iEstTermRefID, iEstDeptRefID, iMapVersionID, int.Parse(dsSTG.Tables[0].Rows[j]["STG_REF_ID"].ToString()));
                    cntKpi = dsKPI.Tables[0].Rows.Count;

                    for (int k = 0; k < cntKpi; k++)
                    {
                        strKey         = "K" + dsKPI.Tables[0].Rows[k]["KPI_REF_ID"].ToString();
                        strVal         = dsKPI.Tables[0].Rows[k]["KPI_NAME"].ToString();
                        kNode          = new TreeNode(strVal, strKey);
                        kNode.ImageUrl = "../images/stg/TREE_K.gif";
                        sNode.ChildNodes.Add(kNode);

                        if (iSelectedKey == strKey)
                        {
                            kNode.Select();
                            kNode.ExpandAll();
                            kNode.SelectAction = TreeNodeSelectAction.Select;
                        }
                    }
                }
            }

            if (iTrvMap.SelectedNode == null)
            {
                topNode.Select();
            }

            iTrvMap.ExpandAll();
        }