protected void Delete_Click(object sender, EventArgs e) { BatchBiz batchBiz = new BatchBiz(); batchBiz.DeleteBatch(ddl_Batch.SelectedValue); BatchFill(); }
protected void Submit_Click(object sender, EventArgs e) { Batch batch = new Batch { BatchName = txtBatchName.Text, Course = txtCourse.Text, NoOfCandidate = Convert.ToInt32(txtNoOfCandidate.Text), }; BatchBiz batchBiz = new BatchBiz(); batchBiz.SaveBatch(batch); BatchFill(); }
protected void Update_Click(object sender, EventArgs e) { Batch batch = new Batch { ID = Convert.ToInt32(ddl_Batch.SelectedValue), BatchName = txtBatchName.Text, Course = txtCourse.Text, NoOfCandidate = Convert.ToInt32(txtNoOfCandidate.Text) }; BatchBiz batchBiz = new BatchBiz(); batchBiz.UpdateBatch(batch); BatchFill(); }
protected void ddl_Batch_SelectedIndexChanged(object sender, EventArgs e) { BatchBiz batchBiz = new BatchBiz(); List <Batch> batch = batchBiz.GetBatchesByID(ddl_Batch.SelectedValue); if (batch != null && batch.Count > 0) { for (int i = 0; i < batch.Count; i++) { txtBatchName.Text = batch[i].BatchName; txtCourse.Text = batch[i].Course; txtNoOfCandidate.Text = Convert.ToString(batch[i].NoOfCandidate); } } }
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(); } }
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(); } }
public Batch() : base() { m_biz = new BatchBiz(); }
public BatchPipeline() : base() { m_biz = new BatchBiz(); }