Beispiel #1
0
    void BindGrid()
    {
        try
        {
            List <ClientCase> ds           = ClientCaseBLL.GetListView();
            List <ClientCase> _clientCases = new List <ClientCase>();

            ////Filtration
            //for (int i = 0; i < ds.Count; i++)
            //{
            //    if (ds[i].PrescriptionStatus == state)
            //    {
            //        _clientCases.Add(ds[i]);
            //    }

            //}
            grd.DataSource = ds;
            grd.DataBind();
        }
        catch (Exception ex)
        {
            grd.EmptyDataText = ex.Message;
            grd.DataBind();
        }
    }
Beispiel #2
0
    void BindGrid()
    {
        try
        {
            List <ClientCase> ds           = ClientCaseBLL.GetListView();
            List <ClientCase> _clientCases = new List <ClientCase>();

            //Filtration
            for (int i = 0; i < ds.Count; i++)
            {
                if (ds[i].PrescriptionStatus != PrescriptionStatus.onhold)
                {
                    _clientCases.Add(ds[i]);
                }
            }
            grd.DataSource = _clientCases;
            grd.DataBind();
        }
        catch (Exception ex)
        {
            grd.EmptyDataText = ex.Message;
            grd.DataBind();
        }
    }