Exemple #1
0
    private void SetPageData()
    {
        if (!IsPostBack)
        {
            WebCommon.SetEstTermDropDownList(ddlEstTermInfo);
        }

        this.IEstTermRefID = int.Parse(ddlEstTermInfo.SelectedValue);

        WebCommon.SetTermMonthDropDownList(ddlEstTermMonth, this.IEstTermRefID);

        MicroBSC.Integration.COM.Biz.Biz_Rel_Dept_Emp bizRel = new MicroBSC.Integration.COM.Biz.Biz_Rel_Dept_Emp();
        int estDeptID = DataTypeUtility.GetToInt32(bizRel.Get_Dept_ID_of_Emp_ID(gUserInfo.Emp_Ref_ID.ToString()));

        //WebCommon.FillEstMappingTree_NW(trvEstDept, this.IEstTermRefID, estDeptID, TreeNodeSelectAction.Select);
        WebCommon.FillEstTree(trvEstDept, this.IEstTermRefID, gUserInfo.Emp_Ref_ID);
        trvEstDept.ExpandAll();

        if (trvEstDept.Nodes.Count > 0)
        {
            trvEstDept.Nodes[0].Select();
            this.IEstDeptRefID = (trvEstDept.SelectedNode == null) ? IEstDeptRefID : int.Parse(trvEstDept.SelectedNode.Value);

            this.SetFormData(gUserInfo.Dept_Ref_ID);
        }
        else
        {
            ltEstDeptName.Text = "";
            lblChampName.Text  = "";
            lblSTGMapName.Text = "";
            ugrdStgList.Clear();
            this.IEstDeptRefID = 0;
        }
    }
Exemple #2
0
    private void DoBinding_Dept()
    {
        DEPT_REF_ID = -1;
        UltraWebGrid1.Clear();
        UltraWebGrid2.Clear();

        MicroBSC.Integration.EST.Biz.Biz_Est_Emp_Est_Target_Map bizEmpEstTargetMaps = new MicroBSC.Integration.EST.Biz.Biz_Est_Emp_Est_Target_Map();
        //MicroBSC.Estimation.Biz.Biz_EmpEstTargetMaps bizEmpEstTargetMaps = new Biz_EmpEstTargetMaps();

        DT_ESTTARGETMAP = bizEmpEstTargetMaps.GetEmpEstTargetMap(COMP_ID
                                                                 , EST_ID
                                                                 , ESTTERM_REF_ID
                                                                 , ESTTERM_SUB_ID
                                                                 , ConESTTERM_STEP_ID
                                                                 , 0
                                                                 , 0
                                                                 , 0
                                                                 , 0).Tables[0];

        DataRow[] rows = DT_ESTTARGETMAP.Select(string.Format(" DIRECTION_TYPE = '{0}' ", ConDIRECTION_TYPE));

        if (rows.Length > 0)
        {
            ibnDeptAdd.Visible = false;
            ibnDeptDel.Visible = false;
            ibnEmp.Visible     = false;
        }
        else
        {
            ibnDeptAdd.Visible = true;
            ibnDeptDel.Visible = true;
            ibnEmp.Visible     = true;
        }

        MicroBSC.Integration.MUL.Biz.Biz_Mul_Est_Emp bizMulEstEmp = new MicroBSC.Integration.MUL.Biz.Biz_Mul_Est_Emp();

        DataTable dtMulEstEmp = bizMulEstEmp.GetDeptMapping_DB(COMP_ID
                                                               , EST_ID
                                                               , ESTTERM_REF_ID
                                                               , ESTTERM_SUB_ID);

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

        if (dtMulEstEmp.Rows.Count > 0)
        {
            ibnDeptAdd.Enabled = true;
            ibnDeptDel.Enabled = true;
        }
        else
        {
            ibnDeptAdd.Enabled = false;
            ibnDeptDel.Enabled = false;
        }

        // 평가자 목록 (EST_TYPE : EST)
        DT_ESTEMP = bizMulEstEmp.GetEstEmp_DB(COMP_ID
                                              , EST_ID
                                              , ESTTERM_REF_ID
                                              , ESTTERM_SUB_ID
                                              , 0
                                              , "");

        //// 피평가자 목록 (EST_TYPE : TGT)
        //DT_TGTEMP = bizMulEstEmp.GetEstEmp_DB(COMP_ID
        //                                     , EST_ID
        //                                     , ESTTERM_REF_ID
        //                                     , ESTTERM_SUB_ID
        //                                     , 0
        //                                     , "TGT");

        MicroBSC.Integration.COM.Biz.Biz_Rel_Dept_Emp bizRelDeptEmp = new MicroBSC.Integration.COM.Biz.Biz_Rel_Dept_Emp();

        DT_DEPTEMP = bizRelDeptEmp.GetRelDeptEmp_DB(0
                                                    , COMP_ID
                                                    , EST_ID
                                                    , ESTTERM_REF_ID
                                                    , ESTTERM_SUB_ID);
    }
Exemple #3
0
    private void DoBinding_Dept()
    {
        MicroBSC.Integration.EST.Biz.Biz_Est_Data bizEstData = new MicroBSC.Integration.EST.Biz.Biz_Est_Data();
        DT_EST_DATA = bizEstData.GetEstData(COMP_ID
                                            , EST_ID
                                            , ESTTERM_REF_ID
                                            , ESTTERM_SUB_ID
                                            , ConESTTERM_STEP_ID
                                            , ConDIRECTION_TYPE);


        DEPT_REF_ID = -1;
        UltraWebGrid1.Clear();
        UltraWebGrid2.Clear();
        UltraWebGrid3.Clear();

        MicroBSC.Integration.EST.Biz.Biz_Est_Emp_Est_Target_Map bizEmpEstTargetMaps = new MicroBSC.Integration.EST.Biz.Biz_Est_Emp_Est_Target_Map();
        DT_ESTTARGETMAP = bizEmpEstTargetMaps.GetEmpEstTargetMap(COMP_ID
                                                                 , EST_ID
                                                                 , ESTTERM_REF_ID
                                                                 , ESTTERM_SUB_ID
                                                                 , ConESTTERM_STEP_ID
                                                                 , 0
                                                                 , 0
                                                                 , 0
                                                                 , 0).Tables[0];

        string[] groupBy = { "TGT_DEPT_ID"
                             , "TGT_DEPT_NAME"
                             , "TGT_EMP_ID"
                             , "TGT_EMP_NAME"
                             , "TGT_POS_CLS_ID"
                             , "TGT_POS_CLS_NAME"
                             , "TGT_POS_DUT_ID"
                             , "TGT_POS_DUT_NAME"
                             , "TGT_POS_GRP_ID"
                             , "TGT_POS_GRP_NAME"
                             , "TGT_POS_RNK_ID"
                             , "TGT_POS_RNK_NAME"
                             , "TGT_POS_KND_ID"
                             , "TGT_POS_KND_NAME"
                             , "DIRECTION_TYPE" };

        DataTable dtEst = DT_ESTTARGETMAP.Copy();
        DataTable dtTgt = DT_ESTTARGETMAP.Copy();

        DT_ESTTARGETMAP_GROUPBYEST = DataTypeUtility.GetGroupByDataTable(dtEst, groupBy);

        DT_ESTTARGETMAP_GROUPBYTGT = DataTypeUtility.GetGroupByDataTable(dtTgt, new string[] { "EST_DEPT_ID", "EST_EMP_ID", "DIRECTION_TYPE" });



        MicroBSC.Integration.MUL.Biz.Biz_Mul_Est_Emp bizMulEstEmp = new MicroBSC.Integration.MUL.Biz.Biz_Mul_Est_Emp();
        DataTable dtMulEstEmp = bizMulEstEmp.GetDeptMapping_DB(COMP_ID
                                                               , EST_ID
                                                               , ESTTERM_REF_ID
                                                               , ESTTERM_SUB_ID);



        // 평가자 목록 (EST_TYPE : EST)

        /*
         * DT_ESTEMP = bizMulEstEmp.GetEstEmp_DB(COMP_ID
         *                                   , EST_ID
         *                                   , ESTTERM_REF_ID
         *                                   , ESTTERM_SUB_ID
         *                                   , 0
         *                                   , "");
         */
        MicroBSC.Integration.COM.Biz.Biz_Rel_Dept_Emp bizRelDeptEmp = new MicroBSC.Integration.COM.Biz.Biz_Rel_Dept_Emp();
        DT_DEPTEMP = bizRelDeptEmp.GetRelDeptEmp_DB(0
                                                    , COMP_ID
                                                    , EST_ID
                                                    , ESTTERM_REF_ID
                                                    , ESTTERM_SUB_ID);

        DT_DEPTEMP.Columns.Add("TGT_DEPT_ID");
        DT_DEPTEMP.Columns.Add("TGT_EMP_ID");
        DT_DEPTEMP.Columns.Add("TGT_EMP_NAME");
        DT_DEPTEMP.Columns.Add("TGT_CLASS_CODE");
        DT_DEPTEMP.Columns.Add("TGT_CLS_NAME");
        DT_DEPTEMP.Columns.Add("TGT_GRP_CODE");
        DT_DEPTEMP.Columns.Add("TGT_GRP_NAME");
        DT_DEPTEMP.Columns.Add("TGT_RANK_CODE");
        DT_DEPTEMP.Columns.Add("TGT_RANK_NAME");
        DT_DEPTEMP.Columns.Add("TGT_DUTY_CODE");
        DT_DEPTEMP.Columns.Add("TGT_DUT_NAME");
        DT_DEPTEMP.Columns.Add("TGT_KIND_CODE");
        DT_DEPTEMP.Columns.Add("TGT_KND_NAME");



        //랜덤 지정/해제 버튼 보이기 상태
        setRndButtonVisible();



        //매핑 확정/취소 버튼 보이기상태
        if (CheckPossiblityCancelConfirm())
        {
            ibnAddEstData.Visible = true;
            ibnDelEstData.Visible = true;
        }
        else
        {
            ibnAddEstData.Visible = false;
            ibnDelEstData.Visible = false;
        }



        //바인드
        UltraWebGrid1.DataSource = dtMulEstEmp;
        UltraWebGrid1.DataBind();

        if (dtMulEstEmp.Rows.Count > 0)
        {
            ibnRandom.Enabled    = true;
            ibnDelRandom.Enabled = true;
        }
        else
        {
            ibnRandom.Enabled    = false;
            ibnDelRandom.Enabled = false;
        }
    }
Exemple #4
0
    private void NotPostBackSetting()
    {
        // 골타겟 관련 입력 버튼 (농협에서 추가)
        if (PageUtility.GetAppConfig("GOALTONG_YN").Equals("Y"))
        {
            rdoGoalTong.Visible = true;
        }

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

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

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

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


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


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


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

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


        this.SetKpiSignalMaster();

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

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

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

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

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