Beispiel #1
0
    /// <summary>
    /// 선택된 전략 리스트
    /// </summary>
    /// <param name="isSelectAll"></param>
    private void SetStrategy(bool isSelectAll)
    {
        int    intFindStgID = (txtFindStgID.Text == "") ? 0 : int.Parse(txtFindStgID.Text);
        string strFindStgNM = txtFindStgNM.Text;

        MicroBSC.BSC.Biz.Biz_Bsc_Map_Stg objSTG = new MicroBSC.BSC.Biz.Biz_Bsc_Map_Stg();
        DataSet dsSTG = objSTG.GetStrategyPerView(this.IEstTermRefID, this.IEstDeptRefID, this.IMapVersionID, int.Parse(this.ITreeSelValue));

        ugrdStgPerView.Clear();
        ugrdStgPerView.DataSource = dsSTG;
        ugrdStgPerView.DataBind();

        ugrdStgAll.Clear();
        if (isSelectAll)
        {
            DataSet dsSTGAll = objSTG.GetAllStrategyExceptDept(this.IEstTermRefID, this.IEstDeptRefID, this.IMapVersionID, intFindStgID, strFindStgNM);
            ugrdStgAll.DataSource = dsSTGAll;
            ugrdStgAll.DataBind();
        }
    }
Beispiel #2
0
    private void DrawMapTreeDetail(TreeView iTrvMap, int iEstTermRefID, int iEstDeptRefID1, int iMapVersionID, string iSelectedKey)
    {
        int    cntRow = 0;
        int    cntStg = 0;
        int    cntKpi = 0;
        string strKey = "";
        string strVal = "";

        strKey = "D" + ";" + Convert.ToString(this.IEstDeptRefID1) + ";0";
        strVal = this.IEstDeptName1 + " 전략맵";
        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 MicroBSC.BSC.Biz.Biz_Bsc_Map_Stg();
        DataSet dsSTG = new DataSet();

        TreeNode kNode;

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

        cntRow = dsView.Tables[0].Rows.Count;
        for (int i = 0; i < cntRow; i++)
        {
            string imgWork = "<img alt='' src='../images/stg/TREE_W.gif'/>";
            string imgExec = "<img alt='' src='../images/stg/TREE_E.gif'/>";

            strKey         = "V" + ";" + dsView.Tables[0].Rows[i]["VIEW_REF_ID"].ToString() + ";0";
            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;
            }

            int stgrefid = 0;
            int kpirefid = 0;

            dsSTG  = objSTG.GetStrategyPerView(IEstTermRefID, IEstDeptRefID1, 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() + ";0";

                stgrefid = Convert.ToInt32(dsSTG.Tables[0].Rows[j]["STG_REF_ID"].ToString());
                kpirefid = 0;

                strVal = dsSTG.Tables[0].Rows[j]["STG_NAME"].ToString()
                         + (WorkCount(IEstTermRefID, IEstDeptRefID1, stgrefid, kpirefid) ? imgWork : "")
                         + (ExecCount(IEstTermRefID, IEstDeptRefID1, stgrefid, kpirefid) ? imgExec : "");
                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, IEstDeptRefID1, 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() + ";" + dsSTG.Tables[0].Rows[j]["STG_REF_ID"].ToString();

                    kpirefid = Convert.ToInt32(dsKPI.Tables[0].Rows[k]["KPI_REF_ID"].ToString());

                    strVal = dsKPI.Tables[0].Rows[k]["KPI_NAME"].ToString()
                             + (WorkCount(IEstTermRefID, IEstDeptRefID1, stgrefid, kpirefid) ? imgWork : "")
                             + (ExecCount(IEstTermRefID, IEstDeptRefID1, stgrefid, kpirefid) ? imgExec : "");

                    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();
    }
Beispiel #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();
        }