Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ESTTERM_REF_ID = WebUtility.GetRequestByInt("ESTTERM_REF_ID");
        YMD            = WebUtility.GetRequest("YMD");
        M_ID           = WebUtility.GetRequestByInt("M_ID");
        S_ID           = WebUtility.GetRequestByInt("S_ID");
        AREA_ID        = WebUtility.GetRequestByInt("AREA_ID");

        //ESTTERM_REF_ID  = 1000;
        //YMD             = "201001";
        //M_ID            = 1;
        //S_ID            = 1;

        if (!Page.IsPostBack)
        {
            BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnSave);

            if (!ibnSave.Visible)
            {
                txtTextData.ReadOnly = true;
                tr01.Height          = "10px";
                //txtTextData.BorderWidth = Unit.Pixel(0);
            }

            SetData();
        }

        ltrScript.Text = "";
    }
Пример #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        COMP_ID         = GetRequestByInt("COMP_ID");
        EST_ID          = GetRequest("EST_ID");
        ESTTERM_REF_ID  = GetRequestByInt("ESTTERM_REF_ID");
        ESTTERM_SUB_ID  = GetRequestByInt("ESTTERM_SUB_ID");
        ESTTERM_STEP_ID = GetRequestByInt("ESTTERM_STEP_ID");
        EST_JOB_ID      = "JOB_29";
        YEAR_YN         = GetRequest("YEAR_YN");
        MERGE_YN        = GetRequest("MERGE_YN");

        if (!Page.IsPostBack)
        {
            bool isOK = CheckValidation(ltrScript);

            BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnAllowUpdate);
            BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnConfirmAssingDeptPoint);

            if (!isOK)
            {
                return;
            }

            BindingGrid(COMP_ID, EST_ID, ESTTERM_REF_ID, ESTTERM_SUB_ID);

            ibnAllowUpdate.Attributes.Add("onclick", "return confirm('기존 부서점수를 수정할 수 있도록 페이지를 조정하시겠습니까?');");
            ibnSave.Attributes.Add("onclick", "return confirm('부서점수를 수기로 등록하시겠습니까?');");
            ibnConfirmAssingDeptPoint.Attributes.Add("onclick", "return confirm('부서점수를 수기 등록 작업을 확정하시겠습니까?');");
        }

        ltrScript.Text = "";
    }
Пример #3
0
    protected void ibnSearch_Click(object sender, ImageClickEventArgs e)
    {
        BindingData(COMP_ID
                    , EST_ID
                    , ESTTERM_REF_ID
                    , ESTTERM_SUB_ID
                    , ESTTERM_STEP_ID
                    , GraphType
                    , DataType);

        BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, tdImgBox.Controls);
        BizUtility.SetButtonVisibleByEstJobID(EST_JOB_IDS
                                              , tdImgBox.Controls
                                              , COMP_ID
                                              , EST_ID
                                              , ESTTERM_REF_ID
                                              , ESTTERM_SUB_ID
                                              , ESTTERM_STEP_ID);
    }
Пример #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ESTTERM_REF_ID = WebUtility.GetRequestByInt("ESTTERM_REF_ID");
        YMD            = WebUtility.GetRequest("YMD");
        M_ID           = WebUtility.GetRequestByInt("M_ID");
        S_ID           = WebUtility.GetRequestByInt("S_ID");
        AREA_ID        = WebUtility.GetRequestByInt("AREA_ID");

        //ESTTERM_REF_ID  = 1000;
        //YMD             = "201001";
        //M_ID            = 1;
        //S_ID            = 1;

        if (!Page.IsPostBack)
        {
            BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnEdit);

            //ibnSave.Visible = true;

            if (!ibnSave.Visible && !ibnCancel.Visible)
            {
                txtContent.Toolbar.Enabled = false;
                txtContent.ReadOnly        = true;
                txtContent.TabStripDisplay = false;
            }

            if (ibnEdit.Visible)
            {
                tr01.Height = "35px";
            }
            else
            {
                tr01.Height = "10px";
            }

            SetData();
        }

        ltrScript.Text = "";
    }
Пример #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        COMP_ID         = GetRequestByInt("COMP_ID");
        EST_ID          = GetRequest("EST_ID");
        ESTTERM_REF_ID  = GetRequestByInt("ESTTERM_REF_ID");
        ESTTERM_SUB_ID  = GetRequestByInt("ESTTERM_SUB_ID");
        ESTTERM_STEP_ID = GetRequestByInt("ESTTERM_STEP_ID");
        EST_JOB_ID      = "JOB_32";
        YEAR_YN         = GetRequest("YEAR_YN");
        MERGE_YN        = GetRequest("MERGE_YN");

        if (!Page.IsPostBack)
        {
            bool isOK = CheckValidation(ltrScript);

            BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnSearchAll);
            BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnConfirmAssingPosBiz);

            if (!isOK)
            {
                return;
            }

            EST_EMP_ID = EMP_REF_ID;

            BindingPosBizByTgt();
            BindingTgtEmp(EST_EMP_ID);

            ibnSave.Attributes.Add("onclick", "return confirm('피평가자의 직무를 저장하시겠습니까?');");
            ibnConfirmAssingPosBiz.Attributes.Add("onclick", "return confirm('피평가자의 직무를 확정하시겠습니까?');");
        }

        TGT_EMP_ID     = DataTypeUtility.GetToInt32(hdfTgtEmpID.Value);
        TGT_POS_KND_ID = hdfTgtPosKndID.Value;

        ltrScript.Text = "";
    }
Пример #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        EST_JOB_IDS             = WebUtility.GetRequest("EST_JOB_IDS");
        EST_TGT_TYPE            = WebUtility.GetRequest("EST_TGT_TYPE", "EST");
        YEAR_YN                 = WebUtility.GetRequest("YEAR_YN", "N");
        MERGE_YN                = WebUtility.GetRequest("MERGE_YN", "N");
        DEPT_COLUMN_NO_USE_YN   = WebUtility.GetRequest("DEPT_COLUMN_NO_USE_YN", "N");
        ESTTERM_SUB_ALL_USE_YN  = WebUtility.GetRequest("ESTTERM_SUB_ALL_USE_YN", "N");
        ESTTERM_STEP_ALL_USE_YN = WebUtility.GetRequest("ESTTERM_STEP_ALL_USE_YN", "N");

        if (!Page.IsPostBack)
        {
            DropDownListCommom.BindComp(ddlCompID, lblCompTitle);
            DropDownListCommom.BindEstTerm(ddlEstTermRefID);
            DropDownListCommom.BindDefaultValue(ddlEstTermSubID, "----------", "");
            DropDownListCommom.BindDefaultValue(ddlEstTermStepID, "----------", "");

            if (COMP_ID == 0)
            {
                COMP_ID = WebUtility.GetIntByValueDropDownList(ddlCompID);
            }

            if (ESTTERM_REF_ID == 0)
            {
                ESTTERM_REF_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermRefID);
            }

            if (ESTTERM_SUB_ID == 0)
            {
                ESTTERM_SUB_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermSubID);
            }

            if (ESTTERM_STEP_ID == 0)
            {
                ESTTERM_STEP_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermStepID);
            }

            ibnSearch.Attributes.Add("onclick", "return Search();");
            ibnConfirmEstQ.Attributes.Add("onclick", "return confirm('질의평가를 확정하시겠습니까?');");
            ibnAggEstTermStep.Attributes.Add("onclick", "return confirm('평가차수 간에 가중치를 반영하여 점수를 집계하시겠습니까?');");
            ibnGetPrjPoint.Attributes.Add("onclick", "return confirm('프로젝트 점수를 반영하시겠습니까?');");
            ibnProjectToEmpData.Attributes.Add("onclick", "return confirm('사원별 점수로 반영하시겠습니까?');");

            if (!WebUtility.GetRequest("EST_ID").Equals(""))
            {
                txtSearchEstName.Visible = false;
                imgEstButton.Visible     = false;
                ibnSearch.Visible        = false;

                hdfSearchEstID.Value = WebUtility.GetRequest("EST_ID");
                EST_ID = hdfSearchEstID.Value;

                GridBidingData(COMP_ID
                               , EST_ID
                               , ESTTERM_REF_ID
                               , ESTTERM_SUB_ID
                               , ESTTERM_STEP_ID
                               , EMP_REF_ID
                               , SEARCH_ALL);

                BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, tdImgBox.Controls);

                BizUtility.SetButtonVisibleByEstJobID(EST_JOB_IDS
                                                      , tdImgBox.Controls
                                                      , COMP_ID
                                                      , hdfSearchEstID.Value
                                                      , ESTTERM_REF_ID
                                                      , ESTTERM_SUB_ID
                                                      , ESTTERM_STEP_ID);

                SetConfirmStatusHtml(EST_JOB_IDS);
            }
        }

        COMP_ID        = WebUtility.GetIntByValueDropDownList(ddlCompID);
        EST_ID         = hdfSearchEstID.Value;
        ESTTERM_REF_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermRefID);

        if (YEAR_YN.Equals("Y"))
        {
            ESTTERM_SUB_ID = BizUtility.GetEstTermSubIDByYearYN(COMP_ID);
        }
        else
        {
            ESTTERM_SUB_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermSubID);
        }

        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;
            }
            else
            {
                ESTTERM_STEP_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermStepID);
            }
        }

        ltrScript.Text = "";

        // 상태 html
        HtmlScriptCommon.CreateStatusHtmlTable(tblViewStatus, EST_ID);
    }
Пример #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        EST_JOB_IDS             = WebUtility.GetRequest("EST_JOB_IDS");
        EST_TGT_TYPE            = WebUtility.GetRequest("EST_TGT_TYPE", "EST");
        YEAR_YN                 = WebUtility.GetRequest("YEAR_YN", "N");
        MERGE_YN                = WebUtility.GetRequest("MERGE_YN", "N");
        DEPT_COLUMN_NO_USE_YN   = WebUtility.GetRequest("DEPT_COLUMN_NO_USE_YN", "N");
        ESTTERM_SUB_ALL_USE_YN  = WebUtility.GetRequest("ESTTERM_SUB_ALL_USE_YN", "N");
        ESTTERM_STEP_ALL_USE_YN = WebUtility.GetRequest("ESTTERM_STEP_ALL_USE_YN", "N");
        EST_JOB_ID              = "JOB_04";
        EST_JOB_IDS             = "JOB_04";

        BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnApplyBiasPoint);
        BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnCalcBiasPoint);

        if (!Page.IsPostBack)
        {
            DropDownListCommom.BindComp(ddlCompID, lblCompTitle);
            DropDownListCommom.BindEstTerm(ddlEstTermRefID);
            DropDownListCommom.BindDefaultValue(ddlEstTermSubID, "----------", "");
            DropDownListCommom.BindDefaultValue(ddlEstTermStepID, "----------", "");
            DropDownListCommom.BindBiasType(ddlBiasTypeID);

            if (COMP_ID == 0)
            {
                COMP_ID = WebUtility.GetIntByValueDropDownList(ddlCompID);
            }

            if (ESTTERM_REF_ID == 0)
            {
                ESTTERM_REF_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermRefID);
            }

            if (ESTTERM_SUB_ID == 0)
            {
                ESTTERM_SUB_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermSubID);
            }

            if (ESTTERM_STEP_ID == 0)
            {
                ESTTERM_STEP_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermStepID);
            }

            ibnSearch.Attributes.Add("onclick", "return Search();");
            ibnApplyBiasPoint.Attributes.Add("onclick", "return confirm('정말 선택된 조정방식으로 점수를 Bias 조정 하시겠습니까?');");
            ibnCalcBiasPoint.Attributes.Add("onclick", "return confirm('Bias 조정점수를 계산 실행하시겠습니까?');");

            if (!WebUtility.GetRequest("EST_ID").Equals(""))
            {
                txtSearchEstName.Visible = false;
                imgEstButton.Visible     = false;
                ibnSearch.Visible        = false;

                hdfSearchEstID.Value = WebUtility.GetRequest("EST_ID");
                EST_ID = hdfSearchEstID.Value;

                BindingData(COMP_ID
                            , EST_ID
                            , ESTTERM_REF_ID
                            , ESTTERM_SUB_ID
                            , ESTTERM_STEP_ID
                            , GraphType
                            , DataType);

                //2011.12.27 박효동 : 아래는 없던건데 만들어놓았다..일단은 없이 가자고 함(허성덕과장)
                //Biz_EstInfos bizEstInfo = new Biz_EstInfos(COMP_ID, EST_ID);
                //if (bizEstInfo.Bias_Type_ID != "" && bizEstInfo.Bias_YN != "")
                //{
                //    PageUtility.FindByValueDropDownList(ddlBiasTypeID, bizEstInfo.Bias_Type_ID);
                //    ddlBiasTypeID.Enabled = false;
                //}
            }
        }

        COMP_ID        = WebUtility.GetIntByValueDropDownList(ddlCompID);
        EST_ID         = hdfSearchEstID.Value;
        ESTTERM_REF_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermRefID);

        if (YEAR_YN.Equals("Y"))
        {
            ESTTERM_SUB_ID = BizUtility.GetEstTermSubIDByYearYN(COMP_ID);
        }
        else
        {
            ESTTERM_SUB_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermSubID);
        }

        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;
            }
            else
            {
                ESTTERM_STEP_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermStepID);
            }
        }

        DEPT_VALUES = hdfEstDept.Value;

        ltrScript.Text = "";
    }
Пример #8
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");
        ESTTERM_SUB_ID  = WebUtility.GetRequestByInt("ESTTERM_SUB_ID");
        ESTTERM_STEP_ID = WebUtility.GetRequestByInt("ESTTERM_STEP_ID");
        EST_DEPT_ID     = WebUtility.GetRequestByInt("EST_DEPT_ID");
        EST_EMP_ID      = WebUtility.GetRequestByInt("EST_EMP_ID");
        TGT_DEPT_ID     = WebUtility.GetRequestByInt("TGT_DEPT_ID");
        TGT_EMP_ID      = WebUtility.GetRequestByInt("TGT_EMP_ID");
        EST_TGT_TYPE    = WebUtility.GetRequest("EST_TGT_TYPE", "EST");

        READ_ONLY_YN = WebUtility.GetRequest("READ_ONLY_YN", "N");

        _estInfos           = new Biz_EstInfos(COMP_ID, EST_ID);
        _q_item_desc_use_yn = _estInfos.Q_Item_Desc_Use_YN;
        _tgt_opinion_yn     = _estInfos.Tgt_Opinion_YN;
        _feedback_yn        = _estInfos.FeedBack_YN;
        _tgt_send_type      = BizUtility.GetTgtSendType(_tgt_opinion_yn, _feedback_yn);
        _tgt_pos_biz_use_yn = _estInfos.Q_Tgt_Pos_Biz_Use_YN;

        if (!Page.IsPostBack)
        {
            //이전평가차수질의지내용보기가 설정되어있고, 현재차수가 1차수이상일때만
            divPreviousControl.Visible = false;
            Biz_EstInfos bizEstInfo = new Biz_EstInfos(COMP_ID, EST_ID);
            if (bizEstInfo.Question_Previous_Step_YN.Trim() == "Y" && ESTTERM_STEP_ID > 2)
            {
                Biz_TermStepEstMaps bizTermStepEstMap = new Biz_TermStepEstMaps();
                DataSet             dsTermStepMap     = bizTermStepEstMap.GetTermStepEstMap(COMP_ID, EST_ID);

                if (dsTermStepMap.Tables[0].Rows.Count > 0)
                {
                    if (dsTermStepMap.Tables[0].Select(string.Format("ESTTERM_STEP_ID > 1 AND ESTTERM_STEP_ID < {0}", ESTTERM_STEP_ID)).Length > 0)
                    {
                        this.IPREVIOUS_STEP_VISIBLE = true;
                        DataRow[] drArr = dsTermStepMap.Tables[0].Select(string.Format("ESTTERM_STEP_ID > 1 AND ESTTERM_STEP_ID < {0}", ESTTERM_STEP_ID), "ESTTERM_STEP_ID ASC");
                        for (int i = 0; i < drArr.Length; i++)
                        {
                            ddlStep.Items.Insert(i, new ListItem(drArr[i]["ESTTERM_STEP_NAME"].ToString(), drArr[i]["ESTTERM_STEP_ID"].ToString()));
                        }
                        ddlStep.SelectedIndex = ddlStep.Items.Count - 1;
                        //this.IESTTERM_STEP_PREVIOUS_SELECT = WebUtility.GetIntByValueDropDownList(ddlStep);
                        divPreviousControl.Visible = true;
                    }
                }
            }
        }

        if (READ_ONLY_YN.Equals("N"))
        {
            Biz_TermInfos termInfos   = new Biz_TermInfos(ESTTERM_REF_ID);
            Biz_TermSubs  termSubs    = new Biz_TermSubs(COMP_ID, ESTTERM_SUB_ID);
            Biz_TermSteps termSteps   = new Biz_TermSteps(COMP_ID, ESTTERM_STEP_ID);
            Biz_EmpInfos  estEmpInfos = new Biz_EmpInfos(EST_EMP_ID);
            Biz_EmpInfos  tgtEmpInfos = new Biz_EmpInfos(TGT_EMP_ID);
            Biz_DeptInfos estDeptInfo = new Biz_DeptInfos(EST_DEPT_ID);
            Biz_DeptInfos tgtDeptInfo = new Biz_DeptInfos(TGT_DEPT_ID);
            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);

            _status_style_id = _estInfos.Status_Style_ID;

            Biz_QuestionDeptEmpMaps questionDeptEmpMaps = new Biz_QuestionDeptEmpMaps(COMP_ID
                                                                                      , ESTTERM_REF_ID
                                                                                      , ESTTERM_SUB_ID
                                                                                      , 0
                                                                                      , EST_ID
                                                                                      , ""
                                                                                      , TGT_DEPT_ID
                                                                                      , TGT_EMP_ID
                                                                                      , _estInfos.Owner_Type);
            if (_tgt_pos_biz_use_yn.Equals("N"))
            {
                if (questionDeptEmpMaps.Q_Obj_ID == null)
                {
                    ltrScript.Text = JSHelper.GetAlertScript("피평가자(부서)에 대한 평가질의서가 매핑되지 않았습니다. 성과평가 관리자에게 문의하세요.", true);
                    return;
                }
            }
            else
            {
            }

            // 의견상신 : X, 피드백 : O
            if (_tgt_send_type.Equals("FBK"))
            {
                if (EST_TGT_TYPE.Equals("EST"))
                {
                    _status_id                = "O";
                    ibnSaveOpinion.Visible    = false;
                    ibnFeedbackAgree.Visible  = false;
                    ibnFeedbackReject.Visible = false;

                    // 창을 띄은 사람이 평가자 인지 체크
                    if (EST_EMP_ID == EMP_REF_ID)
                    {
                        ibnSaveEst.Visible = true;
                    }
                    else
                    {
                        ibnSaveEst.Visible = false;

                        // 롤에 따른 버튼 권한이 있는지 확인
                        BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnSaveEst);
                    }
                }
                else if (EST_TGT_TYPE.Equals("TGT"))
                {
                    _status_id             = "P";
                    ibnSaveEst.Visible     = false;
                    ibnSaveOpinion.Visible = false;

                    // 창을 띄은 사람이 피평가자 인지 체크
                    if (TGT_EMP_ID == EMP_REF_ID)
                    {
                        ibnFeedbackAgree.Visible  = true;
                        ibnFeedbackReject.Visible = true;
                    }
                    else
                    {
                        ibnFeedbackAgree.Visible  = false;
                        ibnFeedbackReject.Visible = false;

                        // 롤에 따른 버튼 권한이 있는지 확인
                        BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnFeedbackAgree);
                        BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnFeedbackReject);
                    }

                    if (!_status_style_id.Equals("0003"))
                    {
                        ltrScript.Text = JSHelper.GetAlertScript("피드백 5단계 평가으로 설정되어야 합니다.", true);
                        return;
                    }
                }
            }
            else // 그외 사항에서는
            {
                if (EST_TGT_TYPE.Equals("EST"))
                {
                    _status_id                = "P";
                    ibnSaveOpinion.Visible    = false;
                    ibnFeedbackAgree.Visible  = false;
                    ibnFeedbackReject.Visible = false;

                    // 창을 띄은 사람이 평가자 인지 체크
                    if (EST_EMP_ID == EMP_REF_ID)
                    {
                        ibnSaveEst.Visible = true;
                    }
                    else
                    {
                        ibnSaveEst.Visible = false;

                        // 롤에 따른 버튼 권한이 있는지 확인
                        BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnSaveEst);
                    }
                }
                else if (EST_TGT_TYPE.Equals("TGT"))
                {
                    _status_id                = "O";
                    ibnSaveEst.Visible        = false;
                    ibnFeedbackAgree.Visible  = false;
                    ibnFeedbackReject.Visible = false;

                    // 창을 띄은 사람이 피평가자 인지 체크
                    if (TGT_EMP_ID == EMP_REF_ID)
                    {
                        ibnSaveOpinion.Visible = true;
                    }
                    else
                    {
                        ibnSaveOpinion.Visible = false;

                        // 롤에 따른 버튼 권한이 있는지 확인
                        BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnSaveOpinion);
                    }

                    if (!_status_style_id.Equals("0002"))
                    {
                        ltrScript.Text = JSHelper.GetAlertScript("의견상신 5단계 평가으로 설정되어야 합니다.", true);
                        return;
                    }
                }
            }

            if (_tgt_send_type.Equals("FBK"))
            {
                if (data.Status_ID.Equals("E"))
                {
                    ibnSaveEst.Visible        = false;
                    ibnSaveOpinion.Visible    = false;
                    ibnFeedbackAgree.Visible  = false;
                    ibnFeedbackReject.Visible = false;
                }

                if (data.Status_ID.Equals("C"))
                {
                    ibnSaveEst.Visible = false;
                }
            }
            else
            {
                if (data.Status_ID.Equals("E"))
                {
                    ibnSaveEst.Visible        = false;
                    ibnSaveOpinion.Visible    = false;
                    ibnFeedbackAgree.Visible  = false;
                    ibnFeedbackReject.Visible = false;
                }
            }

            Q_OBJ_ID          = questionDeptEmpMaps.Q_Obj_ID;
            EST_NAME          = _estInfos.Est_Name;
            ESTTERM_REF_NAME  = termInfos.EstTerm_Name;
            ESTTERM_SUB_NAME  = termSubs.EstTerm_Sub_Name;
            ESTTERM_STEP_NAME = termSteps.EstTerm_Step_Name;
            EST_EMP_NAME      = estEmpInfos.Emp_Name;
            TGT_EMP_NAME      = tgtEmpInfos.Emp_Name;
            EST_DEPT_NAME     = estDeptInfo.Dept_Name;
            TGT_DEPT_NAME     = tgtDeptInfo.Dept_Name;
        }
        else
        {
            Q_OBJ_ID                  = WebUtility.GetRequest("Q_OBJ_ID");
            ibnSaveEst.Visible        = false;
            ibnSaveOpinion.Visible    = false;
            ibnFeedbackAgree.Visible  = false;
            ibnFeedbackReject.Visible = false;
        }

        if (!Page.IsPostBack)
        {
            DataListBinding();
            DoBindingPreviousStepQeustion();

            ibnSaveEst.Attributes.Add("onclick", "if(confirm('평가내용을 저장하시겠습니까?')) return ConfirmQuesiton();else return false;");
            ibnSaveOpinion.Attributes.Add("onclick", "return confirm('평가자에게 의견을 상신하시겠습니까?');");
            ibnFeedbackAgree.Attributes.Add("onclick", "return confirm('평가질의에 동의하십니까?');");
            ibnFeedbackReject.Attributes.Add("onclick", "return confirm('평가질의에 거절하십니까?');");
        }

        ltrScript.Text = "";
    }
Пример #9
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();
        }
    }