Exemplo n.º 1
0
    private void UpdateStgData()
    {
        if (!this.CheckFormData())
        {
            return;
        }

        MicroBSC.BSC.Biz.Biz_Bsc_Stg_Info objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Stg_Info();

        objBSC.Istg_ref_id     = this.IStgRefID;
        objBSC.Iestterm_ref_id = this.IEstTermRefID;
        objBSC.Istg_code       = txtSTG_CODE.Text.Trim();
        objBSC.Istg_etc        = txtSTG_ETC.Text;
        objBSC.Istg_name       = txtSTG_NAME.Text.Trim();
        objBSC.Istg_set_desc   = txtSTG_SET_DESC.Text;
        objBSC.Create_user     = gUserInfo.Emp_Ref_ID;
        objBSC.Iup_stg_id      = 0;
        objBSC.Iuse_yn         = "Y";
        objBSC.View_ref_id     = int.Parse(PageUtility.GetByValueDropDownList(ddlStgViewInfo));

        int intRtn = objBSC.UpdateData(objBSC.Istg_ref_id
                                       , objBSC.Iup_stg_id
                                       , objBSC.Istg_code
                                       , objBSC.Istg_name
                                       , objBSC.Istg_set_desc
                                       , objBSC.Istg_etc
                                       , objBSC.Iuse_yn
                                       , gUserInfo.Emp_Ref_ID, objBSC.View_ref_id);

        ltrScript.Text = JSHelper.GetAlertScript(objBSC.Transaction_Message, false);
    }
Exemplo n.º 2
0
    private void DoSetPossibleCopay()
    {
        MicroBSC.BSC.Biz.Biz_Bsc_Stg_Info objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Stg_Info();
        DataTable dt = objBSC.GetAllList(WebUtility.GetIntByValueDropDownList(ddlEstTermInfo2), "", "", "").Tables[0];

        this.IPOSSIBLE_COPY = (dt.Rows.Count > 0 ? false : true);
    }
Exemplo n.º 3
0
    protected void SetStgGrid()
    {
        //if (TypeUtility.GetNumString(PageUtility.GetByValueDropDownList(ddlEstTermInfo)) == "")
        //{
        //    PageUtility.AlertMessage("평가기간을 알 수 없습니다!");
        //    return;
        //}

        MicroBSC.BSC.Biz.Biz_Bsc_Stg_Info objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Stg_Info();
        objBSC.Iestterm_ref_id = Convert.ToInt32(PageUtility.GetByValueDropDownList(ddlEstTermInfo));
        objBSC.Istg_code       = txtKPICode.Text;
        objBSC.Istg_name       = txtKPIName.Text;
        objBSC.Iuse_yn         = PageUtility.GetByValueDropDownList(ddlUseYn);

        //DataSet rDs = objBSC.GetAllList(objBSC.Iestterm_ref_id, objBSC.Istg_code, objBSC.Istg_name, objBSC.Iuse_yn);
        DataSet rDs = objBSC.GetAllList(objBSC.Istg_code, objBSC.Istg_name, objBSC.Iuse_yn, PageUtility.GetByValueDropDownList(ddlStgViewInfo));

        ugrdStgList.Clear();

        if (rDs.Tables.Count > 0)
        {
            ugrdStgList.DataSource = rDs;
            ugrdStgList.DataBind();
        }
    }
Exemplo n.º 4
0
 private void DoCopyStg()
 {
     MicroBSC.BSC.Biz.Biz_Bsc_Stg_Info objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Stg_Info();
     if (objBSC.CopyStg(WebUtility.GetIntByValueDropDownList(ddlEstTermInfo), WebUtility.GetIntByValueDropDownList(ddlEstTermInfo2), gUserInfo.Emp_Ref_ID))
     {
         PageUtility.AlertMessage("복사하였습니다.");
     }
     else
     {
         PageUtility.AlertMessage("복사 실패!");
     }
     DoSetPossibleCopay();
 }
Exemplo n.º 5
0
 private void SetFormData()
 {
     if (this.IType != "A")
     {
         MicroBSC.BSC.Biz.Biz_Bsc_Stg_Info objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Stg_Info(this.IEstTermRefID, this.IStgRefID);
         this.IEstTermRefID           = objBSC.Iestterm_ref_id;
         this.IStgRefID               = objBSC.Istg_ref_id;
         txtSTG_CODE.Text             = objBSC.Istg_code;
         txtSTG_ETC.Text              = objBSC.Istg_etc;
         txtSTG_NAME.Text             = objBSC.Istg_name;
         txtSTG_SET_DESC.Text         = objBSC.Istg_set_desc;
         ddlStgViewInfo.SelectedValue = objBSC.View_ref_id.ToString();
     }
 }
Exemplo n.º 6
0
    private void ReUsedStgData()
    {
        if (!this.CheckFormData())
        {
            return;
        }

        this.IType = "RU";
        MicroBSC.BSC.Biz.Biz_Bsc_Stg_Info objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Stg_Info();

        int intRtn = objBSC.ReUsedData(this.IEstTermRefID
                                       , this.IStgRefID
                                       , gUserInfo.Emp_Ref_ID);


        ltrScript.Text = JSHelper.GetAlertOpenerControlCallBackScript(objBSC.Transaction_Message, this.ICCB1, true);
    }
Exemplo n.º 7
0
    private void InsertStgData()
    {
        if (!this.CheckFormData())
        {
            return;
        }

        MicroBSC.BSC.Biz.Biz_Bsc_Stg_Info objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Stg_Info();
        objBSC.Iestterm_ref_id = this.IEstTermRefID;
        objBSC.Istg_code       = txtSTG_CODE.Text.Trim().ToUpper();
        objBSC.Istg_name       = txtSTG_NAME.Text.Trim();
        objBSC.Istg_set_desc   = txtSTG_SET_DESC.Text;
        objBSC.Istg_etc        = txtSTG_ETC.Text;
        objBSC.Iup_stg_id      = 0;
        objBSC.Iuse_yn         = "Y";
        objBSC.Create_user     = gUserInfo.Emp_Ref_ID;

        //int intRtn = objBSC.InsertData(objBSC.Iestterm_ref_id,
        //                               objBSC.Iup_stg_id,
        //                               objBSC.Istg_code,
        //                               objBSC.Istg_name,
        //                               objBSC.Istg_set_desc,
        //                               objBSC.Istg_etc,
        //                               objBSC.Iuse_yn,
        //                               gUserInfo.Emp_Ref_ID);

        int intRtn = objBSC.InsertData(
            objBSC.Iup_stg_id,
            objBSC.Istg_code,
            objBSC.Istg_name,
            objBSC.Istg_set_desc,
            objBSC.Istg_etc,
            objBSC.Iuse_yn,
            gUserInfo.Emp_Ref_ID
            , int.Parse(PageUtility.GetByValueDropDownList(ddlStgViewInfo)));

        ltrScript.Text = JSHelper.GetAlertScript(objBSC.Transaction_Message, false);

        if (objBSC.Transaction_Result == "Y")
        {
            this.IStgRefID = objBSC.Istg_ref_id;
            this.IType     = "U";
            this.SetFormData();
            this.SetButton();
        }
    }