Example #1
0
    public void DoBinding()
    {
        bool isAdmin       = false;
        bool isTeamManager = false;

        if (User.IsInRole(ROLE_ADMIN))
        {
            isAdmin = true;
        }
        if (User.IsInRole(ROLE_TEAM_MANAGER))
        {
            isTeamManager = true;
        }

        lblRowCount.Text = "0 / 0";
        MicroBSC.BSC.Biz.Biz_Bsc_Kpi_Info objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Kpi_Info();
        DataSet dsResult = objBSC.GetMboListForResultInput(this.IESTTERM_REF_ID
                                                           , PageUtility.GetByValueDropDownList(ddlEstTermMonth)
                                                           , txtKPICode.Text.Trim()
                                                           , txtKPIName.Text.Trim()
                                                           , txtChamName.Text.Trim()
                                                           , PageUtility.GetIntByValueDropDownList(ddlEstDept)
                                                           , PageUtility.GetByValueDropDownList(ddlKpiGroupRefID)
                                                           , PageUtility.GetIntByValueDropDownList(ddlKpiCategoryTop)
                                                           , PageUtility.GetIntByValueDropDownList(ddlKpiCategoryMid)
                                                           , PageUtility.GetIntByValueDropDownList(ddlKpiCategoryLow)
                                                           , gUserInfo.Emp_Ref_ID
                                                           , isAdmin
                                                           , isTeamManager
                                                           , BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID));

        ugrdKpiResultList.DataSource = dsResult;
        ugrdKpiResultList.DataBind();
    }
Example #2
0
    private void DoInitControl()
    {
        this.IDEPT_ID = BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID);
        WebCommon.SetComDeptDropDownList(ddlComDeptLeft, true, gUserInfo.Emp_Ref_ID);
        WebCommon.SetComDeptDropDownList(ddlComDeptLeft2, true, gUserInfo.Emp_Ref_ID);
        WebCommon.SetComDeptDropDownList(ddlComDeptRight, true, gUserInfo.Emp_Ref_ID);
        PageUtility.FindByValueDropDownList(ddlComDeptLeft, this.IDEPT_ID);
        PageUtility.FindByValueDropDownList(ddlComDeptLeft2, this.IDEPT_ID);
        PageUtility.FindByValueDropDownList(ddlComDeptRight, this.IDEPT_ID);

        WebCommon.SetEstTermDropDownList(ddlEstTerm);

        Biz_Com_Code_Info objCom = new Biz_Com_Code_Info();

        objCom.GetKpiType(ddlKpiGroup, "", true, 120);

        WebCommon.SetKpiCategoryTopActiveDropDownList(ddlKpiCategoryTop, true, "Y");
        WebCommon.SetKpiCategoryMidActiveDropDownList(ddlKpiCategoryMid, true, PageUtility.GetIntByValueDropDownList(ddlKpiCategoryTop), "Y");
        WebCommon.SetKpiCategoryLowActiveDropDownList(ddlKpiCategoryLow, true, PageUtility.GetIntByValueDropDownList(ddlKpiCategoryTop), PageUtility.GetIntByValueDropDownList(ddlKpiCategoryMid), "Y");

        if (!User.IsInRole(ROLE_ADMIN))
        {
            txtChampionNameRight.Text = gUserInfo.Emp_Name;
        }
    }
Example #3
0
    public void SetKpiListExceptMine()
    {
        int iTxrUser   = gUserInfo.Emp_Ref_ID;
        int iComDeptId = 0;
        Biz_Bsc_Mbo_Kpi_Weight objBSC = new Biz_Bsc_Mbo_Kpi_Weight();

        // 나의지표             : 구분 -> N     부서코드 -> 0
        // 팀 지표              : 구분 -> Y     부서코드 -> 로그인사용자 부서
        // 전체                 : 구분 -> ''    부서코드 -> 0

        if (PageUtility.GetByValueDropDownList(ddlGubun) == "Y" || PageUtility.GetByValueDropDownList(ddlGubun) == "" || PageUtility.GetByValueDropDownList(ddlGubun) == "P")
        {
            iComDeptId = BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID);
        }

        DataSet rDS = objBSC.GetMboListForWeight(PageUtility.GetIntByValueDropDownList(ddlEstTermInfo)
                                                 , PageUtility.GetByValueDropDownList(ddlGubun)
                                                 , txtKpiCode.Text.Trim()
                                                 , txtKpiName.Text.Trim()
                                                 , gUserInfo.Emp_Ref_ID
                                                 , iComDeptId);

        ugrdKpiList.Clear();
        ugrdKpiList.DataSource = rDS;
        ugrdKpiList.DataBind();
    }
Example #4
0
    public void InitForm()
    {
        WebCommon.SetEstTermDropDownList(ddlEstTermInfo);

        int intEstTermId = (ddlEstTermInfo.Items.Count > 0) ? int.Parse(ddlEstTermInfo.SelectedValue) : 0;

        WebCommon.SetComDeptDropDownList(ddlEstDept, true);
        PageUtility.FindByValueDropDownList(ddlEstDept, BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID));

        WebCommon.SetSettingYnDropDownList(ddlIS_SET_QUERY, true);

        txtField_Ms.Attributes.Add("onkeydown", "return ProhibitKey(this);");
        txtField_Ms.Attributes.Add("onkeydown", "return ProhibitKey(this);");
        txtCondition_Ms.Attributes.Add("onkeydown", "return ProhibitKey(this);");
        txtCondition_Ts.Attributes.Add("onkeydown", "return ProhibitKey(this);");
        txtCondition_SS.Attributes.Add("onkeydown", "return ProhibitKey(this);");

        lblSuccessAl.Style.Add(HtmlTextWriterStyle.TextAlign, "left");
        lblSuccessMs.Style.Add(HtmlTextWriterStyle.TextAlign, "left");
        lblSuccessTs.Style.Add(HtmlTextWriterStyle.TextAlign, "left");

        rdoField.Checked     = true;
        rdoCondition.Checked = false;

        this.SetQueryBox();
    }
Example #5
0
    private void InitControlValue()
    {
        WebCommon.SetEstTermDropDownList(ddlEstTermInfo);

        int intEstTermId = (ddlEstTermInfo.Items.Count > 0) ? int.Parse(ddlEstTermInfo.SelectedValue) : 0;

        WebCommon.SetComDeptDropDownList(ddlEstDept, true);
        PageUtility.FindByValueDropDownList(ddlEstDept, BizUtility.GetDeptID(EMP_REF_ID));

        Biz_Com_Code_Info objCode = new Biz_Com_Code_Info();

        objCode.getResultMethod(ddlResultInput, "", true, 120);
        objCode.GetKpiType(ddlKpiGroupRefID, "", true, 120);

        lblCopyText.Style.Add("vertical-align", "middle");
        ddlEsttermCopy.Style.Add("vertical-align", "middle");

        TermInfos objTerm     = new TermInfos();
        TermInfos objTermOpen = new TermInfos(objTerm.GetOpenEstTermID());

        if (objTermOpen.Estterm_ref_id > 0)
        {
            ddlEsttermCopy.Items.Add(new ListItem(objTermOpen.Estterm_name, objTermOpen.Estterm_ref_id.ToString()));
        }
        else
        {
            lblCopyText.Visible    = false;
            ddlEsttermCopy.Visible = false;
            iBtnKpiCopy.Visible    = false;
        }
    }
Example #6
0
    private void DoInitializing()
    {
        this.IDEPT_ID = BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID);

        WebCommon.SetComDeptDropDownList(ddlComDeptLeft, true, gUserInfo.Emp_Ref_ID);

        ddlComDeptLeft.SelectedValue = IDEPT_ID.ToString();
        ddlComDeptLeft.Enabled       = false;
    }
Example #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ltrScript.Text = "";



        if (!IsPostBack)
        {
            if (PageUtility.GetAppConfig("GOALTONG_YN").Equals("Y"))
            {
                rdoGoalTong.Visible = true;
            }


            WebCommon.SetEstTermDropDownList(ddlEstTermInfo);
            WebCommon.SetTermMonthDropDownList(ddlMonthInfo, PageUtility.GetIntByValueDropDownList(ddlEstTermInfo));

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

            PageUtility.FindByValueDropDownList(ddlMonthInfo, YMD);


            this.IisAdmin = (User.IsInRole(ROLE_ADMIN) ? "Y" : "N");

            if (this.IisAdmin == "Y")
            {
                //WebCommon.SetComDeptDropDownList(ddlDeptList, true, gUserInfo.Emp_Ref_ID);
                //PageUtility.FindByValueDropDownList(ddlDeptList, this.IDEPT_ID);
                this.DEPT_REF_ID = BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID);
                WebCommon.SetComDeptDropDownList(ddlDeptList, false, gUserInfo.Emp_Ref_ID);
                PageUtility.FindByValueDropDownList(ddlDeptList, DEPT_REF_ID);
            }
            else
            {
                BindDeptList();
            }

            this.DEPT_REF_ID = BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID);
        }


        ESTTERM_REF_ID = PageUtility.GetIntByValueDropDownList(ddlEstTermInfo);
        YMD            = PageUtility.GetByValueDropDownList(ddlMonthInfo);
        DEPT_REF_ID    = PageUtility.GetIntByValueDropDownList(ddlDeptList);

        SUM_TYPE = "TS";


        BindChart();
        BindScore();
        BindGrade();
        BindGrid();
    }
Example #8
0
    private void InitControlValue()
    {
        WebCommon.SetEstTermDropDownList(ddlEstTermInfo);

        int intEstTermId = PageUtility.GetIntByValueDropDownList(ddlEstTermInfo);

        WebCommon.SetTermMonthDropDownList(ddlEstTermMonth, intEstTermId);
        WebCommon.SetEstDeptDropDownList(ddlEstDept, intEstTermId, true, gUserInfo.Emp_Ref_ID);
        PageUtility.FindByValueDropDownList(ddlEstDept, BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID));

        Biz_Com_Code_Info objCode = new Biz_Com_Code_Info();

        objCode.getResultMethod(ddlResultMethod, "", true, 120);
        objCode.GetKpiType(ddlKpiGroupRefID, "", true, 120);
    }
Example #9
0
    public int VIEWROLE;//임원, 팀장, 사원 구분

    #endregion

    #region --> Page_Load()

    protected void Page_Load(object sender, EventArgs e)
    {
        //좌측메뉴설정
        base.SetMenuControl(true, true, true);

        if (!IsPostBack)
        {
            chartMM.Visible  = false;
            chartDal.Visible = false;

            NotPostBackSetting();

            this.IEstTermRefID = PageUtility.GetIntByValueDropDownList(ddlEstTermInfo);
            this.IYmd          = PageUtility.GetByValueDropDownList(ddlMonthInfo);


            this.IisAdmin = (User.IsInRole(ROLE_ADMIN) ? "Y" : "N");

            if (this.IisAdmin == "Y")
            {
                //WebCommon.SetComDeptDropDownList(ddlDeptList, true, gUserInfo.Emp_Ref_ID);
                //PageUtility.FindByValueDropDownList(ddlDeptList, this.IDEPT_ID);
                this.IDeptID = BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID);
                WebCommon.SetComDeptDropDownList(ddlDeptList, false, gUserInfo.Emp_Ref_ID);
                PageUtility.FindByValueDropDownList(ddlDeptList, IDeptID);
            }
            else
            {
                BindDeptList();
            }
            this.IDeptID = BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID);
            DoBinding(IEstTermRefID, IDeptID);
        }
        else
        {
        }


        this.IEstTermRefID = PageUtility.GetIntByValueDropDownList(ddlEstTermInfo);
        this.IYmd          = PageUtility.GetByValueDropDownList(ddlMonthInfo);
        this.IDeptID       = PageUtility.GetIntByValueDropDownList(ddlDeptList);


        this.UltraWebGrid1.Columns.FromKey("CHAMPION_NAME").Header.Caption = this.GetText("LBL_00001", "챔피언");
    }
Example #10
0
    private void InitControlValue()
    {
        WebCommon.SetEstTermDropDownList(ddlEstTermInfo);

        int intEstTermId = (ddlEstTermInfo.Items.Count > 0) ? int.Parse(ddlEstTermInfo.SelectedValue) : 0;

        WebCommon.SetTermMonthDropDownList(ddlEstTermMonth, intEstTermId);
        //WebCommon.SetComDeptDropDownList(ddlEstDept, true);
        //WebCommon.SetEstDeptDropDownList(ddlEstDept, intEstTermId, true, gUserInfo.Emp_Ref_ID);
        WebCommon.SetComDeptDropDownList(ddlEstDept, true, gUserInfo.Emp_Ref_ID);
        PageUtility.FindByValueDropDownList(ddlEstDept, BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID));

        Biz_Com_Code_Info objCode = new Biz_Com_Code_Info();

        objCode.getResultMethod(ddlResultMethod, "", true, 120);
        objCode.GetKpiType(ddlKpiGroupRefID, "", true, 120);

        this.IESTTERM_REF_ID = PageUtility.GetIntByValueDropDownList(ddlEstTermInfo);
        this.IYMD            = PageUtility.GetByValueDropDownList(ddlEstTermMonth);
    }
Example #11
0
    private void DoInitControl()
    {
        WebCommon.SetEstTermDropDownList(ddlEstTermInfo);
        this.IESTTERM_REF_ID = PageUtility.GetIntByValueDropDownList(ddlEstTermInfo);

        WebCommon.SetTermMonthDropDownList(ddlEstTermMonth, this.IESTTERM_REF_ID);
        this.IYMD = PageUtility.GetByValueDropDownList(ddlEstTermMonth);


        WebCommon.SetComDeptDropDownList(ddlEstDept, true, gUserInfo.Emp_Ref_ID);
        PageUtility.FindByValueDropDownList(ddlEstDept, BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID));

        Biz_Com_Code_Info objCode = new Biz_Com_Code_Info();

        objCode.GetKpiType(ddlKpiGroupRefID, "", true, 120);

        WebCommon.SetKpiCategoryTopActiveDropDownList(ddlKpiCategoryTop, true, "Y");
        WebCommon.SetKpiCategoryMidActiveDropDownList(ddlKpiCategoryMid, true, PageUtility.GetIntByValueDropDownList(ddlKpiCategoryTop), "Y");
        WebCommon.SetKpiCategoryLowActiveDropDownList(ddlKpiCategoryLow, true, PageUtility.GetIntByValueDropDownList(ddlKpiCategoryTop), PageUtility.GetIntByValueDropDownList(ddlKpiCategoryMid), "Y");
    }
Example #12
0
    public void SetKpiListExceptMine()
    {
        int iTxrUser   = gUserInfo.Emp_Ref_ID;
        int iComDeptId = 0;
        Biz_Bsc_Mbo_Kpi_Weight objBSC = new Biz_Bsc_Mbo_Kpi_Weight();

        // 팀원이 속한 MBO지표  : 구분 -> N     부서코드 -> 로그인사용자 부서
        // 나의지표             : 구분 -> N     부서코드 -> 0
        // 팀 지표              : 구분 -> Y     부서코드 -> 로그인사용자 부서
        // 전체                 : 구분 -> ''    부서코드 -> 0

        if (PageUtility.GetByValueDropDownList(ddlGubun) == "Y" ||
            PageUtility.GetByValueDropDownList(ddlGubun) == "H")
        {
            iComDeptId = BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID);
        }

        string gubun = PageUtility.GetByValueDropDownList(ddlGubun);

        if (gubun.Equals("H"))
        {
            gubun = "N";
        }

        DataSet rDs = objBSC.GetKpiListExceptMyKpi
                          (PageUtility.GetIntByValueDropDownList(ddlEstTermInfo)
                          , iTxrUser
                          , ""
                          , txtKpiCode.Text
                          , txtKpiName.Text
                          , "Y"
                          , ""
                          , iComDeptId
                          , ""
                          , gubun
                          , iTxrUser);

        ugrdKpiList.Clear();
        ugrdKpiList.DataSource = rDs;
        ugrdKpiList.DataBind();
    }
Example #13
0
    private void DoInitControl()
    {
        WebCommon.SetEstTermDropDownList(ddlEstTermInfo);
        this.IESTTERM_REF_ID = PageUtility.GetIntByValueDropDownList(ddlEstTermInfo);

        MicroBSC.BSC.Biz.Biz_Bsc_Kpi_Group bizBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Kpi_Group();
        DataTable dtGroup = bizBSC.GetIssueGroup(this.IESTTERM_REF_ID, 0);

        ddlGroup.DataValueField = "GROUP_CODE";
        ddlGroup.DataTextField  = "GROUP_NAME";
        ddlGroup.DataSource     = dtGroup;
        ddlGroup.DataBind();

        WebCommon.SetComDeptDropDownList(ddlComDept, true);
        PageUtility.FindByValueDropDownList(ddlComDept, BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID));
        MicroBSC.Biz.Common.Biz.Biz_Com_Code_Info objCode = new MicroBSC.Biz.Common.Biz.Biz_Com_Code_Info();
        objCode.GetKpiType(ddlKpiGroupRefID, "", true, 120);

        ugrdGroupList.Columns.FromKey("CHAMPION_NAME").Header.Caption   = GetText("LBL_00001", "챔피언");
        ugrdKpiList.Columns.FromKey("CHAMPION_EMP_NAME").Header.Caption = GetText("LBL_00001", "챔피언");
    }
Example #14
0
    private void DoInitControl()
    {
        this.IDEPT_ID = BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID);
        WebCommon.SetEstTermDropDownList(ddlEstTerm);

        WebCommon.SetComDeptDropDownList(ddlComDept, true, gUserInfo.Emp_Ref_ID);
        PageUtility.FindByValueDropDownList(ddlComDept, this.IDEPT_ID);

        Biz_Com_Code_Info objCom = new Biz_Com_Code_Info();

        objCom.GetKpiType(ddlKpiGroup, "", true, 120);

        DataSet dsCode = objCom.GetCodeListPerCategory("BS0014", "Y");

        ddlMboType.DataValueField = "ETC_CODE";
        ddlMboType.DataTextField  = "CODE_NAME";
        ddlMboType.DataSource     = dsCode;
        ddlMboType.DataBind();

        ddlMboType.Items.Insert(0, new ListItem(":: 전체 ::", ""));

        WebCommon.SetKpiCategoryTopActiveDropDownList(ddlKpiCategoryTop, true, "Y");
        WebCommon.SetKpiCategoryMidActiveDropDownList(ddlKpiCategoryMid, true, PageUtility.GetIntByValueDropDownList(ddlKpiCategoryTop), "Y");
        WebCommon.SetKpiCategoryLowActiveDropDownList(ddlKpiCategoryLow, true, PageUtility.GetIntByValueDropDownList(ddlKpiCategoryTop), PageUtility.GetIntByValueDropDownList(ddlKpiCategoryMid), "Y");

        if (User.IsInRole(ROLE_ADMIN))
        {
            txtKpiCode.ReadOnly = txtKpiName.ReadOnly = txtChampionName.ReadOnly = false;
            ddlComDept.Enabled  = ddlKpiGroup.Enabled = ddlMboType.Enabled = ddlKpiCategoryTop.Enabled = ddlKpiCategoryMid.Enabled = ddlKpiCategoryLow.Enabled = true;
            //iBtnDraft.Visible = ImgBtnPrint.Visible = false;
        }
        else
        {
            txtKpiCode.ReadOnly  = txtKpiName.ReadOnly = txtChampionName.ReadOnly = true;
            ddlComDept.Enabled   = ddlKpiGroup.Enabled = ddlMboType.Enabled = ddlKpiCategoryTop.Enabled = ddlKpiCategoryMid.Enabled = ddlKpiCategoryLow.Enabled = false;
            txtChampionName.Text = gUserInfo.Emp_Name;
            iBtnDraft.Visible    = ImgBtnPrint.Visible = true;
        }
        ImgBtnPrint.OnClientClick = "return OpenDraftPrint('" + Biz_Type.app_draft_select + "')";
    }
Example #15
0
    protected void ibnSave_Click(object sender, ImageClickEventArgs e)
    {
        UltraGridRow row;

        Biz_Datas data      = new Biz_Datas();
        DataTable dataTable = data.GetDataTableSchema();

        for (int i = 0; i < UltraWebGrid1.Rows.Count; i++)
        {
            row = UltraWebGrid1.Rows[i];
            TemplatedColumn ckb_col   = (TemplatedColumn)row.Band.Columns.FromKey("selchk");
            CheckBox        ckbSelect = (CheckBox)((CellItem)ckb_col.CellItems[row.BandIndex]).FindControl("cBox");

            TemplatedColumn txt_col  = (TemplatedColumn)row.Band.Columns.FromKey("CTRL_POINT");
            TextBox         txtPoint = (TextBox)((CellItem)txt_col.CellItems[row.BandIndex]).FindControl("txtPoint");

            if (ckbSelect.Checked)
            {
                if (txtPoint.Text.Trim().Equals(""))
                {
                    row.Cells.FromKey("POINT").Value = DBNull.Value;
                }
                else
                {
                    row.Cells.FromKey("POINT").Value = DataTypeUtility.GetToDouble(txtPoint.Text);
                }
            }
        }

        dataTable = UltraGridUtility.GetDataTableByCheckValue(UltraWebGrid1
                                                              , "cBox"
                                                              , "selchk"
                                                              , new string[] { "TGT_DEPT_ID"
                                                                               , "POINT" }
                                                              , dataTable);

        dataTable = DataTypeUtility.FilterSortDataTable(dataTable, "POINT IS NOT NULL");

        foreach (DataRow dataRow in dataTable.Rows)
        {
            dataRow["COMP_ID"]         = COMP_ID;
            dataRow["EST_ID"]          = EST_ID;
            dataRow["ESTTERM_REF_ID"]  = ESTTERM_REF_ID;
            dataRow["ESTTERM_SUB_ID"]  = ESTTERM_SUB_ID;
            dataRow["ESTTERM_STEP_ID"] = ESTTERM_STEP_ID;
            dataRow["EST_DEPT_ID"]     = BizUtility.GetDeptID(EMP_REF_ID);
            dataRow["EST_EMP_ID"]      = EMP_REF_ID;
            dataRow["TGT_EMP_ID"]      = -1;
            dataRow["POINT_ORG"]       = dataRow["POINT"];
            dataRow["DIRECTION_TYPE"]  = "SM";
            dataRow["POINT_ORG_DATE"]  = DateTime.Now;
            dataRow["POINT_DATE"]      = DateTime.Now;
            dataRow["STATUS_ID"]       = "E";
            dataRow["STATUS_DATE"]     = DateTime.Now;
            dataRow["DATE"]            = DateTime.Now;
            dataRow["USER"]            = EMP_REF_ID;
        }

        bool isOK = data.SaveData(dataTable, AllowUpdate);

        if (isOK)
        {
            ltrScript.Text = JSHelper.GetAlertOpenerControlCallBackScript("정상적으로 부서점수를 수기 등록하였습니다.", "lbnReload", true);
        }
        else
        {
            ltrScript.Text = JSHelper.GetAlertScript("처리 중 오류가 발생하였습니다.");
        }
    }
Example #16
0
    private void BindingData(int comp_id
                             , string est_id
                             , int estterm_ref_id
                             , int estterm_sub_id
                             , int estterm_step_id
                             , string graphType
                             , BiasType dataType)
    {
        Biz_EstInfos estInfo = new Biz_EstInfos(comp_id, est_id);

        if (!estInfo.IsExists(comp_id, est_id))
        {
            ltrScript.Text = JSHelper.GetAlertScript("선택된 회사의 평가정보가 없습니다.");
            return;
        }

        DropDownListCommom.BindEstTermSub(ddlEstTermSubID, comp_id, est_id, "");
        DropDownListCommom.BindEstTermStep(ddlEstTermStepID, comp_id, est_id);

        // 처음 실행될때
        if (estterm_sub_id.Equals(0))
        {
            ESTTERM_SUB_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermSubID);
        }

        // 만약 주기가 년간일 경우
        if (YEAR_YN.Equals("Y"))
        {
            ESTTERM_SUB_ID = BizUtility.GetEstTermSubIDByYearYN(COMP_ID);
        }

        // 만약 차수가 합산일 경우
        if (MERGE_YN.Equals("Y"))
        {
            ESTTERM_STEP_ID = BizUtility.GetEstTermStepIDByMergeYN(COMP_ID);
        }
        else
        {
            // 만약 모든 차수를 보여 줘야하는 경우
            if (ESTTERM_STEP_ALL_USE_YN.Equals("Y"))
            {
                ESTTERM_STEP_ID          = 0;
                ddlEstTermStepID.Visible = false;
            }
        }

        WebUtility.FindByValueDropDownList(ddlEstTermRefID, estterm_ref_id);

        if (ddlEstTermSubID.Visible)
        {
            WebUtility.FindByValueDropDownList(ddlEstTermSubID, estterm_sub_id);
        }

        if (ddlEstTermStepID.Visible)
        {
            WebUtility.FindByValueDropDownList(ddlEstTermStepID, estterm_step_id);
        }

        if (estInfo.Owner_Type.Equals("D"))
        {
            OwnerTypeMode = OwnerType.Dept;
        }
        else
        {
            OwnerTypeMode = OwnerType.Emp_User;
        }

        ScaleTypeMode  = estInfo.Scale_Type;
        WeightTypeMode = estInfo.Weight_Type;

        if (estInfo.Bias_YN.Equals("Y"))
        {
            BiasYN = YesNo.Yes;
        }
        else
        {
            BiasYN = YesNo.No;
        }

        if (estInfo.Grade_Confirm_YN.Equals("Y"))
        {
            GradeConfirmYN = YesNo.Yes;
        }
        else
        {
            GradeConfirmYN = YesNo.No;
        }

        Biz_Datas est_data = new Biz_Datas();

        int est_emp_id  = 0;;
        int tgt_dept_id = 0;
        int tgt_emp_id  = 0;

        if (OwnerTypeMode == OwnerType.Dept)
        {
            if (EST_TGT_TYPE.Equals("EST"))
            {
                est_emp_id  = EMP_REF_ID;
                tgt_dept_id = 0;
                tgt_emp_id  = 0;
            }
            else if (EST_TGT_TYPE.Equals("TGT"))
            {
                est_emp_id  = 0;
                tgt_dept_id = BizUtility.GetDeptID(EMP_REF_ID);
                tgt_emp_id  = -1;
            }
        }
        else if (OwnerTypeMode == OwnerType.Emp_User)
        {
            if (EST_TGT_TYPE.Equals("EST"))
            {
                est_emp_id  = EMP_REF_ID;
                tgt_dept_id = 0;
                tgt_emp_id  = 0;
            }
            else if (EST_TGT_TYPE.Equals("TGT"))
            {
                est_emp_id  = 0;
                tgt_dept_id = 0;
                tgt_emp_id  = EMP_REF_ID;
            }
        }

        if (OwnerTypeMode == OwnerType.Dept && COL_DEPT_TO_EMP_DATA.Equals("Y"))
        {
            OwnerTypeMode = OwnerType.Emp_User;
        }
        else if (OwnerTypeMode == OwnerType.Emp_User && COL_DEPT_TO_EMP_DATA.Equals("Y"))
        {
            OwnerTypeMode = OwnerType.Dept;
        }

        if (estInfo.Bias_Dept_Use_YN.Equals("Y"))
        {
            tdBiasDept.Visible = true;
        }
        else
        {
            tdBiasDept.Visible = false;
            hdfEstDept.Value   = "";
        }

        BindChart(COMP_ID
                  , EST_ID
                  , ESTTERM_REF_ID
                  , ESTTERM_SUB_ID
                  , ESTTERM_STEP_ID
                  , GraphType
                  , DataType
                  , DEPT_VALUES);
    }