Esempio n. 1
0
    private void BindingPosBizByTgt()
    {
        Biz_EstInfos           estInfo   = new Biz_EstInfos(COMP_ID, EST_ID);
        Biz_QuestionPageStyles pageStyle = new Biz_QuestionPageStyles(estInfo.Q_Style_ID);

        QUESTION_PAGE_NAME = pageStyle.Question_Style_Page_Name;

        Biz_EmpPositionBizMaps empPosBizMap = new Biz_EmpPositionBizMaps();

        DT_TGT_EMP_POS_BIZ = empPosBizMap.GetPosBizMap(0).Tables[0];
    }
Esempio n. 2
0
    protected void ibnSave_Click(object sender, ImageClickEventArgs e)
    {
        if (TGT_EMP_ID.Equals(""))
        {
            ltrScript.Text = JSHelper.GetAlertScript("선택된 피평가자가 없습니다.");
            return;
        }

        Biz_EmpPositionBizMaps empPosBizMap = new Biz_EmpPositionBizMaps();
        DataTable dataTable = empPosBizMap.GetDataTableSchema();

        dataTable = UltraGridUtility.GetDataTableByCheckValue(UltraWebGrid2
                                                              , "cBox"
                                                              , "selchk"
                                                              , new string[] { "POS_BIZ_ID" }
                                                              , dataTable);

        foreach (DataRow dataRow in dataTable.Rows)
        {
            dataRow["EMP_REF_ID"] = TGT_EMP_ID;
            dataRow["DATE"]       = DateTime.Now;
            dataRow["USER"]       = EMP_REF_ID;
        }

        bool isOK = empPosBizMap.SavePosBizMap(dataTable, TGT_EMP_ID);

        if (isOK)
        {
            BindingPosBizByTgt();
            BindingEmp();

            hdfTgtEmpID.Value    = "";
            hdfTgtPosKndID.Value = "";
            UltraWebGrid2.Clear();

            ltrScript.Text = JSHelper.GetAlertScript("정상적으로 직무설정 되었습니다.");
        }
        else
        {
            ltrScript.Text = JSHelper.GetAlertScript("처리 중 오류가 발생하였습니다.");
        }
    }