Beispiel #1
0
    protected void uGridSub_InitializeRow(object sender, RowEventArgs e)
    {
        DataRowView drw = (DataRowView)e.Data;

        TemplatedColumn ckb_use_yn = (TemplatedColumn)e.Row.Band.Columns.FromKey("USE_YN");
        CheckBox        ckbUseYN   = (CheckBox)((CellItem)ckb_use_yn.CellItems[e.Row.BandIndex]).FindControl("cBox");

        TemplatedColumn weight_col = (TemplatedColumn)e.Row.Band.Columns.FromKey("WEIGHT");
        TextBox         txtWeight  = (TextBox)((CellItem)weight_col.CellItems[e.Row.BandIndex]).FindControl("txtWeight");

        TextBoxCommon.SetOnlyPercent(txtWeight);

        DataRow[] drArr = DT_ESTTERM_SUB_MAP.Select(string.Format(@"COMP_ID         = {0}                                        
                                                                    AND EST_ID          = '{1}'
                                                                    AND ESTTERM_SUB_ID  = {2}"
                                                                  , COMP_ID
                                                                  , TreeView1.SelectedValue
                                                                  , drw["ESTTERM_SUB_ID"]));

        if (drArr.Length > 0)
        {
            ckbUseYN.Checked = true;
            ckbUseYN.Attributes.Add("onclick", string.Format("enableCheckBox('{0}', '', '{1}')", ckbUseYN.ClientID, txtWeight.ClientID));

            txtWeight.Text = drArr[0]["WEIGHT"].ToString();

            //e.Row.Style.BackColor       = Color.FromName("#FFFFFF");
        }
        else
        {
            ckbUseYN.Checked = false;
            txtWeight.Text   = "";
            //e.Row.Style.BackColor       = Color.FromName("#EBEBEB");
        }
    }
Beispiel #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        COMP_ID        = WebUtility.GetRequestByInt("COMP_ID");
        EST_ID         = WebUtility.GetRequest("EST_ID");
        ESTTERM_REF_ID = WebUtility.GetRequestByInt("ESTTERM_REF_ID");
        WEIGHT_TYPE    = WebUtility.GetRequest("WEIGHT_TYPE");

        if (!Page.IsPostBack)
        {
            EST_JOB_ID = "JOB_15";

            View(COMP_ID);

            TextBoxCommon.SetOnlyPercent(txtWeightAll);
            TextBoxCommon.SetOnlyPercent(txtWeightPos);

            ibnConfirm1.Attributes.Add("onclick", "return confirm('설정한 평가방법을 확정하시겠습니까?')");
            ibnConfirmCancel1.Attributes.Add("onclick", "return confirm('확정을 취소하시겠습니까?')");
            ibnConfirm2.Attributes.Add("onclick", "return confirm('설정한 평가방법을 확정하시겠습니까?')");
            ibnConfirmCancel2.Attributes.Add("onclick", "return confirm('확정을 취소하시겠습니까?')");
            ibnSavePosAll.Attributes.Add("onclick", "return confirm('현재 설정을 모든 부서에 일괄 적용하시겠습니까?')");
            ibnSaveAll2.Attributes.Add("onclick", "return confirm('현재 설정을 모든 부서에 일괄 적용하시겠습니까?')");
            ibnRemove.Attributes.Add("onclick", "return confirm('삭제하시겠습니까?')");
            ibnSave2.Attributes.Add("onclick", "return confirm('저장하시겠습니까?')");
            ibnSave3.Attributes.Add("onclick", "return confirm('저장하시겠습니까?')");
            ibnInit2.Attributes.Add("onclick", "return confirm('선택된 부서를 초기화 하시겠습니까?')");
        }

        Biz_Positions positions = new Biz_Positions();

        dtPositionAll = positions.GetPositionAll();

        ltrScript.Text = "";
    }
Beispiel #3
0
    protected void UltraWebGrid1_InitializeRow(object sender, RowEventArgs e)
    {
        DataRowView drw = (DataRowView)e.Data;

        TemplatedColumn weight_col = (TemplatedColumn)e.Row.Band.Columns.FromKey("TXT_WEIGHT");
        TextBox         txtWeight  = (TextBox)((CellItem)weight_col.CellItems[e.Row.BandIndex]).FindControl("txtWeightDept");

        TextBoxCommon.SetOnlyPercent(txtWeight);

        DataRow[] drArr = _dtEstDetail.Select(string.Format(@"ESTTERM_REF_ID  = {0}                                        
                                                            AND DEPT_REF_ID     = {1}
                                                            AND EST_ID          = '{2}'"
                                                            , ESTTERM_REF_ID
                                                            , drw["DEPT_REF_ID"]
                                                            , EST_ID));

        if (drArr.Length > 0)
        {
            txtWeight.Text = drArr[0]["WEIGHT"].ToString();

            if (drArr[0]["WEIGHT"].ToString().Length == 0)
            {
                e.Row.Cells.FromKey("STATUS").Value = "<img src='../images/icon/est_i03.gif'>";
            }
            else
            {
                e.Row.Cells.FromKey("STATUS").Value = "<img src='../images/icon/est_i02.gif'>";
            }
        }
        else
        {
            e.Row.Cells.FromKey("STATUS").Value = "<img src='../images/icon/est_i03.gif'>";
        }
    }
Beispiel #4
0
    protected void Page_Load(object sender, System.EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            DropDownListCommom.BindComp(ddlCompID, lblCompTitle);
            DropDownListCommom.BindDefaultValue(ddlQObjID, "----------", "");
            DropDownListCommom.BindDefaultValue(ddlQSbjID, "----------", "");
            TextBoxCommon.SetOnlyInteger(txtNum);
            TextBoxCommon.SetOnlyPercent(txtPoint);

            ibnSearch.Attributes.Add("onclick", "return Search();");
            ibnSearchQObjID.Attributes.Add("onclick", "return SearchQObjID();");
            btnNew.Attributes.Add("onclick", "return chkOK();");
            rblMode.Attributes.Add("onclick", "chkRBtn();");
            btnDelete.Attributes.Add("onclick", "return chkDelete();");
            ddlQObjID.Attributes.Add("onchange", "GetDataSet('GetDataSet.aspx','ddlQSbjID','Q_SBJ_NAME','Q_SBJ_ID', 'Survey', 'B', this.value );");
            txtQItmName.Attributes["onkeypress"] = "if (event.keyCode == 13 && chkOK()) {" +
                                                   Page.ClientScript.GetPostBackEventReference(ibnSearch, "") + ";return false;}";
            txtNum.Attributes["onkeypress"] = "if (event.keyCode == 13 && chkOK()) {" +
                                              Page.ClientScript.GetPostBackEventReference(ibnSearch, "") + ";return false;}";
            txtPoint.Attributes["onkeypress"] = "if (event.keyCode == 13 && chkOK()) {" +
                                                Page.ClientScript.GetPostBackEventReference(ibnSearch, "") + ";return false;}";
        }

        COMP_ID = WebUtility.GetIntByValueDropDownList(ddlCompID);

        ltrScript.Text = "";
    }
Beispiel #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        EST_ID         = "";
        ESTTERM_SUB_ID = 0;

        if (!Page.IsPostBack)
        {
            DropDownListCommom.BindComp(ddlCompID, lblCompTitle);
            DropDownListCommom.BindEstTerm(ddlEstTermRefID);
            DropDownListCommom.BindEstScopeUnit(ddlScopeUnitID);
            RadioButtonListCommom.BindPointGradeType(rblPointGradeType);
            TextBoxCommon.SetOnlyPercent(txtScope);

            BindCtrlInfo(WebUtility.GetIntByValueDropDownList(ddlCompID)
                         , WebUtility.GetIntByValueDropDownList(ddlEstTermRefID)
                         , WebUtility.GetIntByValueDropDownList(ddlEstTermSubID)
                         , WebUtility.GetByValueRadioButtonList(rblPointGradeType));

            ibnSave.Attributes.Add("onclick", "return ValidCheck();");

            SetEstJobID();

            ButtonStatusInit();
        }

        COMP_ID          = WebUtility.GetIntByValueDropDownList(ddlCompID);
        ESTTERM_REF_ID   = WebUtility.GetIntByValueDropDownList(ddlEstTermRefID);
        CTRL_ID          = hdfCtlID.Value;
        POINT_GRADE_TYPE = WebUtility.GetByValueRadioButtonList(rblPointGradeType);

        ltrScript.Text = "";
    }
Beispiel #6
0
    protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e)
    {
        DataRowView drw = (DataRowView)e.Data;

        TemplatedColumn ckb_col   = (TemplatedColumn)e.Row.Band.Columns.FromKey("selchk");
        CheckBox        ckbSelect = (CheckBox)((CellItem)ckb_col.CellItems[e.Row.BandIndex]).FindControl("cBox");

        TemplatedColumn lbl_col  = (TemplatedColumn)e.Row.Band.Columns.FromKey("CTRL_POINT");
        Label           lblPoint = (Label)((CellItem)lbl_col.CellItems[e.Row.BandIndex]).FindControl("lblPoint");

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

        TextBoxCommon.SetOnlyPercent(txtPoint);

        DataRow[] drArr = DT_EST_DATA.Select(string.Format(@"TGT_DEPT_ID     = {0}"
                                                           , drw["DEPT_REF_ID"]));

        if (drArr.Length > 0)
        {
            if (AllowUpdate)
            {
                ckbSelect.Visible = true;
                lblPoint.Visible  = false;
                txtPoint.Visible  = true;

                ckbSelect.Attributes.Add("onclick", string.Format("enableCheckBox('{0}', '{1}');", ckbSelect.ClientID, txtPoint.ClientID));
                ckbSelect.Checked = false;
                txtPoint.Enabled  = false;
                txtPoint.Text     = DataTypeUtility.GetToDouble(drArr[0]["POINT"]).ToString();

                e.Row.Cells.FromKey("TGT_DEPT_ID").Value = drw["DEPT_REF_ID"];
            }
            else
            {
                ckbSelect.Visible = false;
                lblPoint.Visible  = true;
                txtPoint.Visible  = false;

                lblPoint.Text = DataTypeUtility.GetToDouble(drArr[0]["POINT"]).ToString();
            }

            e.Row.Style.BackColor = Color.FromName("#DBDBDB");
        }
        else
        {
            ckbSelect.Visible = true;
            lblPoint.Visible  = false;
            txtPoint.Visible  = true;

            ckbSelect.Attributes.Add("onclick", string.Format("enableCheckBox('{0}', '{1}');", ckbSelect.ClientID, txtPoint.ClientID));
            ckbSelect.Checked = false;
            txtPoint.Enabled  = false;

            e.Row.Cells.FromKey("TGT_DEPT_ID").Value = drw["DEPT_REF_ID"];
        }
    }
Beispiel #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DropDownListCommom.BindComp(ddlCompID, lblCompTitle);

            TextBoxCommon.SetOnlyInteger(txtEstTermStepID);
            TextBoxCommon.SetOnlyPercent(txtWeight);
            TextBoxCommon.SetOnlyInteger(txtSortOrder);

            GridBinding(WebUtility.GetIntByValueDropDownList(ddlCompID));
            ButtonStatusInit();
        }

        COMP_ID = WebUtility.GetIntByValueDropDownList(ddlCompID);

        ltrScript.Text = "";
    }
Beispiel #8
0
    private void BindingItem(DataListItemEventArgs e)
    {
        DataRowView dr = (DataRowView)e.Item.DataItem;

        string q_sbj_id     = DataTypeUtility.GetValue(dr["Q_SBJ_ID"]);
        string q_sbj_name   = DataTypeUtility.GetValue(dr["Q_SBJ_NAME"]);
        string q_sbj_define = DataTypeUtility.GetValue(dr["Q_SBJ_DEFINE"]);
        double weight       = DataTypeUtility.GetToDouble(dr["WEIGHT"]);

        quizWeight.Columns.Add(q_sbj_id, typeof(double));
        if (quizWeight.Rows.Count == 0)
        {
            quizWeight.Rows.Add(weight / 100);
        }
        else
        {
            quizWeight.Rows[0][q_sbj_id] = weight / 100;
        }


        Literal         ltrSbjName   = e.Item.FindControl("ltrLevelSbjName") as Literal;
        Literal         ltrSbjDefine = e.Item.FindControl("ltrLevelSbjDefine") as Literal;
        RadioButtonList rBtnList     = e.Item.FindControl("rBtnList") as RadioButtonList;
        TextBox         txtValue     = e.Item.FindControl("txtLevelValue") as TextBox;
        HiddenField     hdfSubItmYN  = e.Item.FindControl("tmpSubItmYN") as HiddenField;
        Literal         ltrPointData = e.Item.FindControl("ltrLevelPointData") as Literal;
        DataList        dtList       = e.Item.FindControl("DataList3") as DataList;
        HtmlTableCell   tdHeader     = e.Item.FindControl("tdHeader") as HtmlTableCell;
        HtmlTableCell   tdContent    = null;



        if (dtList == null)
        {
            tdContent = e.Item.FindControl("tdContent") as HtmlTableCell;
        }
        else
        {
            tdContent = dtList.FindControl("tdContent") as HtmlTableCell;
        }

        TextBoxCommon.SetOnlyPercent(txtValue);

        ltrSbjName.Text   = q_sbj_name;
        ltrSbjDefine.Text = q_sbj_define;

        Biz_QuestionItems questionItems = new Biz_QuestionItems();
        DataSet           ds            = questionItems.GetQuestionItem("", q_sbj_id, Q_OBJ_ID);

        SUBJECT_ITEM_YN   = ds.Tables[0].Rows[0]["SUBJECT_ITEM_YN"].ToString();
        hdfSubItmYN.Value = SUBJECT_ITEM_YN;

        if (ds.Tables[0].Rows.Count == 0)
        {
            rBtnList.Visible = false;
            txtValue.Visible = false;
            txtValue.Width   = Unit.Percentage(100);
        }
        else if (SUBJECT_ITEM_YN == "1")
        {
            rBtnList.Visible = false;
            txtValue.Visible = true;
            txtValue.Width   = Unit.Percentage(100);

            Biz_Prj_QuestionData questionDatas = new Biz_Prj_QuestionData(COMP_ID
                                                                          , EST_ID
                                                                          , ESTTERM_REF_ID
                                                                          , ESTTERM_SUB_ID
                                                                          , ESTTERM_STEP_ID
                                                                          , EST_DEPT_ID
                                                                          , EST_EMP_ID
                                                                          , PRJ_REF_ID
                                                                          , q_sbj_id);

            txtValueText  = questionDatas.Text_Value;
            txtValue.Text = txtValueText;
        }
        else
        {
            rBtnList.Visible = true;
            txtValue.Visible = false;

            // 만약 질의항목에 설명을 표시할 경우
            if (_q_item_desc_use_yn.Equals("Y"))
            {
                rBtnList.RepeatLayout  = RepeatLayout.Table;
                rBtnList.DataTextField = "Q_ITEM_DESC";
                tdHeader.Style.Add("width", "260px");

                if (tdContent != null)
                {
                    tdContent.Style.Add("width", "262px");
                }
            }

            rBtnList.DataSource = ds;
            rBtnList.DataBind();

            if (READ_ONLY_YN.Equals("N"))
            {
                //Biz_Prj_QuestionData questionDatas = new Biz_Prj_QuestionData(COMP_ID
                //                                                            , EST_ID
                //                                                            , ESTTERM_REF_ID
                //                                                            , ESTTERM_SUB_ID
                //                                                            , ESTTERM_STEP_ID
                //                                                            , EST_DEPT_ID
                //                                                            , EST_EMP_ID
                //                                                            , PRJ_REF_ID
                //                                                            , q_sbj_id);
                //// 데이타 바인딩
                //WebUtility.FindByValueRadioButtonList(rBtnList, questionDatas.Q_Itm_ID);

                Biz_Prj_QuestionData questionDatas = new Biz_Prj_QuestionData(COMP_ID
                                                                              , EST_ID
                                                                              , ESTTERM_REF_ID
                                                                              , ESTTERM_SUB_ID
                                                                              , ESTTERM_STEP_ID
                                                                              , EST_DEPT_ID
                                                                              , EST_EMP_ID
                                                                              , TGT_EMP_ID
                                                                              , PRJ_REF_ID
                                                                              , q_sbj_id);
                // 데이타 바인딩
                WebUtility.FindByValueRadioButtonList(rBtnList, questionDatas.Q_Itm_ID);

                groupNumber += questionDatas.Point;

                if (questionDatas.Point.Equals(0))
                {
                    noneSelectCount = noneSelectCount + 1;
                }


                if (questionDatas.Point > 0)
                {
                    ltrPointData.Text = "<font color=#BF0000>" + DataTypeUtility.GetToInt32_String(questionDatas.Point, "##.#0") + "</font>점";
                    //TOTALPOINT += questionDatas.Point * weight;
                }

                //----------------- 라디오버튼 유효성 검사 시작 -------------------

                string clientIDs = "";

                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    if (i != 0)
                    {
                        clientIDs += ";";
                    }

                    clientIDs += rBtnList.ClientID + "_" + i.ToString();
                }

                VALID_SCRIPT += string.Format("if(ValidQuestion('{0}', '{1}') == false) return false;", dr["Q_SBJ_NAME"], clientIDs);

                //----------------- 라디오버튼 유효성 검사 끝 -------------------
            }
        }
    }
Beispiel #9
0
    private void ViewOne(int comp_id, string est_id)
    {
        Biz_EstInfos estInfo = new Biz_EstInfos(comp_id, est_id);

        txtEstID.Text   = estInfo.Est_ID;
        txtEstName.Text = estInfo.Est_Name;

        if (estInfo.Up_Est_ID != DBNull.Value)
        {
            Biz_EstInfos upEstInfo = new Biz_EstInfos(comp_id, estInfo.Up_Est_ID.ToString());
            txtUpEstID.Text  = upEstInfo.Est_Name;
            hdfUpEstID.Value = estInfo.Up_Est_ID.ToString();
        }

        txtHeaderColor.Text = estInfo.Header_Color;

        WebUtility.FindByValueRadioButtonList(rblFixedWeightUseYN, estInfo.Fixed_Weight_Use_YN);
        txtFixedWeight.Text = estInfo.Fixed_Weight.ToString();
        TextBoxCommon.SetOnlyPercent(txtFixedWeight);

        rblFixedWeightUseYN_SelectedIndexChanged(rblFixedWeightUseYN, null);

        WebUtility.FindByValueRadioButtonList(rblGradeConfirmYN, estInfo.Grade_Confirm_YN);
        WebUtility.FindByValueRadioButtonList(rblBiasYN, estInfo.Bias_YN);
        WebUtility.FindByValueRadioButtonList(rblBiasDeptUseID, estInfo.Bias_Dept_Use_YN);

        if (estInfo.Tgt_Opinion_YN.Equals("Y") && estInfo.FeedBack_YN.Equals("N"))
        {
            WebUtility.FindByValueRadioButtonList(rblTgtSendType, "OPN");
        }
        else if (estInfo.Tgt_Opinion_YN.Equals("N") && estInfo.FeedBack_YN.Equals("Y"))
        {
            WebUtility.FindByValueRadioButtonList(rblTgtSendType, "FBK");
        }
        else
        {
            WebUtility.FindByValueRadioButtonList(rblTgtSendType, "N");
        }

        WebUtility.FindByValueDropDownList(ddlPointCtrlStep, estInfo.Point_Ctrl_Step);
        WebUtility.FindByValueDropDownList(ddlGradeCtrlStep, estInfo.Grade_Ctrl_Step);
        WebUtility.FindByValueRadioButtonList(rblOwnerType, estInfo.Owner_Type);
        WebUtility.FindByValueRadioButtonList(rblEstStyle, estInfo.Est_Style_ID);

        if (estInfo.Link_Est_ID != "")
        {
            Biz_EstInfos lnkEstInfo = new Biz_EstInfos(comp_id, estInfo.Link_Est_ID);
            txtLinkEstID.Text  = lnkEstInfo.Est_Name;
            hdfLinkEstID.Value = estInfo.Link_Est_ID;
        }

        WebUtility.FindByValueRadioButtonList(rblWeightType, estInfo.Weight_Type);
        WebUtility.FindByValueRadioButtonList(rblScaleType, estInfo.Scale_Type);
        WebUtility.FindByValueDropDownList(ddlStatusStyleID, estInfo.Status_Style_ID);
        WebUtility.FindByValueDropDownList(ddlQuestionStyleID, estInfo.Q_Style_ID);
        WebUtility.FindByValueDropDownList(ddlBiasTypeID, estInfo.Bias_Type_ID);
        WebUtility.FindByValueRadioButtonList(rblQItemDescUseYN, estInfo.Q_Item_Desc_Use_YN);
        WebUtility.FindByValueRadioButtonList(rblQTgtPosBizUseYN, estInfo.Q_Tgt_Pos_Biz_Use_YN);
        WebUtility.FindByValueRadioButtonList(rblAllStepVisibleYN, estInfo.All_Step_Visible_YN);
        WebUtility.FindByValueRadioButtonList(rblEmpComDeptYN, estInfo.Emp_Com_Dept_YN);
        WebUtility.FindByValueRadioButtonList(rblUseYN, estInfo.Use_YN);
        WebUtility.FindByValueRadioButtonList(rblVisiblePastPointYN, estInfo.Visible_Past_Point_YN.Trim());
        WebUtility.FindByValueRadioButtonList(rblEstQTTMBOYN, estInfo.Est_Qtt_Mbo_YN.Trim());
        WebUtility.FindByValueRadioButtonList(rblMboScoreEstimateYN, estInfo.Mbo_Score_Estimate_YN.Trim());
        WebUtility.FindByValueRadioButtonList(rblDashBoardTYPE, estInfo.DashBoard_TYPE.Trim());
        if (estInfo.DashBoard_TYPE.Trim() == "" || estInfo.DashBoard_TYPE.Trim() == "N")
        {
            rblDashBoardTYPE.Items.FindByValue("N").Selected = true;
            ddlDashBoardTYPE.Style.Add("display", "none");
        }
        else
        {
            rblDashBoardTYPE.Items.FindByValue("Y").Selected = true;
            ddlDashBoardTYPE.Style.Add("display", "block");
            WebUtility.FindByValueDropDownList(ddlDashBoardTYPE, estInfo.DashBoard_TYPE.Trim());
        }

        //이전차수의 질의평가지 보이기 여부
        WebUtility.FindByValueDropDownList(ddlPreviousStempYN, estInfo.Question_Previous_Step_YN.Trim());
        if (estInfo.Q_Style_ID.Trim() == "" || estInfo.Q_Style_ID.Trim() == "BLK")
        {
            divQPSYN.Style.Add("display", "none");
        }
        else
        {
            divQPSYN.Style.Add("display", "true");
        }

        // 평가주기 바인딩
        BindCblEstTermSub(comp_id, est_id);

        // 평가차수 바인딩
        BindCblEstTermStep(comp_id, est_id);

        BindEstJob(comp_id, est_id);

        rblEstStyle_SelectedIndexChanged(null, null);
        rblBiasYN_SelectedIndexChanged(null, null);

        MicroBSC.Integration.EST.Biz.Biz_Est_Outer_Data_Proc_Info bizOuterDataProcInfo = new MicroBSC.Integration.EST.Biz.Biz_Est_Outer_Data_Proc_Info();
        DataTable dtOuterDataProcInfo = bizOuterDataProcInfo.GetOuterDataProcInfo(comp_id
                                                                                  , est_id).Tables[0];

        if (dtOuterDataProcInfo.Rows.Count > 0)
        {
            txtQueryString.Text = DataTypeUtility.GetValue(dtOuterDataProcInfo.Rows[0]["QUERY_STRING"]);
        }
    }
Beispiel #10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        CTRL_ID          = WebUtility.GetRequest("CTRL_ID");
        COMP_ID          = WebUtility.GetRequestByInt("COMP_ID");
        EST_ID           = WebUtility.GetRequest("EST_ID");
        ESTTERM_REF_ID   = WebUtility.GetRequestByInt("ESTTERM_REF_ID");
        ESTTERM_SUB_ID   = WebUtility.GetRequestByInt("ESTTERM_SUB_ID");
        POINT_GRADE_TYPE = WebUtility.GetRequest("POINT_GRADE_TYPE");
        EST_DEPT_ID      = WebUtility.GetRequestByInt("EST_DEPT_ID");
        EST_EMP_ID       = WebUtility.GetRequestByInt("EST_EMP_ID");
        CTRL_EMP_ID      = WebUtility.GetRequestByInt("CTRL_EMP_ID");
        TGT_DEPT_ID      = WebUtility.GetRequestByInt("TGT_DEPT_ID");
        TGT_EMP_ID       = WebUtility.GetRequestByInt("TGT_EMP_ID");

        if (!Page.IsPostBack)
        {
            if (CTRL_EMP_ID != EMP_REF_ID)
            {
                Response.Write(JSHelper.GetAlertScript("조정자와 접근한 조정 페이지의 권한자와 같지 않습니다.", true));
            }

            // 현재 평가의 주체가 부서/ 사원인지 구분
            if (TGT_EMP_ID >= -1)
            {
                trTgtDeptName.Visible = true;
                trTgtEmpName.Visible  = false;

                Biz_DeptInfos deptInfo = new Biz_DeptInfos(TGT_DEPT_ID);
                lblTgtDeptName.Text = deptInfo.Dept_Name;
            }
            else
            {
                trTgtDeptName.Visible = false;
                trTgtEmpName.Visible  = true;

                Biz_DeptInfos deptInfo = new Biz_DeptInfos(TGT_DEPT_ID);
                Biz_EmpInfos  empInfo  = new Biz_EmpInfos(TGT_EMP_ID);
                lblTgtEmpName.Text = string.Format("{0} / {1}", deptInfo.Dept_Name, empInfo.Emp_Name);
            }

            Biz_Datas data = new Biz_Datas(COMP_ID
                                           , EST_ID
                                           , ESTTERM_REF_ID
                                           , ESTTERM_SUB_ID
                                           , ESTTERM_STEP_ID
                                           , EST_DEPT_ID
                                           , EST_EMP_ID
                                           , TGT_DEPT_ID
                                           , TGT_EMP_ID);

            Biz_EstInfos  estInfo  = new Biz_EstInfos(COMP_ID, EST_ID);
            Biz_CtrlInfos ctrlInfo = new Biz_CtrlInfos(CTRL_ID);

            if (ctrlInfo.Ctrl_Emp_ID == CTRL_EMP_ID)
            {
                ibnSave.Visible = true;
            }
            else
            {
                BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnSave);

                ibnSave.Visible = false;
            }

            if (ctrlInfo.Ctrl_Emp_ID == CTRL_EMP_ID &&
                ctrlInfo.Confirm_Emp_YN == "Y")
            {
                ibnCtrlConfirm.Visible = true;
            }
            else
            {
                BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnCtrlConfirm);

                ibnCtrlConfirm.Visible = false;
            }

            if (POINT_GRADE_TYPE.Equals("PNT"))
            {
                TextBoxCommon.SetOnlyPercent(txtCtrlPoint);

                imgTitle.Src        = "../images/title/popup_t73.gif";
                trCurPoint.Visible  = true;
                trCurGrade.Visible  = false;
                trCtrlPoint.Visible = true;
                trCtrlGrade.Visible = false;
                UltraWebGrid1.Bands[0].Columns.FromKey("CTRL_GRADE_NAME").Hidden = true;

                lblPoint.Text     = data.Point.ToString("#,##0.00");
                lblCtrlMsg.Text   = string.Format("- {0}는 {1}차까지 점수조정 가능합니다.", estInfo.Est_Name, estInfo.Point_Ctrl_Step);
                hdfCtrlStep.Value = estInfo.Point_Ctrl_Step.ToString();
            }
            else if (POINT_GRADE_TYPE.Equals("GRD"))
            {
                DropDownListCommom.BindGrade(ddlCtrlGradeID, COMP_ID);
                WebUtility.FindByValueDropDownList(ddlCtrlGradeID, data.Grade_ID);

                imgTitle.Src        = "../images/title/popup_t72.gif";
                trCurPoint.Visible  = false;
                trCurGrade.Visible  = true;
                trCtrlPoint.Visible = false;
                trCtrlGrade.Visible = true;
                UltraWebGrid1.Bands[0].Columns.FromKey("CTRL_POINT").Hidden = true;

                lblGrade.Text     = new Biz_Grades(COMP_ID, data.Grade_ID).Grade_Name;
                lblCtrlMsg.Text   = string.Format("- {0}는 {1}차까지 등급조정 가능합니다.", estInfo.Est_Name, estInfo.Grade_Ctrl_Step);
                hdfCtrlStep.Value = estInfo.Grade_Ctrl_Step.ToString();
            }
            else
            {
                ltrScript.Text = JSHelper.GetAlertScript("조정 타입이 없습니다.", true);
            }

            GridBinding();
        }
    }