Ejemplo n.º 1
0
        private void dgvItemList_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                if (dgvItemList.CurrentRow.Index != -1)
                {
                    if (dgvItemList.CurrentRow.Cells["ID"].Value != null)
                    {
                        DeliverNoteMaterials obj = new DeliverNoteMaterials();

                        obj = objDeliverNoteMaterials_DL.Get(Convert.ToInt64(dgvItemList.CurrentRow.Cells["ID"].Value));

                        frmMRAResults objForm = new frmMRAResults(obj);
                        objForm.ShowDialog(this);
                    }
                }
                Load_Data();
            }
        }
Ejemplo n.º 2
0
        private void dgvDeliverNoteList_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                objDeliverNoteMaterials = objDeliverNoteMaterials_DL.Get(Convert.ToInt64(dgvDeliverNoteList.CurrentRow.Cells["ID"].Value));

                cmbMaterial.SelectedValue = objDeliverNoteMaterials.MaterialCode;
                txtQuantity.Text          = objDeliverNoteMaterials.DeleverdMaterialQty.ToString();
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message, ex);;
            }
        }