Exemple #1
0
    protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
    {
        txtQueryString.Text = string.Empty;
        hdfEstID.Value      = TreeView1.SelectedValue;

        CheckBoxListCommon.Check(cblEstTermSub, false);
        CheckBoxListCommon.Check(cblEstTermStep, false);

        ViewOne(COMP_ID, hdfEstID.Value);
        ButtonStatusModify();
    }
Exemple #2
0
    private void ClearValueControls()
    {
        txtEstID.Text       = "";
        txtEstName.Text     = "";
        hdfUpEstID.Value    = "";
        txtUpEstID.Text     = "";
        txtHeaderColor.Text = "";

        WebUtility.FindByValueRadioButtonList(rblGradeConfirmYN, "N");
        WebUtility.FindByValueRadioButtonList(rblBiasYN, "N");
        WebUtility.FindByValueRadioButtonList(rblTgtSendType, "N");
        CheckBoxListCommon.Check(cblEstTermSub, false);
        CheckBoxListCommon.Check(cblEstTermStep, false);
        WebUtility.FindByValueDropDownList(ddlPointCtrlStep, "1");
        WebUtility.FindByValueDropDownList(ddlGradeCtrlStep, "1");
        WebUtility.FindByValueRadioButtonList(rblOwnerType, "P");
        WebUtility.FindByValueRadioButtonList(rblEstStyle, "BLK");

        txtLinkEstID.Text  = "";
        hdfLinkEstID.Value = "";

        WebUtility.FindByValueRadioButtonList(rblWeightType, "DPT");
        WebUtility.FindByValueRadioButtonList(rblScaleType, "DPT");
        WebUtility.FindByValueDropDownList(ddlBiasTypeID, "1");
        WebUtility.FindByValueRadioButtonList(rblQItemDescUseYN, "N");
        WebUtility.FindByValueRadioButtonList(rblUseYN, "Y");
        WebUtility.FindByValueRadioButtonList(rblVisiblePastPointYN, "Y");
        WebUtility.FindByValueRadioButtonList(rblEstQTTMBOYN, "N");
        WebUtility.FindByValueRadioButtonList(rblMboScoreEstimateYN, "N");
        WebUtility.FindByValueRadioButtonList(rblDashBoardTYPE, "N");

        ddlQuestionStyleID.SelectedIndex = 0;
        ddlDashBoardTYPE.SelectedIndex   = 0;
        ddlDashBoardTYPE.Style.Add("display", "none");
        ddlPreviousStempYN.SelectedIndex = 0;
        //ddlPreviousStempYN.Style.Add("display", "none");
        divQPSYN.Style.Add("display", "none");
        WebUtility.FindByValueRadioButtonList(rblAllStepVisibleYN, "N");
        WebUtility.FindByValueRadioButtonList(rblEmpComDeptYN, "N");

        rblEstStyle_SelectedIndexChanged(null, null);
    }
Exemple #3
0
    protected void ibnSave_Click(object sender, ImageClickEventArgs e)
    {
        string est_id           = txtEstID.Text;
        string up_est_id        = hdfUpEstID.Value;
        string est_name         = txtEstName.Text;
        string header_color     = txtHeaderColor.Text;
        string grade_confirm_yn = WebUtility.GetByValueRadioButtonList(rblGradeConfirmYN);
        string bias_yn          = WebUtility.GetByValueRadioButtonList(rblBiasYN);
        string bias_dept_use_id = WebUtility.GetByValueRadioButtonList(rblBiasDeptUseID);
        string tgt_send_type    = WebUtility.GetByValueRadioButtonList(rblTgtSendType);
        string tgt_opinion_yn   = null;
        string feedback_yn      = null;

        if (bias_yn.Equals("N"))
        {
            bias_dept_use_id = "N";
        }

        if (tgt_send_type.Equals("OPN"))
        {
            tgt_opinion_yn = "Y";
            feedback_yn    = "N";
        }
        else if (tgt_send_type.Equals("FBK"))
        {
            tgt_opinion_yn = "N";
            feedback_yn    = "Y";
        }
        else
        {
            tgt_opinion_yn = "N";
            feedback_yn    = "N";
        }

        int    estterm_sub          = CheckBoxListCommon.GetCheckNum(cblEstTermSub);
        int    estterm_step         = CheckBoxListCommon.GetCheckNum(cblEstTermStep);
        string fixed_weight_use_yn  = WebUtility.GetByValueRadioButtonList(rblFixedWeightUseYN);
        double fixed_weight         = DataTypeUtility.GetToDouble(txtFixedWeight.Text);
        int    point_ctrl_step      = WebUtility.GetIntByValueDropDownList(ddlPointCtrlStep);
        int    grade_ctrl_step      = WebUtility.GetIntByValueDropDownList(ddlGradeCtrlStep);
        string owner_type           = WebUtility.GetByValueRadioButtonList(rblOwnerType);
        string est_style            = WebUtility.GetByValueRadioButtonList(rblEstStyle);
        string link_est_id          = hdfLinkEstID.Value;
        string weight_type          = WebUtility.GetByValueRadioButtonList(rblWeightType);
        string scale_type           = WebUtility.GetByValueRadioButtonList(rblScaleType);
        string status_style_id      = WebUtility.GetByValueDropDownList(ddlStatusStyleID);
        string q_style_id           = WebUtility.GetByValueDropDownList(ddlQuestionStyleID);
        string bias_type_id         = WebUtility.GetByValueDropDownList(ddlBiasTypeID);
        string q_item_desc_use_yn   = WebUtility.GetByValueRadioButtonList(rblQItemDescUseYN);
        string q_tgt_pos_biz_use_yn = WebUtility.GetByValueRadioButtonList(rblQTgtPosBizUseYN);
        string all_step_visible_yn  = WebUtility.GetByValueRadioButtonList(rblAllStepVisibleYN);
        string emp_com_dept_yn      = WebUtility.GetByValueRadioButtonList(rblEmpComDeptYN);
        string use_yn = WebUtility.GetByValueRadioButtonList(rblUseYN);
        string visible_past_point_yn = WebUtility.GetByValueRadioButtonList(rblVisiblePastPointYN);
        string est_qtt_mbo_yn        = WebUtility.GetByValueRadioButtonList(rblEstQTTMBOYN);
        string mbo_score_estimate_yn = WebUtility.GetByValueRadioButtonList(rblMboScoreEstimateYN);
        string dashboard_type        = (rblDashBoardTYPE.SelectedItem.Value != "N" ? ddlDashBoardTYPE.SelectedItem.Value : "N");
        string previousstep_yn       = (ddlQuestionStyleID.SelectedItem.Value == "BLK" ? "N" : ddlPreviousStempYN.SelectedItem.Value.ToString());

        if (visible_past_point_yn.Equals(""))
        {
            visible_past_point_yn = "Y";
        }
        if (est_qtt_mbo_yn.Equals(""))
        {
            est_qtt_mbo_yn = "N";
        }
        if (mbo_score_estimate_yn.Equals(""))
        {
            mbo_score_estimate_yn = "N";
        }

        Biz_EstInfos   estInfo   = new Biz_EstInfos();
        Biz_JobEstMaps jobEstMap = new Biz_JobEstMaps();

        if (PageWriteMode == WriteMode.New)
        {
            bool bDuplicate = estInfo.IsExists(COMP_ID, est_id);

            if (bDuplicate)
            {
                ltrScript.Text = JSHelper.GetAlertScript("존재하는 평가 ID 입니다.");
            }

            bool bResult = estInfo.AddEstInfoAddMaps(COMP_ID
                                                     , est_id
                                                     , up_est_id
                                                     , est_name
                                                     , header_color
                                                     , grade_confirm_yn
                                                     , bias_yn
                                                     , bias_dept_use_id
                                                     , tgt_opinion_yn
                                                     , feedback_yn
                                                     , estterm_sub
                                                     , estterm_step
                                                     , fixed_weight_use_yn
                                                     , fixed_weight
                                                     , point_ctrl_step
                                                     , grade_ctrl_step
                                                     , owner_type
                                                     , est_style
                                                     , link_est_id
                                                     , weight_type
                                                     , scale_type
                                                     , status_style_id
                                                     , q_style_id
                                                     , q_item_desc_use_yn
                                                     , q_tgt_pos_biz_use_yn
                                                     , all_step_visible_yn
                                                     , emp_com_dept_yn
                                                     , bias_type_id
                                                     , visible_past_point_yn
                                                     , est_qtt_mbo_yn
                                                     , mbo_score_estimate_yn
                                                     , dashboard_type
                                                     , previousstep_yn
                                                     , use_yn
                                                     , DateTime.Now
                                                     , EMP_REF_ID);

            bool isOK1 = SaveEstTermSubMap();
            bool isOK2 = SaveEstTermStepMap();
            bool isOK3 = SaveEstJobEstMap();

            DoSavIng_OuterDataProcInfo();

            if (bResult)
            {
                ltrScript.Text = JSHelper.GetAlertScript("정상적으로 저장되었습니다.");
                GridBinding(COMP_ID);
                ButtonStatusInit();
            }
            else
            {
                ltrScript.Text = JSHelper.GetAlertScript("처리 중 오류가 발생하였습니다.");
                return;
            }
        }
        else if (PageWriteMode == WriteMode.Modify)
        {
            bool bResult = estInfo.ModifyEstInfoModifyMaps(COMP_ID
                                                           , est_id
                                                           , up_est_id
                                                           , est_name
                                                           , header_color
                                                           , grade_confirm_yn
                                                           , bias_yn
                                                           , bias_dept_use_id
                                                           , tgt_opinion_yn
                                                           , feedback_yn
                                                           , estterm_sub
                                                           , estterm_step
                                                           , fixed_weight_use_yn
                                                           , fixed_weight
                                                           , point_ctrl_step
                                                           , grade_ctrl_step
                                                           , owner_type
                                                           , est_style
                                                           , link_est_id
                                                           , weight_type
                                                           , scale_type
                                                           , status_style_id
                                                           , q_style_id
                                                           , q_item_desc_use_yn
                                                           , q_tgt_pos_biz_use_yn
                                                           , all_step_visible_yn
                                                           , emp_com_dept_yn
                                                           , bias_type_id
                                                           , visible_past_point_yn
                                                           , est_qtt_mbo_yn
                                                           , mbo_score_estimate_yn
                                                           , dashboard_type
                                                           , previousstep_yn
                                                           , use_yn
                                                           , DateTime.Now
                                                           , EMP_REF_ID);

            bool isOK1 = SaveEstTermSubMap();
            bool isOK2 = SaveEstTermStepMap();
            bool isOK3 = SaveEstJobEstMap();

            DoSavIng_OuterDataProcInfo();

            if (bResult)
            {
                ltrScript.Text = JSHelper.GetAlertScript("정상적으로 수정되었습니다.");
                //GridBinding();
                ButtonStatusModify();
                ViewOne(COMP_ID, hdfEstID.Value);
            }
            else
            {
                ltrScript.Text = JSHelper.GetAlertScript("수정되지 않았습니다.");
                return;
            }
        }
    }