Ejemplo n.º 1
0
        public StgMapTables_Biz(int est_year
                                , string est_month
                                , int estterm_ref_id
                                , int est_dept_ref_id
                                , int map_version_id
                                , string script_image_path
                                , bool isVisible
                                , int view_type
                                , string working_yn
                                , string fullscreen)
            : base(est_year, est_month, estterm_ref_id, est_dept_ref_id, map_version_id)
        {
            StgMaps_Biz stgMap = new StgMaps_Biz();

            _stgMapTypeCount            = stgMap.GetStgMapTypeCount();
            _stgMapTypeCol              = stgMap.GetStgMapTypes();
            _script_image_map_type      = new string[_stgMapTypeCount];
            _script_stg_map_type_weight = new double[_stgMapTypeCount];

            _script_image_path = script_image_path;
            _isVisible         = isVisible;
            _view_type         = view_type;
            _working_yn        = working_yn;
            _fullscreen        = fullscreen;

            Init();
        }
Ejemplo n.º 2
0
    private void DoBinding()
    {
        StgMaps_Biz stgMap;

        if (IWORKINGMAP_YN == "N")
        {
            stgMap = new StgMaps_Biz(YEAR
                                     , TMCODE
                                     , ESTTERM_REF_ID
                                     , EST_DEPT_REF_ID
                                     , MAP_VERSION_ID
                                     , ISKPILISTVIEW
                                     , ENUMLINETYPE
                                     , 0
                                     , FULLSCREEN);
        }
        else
        {
            stgMap = new StgMaps_Biz(YEAR
                                     , TMCODE
                                     , ESTTERM_REF_ID
                                     , EST_DEPT_REF_ID
                                     , MAP_VERSION_ID
                                     , ISKPILISTVIEW
                                     , ENUMLINETYPE
                                     , 0
                                     , IWORKINGMAP_YN
                                     , FULLSCREEN);
        }

        if (IWORKINGMAP_YN == "H")
        {
            IWORKINGMAP_YN = "Y";
        }
        else if (IWORKINGMAP_YN == "Y")
        {
            IWORKINGMAP_YN = "H";
        }

        ltrScript.Text = stgMap.Script_Stg_Map;
    }
Ejemplo n.º 3
0
        private string GetMergeScript(int stg_map_id)
        {
            StgMaps_Biz stgMap = new StgMaps_Biz(Est_Year, Est_Month, EstTerm_Ref_ID, Est_Dept_Ref_ID, Map_Version_ID, stg_map_id);

            //<font title='{0}'></font> onclick=alert('전략링크') onmouseover=this.style.cursor='hand' onmouseover=this.style.cursor='default'
            //_script_stg_title = string.Format("<div onmouseover=\"ExcuteFnc('{1}')\">{2}_{1}</div>"
            //                        , stgMap.Stg_Desc
            //                        , stg_map_id
            //                        , stgMap.Stg_Name);

            if (_working_yn == "Y" || _working_yn == "T")
            {
                _script_stg_title = string.Format("<div><font title='{0}'>{1}</font></div>"
                                                  , stgMap.Stg_Desc
                                                  , stgMap.Stg_Name);
            }
            else
            {
                _script_stg_title = string.Format("<div><font title='{0}'><a href='#null' onclick=\"selSTGlist('{1}', '{2}', '{3}', '{4}');\">{5}</a></font></div>"
                                                  , stgMap.Stg_Desc
                                                  , EstTerm_Ref_ID
                                                  , Est_Dept_Ref_ID
                                                  , stg_map_id
                                                  , Est_Month
                                                  , stgMap.Stg_Name);
            }

            _script_stg_kpi = GetKPIListScript(stg_map_id);

            string vibleStr = "";

            //string valignStr    = "";

            if (_isVisible)
            {
                vibleStr = "block";
                //valignStr       = "valign='top'";
            }
            else
            {
                vibleStr = "none";
            }

            if (_view_type == 1)
            {
                _script_merge = @"<TABLE height='100%' cellSpacing='0' cellPadding='0' width='150' background='" + _script_image_path + @"table_skin/" + _statusType + @"/map_jt10.gif' border=0 >
                                    <TBODY>
                                        <TR> 
                                            <TD align='center' background='" + _script_image_path + @"table_skin/" + _statusType + @"/map_jt08.png' height='37'> 
                                            <TABLE width='95%' height='100%' border='0' cellPadding='0' cellSpacing='0'>
                                                    <TBODY>
                                                        <TR > 
                                                            <TD class='stext_jw'>
                                                                " + _script_stg_title + @"
                                                            </TD>
                                                            <TD width='43' align='right' class='stext_oo'> 
                                                                <table width='100%' height='100%' border='0' cellpadding='0' cellspacing='0'>
                                                                    <tr> 
                                                                        <td height='27' align='right'>
                                                                            <FONT color=#54ff00>목표</FONT>
									                                    </td>
                                                                    </tr>
                                                                    <tr> 
                                                                        <td height='8' align='center'><img id='img_block_" + stg_map_id.ToString() + @"' src='" + _script_image_path + @"map_jt13_down.gif' style='CURSOR: hand;DISPLAY:none' onclick=VisibleSpan('block_" + stg_map_id.ToString() + @"')></td>
                                                                    </tr>
                                                                </table></TD>
                                                        </TR>
                                                    </TBODY>
                                                </TABLE>
			                                </TD>
                                        </TR>
                                        <TR> 
                                            <TD height='3'>
                                                <IMG height='3' src='" + _script_image_path + @"table_skin/" + _statusType + @"/map_jt11.gif' width='150'></TD>
                                        </TR>
                                        <TR> 
                                            <TD align=left valign='top'>
                                                <span id='block_" + stg_map_id.ToString() + @"' style='DISPLAY: " + vibleStr + @"; MARGIN-LEFT: 1px'>
                                                    "     + _script_stg_kpi + @"</span></TD>
                                        </TR>
                                        <TR> 
                                            <TD height='9'>
                                                <IMG height='9' src='" + _script_image_path + @"table_skin/" + _statusType + @"/map_jt09.png'></TD>
                                        </TR>
	                                </TABLE>"    ;
            }
            else
            {
                _script_merge = @"<TABLE height='100%' cellSpacing='0' cellPadding='0' width='150' background='" + _script_image_path + @"table_skin/" + _statusType + @"/map_jt10.gif' border=0 >
                                    <TBODY>
                                        <TR> 
                                            <TD align='center' background='" + _script_image_path + @"table_skin/" + _statusType + @"/map_jt08.png' height='37'> 
                                            <TABLE width='95%' height='100%' border='0' cellPadding='0' cellSpacing='0'>
                                                    <TBODY>
                                                        <TR > 
                                                            <TD class='stext_jw'>
                                                                " + _script_stg_title + @"
                                                            </TD>
                                                            <TD width='33' align='center' valign='bottom' class='stext_oo'> 
                                                                <table width='100%' height='100%' border='0' cellpadding='0' cellspacing='0'>
                                                                    <tr> 
                                                                        <td height='27' align='center'>
                                                                            <FONT color=#54ff00>" + GetStgPointById(stg_map_id).ToString("#,##0.00") + @"</FONT>
									                                    </td>
                                                                    </tr>
                                                                    <tr> 
                                                                        <td height='8' align='center'><img id='img_block_" + stg_map_id.ToString() + @"' src='" + _script_image_path + @"map_jt13_down.gif' style='CURSOR: hand;DISPLAY:none' onclick=VisibleSpan('block_" + stg_map_id.ToString() + @"')></td>
                                                                    </tr>
                                                                </table></TD>
                                                        </TR>
                                                    </TBODY>
                                                </TABLE>
			                                </TD>
                                        </TR>
                                        <TR> 
                                            <TD height='3'>
                                                <IMG height='3' src='" + _script_image_path + @"table_skin/" + _statusType + @"/map_jt11.gif' width='150'></TD>
                                        </TR>
                                        <TR> 
                                            <TD align=left valign='top'>
                                                <span id='block_" + stg_map_id.ToString() + @"' style='DISPLAY: " + vibleStr + @"; MARGIN-LEFT: 1px'>
                                                    "     + _script_stg_kpi + @"</span></TD>
                                        </TR>
                                        <TR> 
                                            <TD height='9'>
                                                <IMG height='9' src='" + _script_image_path + @"table_skin/" + _statusType + @"/map_jt09.png'></TD>
                                        </TR>
	                                </TABLE>"    ;
            }

            return(_script_merge);
        }