示例#1
0
    private void DoBindingList()
    {
        MicroBSC.BSC.Biz.Biz_Bsc_Kpi_Info objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Kpi_Info();
        DataSet ds = objBSC.GetKpiListPerUser(this.IESTTERM_REF_ID
                                              , ""
                                              , txtKPICode.Text.Trim()
                                              , txtKPIName.Text.Trim()
                                              , ""
                                              , txtChamName.Text.Trim()
                                              , (ddlComDept.SelectedValue.Trim() == "") ? -1 : int.Parse(ddlComDept.SelectedValue)
                                              , PageUtility.GetByValueDropDownList(ddlKpiGroupRefID)
                                              , "Y"
                                              , int.Parse(gUserInfo.Emp_Ref_ID.ToString()));

        if (ds.Tables[0].Rows.Count > 0)
        {
            MicroBSC.BSC.Biz.Biz_Bsc_Kpi_Group objGroup = new MicroBSC.BSC.Biz.Biz_Bsc_Kpi_Group();
            DataTable dtExists = objGroup.GetGroupMapList(this.IESTTERM_REF_ID, 0);

            if (dtExists.Rows.Count > 0)
            {
                foreach (DataRow dr in dtExists.Rows)
                {
                    DataRow[] drExists = ds.Tables[0].Select("KPI_REF_ID = " + DataTypeUtility.GetToInt32(dr["KPI_REF_ID"]));
                    if (drExists.Length > 0)
                    {
                        drExists[0].Delete();
                    }
                }
            }
        }
        ugrdKpiList.Clear();
        ugrdKpiList.DataSource = ds;
        ugrdKpiList.DataBind();
    }
示例#2
0
    private void DoBinding()
    {
        if (this.IESTTERM_REF_ID == 0)
        {
            ltrScript.Text = JSHelper.GetAlertScript("평가기간을 선택하세요!");
            return;
        }
        if (ddlGroup.Items.Count == 0)
        {
            ltrScript.Text = JSHelper.GetAlertScript("지표그룹을 선택하세요!");
            return;
        }
        MicroBSC.BSC.Biz.Biz_Bsc_Kpi_Group bizBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Kpi_Group();
        DataTable dtList = bizBSC.GetGroupMapList(this.IESTTERM_REF_ID, PageUtility.GetIntByValueDropDownList(ddlGroup));

        ugrdGroupList.Clear();
        ugrdGroupList.DataSource = dtList;
        ugrdGroupList.DataBind();
    }