Ejemplo n.º 1
0
    protected void PopulateBatchGrid()
    {
        DataTable     DtbBatch  = new DataTable();
        StringBuilder Condition = new StringBuilder();

        Condition.Append(" Where B.Semester_ID =" + CBH.ItemValue(DrpSemesterPopUp));

        //if (chkBatchCode.Checked == true && txtBatchCodeSearch.Text != "")
        //    Condition.Append(" AND B.BatchCode like '%" + txtBatchCodeSearch.Text.Trim() + "%'");
        //if (ChkCddCode.Checked == true && TxtCddCode.Text != "")
        //    Condition.Append(" AND C.CDD_Code like '%" + TxtCddCode.Text.Trim() + "%'");
        //if (ChkCddDescription.Checked == true && txtCdd_Description.Text != "")
        //    Condition.Append(" AND C.CDD_Description like '%" + txtCdd_Description.Text.Trim() + "%'");

        ArrayList pa = new ArrayList();
        ArrayList pv = new ArrayList();

        pa.Add("@BatchCode");
        pv.Add("");
        pa.Add("@Operation");
        pv.Add("BindBatch");
        pa.Add("@Condition");
        pv.Add(Condition.ToString());
        DBH.AdminCreateDataTable(DtbBatch, "SP_GetBatchDetails", true, pa, pv);

        //if (DtbBatch.Rows.Count != 0)
        //{
        GrvBatch.DataSource = DtbBatch;
        GrvBatch.DataBind();
        ME2.Show();
        //}
    }
Ejemplo n.º 2
0
 protected void BtnBatchDetailsSearch_Click(object sender, EventArgs e)
 {
     PopulateBatchGrid();
     ME2.Show();
 }
Ejemplo n.º 3
0
 protected void imgsearch_Click(object sender, ImageClickEventArgs e)
 {
     PopulateSemester();
     PopulateBatchGrid();
     ME2.Show();
 }
Ejemplo n.º 4
0
 protected void DrpSemesterPopUp_SelectedIndexChanged(object sender, EventArgs e)
 {
     PopulateBatchGrid();
     ME2.Show();
 }