示例#1
0
    private void ViewOne(int comp_id, string est_id, string col_key)
    {
        Biz_ColumnInfos  columnInfos  = new Biz_ColumnInfos(comp_id, est_id, col_key);
        Biz_ColumnStyles columnStyles = new Biz_ColumnStyles(columnInfos.Col_Style_ID);

        txtSeq.Text     = columnInfos.Seq.ToString();
        txtColName.Text = columnInfos.Col_Name;
        WebUtility.FindByValueDropDownList(ddlColStyleID, columnInfos.Col_Style_ID);
        txtColKey.Text  = columnInfos.Col_Key;
        txtCaption.Text = columnInfos.Caption;
        txtWidth.Text   = columnInfos.Width.ToString();

        WebUtility.FindByValueDropDownList(ddlDataType, columnInfos.Data_Type);
        WebUtility.FindByValueDropDownList(ddlHAlign, columnInfos.Halign);
        txtBackColor.Text    = columnInfos.Back_Color;
        txtFormat.Text       = columnInfos.Format;
        txtFormula.Text      = columnInfos.Formula;
        txtDefaultValue.Text = columnInfos.Default_Value;
        txtColDesc.Text      = columnInfos.Col_Desc;

        ckbBackColorYN.Checked    = DataTypeUtility.GetYNToBoolean(columnInfos.Back_color_YN);
        ckbFormatYN.Checked       = DataTypeUtility.GetYNToBoolean(columnInfos.Format_YN);
        ckbFormularYN.Checked     = DataTypeUtility.GetYNToBoolean(columnInfos.Formula_YN);
        ckbDefaultValueYN.Checked = DataTypeUtility.GetYNToBoolean(columnInfos.Default_Value_YN);
        WebUtility.FindByValueRadioButtonList(rbnVisibleYN, columnInfos.Visible_YN);
        WebUtility.FindByValueRadioButtonList(rbnColEmpVisibleYN, columnInfos.Col_Emp_Visible_YN);
        //WebUtility.FindByValueRadioButtonList(rbnGradeToPointVisibleYN, columnInfos.Col_Grade_To_Point_Visible_YN);

        BindEstJob(COMP_ID, EST_ID, col_key);

        ddlColStyleID_SelectedIndexChanged(null, null);
    }
示例#2
0
    private void ClearValueControls()
    {
        txtSeq.Text     = "";
        txtColName.Text = "";
        WebUtility.GetByValueDropDownList(ddlColStyleID, "");
        txtColKey.Text  = "";
        txtCaption.Text = "";
        txtWidth.Text   = "";
        WebUtility.FindByValueDropDownList(ddlDataType, "System.String");
        WebUtility.FindByValueDropDownList(ddlHAlign, "NotSet");
        txtBackColor.Text         = "";
        txtFormat.Text            = "";
        txtFormula.Text           = "";
        txtDefaultValue.Text      = "";
        txtColDesc.Text           = "";
        ckbBackColorYN.Checked    = false;
        ckbFormatYN.Checked       = false;
        ckbFormularYN.Checked     = false;
        ckbDefaultValueYN.Checked = false;
        WebUtility.FindByValueRadioButtonList(rbnVisibleYN, "Y");
        WebUtility.FindByValueRadioButtonList(rbnColEmpVisibleYN, "N");
        WebUtility.FindByValueDropDownList(ddlColStyleID, "NML");
        ddlColStyleID_SelectedIndexChanged(null, null);

        //WebUtility.FindByValueRadioButtonList(rbnGradeToPointVisibleYN, "N");
        //WebUtility.FindByValueRadioButtonList(rbnEstTermSubVisibleYN, "N");
        //WebUtility.FindByValueRadioButtonList(rbnEstTermStepVisibleYN, "N");
    }
示例#3
0
    protected void ugrdColumn_SelectedRowsChange(object sender, Infragistics.WebUI.UltraWebGrid.SelectedRowsEventArgs e)
    {
        Infragistics.WebUI.UltraWebGrid.UltraGridRow ugrd = e.SelectedRows[0];

        this.ISEQ = DataTypeUtility.GetToInt32(ugrd.Cells.FromKey("SEQ").Value);
        if (ugrd.Cells.FromKey("COL_TYPE").Value.ToString() == "FIXEDKEY")
        {
            iBtnSave.Visible = false;
        }
        else
        {
            iBtnSave.Visible = true;
        }

        WebUtility.FindByValueRadioButtonList(rblVISIBLE_YN, ugrd.Cells.FromKey("VISIBLE_YN").Value.ToString());
        WebUtility.FindByValueRadioButtonList(rblUSE_YN, ugrd.Cells.FromKey("USE_YN").Value.ToString());
        txtCOL_ORDER.Text = ugrd.Cells.FromKey("COL_ORDER").Value.ToString();
        txtCOL_KEY.Text   = ugrd.Cells.FromKey("COL_KEY").Value.ToString();
        txtCOL_NAME.Text  = ugrd.Cells.FromKey("COL_NAME").Value.ToString();
        txtCOL_DESC.Text  = ugrd.Cells.FromKey("COL_DESC").Value.ToString();
        WebUtility.FindByValueDropDownList(ddlTYPE, ugrd.Cells.FromKey("COL_TYPE").Value.ToString());
        txtCOL_WIDTH.Text = ugrd.Cells.FromKey("COL_WIDTH").Value.ToString();
        WebUtility.FindByValueDropDownList(ddlALIGN, ugrd.Cells.FromKey("COL_ALIGN").Value.ToString());
        WebUtility.FindByValueDropDownList(ddlDATATYPE, ugrd.Cells.FromKey("DATA_TYPE").Value.ToString());
        txtPROC_NAME.Text = ugrd.Cells.FromKey("PROC_NAME").Value.ToString();
        WebUtility.FindByValueDropDownList(ddlPROCTYPE, ugrd.Cells.FromKey("PROC_TYPE").Value.ToString());
    }
示例#4
0
    protected void ugrdEstQuestion_InitializeRow(object sender, RowEventArgs e)
    {
        string q_sbj_id = DataTypeUtility.GetString(e.Row.Cells.FromKey("Q_SBJ_ID"));

        Biz_QuestionItems questionItems = new Biz_QuestionItems();
        DataTable         dt_q_item     = questionItems.GetQuestionItem("", q_sbj_id, Q_OBJ_ID).Tables[0];


        TemplatedColumn tc = (TemplatedColumn)e.Row.Band.Columns.FromKey("Q_ITEM");
        RadioButtonList rdoQuestionItem = (RadioButtonList)((CellItem)tc.CellItems[e.Row.Index]).FindControl("rdoQuestionItem");

        rdoQuestionItem.RepeatDirection = RepeatDirection.Horizontal;
        rdoQuestionItem.RepeatLayout    = RepeatLayout.Table;
        rdoQuestionItem.DataSource      = dt_q_item;
        rdoQuestionItem.DataBind();



        Biz_QuestionDatas questionDatas = new Biz_QuestionDatas(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
                                                                , q_sbj_id);

        WebUtility.FindByValueRadioButtonList(rdoQuestionItem, questionDatas.Q_Itm_ID);
    }
示例#5
0
    private void ClearValueControls()
    {
        WebUtility.FindByValueRadioButtonList(rblMode, "0");

        //txtSearchEstName.Text   = "";
        //hdfSearchEstID.Value    = "";
        txtQItmID.Text   = "";
        txtQItmName.Text = "";
        txtNum.Text      = "";
        txtPoint.Text    = "";
        txtComment.Text  = "";
        hdfQSbjID.Value  = "";
        hdfQDfnID.Value  = "";
        WebUtility.FindByValueRadioButtonList(rblSubjectItemYN, "0");
    }
示例#6
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);
    }
示例#7
0
    protected void ugrdEstComment_InitializeRow(object sender, RowEventArgs e)
    {
        string self_top_id = DataTypeUtility.GetString(e.Row.Cells.FromKey("SELF_TOP_ID"));

        DataTable dt_question = DataTypeUtility.FilterSortDataTable(DT_EST_SELF_DATA, string.Format("SELF_TOP_ID={0}", self_top_id));


        TemplatedColumn tc            = (TemplatedColumn)e.Row.Band.Columns.FromKey("EST_COMMENT");
        RadioButtonList rdoEstComment = (RadioButtonList)((CellItem)tc.CellItems[e.Row.Index]).FindControl("rdoEstComment");

        rdoEstComment.RepeatDirection = RepeatDirection.Horizontal;
        rdoEstComment.RepeatLayout    = RepeatLayout.Table;
        rdoEstComment.Width           = Unit.Percentage(99);
        rdoEstComment.DataSource      = dt_question;
        rdoEstComment.DataBind();

        DataTable dt_q_selected = DataTypeUtility.FilterSortDataTable(dt_question, string.Format("SELECTED > 0"));

        if (dt_q_selected.Rows.Count > 0)
        {
            WebUtility.FindByValueRadioButtonList(rdoEstComment, DataTypeUtility.GetString(dt_q_selected.Rows[0]["SELF_MID_ID"]));
        }
    }
示例#8
0
    private void BindingItem(DataListItemEventArgs e)
    {
        DataRowView dr = (DataRowView)e.Item.DataItem;

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

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


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



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

        TextBoxCommon.SetOnlyPercent(txtValue);

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

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

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

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

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

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

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

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

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

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

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

                groupNumber += questionDatas.Point;

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


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

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

                string clientIDs = "";

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

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

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

                //----------------- 라디오버튼 유효성 검사 끝 -------------------
            }
        }
    }
示例#9
0
    private void BindingItem_P(DataListItemEventArgs e)
    {
        DataRowView dr = (DataRowView)e.Item.DataItem;

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

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

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

        //TextBoxCommon.SetOnlyInteger(txtValue);

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

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

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

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

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

            // 만약 피드백을 적용할 경우
            if (_feedback_yn.Equals("Y"))
            {
                if (EST_TGT_TYPE.Equals("TGT"))
                {
                    txtValue.ReadOnly = true;
                    rBtnList.Enabled  = false;
                }

                trTextValue.Visible = true;
            }

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

            Biz_QuestionDatas questionDatas = new Biz_QuestionDatas(COMP_ID
                                                                    , EST_ID
                                                                    , ESTTERM_REF_ID
                                                                    , ESTTERM_SUB_ID
                                                                    , this.IESTTERM_STEP_PREVIOUS_SELECT
                                                                    , 0
                                                                    , 0
                                                                    , TGT_DEPT_ID
                                                                    , TGT_EMP_ID
                                                                    , q_sbj_id);
            // 데이타 바인딩
            WebUtility.FindByValueRadioButtonList(rBtnList, questionDatas.Q_Itm_ID);

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

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

            string clientIDs = "";

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

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

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

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

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

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

        txtHeaderColor.Text = estInfo.Header_Color;

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

        rblFixedWeightUseYN_SelectedIndexChanged(rblFixedWeightUseYN, null);

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

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

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

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

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

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

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

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

        BindEstJob(comp_id, est_id);

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

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

        if (dtOuterDataProcInfo.Rows.Count > 0)
        {
            txtQueryString.Text = DataTypeUtility.GetValue(dtOuterDataProcInfo.Rows[0]["QUERY_STRING"]);
        }
    }
示例#11
0
    private void BindingItem_P(DataListItemEventArgs e)
    {
        DataRowView dr           = (DataRowView)e.Item.DataItem;
        string      q_dfn_id     = DataTypeUtility.GetValue(dr["Q_DFN_ID"]);
        string      q_sbj_id     = DataTypeUtility.GetValue(dr["Q_SBJ_ID"]);
        string      q_obj_id     = DataTypeUtility.GetValue(dr["Q_OBJ_ID"]);
        string      q_sbj_define = DataTypeUtility.GetValue(dr["Q_SBJ_DEFINE"]);
        string      q_sbj_desc   = DataTypeUtility.GetValue(dr["Q_SBJ_DESC"]);
        double      weight       = DataTypeUtility.GetToDouble(dr["WEIGHT"]);

        Literal         ltrDefine     = e.Item.FindControl("ltrLevelDefine") as Literal;
        Literal         ltrDesc       = e.Item.FindControl("ltrLevelDesc") as Literal;
        RadioButtonList rBtnList      = e.Item.FindControl("rBtnList") as RadioButtonList;
        TextBox         txtValue      = e.Item.FindControl("txtLevelValue") as TextBox;
        HiddenField     hAttachNo     = e.Item.FindControl("hAttachNo") as HiddenField;
        DropDownList    ddlFileUpload = e.Item.FindControl("ddlFileUpload") as DropDownList;
        ImageButton     ibnDownload   = e.Item.FindControl("ibnDownload") as ImageButton;
        ImageButton     iBtnAttach    = e.Item.FindControl("iBtnAttach") as ImageButton;
        Literal         ltrUpload     = e.Item.FindControl("ltrUpload") as Literal;
        TextBox         txtTextValue  = e.Item.FindControl("txtLevelTextValue") as TextBox;
        TextBox         txtOpinion    = e.Item.FindControl("txtLevelOpinion") as TextBox;
        Literal         ltrPointData  = e.Item.FindControl("ltrLevelPointData") as Literal;
        Label           lblCnt        = e.Item.FindControl("lblCnt") as Label;

        TextBoxCommon.SetOnlyInteger(txtValue);

        ltrUpload.Text = string.Format("<a href='#null' onclick=\"mfUpload('{0}');\"><img src='../images/icon/icon_gr_po05.gif' align='absmiddle' border='0'/></a>", hAttachNo.ClientID);

        ibnDownload.CausesValidation = false;
        ibnDownload.CommandName      = ddlFileUpload.UniqueID;

        ltrDefine.Text = q_sbj_define;
        ltrDesc.Text   = q_sbj_desc;

        DropDownListCommom.BindDefaultValue(ddlFileUpload, "--------------------", "");

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

        if (ds.Tables[0].Rows.Count == 0)
        {
            rBtnList.Visible = false;
            txtValue.Visible = false;
            txtValue.Width   = Unit.Percentage(100);
        }
        else if (ds.Tables[0].Rows[0]["SUBJECT_ITEM_YN"].ToString() == "1")
        {
            rBtnList.Visible = false;
            txtValue.Visible = true;
            txtValue.Width   = Unit.Percentage(100);
        }
        else
        {
            // 평가자인지 피평가인지 따라
            if (EST_TGT_TYPE.Equals("EST"))
            {
                ibnDownload.Visible = true;
                ltrUpload.Visible   = false;
            }
            else if (EST_TGT_TYPE.Equals("TGT"))
            {
                ibnDownload.Visible = true;
                ltrUpload.Visible   = true;
                rBtnList.Visible    = false;
                txtOpinion.Visible  = false;
            }

            txtValue.Visible = false;

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

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

            Biz_QuestionDatas questionDatas = new Biz_QuestionDatas(COMP_ID
                                                                    , EST_ID
                                                                    , ESTTERM_REF_ID
                                                                    , ESTTERM_SUB_ID
                                                                    , this.IESTTERM_STEP_PREVIOUS_SELECT
                                                                    , 0
                                                                    , 0
                                                                    , TGT_DEPT_ID
                                                                    , TGT_EMP_ID
                                                                    , q_sbj_id);
            // 데이타 바인딩

            WebUtility.FindByValueRadioButtonList(rBtnList, questionDatas.Q_Itm_ID);
            TOTALPOINT += questionDatas.Point * weight;

            txtTextValue.Text = questionDatas.Text_Value;
            txtOpinion.Text   = questionDatas.Opinion;
            ltrPointData.Text = DataTypeUtility.GetToInt32_String(questionDatas.Point, "##.#0");
            hAttachNo.Value   = questionDatas.Attach_NO;

            SetUploadFileInfo(hAttachNo.Value, ddlFileUpload);

            if (ddlFileUpload.Items.Count > 1)
            {
                lblCnt.Text = string.Format("({0}건)", ddlFileUpload.Items.Count - 1);
            }

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

            string clientIDs = "";

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

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

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

            //----------------- 라디오버튼 유효성 검사 끝 -------------------
        }
    }