private void BatchFill()
        {
            BatchBiz     batchBiz = new BatchBiz();
            List <Batch> batches  = batchBiz.GetBatches();

            if (batches != null && batches.Count > 0)
            {
                GridView1.DataSource = batches;
                GridView1.DataBind();
            }
            else
            {
                GridView1.DataSource = null;
                GridView1.DataBind();
            }
        }
Пример #2
0
        private void BatchFill()
        {
            BatchBiz     batchBiz = new BatchBiz();
            List <Batch> batches  = batchBiz.GetBatches();

            if (batches != null && batches.Count > 0)
            {
                for (int i = 0; i < batches.Count; i++)
                {
                    ddl_Batch.Items.Add(batches[i].ID.ToString());
                }
                ddl_Batch.Items.Insert(0, new ListItem("Select Batch", " "));
            }
            else
            {
                ddl_Batch.Items.Clear();
            }
        }