private void btnEdit_Click(object sender, EventArgs e)
        {
            string _Qty = "";

            foreach (DataRow _dr in loInventoryType.getInventoryType(cboType.SelectedValue.ToString()).Rows)
            {
                _Qty = _dr["Qty"].ToString();
            }
            StockAdjustmentItemDetailUI loStockAdjustmentItemDetail = new StockAdjustmentItemDetailUI(dgvDetail.CurrentRow.Cells[0].Value.ToString(),
                                                                                                      dgvDetail.CurrentRow.Cells[1].Value.ToString(),
                                                                                                      dgvDetail.CurrentRow.Cells[2].Value.ToString(),
                                                                                                      dgvDetail.CurrentRow.Cells[3].Value.ToString(),
                                                                                                      dgvDetail.CurrentRow.Cells[4].Value.ToString(),
                                                                                                      dgvDetail.CurrentRow.Cells[5].Value.ToString(),
                                                                                                      dgvDetail.CurrentRow.Cells[6].Value.ToString(),
                                                                                                      dgvDetail.CurrentRow.Cells[7].Value.ToString(),
                                                                                                      decimal.Parse(dgvDetail.CurrentRow.Cells[9].Value.ToString()),
                                                                                                      decimal.Parse(dgvDetail.CurrentRow.Cells[10].Value.ToString()),
                                                                                                      decimal.Parse(dgvDetail.CurrentRow.Cells[11].Value.ToString()),
                                                                                                      decimal.Parse(dgvDetail.CurrentRow.Cells[12].Value.ToString()),
                                                                                                      decimal.Parse(dgvDetail.CurrentRow.Cells[13].Value.ToString()),
                                                                                                      dgvDetail.CurrentRow.Cells[14].Value.ToString(), _Qty);

            loStockAdjustmentItemDetail.ParentList = this;
            loStockAdjustmentItemDetail.ShowDialog();
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            string _Qty = "";

            foreach (DataRow _dr in loInventoryType.getInventoryType(cboType.SelectedValue.ToString()).Rows)
            {
                _Qty = _dr["Qty"].ToString();
            }
            StockAdjustmentItemDetailUI loStockAdjustmentItemDetail = new StockAdjustmentItemDetailUI(_Qty);

            loStockAdjustmentItemDetail.ParentList = this;
            loStockAdjustmentItemDetail.ShowDialog();
        }