protected void btnAdd_Click(object sender, EventArgs e)
        {
            int stationeryID = int.Parse(ddlDescription.SelectedValue);

            using (CatalogManager cm = new CatalogManager())
            {
                Stationery stationery = cm.FindStationeryByID(stationeryID);
                List<Stationery> stationeries = new List<Stationery>();
                stationeries.Add(stationery);
                dvStockCard.DataSource = stationeries;
                dvStockCard.DataBind();
            }

            using (AdjustmentVoucherManager avm = new AdjustmentVoucherManager())
            {

                List<StockLogTransaction> trans
                    =
                    avm.GetAllStockLogTransactionByCriteria(new AdjustmentVoucherTransactionSearchDTO { StationeryID = stationeryID });
                this.gvTransactions.DataSource = trans;
                this.gvTransactions.DataBind();
            }

            btnPrint.Enabled = true;
            btnPrint.Visible = true;
        }
        //Test Search by Criteria
        protected void ButtonFind_Click(object sender, EventArgs e)
        {
            AdjustmentVoucherTransactionSearchDTO criteria = new AdjustmentVoucherTransactionSearchDTO();

            if (rbnStockLogID.Checked)
            {
                criteria.StockLogTransactionID = Convert.ToInt32(TextBox1.Text.ToString());
            }

            if (rbnAdjVoucherTran.Checked)
            {
                criteria.AdjustmentVoucherTransactionID = Convert.ToInt32(TextBox1.Text.ToString());
            }

            if (rbnStationeryID.Checked)
            {
                criteria.StationeryID = Convert.ToInt32(TextBox1.Text.ToString());
            }

            if (rbnType.Checked)
            {
                criteria.Type = Convert.ToInt32(TextBox1.Text.ToString());
            }

            if (rbnReason.Checked)
            {
                criteria.Reason = TextBox1.Text.ToString();
            }

            if (rbnQty.Checked)
            {
                criteria.Quantity = Convert.ToInt32(TextBox1.Text.ToString());
            }

            if (rbnBal.Checked)
            {
                criteria.Balance = Convert.ToInt32(TextBox1.Text.ToString());
            }

            using (AdjustmentVoucherManager adjm = new AdjustmentVoucherManager())
            {
                List<StockLogTransaction> slt = adjm.GetAllStockLogTransactionByCriteria(criteria);
                this.GridView1.DataSource = slt;
                this.GridView1.DataBind();
            }
        }