Exemple #1
0
    protected void btnDelete_Click(object sender, EventArgs e)
    {
        int result = 0;

        for (int i = 0; i < ugrdKpiDept.Rows.Count; i++)
        {
            UltraGridRow    row       = ugrdKpiDept.Rows[i];
            TemplatedColumn Col_Check = (TemplatedColumn)row.Band.Columns.FromKey("selchk");
            CheckBox        chkCheck  = (CheckBox)((CellItem)Col_Check.CellItems[row.BandIndex]).FindControl("cBox");
            if (chkCheck.Checked)
            {
                result += new Biz_Bsc_Kpi_Pool().KpiCreateDeptRemove(DataTypeUtility.GetToInt32((row.Cells.FromKey("KPI_REF_ID").Value)));
            }
        }

        if (result > 0)
        {
            ltrScript.Text = JSHelper.GetAlertScript("삭제 되었습니다.");
            ugrdKpiDept.Clear();
            KpiPool_GridBind();
        }
        else
        {
            ltrScript.Text = JSHelper.GetAlertScript("삭제 실패.");
            return;
        }
    }
Exemple #2
0
    private void KpiPool_GridBind()
    {
        DataTable dt = new Biz_Bsc_Kpi_Pool().AllInsertKpiList(ddlEstTermRefID.SelectedValue, txtKpiName.Text);

        ugrdKpiList.DataSource = dt;
        ugrdKpiList.DataBind();
    }
Exemple #3
0
    private void DeptList(int kpi_pool_ref_id, int stg_view_ref_id, int view_ref_id)
    {
        DataTable dt = new Biz_Bsc_Kpi_Pool().KpiCreateDeptList(kpi_pool_ref_id);

        hdkpipool.Value        = kpi_pool_ref_id.ToString();
        hdkpistg.Value         = stg_view_ref_id.ToString();
        hdkpiview.Value        = view_ref_id.ToString();
        ugrdKpiDept.DataSource = dt;
        ugrdKpiDept.DataBind();
    }
    private void DoInitializing()
    {
        Biz_Bsc_Kpi_Pool objPool = new Biz_Bsc_Kpi_Pool(this.IKpiPoolRefID);

        ltrEstBasis.Text = objPool.Ivaluation_basis;
        //this.IKpiGroupRefID = objPool.Ikpi_type;
        //this.IKpiExternalType = objPool.Ikpi_external_type;

        //Biz_Com_Code_Info objCode = new Biz_Com_Code_Info();
        //objCode.GetKpiQualityEstimateGrade(ddlScoreGrade, 0, false, 10);
    }
Exemple #5
0
    private void SetKpiPoolInfo()
    {
        Biz_Bsc_Kpi_Pool objPool = new Biz_Bsc_Kpi_Pool(this.IKpiPoolRefID);

        lblKpiType.Text = objPool.Ikpi_external_type_name + "/" + objPool.Ikpi_type_name;
        //this.IKpiGroup = objPool.Ikpi_type;
        //this.IBasis_Use_Yn = objPool.Ibasis_use_yn;
        this.lblKpiName.Text = objPool.Ikpi_name;

        //Biz_Bsc_Kpi_Category_Low objL = new Biz_Bsc_Kpi_Category_Low(objPool.Icategory_top_ref_id, objPool.Icategory_mid_ref_id, objPool.Icategory_low_ref_id);
        //this.lblKpiCatName.Text = objL.Icategory_top_name + " / " + objL.Icategory_mid_name + " / " + objL.Icategory_low_name;

        //this.ugrdKpiStatusTab.Tabs.FromKey("5").Visible = (this.IBasis_Use_Yn == "EQL") ? true : false;    // 정성지표인경우
    }
Exemple #6
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        int    result = 0;
        string type   = rdoTarget.SelectedValue;
        int    emp_no = DataTypeUtility.GetToInt32(hdfChampionEmpId.Value);

        for (int i = 0; i < ugrdKpiList.Rows.Count; i++)
        {
            UltraGridRow    row       = ugrdKpiList.Rows[i];
            TemplatedColumn Col_Check = (TemplatedColumn)row.Band.Columns.FromKey("selchk");
            CheckBox        chkCheck  = (CheckBox)((CellItem)Col_Check.CellItems[row.BandIndex]).FindControl("cBox");
            if (chkCheck.Checked)
            {
                if (type == "0")
                {
                    result = new Biz_Bsc_Kpi_Pool().AllTargetInsert(emp_no,
                                                                    DataTypeUtility.GetToInt32((row.Cells.FromKey("KPI_POOL_REF_ID").Value))
                                                                    );
                }
                else
                {
                    result = new Biz_Bsc_Kpi_Pool().AllResultInsert(emp_no,
                                                                    DataTypeUtility.GetToInt32((row.Cells.FromKey("KPI_POOL_REF_ID").Value))
                                                                    );
                }
            }
        }
        if (result > 0)
        {
            ltrScript.Text = JSHelper.GetAlertScript("저장되었습니다.");
            GridBind();
        }
        else
        {
            ltrScript.Text = JSHelper.GetAlertScript("저장 실패.");
            return;
        }
    }
    /// <summary>
    /// 지표기본정보 (사업이 있는지 여부)
    /// </summary>
    private void SetKPIBaseInfo()
    {
        //-------------------- KPI Status Setting
        Biz_Bsc_Kpi_Info objBSC = new Biz_Bsc_Kpi_Info(this.IEstTermRefID, this.IKpiRefID);
        DataSet          rDs    = objBSC.GetKpiStatus(this.IEstTermRefID, this.IKpiRefID, gUserInfo.Emp_Ref_ID);

        Biz_Bsc_Kpi_Pool objPool = new Biz_Bsc_Kpi_Pool(objBSC.Ikpi_pool_ref_id);

        if (objPool.Ibasis_use_yn == "EQL")
        {
            iBtnEstOpinion.Visible = true;
        }
        else
        {
            iBtnEstOpinion.Visible = false;
        }

        if (rDs.Tables[0].Rows.Count > 0)
        {
            this.IHaveInitive_YN = rDs.Tables[0].Rows[0]["HAVE_INITIATIVE_YN"].ToString();

            if (this.IHaveInitive_YN == "Y")
            {
                pnlinitiative.Visible = false;
                pnlPrj.Visible        = true;
                this.SetProjectList();
            }
            else
            {
                pnlinitiative.Visible = true;
                pnlPrj.Visible        = false;
                this.SetInitiativeInfo();
                ugrdPrjList.Clear();
            }
        }
    }