Ejemplo n.º 1
0
    protected void ibnDelete_Click(object sender, ImageClickEventArgs e)
    {
        string strPos_id = hdfPosID.Value.Trim();

        Biz_Positions positions = new Biz_Positions("EST_POSITION_" + hdfPosInfoID.Value, hdfPosInfoID.Value);
        bool          bIsExist  = positions.IsExist(strPos_id);

        if (bIsExist == false)
        {
            ltrScript.Text = JSHelper.GetAlertScript("해당 자료가 없습니다.", false);
            return;
        }

        bool bResult = positions.RemovePositions(strPos_id);

        if (bResult)
        {
            DetailGridBinding(hdfPosInfoID.Value);
            InitForm();
        }
        else
        {
            ltrScript.Text = JSHelper.GetAlertBackScript("삭제되지 않았습니다.");
            return;
        }
    }
Ejemplo n.º 2
0
    protected void ibnSave_Click(object sender, ImageClickEventArgs e)
    {
        string pos_id   = txtPosID.Text.Trim();
        string pos_name = txtPosName.Text.Trim();

        Biz_Positions positions = new Biz_Positions("EST_POSITION_" + hdfPosInfoID.Value, hdfPosInfoID.Value);

        if (PageWriteMode == WriteMode.New)
        {
            bool bDuplicate = positions.IsExist(pos_id);

            if (bDuplicate == true)
            {
                ltrScript.Text = JSHelper.GetAlertScript("중복되었습니다.", false);
                return;
            }

            bool bResult = positions.AddPositions(pos_id
                                                  , pos_name
                                                  , DateTime.Now
                                                  , EMP_REF_ID);

            if (bResult == true)
            {
                DetailGridBinding(hdfPosInfoID.Value);
                InitForm();
            }
            else
            {
                ltrScript.Text = JSHelper.GetAlertBackScript("등록되지 않았습니다.");
                return;
            }
        }
        else if (PageWriteMode == WriteMode.Modify)
        {
            bool bIsExist = positions.IsExist(pos_id);

            if (bIsExist == false)
            {
                ltrScript.Text = JSHelper.GetAlertScript("해당 자료가 없습니다.", false);
                return;
            }

            bool bResult = positions.ModifyPositions(pos_id
                                                     , pos_name
                                                     , DateTime.Now
                                                     , EMP_REF_ID);

            if (bResult == true)
            {
                DetailGridBinding(hdfPosInfoID.Value);
                InitForm();
            }
            else
            {
                ltrScript.Text = JSHelper.GetAlertBackScript("수정되지 않았습니다.");
                return;
            }
        }
    }
Ejemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        COMP_ID        = WebUtility.GetRequestByInt("COMP_ID");
        EST_ID         = WebUtility.GetRequest("EST_ID");
        ESTTERM_REF_ID = WebUtility.GetRequestByInt("ESTTERM_REF_ID");
        WEIGHT_TYPE    = WebUtility.GetRequest("WEIGHT_TYPE");

        if (!Page.IsPostBack)
        {
            EST_JOB_ID = "JOB_15";

            View(COMP_ID);

            TextBoxCommon.SetOnlyPercent(txtWeightAll);
            TextBoxCommon.SetOnlyPercent(txtWeightPos);

            ibnConfirm1.Attributes.Add("onclick", "return confirm('설정한 평가방법을 확정하시겠습니까?')");
            ibnConfirmCancel1.Attributes.Add("onclick", "return confirm('확정을 취소하시겠습니까?')");
            ibnConfirm2.Attributes.Add("onclick", "return confirm('설정한 평가방법을 확정하시겠습니까?')");
            ibnConfirmCancel2.Attributes.Add("onclick", "return confirm('확정을 취소하시겠습니까?')");
            ibnSavePosAll.Attributes.Add("onclick", "return confirm('현재 설정을 모든 부서에 일괄 적용하시겠습니까?')");
            ibnSaveAll2.Attributes.Add("onclick", "return confirm('현재 설정을 모든 부서에 일괄 적용하시겠습니까?')");
            ibnRemove.Attributes.Add("onclick", "return confirm('삭제하시겠습니까?')");
            ibnSave2.Attributes.Add("onclick", "return confirm('저장하시겠습니까?')");
            ibnSave3.Attributes.Add("onclick", "return confirm('저장하시겠습니까?')");
            ibnInit2.Attributes.Add("onclick", "return confirm('선택된 부서를 초기화 하시겠습니까?')");
        }

        Biz_Positions positions = new Biz_Positions();

        dtPositionAll = positions.GetPositionAll();

        ltrScript.Text = "";
    }
Ejemplo n.º 4
0
    private void DetailGridBinding(string pos_id)
    {
        Biz_Positions positions = new Biz_Positions("EST_POSITION_" + pos_id, pos_id);
        DataSet       ds        = positions.GetPositions();

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

        InitForm();
    }
Ejemplo n.º 5
0
    private void ViewOne(string strPos_id)
    {
        string strPos = hdfPosInfoID.Value;

        Biz_Positions positions = new Biz_Positions("EST_POSITION_" + strPos
                                                    , strPos
                                                    , strPos_id);

        txtPosID.Text   = positions.PosID;
        txtPosName.Text = positions.PosName;
    }
Ejemplo n.º 6
0
    public static void BindPositionValue(DropDownList ddl, string strPos)
    {
        string strPosTableName = "EST_POSITION_" + strPos;

        Biz_Positions positions = new Biz_Positions(strPosTableName, strPos);
        DataSet       ds        = positions.GetPositions();

        ddl.DataSource     = ds;
        ddl.DataTextField  = "POS_NAME";
        ddl.DataValueField = "POS_ID";
        ddl.DataBind();
    }
Ejemplo n.º 7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        COMP_ID        = WebUtility.GetRequestByInt("COMP_ID");
        EST_ID         = WebUtility.GetRequest("EST_ID");
        ESTTERM_REF_ID = WebUtility.GetRequestByInt("ESTTERM_REF_ID");
        SCALE_TYPE     = WebUtility.GetRequest("SCALE_TYPE");

        if (!Page.IsPostBack)
        {
            EST_JOB_ID = "JOB_14";

            DropDownListCommom.BindEstScaleInfo(ddlScaleIDAll, COMP_ID);
            DropDownListCommom.BindScale(ddlScaleID, COMP_ID);

            Biz_EstInfos estInfo = new Biz_EstInfos(COMP_ID, EST_ID);

            if (estInfo.Grade_Confirm_YN.Equals("Y"))
            {
                tblCtrls1.Visible = true;
                tblCtrls2.Visible = true;

                View(COMP_ID);

                ibnSaveAll.Attributes.Add("onclick", "return confirm( '설정된 평가방법으로 저장하시겠습니까?' )");
                ibnSave.Attributes.Add("onclick", "return confirm( '저장하시겠습니까?' )");
                ibnConfirm.Attributes.Add("onclick", "return confirm('설정한 평가방법을 확정하시겠습니까?')");
                ibnConfirmCancel.Attributes.Add("onclick", "return confirm('확정을 취소하시겠습니까?')");
                ibnSavePosAll.Attributes.Add("onclick", "return confirm('현재 설정을 모든 부서에 적용하시겠습니까?')");
                ibnRemove.Attributes.Add("onclick", "return confirm('삭제하시겠습니까?')");
                ibnSave.Attributes.Add("onclick", "return confirm('저장하시겠습니까?')");
                ibnSave3.Attributes.Add("onclick", "return confirm('저장하시겠습니까?')");
                ibnInit2.Attributes.Add("onclick", "return confirm('선택된 부서를 초기화 하시겠습니까?')");
            }
            else
            {
                tblCtrls1.Visible = false;
                tblCtrls2.Visible = false;

                ltrScript.Text = JSHelper.GetAlertScript("등급확정이 아닌 평가에서는 평가방식 설정이 요구되지 않습니다.");
                return;
            }
        }

        Biz_Positions positions = new Biz_Positions();

        dtPositionAll = positions.GetPositionAll();

        ltrScript.Text = "";
    }
Ejemplo n.º 8
0
    protected void ibnCheckID_Click(object sender, ImageClickEventArgs e)
    {
        string pos_id = txtPosID.Text.Trim();

        if (pos_id.Length == 0)
        {
            ltrScript.Text = JSHelper.GetAlertScript("POS_ID를 입력해주세요.");
            return;
        }

        Biz_Positions positions  = new Biz_Positions("EST_POSITION_" + hdfPosInfoID.Value, hdfPosInfoID.Value);
        bool          bDuplicate = positions.IsExist(pos_id);

        if (bDuplicate)
        {
            ltrScript.Text = JSHelper.GetAlertScript("존재하는 POS_ID가 있습니다.");
        }
        else
        {
            ltrScript.Text = JSHelper.GetAlertScript("사용가능한 POS_ID 입니다.");
        }
    }