Exemplo n.º 1
0
    private void GetTermInfos()
    {
        TermInfos termInfo = new TermInfos();
        DataTable dt       = termInfo.GetAllList().Tables[0];

        dt = DataTypeUtility.FilterSortDataTable(dt, "", "EST_STARTDATE");

        UltraWebGrid1.DataSource = dt;
        UltraWebGrid1.DataBind();
    }
Exemplo n.º 2
0
    /// <summary>
    /// 평가기간
    /// </summary>
    /// <param name="ddl"></param>
    public static void BindEstTerm(DropDownList ddl)
    {
        TermInfos term = new TermInfos();
        DataSet   ds   = term.GetAllList();

        ddl.DataSource     = ds;
        ddl.DataTextField  = "ESTTERM_NAME";
        ddl.DataValueField = "ESTTERM_REF_ID";
        ddl.DataBind();

        // 배포되어있는 평가월의 평가기간을 가져온다
        Biz_Bsc_Term_Detail objTD = new Biz_Bsc_Term_Detail();

        ddl.ClearSelection();

        if (ddl.Items.FindByValue(objTD.GetOpenEstTermID().ToString()) != null)
        {
            ddl.Items.FindByValue(objTD.GetOpenEstTermID().ToString()).Selected = true;
        }
    }