protected void GetDisbursementByCriteria_Click(object sender, EventArgs e)
 {
     DisbursementSearchDTO searchCriteria = new DisbursementSearchDTO();
     searchCriteria.CreatedBy = Convert.ToInt32(txbCreateBy.Text.ToString());
     List<Disbursement> disbursements = disbursementDAO.FindDisbursementByCriteria(searchCriteria);
     GridView1.DataSource = disbursements;
     GridView1.DataBind();
 }
        protected void DataBindDisbursementGridView()
        {
            using(BLL.DisbursementManager dm = new DisbursementManager())
            {
                DisbursementSearchDTO criteria = new DisbursementSearchDTO();
                criteria.StationeryRetrievalFormID = this.stationeryRetrievalFormId;
                criteria.DepartmentID = this.DepartmentId;

                this.DisbursementGridView.DataSource =
                    dm.FindDisbursementByCriteria(criteria);
                this.DisbursementGridView.DataBind();
            }
        }
 public List<Disbursement> FindDisbursementByCriteria(DisbursementSearchDTO disbursementSearchDTO)
 {
     return disbursementDAO.FindDisbursementByCriteria(disbursementSearchDTO);
 }
        protected void SearchButton_Click(object sender, EventArgs e)
        {
            int UserID = int.Parse(this.CreatedByDropDownList.SelectedValue);

            DAL.DTO.DisbursementSearchDTO criteria = new DisbursementSearchDTO();
            criteria.CreatedBy = UserID;
            using(DisbursementManager dm = new DisbursementManager())
            {
                this.DisbursementGridView.DataSource = dm.FindDisbursementByCriteria(criteria);
                this.DisbursementGridView.DataBind();

            }
        }