Example #1
0
    private void DoBindingPreviousStepQeustion()
    {
        if (this.IPREVIOUS_STEP_VISIBLE)
        {
            this.IESTTERM_STEP_PREVIOUS_SELECT = WebUtility.GetIntByValueDropDownList(ddlStep);
            //Biz_TermSteps bizPSV = new Biz_TermSteps(COMP_ID, ESTTERM_STEP_ID - 1);
            ESTTERM_STEP_NAME_P = WebUtility.GetByTextDropDownList(ddlStep); //bizPSV.EstTerm_Step_Name;
            Biz_Datas     bizPSV2 = new Biz_Datas(COMP_ID, EST_ID, ESTTERM_REF_ID, ESTTERM_SUB_ID, this.IESTTERM_STEP_PREVIOUS_SELECT, 0, 0, TGT_DEPT_ID, TGT_EMP_ID);
            Biz_DeptInfos bizPSV3 = new Biz_DeptInfos(bizPSV2.Est_Dept_ID);
            EST_DEPT_NAME_P = bizPSV3.Dept_Name;
            Biz_EmpInfos bizPSV4 = new Biz_EmpInfos(bizPSV2.Est_Emp_ID);
            EST_EMP_NAME_P = bizPSV4.Emp_Name;

            TOTALPOINT_P = 0;

            TOTALPOINT_P = bizPSV2.Point_Org;
            POINT_ORG_P  = Math.Round(TOTALPOINT_P, 2);
            if (POINT_ORG_P == 0)
            {
                ltrTotalPoint_P.Text = "미평가";
            }
            else
            {
                ltrTotalPoint_P.Text = POINT_ORG_P.ToString("##0.00") + " / 100";
            }
            DataListBinding_P();
        }
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ltrScript.Text = "";

        if (!IsPostBack)
        {
            Biz_EstInfos  estInfo     = new Biz_EstInfos(COMP_ID, EST_ID);
            Biz_TermInfos termInfo    = new Biz_TermInfos(ESTTERM_REF_ID);
            Biz_TermSubs  termSubInfo = new Biz_TermSubs(COMP_ID, ESTTERM_SUB_ID);

            ESTTERM_STEP_ID = 2;


            Biz_EmpInfos        empInfo  = new Biz_EmpInfos(TGT_EMP_ID);
            Biz_Com_Dept_Info   deptInfo = new Biz_Com_Dept_Info(TGT_DEPT_ID);
            Biz_PositionClasses clsInfo  = new Biz_PositionClasses(empInfo.Position_Class_Code);



            this.lblEstTerm.Text     = string.Format("{0}({1})", DataTypeUtility.GetString(termInfo.EstTerm_Name), DataTypeUtility.GetString(termSubInfo.EstTerm_Sub_Name));
            this.lblEstName.Text     = DataTypeUtility.GetString(estInfo.Est_Name);
            this.lblEstEmp.Text      = string.Format("{1}({0})", DataTypeUtility.GetString(deptInfo.DEPT_NAME), DataTypeUtility.GetString(empInfo.Emp_Name));
            this.lblEstEmpClass.Text = DataTypeUtility.GetString(clsInfo.Pos_Cls_Name);

            txtConsult.ToolbarStartExpanded = false;

            bindData();
        }

        setSaveBtn();
    }
Example #3
0
    private void BindingGrid(int comp_id
                             , string est_id
                             , int estterm_ref_id
                             , int estterm_sub_id
                             , int dept_ref_id)
    {
        if (dept_ref_id == 0)
        {
            return;
        }

        Biz_Datas data = new Biz_Datas();

        DT_EST_DATA = data.GetData(COMP_ID
                                   , EST_ID
                                   , ESTTERM_REF_ID
                                   , ESTTERM_SUB_ID
                                   , ESTTERM_STEP_ID
                                   , 0
                                   , 0
                                   , 0
                                   , 0
                                   , YEAR_YN
                                   , MERGE_YN
                                   , OwnerType.Emp_User).Tables[0];

        Biz_EmpInfos empInfo = new Biz_EmpInfos();

        DataSet ds = empInfo.GetEmpByEstDeptID(dept_ref_id);

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

        lblTotal.Text = ds.Tables[0].Rows.Count.ToString();
    }
Example #4
0
    private void BindingEmp()
    {
        Biz_EmpInfos empInfo   = new Biz_EmpInfos();
        DataTable    dataTable = empInfo.GetAllEmp().Tables[0];

        UltraWebGrid1.DataSource = dataTable;
        UltraWebGrid1.DataBind();

        lblRowCount.Text = dataTable.Rows.Count.ToString("#,##0");
    }
Example #5
0
    private void BindEmpInfoList(int dept_ref_id)
    {
        Biz_EmpInfos empInfo = new Biz_EmpInfos();

        DataSet ds = empInfo.GetEmpByEstDeptID(dept_ref_id);

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

        lblTotal.Text = ds.Tables[0].Rows.Count.ToString();
    }
Example #6
0
    public static int GetDeptID(int emp_ref_id)
    {
        Biz_EmpInfos empInfo = new Biz_EmpInfos();
        DataSet      ds      = empInfo.GetEmpByEmpID(emp_ref_id);

        if (ds.Tables[0].Rows.Count > 0)
        {
            return(DataTypeUtility.GetToInt32(ds.Tables[0].Rows[0]["DEPT_REF_ID"]));
        }

        return(0);
    }
Example #7
0
    private void SelectCtrlInfo(string ctrl_id)
    {
        Biz_CtrlInfos ctrlInfo = new Biz_CtrlInfos(ctrl_id);
        Biz_EmpInfos  empInfo  = new Biz_EmpInfos(ctrlInfo.Ctrl_Emp_ID);

        hdfEmpRefID.Value = DataTypeUtility.GetValue(ctrlInfo.Ctrl_Emp_ID);
        txtEmpName.Text   = empInfo.Emp_Name;
        txtScope.Text     = DataTypeUtility.GetValue(ctrlInfo.Scope);
        WebUtility.FindByValueDropDownList(ddlScopeUnitID, ctrlInfo.Scope);
        ckbAllEstYN.Checked     = DataTypeUtility.GetYNToBoolean(ctrlInfo.All_Est_YN);
        ckbAllEstDeptYN.Checked = DataTypeUtility.GetYNToBoolean(ctrlInfo.All_Est_Dept_YN);
        ckbConfirmEmpYN.Checked = DataTypeUtility.GetYNToBoolean(ctrlInfo.Confirm_Emp_YN);
    }
Example #8
0
    protected void ibnUpdate_Click(object sender, ImageClickEventArgs e)
    {
        Biz_EmpInfos empInfo   = new Biz_EmpInfos();
        DataTable    dataTable = empInfo.GetDataTableSchema();

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

        if (dataTable.Rows.Count == 0)
        {
            ltrScript.Text = JSHelper.GetAlertScript("평가데이터에 직급,직책을 반영하려는 사원이 선택되지 않았습니다.");
            return;
        }

        string emp_ref_ids = "";
        bool   isFirst     = true;

        foreach (DataRow dataRow in dataTable.Rows)
        {
            if (isFirst)
            {
                isFirst      = false;
                emp_ref_ids += DataTypeUtility.GetValue(dataRow["EMP_REF_ID"]);
            }
            else
            {
                emp_ref_ids += "," + DataTypeUtility.GetValue(dataRow["EMP_REF_ID"]);
            }
        }

        string ctrlID = (sender as ImageButton).ID;
        string type   = "";

        if (ctrlID.Equals("ibnUpdatePos"))
        {
            type = "POS";
        }
        else if (ctrlID.Equals("ibnUpdateDpt"))
        {
            type = "DPT";
        }

        WebUtility.PopupPage(ltrScript
                             , "../EST/EST060602.aspx?EMP_REF_IDS=" + emp_ref_ids + "&TYPE=" + type
                             , 400
                             , 120
                             , "popup_pos");
    }
Example #9
0
    private DataTable GetRelGroupData(int comp_id, string est_id, int estterm_ref_id)
    {
        Biz_EmpInfos        empInfo      = new Biz_EmpInfos();
        Biz_RelGroupInfos   relGrpInfo   = new Biz_RelGroupInfos();
        Biz_RelGroupTgtMaps relGrpTgtMap = new Biz_RelGroupTgtMaps();
        DataTable           dataTable    = relGrpTgtMap.GetDataTableSchema();
        DataRow             dataRow      = null;
        DataTable           dtRelGrp     = relGrpInfo.GetRelGroupInfo(comp_id, "", est_id, estterm_ref_id).Tables[0];

        foreach (DataRow dataRowRelGrp in dtRelGrp.Rows)
        {
            DataTable dtTgt          = null;
            string    rel_grp_id     = dataRowRelGrp["REL_GRP_ID"].ToString();
            string    where_sentence = "";

            where_sentence = BizUtility.GetRelGroupWhereString(COMP_ID
                                                               , EST_ID
                                                               , ESTTERM_REF_ID
                                                               , rel_grp_id
                                                               , "TM");

            if (OwnerTypeMode == OwnerType.Dept)
            {
                dtTgt = empInfo.GetRelDeptList("WHERE", where_sentence, "TM").Tables[0];
            }
            else if (OwnerTypeMode == OwnerType.Emp_User)
            {
                dtTgt = empInfo.GetRelEmpList("WHERE", where_sentence, "TM").Tables[0];
            }

            foreach (DataRow dataRowTgt in dtTgt.Rows)
            {
                dataRow = dataTable.NewRow();

                dataRow["COMP_ID"]        = comp_id;
                dataRow["REL_GRP_ID"]     = rel_grp_id;
                dataRow["EST_ID"]         = est_id;
                dataRow["ESTTERM_REF_ID"] = estterm_ref_id;
                dataRow["TGT_DEPT_ID"]    = dataRowTgt["TGT_DEPT_ID"];
                dataRow["TGT_EMP_ID"]     = dataRowTgt["TGT_EMP_ID"];
                dataRow["DATE"]           = DateTime.Now;
                dataRow["USER"]           = EMP_REF_ID;

                dataTable.Rows.Add(dataRow);
            }
        }

        return(dataTable);
    }
Example #10
0
    protected void ibnValidCheck_Click(object sender, ImageClickEventArgs e)
    {
        DataTable dtRelGrpData = GetRelGroupData(COMP_ID, EST_ID, ESTTERM_REF_ID);
        DataTable dtValid      = null;

        if (dtRelGrpData.Rows.Count == 0)
        {
            ltrScript.Text = JSHelper.GetAlertScript("상대그룹에 포함된 사원정보가 없습니다.");
            return;
        }

        dtValid = DataTypeUtility.GetGroupByDataTable(dtRelGrpData
                                                      , "TGT_EMP_ID"
                                                      , new string[] { "TGT_DEPT_ID", "TGT_EMP_ID" }
                                                      , "TGT_EMP_ID");

        dtValid = DataTypeUtility.FilterSortDataTable(dtValid, "CNT_TGT_EMP_ID > 1");

        int duplicate_emp_id_cnt = dtValid.Rows.Count;

        if (duplicate_emp_id_cnt > 0)
        {
            string temp = "\\r\\n";

            foreach (DataRow drRow in dtValid.Rows)
            {
                DataRow[] drArrTgt = dtRelGrpData.Select(string.Format("TGT_EMP_ID = {0}", drRow["TGT_EMP_ID"]));

                foreach (DataRow drRowTgt in drArrTgt)
                {
                    Biz_RelGroupInfos relGroupInfo = new Biz_RelGroupInfos(COMP_ID, DataTypeUtility.GetValue(drRowTgt["REL_GRP_ID"]));
                    Biz_EmpInfos      empInfo      = new Biz_EmpInfos(DataTypeUtility.GetToInt32(drRowTgt["TGT_EMP_ID"]));
                    temp += relGroupInfo.Rel_Grp_Name + " - " + empInfo.Emp_Name + "\\r\\n";
                }
            }

            ltrScript.Text = JSHelper.GetAlertScript(string.Format("{0}명의 사원이 상대그룹에 중복되어 있습니다.{1}", duplicate_emp_id_cnt, temp));
            return;
        }
        else
        {
            ltrScript.Text = JSHelper.GetAlertScript("상대그룹 설정에 오류가 없습니다.");
            return;
        }
    }
Example #11
0
    protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
    {
        TreeView treeView    = (TreeView)sender;
        int      dept_ref_id = DataTypeUtility.GetToInt32(treeView.SelectedValue);

        Biz_EmpInfos empInfo = new Biz_EmpInfos();

        UltraWebGrid1.DataSource = empInfo.GetEmpByEstDeptIDWithPrefix(dept_ref_id, "EST_");
        UltraWebGrid1.DataBind();

        if (UltraWebGrid1.Rows.Count > 0)
        {
            imgAdd.Visible        = true;
            iBtnPrjRemove.Visible = true;
            ibnConfirm.Visible    = true;
        }
        else
        {
            imgAdd.Visible        = false;
            iBtnPrjRemove.Visible = false;
            ibnConfirm.Visible    = false;
        }
    }
Example #12
0
    private void GridBinding(int estterm_sub_id, OwnerType ownerType)
    {
        DataSet ds = null;

        if (ownerType == OwnerType.Dept)
        {
            rbnComDeptEmp.Text = "전체 부서 데이터";

            UltraWebGrid1.Columns.FromKey("TGT_EMP_NAME").Hidden     = true;
            UltraWebGrid1.Columns.FromKey("TGT_POS_CLS_NAME").Hidden = true;
            UltraWebGrid1.Columns.FromKey("TGT_POS_DUT_NAME").Hidden = true;
            UltraWebGrid1.Columns.FromKey("TGT_POS_GRP_NAME").Hidden = true;
            UltraWebGrid1.Columns.FromKey("TGT_POS_RNK_NAME").Hidden = true;
            UltraWebGrid1.Columns.FromKey("TGT_POS_KND_NAME").Hidden = true;
        }
        else if (ownerType == OwnerType.Dept)
        {
            rbnComDeptEmp.Text = "전체 사원 데이터";

            UltraWebGrid1.Columns.FromKey("TGT_EMP_NAME").Hidden     = false;
            UltraWebGrid1.Columns.FromKey("TGT_POS_CLS_NAME").Hidden = false;
            UltraWebGrid1.Columns.FromKey("TGT_POS_DUT_NAME").Hidden = false;
            UltraWebGrid1.Columns.FromKey("TGT_POS_GRP_NAME").Hidden = false;
            UltraWebGrid1.Columns.FromKey("TGT_POS_RNK_NAME").Hidden = false;
            UltraWebGrid1.Columns.FromKey("TGT_POS_KND_NAME").Hidden = false;
        }

        if (rbnComDeptEmp.Checked)
        {
            UltraWebGrid1.Columns.FromKey("TGT_DEPT_NAME").Header.Caption = "부서명";
            UltraWebGrid1.Columns.FromKey("TGT_EMP_NAME").Header.Caption  = "사원명";

            UltraWebGrid1.Columns.FromKey("ESTTERM_SUB_NAME").Hidden = true;
            UltraWebGrid1.Columns.FromKey("EST_DEPT_NAME").Hidden    = true;
            UltraWebGrid1.Columns.FromKey("EST_EMP_NAME").Hidden     = true;

            Biz_EmpInfos biz = new Biz_EmpInfos();

            if (OwnerTypeMode == OwnerType.Dept)
            {
                ds = biz.GetRelDeptList("WHERE", SENTENCE, "TM");
            }
            else if (OwnerTypeMode == OwnerType.Emp_User)
            {
                ds = biz.GetRelEmpList("WHERE", SENTENCE, "TM");
            }
        }
        else
        {
            UltraWebGrid1.Columns.FromKey("ESTTERM_SUB_NAME").Hidden = false;
            UltraWebGrid1.Columns.FromKey("EST_DEPT_NAME").Hidden    = false;
            UltraWebGrid1.Columns.FromKey("EST_EMP_NAME").Hidden     = false;

            UltraWebGrid1.Columns.FromKey("TGT_DEPT_NAME").Header.Caption = "피평가자부서";
            UltraWebGrid1.Columns.FromKey("TGT_EMP_NAME").Header.Caption  = "피평가자명";

            Biz_Datas biz = new Biz_Datas();

            if (OwnerTypeMode == OwnerType.Dept)
            {
            }
            else if (OwnerTypeMode == OwnerType.Emp_User)
            {
            }

            ds = biz.GetEstDataByRelGroup(COMP_ID
                                          , EST_ID
                                          , ESTTERM_REF_ID
                                          , estterm_sub_id
                                          , ESTTERM_STEP_ID
                                          , "AND "
                                          , SENTENCE);
        }

        UltraWebGrid1.DataSource = ds.Tables[0];
        UltraWebGrid1.DataBind();

        lblRowCount.Text = ds.Tables[0].Rows.Count.ToString("#,##0");
    }
Example #13
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 = "";
    }
Example #14
0
    protected void doBindEstEmpList()
    {
        Biz_Est_Data bizEstData = new Biz_Est_Data();
        DataTable    dt         = bizEstData.GetEstData(COMP_ID
                                                        , EST_ID
                                                        , ESTTERM_REF_ID
                                                        , ESTTERM_SUB_ID
                                                        , 0
                                                        , ""
                                                        , 0
                                                        , TGT_EMP_ID);


        dt.Columns.Add("EST_DEPT_NAME");
        dt.Columns.Add("EST_EMP_NAME");
        dt.Columns.Add("EST_POS_CLS");
        dt.Columns.Add("EST_POS_RNK");
        dt.Columns.Add("ESTTERM_STEP_NAME");


        dt = DataTypeUtility.FilterSortDataTable(dt, "ESTTERM_STEP_ID=2 OR ESTTERM_STEP_ID=3", "ESTTERM_STEP_ID ASC");


        for (int i = 0; i < dt.Rows.Count; i++)
        {
            int est_dept_id = DataTypeUtility.GetToInt32(dt.Rows[i]["EST_DEPT_ID"]);
            int est_emp_id  = DataTypeUtility.GetToInt32(dt.Rows[i]["EST_EMP_ID"]);

            Biz_EmpInfos      bizEmpInfo  = new Biz_EmpInfos(est_emp_id);
            Biz_Com_Dept_Info bizDeptInfo = new Biz_Com_Dept_Info(est_dept_id);

            string est_dept_name = DataTypeUtility.GetString(bizDeptInfo.DEPT_NAME);
            string est_emp_name  = DataTypeUtility.GetString(bizEmpInfo.Emp_Name);

            Biz_PositionClasses bizPosCls = new Biz_PositionClasses(bizEmpInfo.Position_Class_Code);
            Biz_PositionRanks   bizPosRnk = new Biz_PositionRanks(bizEmpInfo.Position_Rank_Code);

            string est_pos_cls = DataTypeUtility.GetString(bizPosCls.Pos_Cls_Name);
            string est_pos_rnk = DataTypeUtility.GetString(bizPosRnk.Pos_Rnk_Name);

            dt.Rows[i]["EST_DEPT_NAME"] = est_dept_name;
            dt.Rows[i]["EST_EMP_NAME"]  = est_emp_name;
            dt.Rows[i]["EST_POS_CLS"]   = est_pos_cls;
            dt.Rows[i]["EST_POS_RNK"]   = est_pos_rnk;


            int    estterm_step_id   = DataTypeUtility.GetToInt32(dt.Rows[i]["ESTTERM_STEP_ID"]);
            string estterm_step_name = "";
            if (estterm_step_id == 2)
            {
                estterm_step_name = "1차 평가자";
            }
            else if (estterm_step_id == 3)
            {
                estterm_step_name = "2차 평가자";
            }

            dt.Rows[i]["ESTTERM_STEP_NAME"] = estterm_step_name;
        }

        ugrdEstEmpList.Clear();
        ugrdEstEmpList.DataSource = dt;
        ugrdEstEmpList.DataBind();
    }
Example #15
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");
        STATUS_ID    = WebUtility.GetRequest("STATUS_ID", "N");


        Biz_EstInfos  estInfo     = new Biz_EstInfos(COMP_ID, EST_ID);
        Biz_TermInfos termInfo    = new Biz_TermInfos(ESTTERM_REF_ID);
        Biz_TermSubs  termSubInfo = new Biz_TermSubs(COMP_ID, ESTTERM_SUB_ID);



        Biz_EmpInfos      est_emp_Info  = new Biz_EmpInfos(EST_EMP_ID);
        Biz_EmpInfos      tgt_emp_Info  = new Biz_EmpInfos(TGT_EMP_ID);
        Biz_Com_Dept_Info est_dept_Info = new Biz_Com_Dept_Info(EST_DEPT_ID);
        Biz_Com_Dept_Info tgt_dept_Info = new Biz_Com_Dept_Info(TGT_DEPT_ID);



        this.lblEstTermName.Text = string.Format("{0}({1})", DataTypeUtility.GetString(termInfo.EstTerm_Name), DataTypeUtility.GetString(termSubInfo.EstTerm_Sub_Name));
        this.lblEstName.Text     = DataTypeUtility.GetString(estInfo.Est_Name);



        this.lblEstEmp.Text = string.Format("{1}({0})", DataTypeUtility.GetString(est_dept_Info.DEPT_NAME), DataTypeUtility.GetString(est_emp_Info.Emp_Name));
        this.lblTgtEmp.Text = string.Format("{1}({0})", DataTypeUtility.GetString(tgt_dept_Info.DEPT_NAME), DataTypeUtility.GetString(tgt_emp_Info.Emp_Name));


        Biz_Datas bizData = 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);

        TOTALPOINT = DataTypeUtility.GetToDouble(bizData.Point);

        lblPoint.Text = string.Format("{0} / 100", TOTALPOINT);

        if (DT_EST_QUESTION == null)
        {
            getEstQuestion();
        }


        if (!IsPostBack)
        {
            doBindEstQuestion();
        }

        setControlState();
    }
Example #16
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            quizWeight = new DataTable();
        }


        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");
        PRJ_REF_ID      = WebUtility.GetRequestByInt("PRJ_REF_ID");
        EST_TGT_TYPE    = WebUtility.GetRequest("EST_TGT_TYPE", "EST");


        TGT_DEPT_ID = WebUtility.GetRequestByInt("TGT_DEPT_ID", 0);
        TGT_EMP_ID  = WebUtility.GetRequestByInt("TGT_EMP_ID", 0);


        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;

        //PRJ_TYPE
        Biz_Prj_Info objPrjInfo = new Biz_Prj_Info(PRJ_REF_ID);

        PRJ_TYPE = objPrjInfo.IPrj_Type;

        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);
            MicroBSC.Integration.COM.Biz.Biz_Com_Dept_Info bizComDeptInfo = new MicroBSC.Integration.COM.Biz.Biz_Com_Dept_Info(EST_DEPT_ID);
            MicroBSC.Integration.COM.Biz.Biz_Com_Dept_Info tgtDeptInfo    = new MicroBSC.Integration.COM.Biz.Biz_Com_Dept_Info(TGT_DEPT_ID);


            //Biz_Prj_Data data = new Biz_Prj_Data(COMP_ID
            //                                    , EST_ID
            //                                    , ESTTERM_REF_ID
            //                                    , ESTTERM_SUB_ID
            //                                    , ESTTERM_STEP_ID
            //                                    , EST_DEPT_ID
            //                                    , EST_EMP_ID
            //                                    , PRJ_REF_ID);



            _status_style_id = _estInfos.Status_Style_ID;

            Biz_Prj_QuestionPrjMap objQuestionPrjMap = new Biz_Prj_QuestionPrjMap(COMP_ID
                                                                                  , ESTTERM_REF_ID
                                                                                  , ESTTERM_SUB_ID
                                                                                  , 0
                                                                                  , EST_ID
                                                                                  , ""
                                                                                  , PRJ_REF_ID);

            if (objQuestionPrjMap.Q_Obj_ID == null)
            {
                ltrScript.Text = JSHelper.GetAlertScript("프로젝트사업명에 대한 평가질의서가 매핑되지 않았습니다.", true);
                return;
            }


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

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



            Q_OBJ_ID          = objQuestionPrjMap.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;
            EST_DEPT_NAME     = bizComDeptInfo.DEPT_NAME; //estDeptInfo.Dept_Name;
            TGT_EMP_NAME      = tgtEmpInfos.Emp_Name;
            TGT_DEPT_NAME     = tgtDeptInfo.DEPT_NAME;    //tgtDeptInfo.Dept_Name;
            PRJ_NAME          = objPrjInfo.IPrj_Name;
            PRJ_CODE          = objPrjInfo.IPrj_Code;
        }
        else
        {
            Q_OBJ_ID           = WebUtility.GetRequest("Q_OBJ_ID");
            ibnSaveEst.Visible = false;
        }

        if (!Page.IsPostBack)
        {
            SetLabelText();

            //임의수정
            Biz_Prj_Data bizPrjData = new Biz_Prj_Data();
            DataTable    dt         = bizPrjData.GetPrjData(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, PRJ_REF_ID, "", "").Tables[0];
            string       Status_ID  = "";
            if (dt != null && dt.Rows.Count > 0)
            {
                Status_ID = dt.Rows[0]["STATUS_ID"].ToString();
            }

            if (Status_ID.Equals("E"))
            {
                ibnSaveEst.Visible = false;
            }

            DataListBinding(dt);

            ibnSaveEst.Attributes.Add("onclick", "if(confirm('평가내용을 저장하시겠습니까?')) return ConfirmQuesiton();else return false;");
        }

        ltrScript.Text = "";
    }
Example #17
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();
        }
    }