Exemplo n.º 1
0
        private void AddNew()
        {
            frmChiTietDeNghiDoiMa frm = new frmChiTietDeNghiDoiMa();

            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.OK)
            {
                LoadDataSource();
            }
        }
Exemplo n.º 2
0
        private void EditValue(int rowhandle)
        {
            if (rowhandle < 0)
            {
                return;
            }
            BHangDoiMaInfor       item = (BHangDoiMaInfor)grvDanhSach.GetRow(rowhandle);
            frmChiTietDeNghiDoiMa frm  = new frmChiTietDeNghiDoiMa(item);

            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.OK)
            {
                LoadDataSource();
            }
        }
Exemplo n.º 3
0
        private void btnLapDonHangDoiMa_Click(object sender, EventArgs e)
        {
            if (gvListChungTu.FocusedRowHandle < 0)
            {
                return;
            }
            ChungTuBanHangInfor ct = (ChungTuBanHangInfor)gvListChungTu.GetRow(gvListChungTu.FocusedRowHandle);

            if (ct != null)
            {
                frmChiTietDeNghiDoiMa frm = new frmChiTietDeNghiDoiMa(ct);
                frm.HideMenu();
                frm.ShowDialog();
            }
        }