コード例 #1
0
ファイル: EST110200.ASPX.cs プロジェクト: schifflee/bscgit
    protected void Page_Load(object sender, EventArgs e)
    {
        EST_JOB_IDS             = WebUtility.GetRequest("EST_JOB_IDS");
        EST_TGT_TYPE            = WebUtility.GetRequest("EST_TGT_TYPE", "EST");
        YEAR_YN                 = WebUtility.GetRequest("YEAR_YN", "N");
        MERGE_YN                = WebUtility.GetRequest("MERGE_YN", "N");
        DEPT_COLUMN_NO_USE_YN   = WebUtility.GetRequest("DEPT_COLUMN_NO_USE_YN", "N");
        ESTTERM_SUB_ALL_USE_YN  = WebUtility.GetRequest("ESTTERM_SUB_ALL_USE_YN", "N");
        ESTTERM_STEP_ALL_USE_YN = WebUtility.GetRequest("ESTTERM_STEP_ALL_USE_YN", "N");
        EST_JOB_ID              = "JOB_04";
        EST_JOB_IDS             = "JOB_04";

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

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

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

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

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

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

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

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

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

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

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

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

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

        if (MERGE_YN.Equals("Y"))
        {
            ESTTERM_STEP_ID = BizUtility.GetEstTermStepIDByMergeYN(COMP_ID);
        }
        else
        {
            if (ESTTERM_STEP_ALL_USE_YN.Equals("Y"))
            {
                ESTTERM_STEP_ID = 0;
            }
            else
            {
                ESTTERM_STEP_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermStepID);
            }
        }

        DEPT_VALUES = hdfEstDept.Value;

        ltrScript.Text = "";
    }
コード例 #2
0
ファイル: EST010300.ASPX.cs プロジェクト: schifflee/bscgit
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //2011.10.28 허성덕과장요청(자화전자 요청)으로 박효동작업(개인평가의 과거년도 개인점수 컬럼들 보이기여부 컬럼 자동추가.
            //Biz_Datas biz = new Biz_Datas();
            //biz.ConfirmNewColumn("EST_INFO", "VISIBLE_PAST_POINT_YN", "ALTER TABLE EST_INFO ADD VISIBLE_PAST_POINT_YN CHAR(1) NULL DEFAULT('Y')");

            DropDownListCommom.BindComp(ddlCompID, lblCompTitle);
            TreeViewCommom.BindEst(TreeView1, WebUtility.GetIntByValueDropDownList(ddlCompID));

            RadioButtonListCommom.BindYN(rblGradeConfirmYN);
            DropDownListCommom.BindBiasType(ddlBiasTypeID);
            RadioButtonListCommom.BindYN(rblBiasYN);
            RadioButtonListCommom.BindYN(rblBiasDeptUseID);
            RadioButtonListCommom.BindYN(rblFixedWeightUseYN);
            RadioButtonListCommom.BindTgtSendType(rblTgtSendType);
            DropDownListCommom.BindSetCtrlStep(ddlPointCtrlStep);
            DropDownListCommom.BindSetCtrlStep(ddlGradeCtrlStep);
            RadioButtonListCommom.BindEstimate(rblOwnerType);
            RadioButtonListCommom.BindEstStyle(rblEstStyle);
            RadioButtonListCommom.BindWeightType(rblWeightType);
            RadioButtonListCommom.BindScaleType(rblScaleType);
            DropDownListCommom.BindStatusStyle(ddlStatusStyleID);
            DropDownListCommom.BindQuestionPageStyle(ddlQuestionStyleID);
            RadioButtonListCommom.BindYN(rblQItemDescUseYN);
            RadioButtonListCommom.BindYN(rblQTgtPosBizUseYN);
            RadioButtonListCommom.BindYN(rblAllStepVisibleYN);
            RadioButtonListCommom.BindYN(rblEmpComDeptYN);
            RadioButtonListCommom.BindUseYN(rblUseYN);
            RadioButtonListCommom.BindVisiblePastPointYN(rblVisiblePastPointYN);
            RadioButtonListCommom.BindEstQTTMBOYN(rblEstQTTMBOYN);
            RadioButtonListCommom.BindMboScoreEstimateYN(rblMboScoreEstimateYN);
            RadioButtonListCommom.BindDashBoardTYPE(rblDashBoardTYPE);
            DropDownListCommom.BindDashBoardType(ddlDashBoardTYPE);
            DropDownListCommom.BindQuestionPreviousStepYN(ddlPreviousStempYN);

            //CheckBoxListCommon.BindEstTermSub(cblEstTermSub, WebUtility.GetIntByValueDropDownList(ddlCompID), "N");
            //CheckBoxListCommon.BindEstTermStep(cblEstTermStep, WebUtility.GetIntByValueDropDownList(ddlCompID), "N");

            BindEstJob(0, "");

            ButtonStatusInit();
        }
        else
        {
            rblDashBoardTYPE.Items[0].Attributes.Add("OnClick", "displayDashboarDDL('Y')");
            rblDashBoardTYPE.Items[1].Attributes.Add("OnClick", "displayDashboarDDL('N')");

            //평가질의지 이전차수 보이기여부
            //for (int i = 0; i < ddlQuestionStyleID.Items.Count; i++)
            //{
            //    if (ddlQuestionStyleID.Items[i].Value == "BLK")
            //        ddlQuestionStyleID.Items[i].Attributes.Add("onchange", "displayPreviousStepDDL('N')");
            //    else
            //        ddlQuestionStyleID.Items[i].Attributes.Add("onchange", "displayPreviousStepDDL('Y')");

            //}
        }

        COMP_ID = WebUtility.GetIntByValueDropDownList(ddlCompID);

        ltrScript.Text = "";
    }