Exemplo n.º 1
0
    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 = "";
    }