Beispiel #1
0
    private void NotPostBackSetting()
    {
        // 골타겟 관련 입력 버튼 (농협에서 추가)
        if (PageUtility.GetAppConfig("GOALTONG_YN").Equals("Y"))
        {
            rdoGoalTong.Visible = true;
        }

        iBtnPrint.Style.Add("vertical-align", "middle");
        ugrdKpiStatusTab.SelectedTab = 0;

        WebCommon.SetSumTypeDropDownList(ddlSumType, false);
        WebCommon.SetScoreCardLevelDropDownList(ddlMapLevel, false);

        if (this.IEstTermRefID > 0 && this.IYmd != "")
        {
            WebCommon.SetEstTermDropDownList(ddlEstTermInfo);
            PageUtility.FindByValueDropDownList(ddlEstTermInfo, this.IEstTermRefID);

            WebCommon.SetTermMonthDropDownList(ddlMonthInfo, PageUtility.GetIntByValueDropDownList(ddlEstTermInfo));
            PageUtility.FindByValueDropDownList(ddlMonthInfo, this.IYmd);
        }
        else
        {
            WebCommon.SetEstTermDropDownList(ddlEstTermInfo);
            WebCommon.SetTermMonthDropDownList(ddlMonthInfo, PageUtility.GetIntByValueDropDownList(ddlEstTermInfo));


            IEstTermRefID = DataTypeUtility.GetToInt32(PageUtility.GetByValueDropDownList(ddlEstTermInfo));
            IYmd          = PageUtility.GetByValueDropDownList(ddlMonthInfo);


            MicroBSC.Integration.COM.Biz.Biz_Rel_Dept_Emp bizRelDeptEmp = new MicroBSC.Integration.COM.Biz.Biz_Rel_Dept_Emp();
            IEstDeptID = DataTypeUtility.GetToInt32(bizRelDeptEmp.Get_Dept_ID_of_Emp_ID(gUserInfo.Emp_Ref_ID.ToString()));
        }


        WebCommon.FillEstMappingTree_NW(trvEstDept, this.IEstTermRefID, this.IEstDeptID, TreeNodeSelectAction.Select);
        //WebCommon.FillEstTree(trvEstDept
        //                    , PageUtility.GetIntByValueDropDownList(ddlEstTermInfo)
        //                    , gUserInfo.Emp_Ref_ID
        //                    , this.IEstDeptID);

        WebCommon.SetExternalScoreCheckBox(chkApplyExtScore, PageUtility.GetIntByValueDropDownList(ddlEstTermInfo));
        chkApplyExtScore.Checked = this.IExtKpiYN;


        this.SetKpiSignalMaster();

        if (trvEstDept.Nodes.Count > 0 && this.IEstDeptID > 0 && this.IEstTermRefID > 0)
        {
            this.SetParameter();

            if (!this.HaveReadRight())
            {
                ltrScript.Text = JSHelper.GetAlertScript("조회할 권한이 없습니다.", false);
                return;
            }

            this.SetDeptMapInfo();
            this.SetDeptScoreCard();
        }
        else if (trvEstDept.Nodes.Count > 0 && this.IEstDeptID < 1 && this.IEstTermRefID < 1)
        {
            trvEstDept.Nodes[0].Select();
            this.IEstDeptID = (trvEstDept.SelectedNode == null) ? 0 : int.Parse(trvEstDept.SelectedNode.Value);
            this.SetParameter();

            if (!this.HaveReadRight())
            {
                return;
            }

            this.SetDeptMapInfo();
            this.SetDeptScoreCard();
        }
        else
        {
            lblDeptName.Text   = "";
            lblTotalScore.Text = "";
            lblDeptVision.Text = "";
            ugrdScoreCard.Clear();
        }
    }