private void InsertKhoVatTu() { var kho = (STO_KhoVatTu)grvKhoVatTu.GetFocusedRow(); int rs = KhoVatTuCtrl.Insert(kho); if (rs == 0) { NotifyHelper.ShowInsertError(); grvKhoVatTu_Load(); } }
private void InsertCommand() { var sanPham = (CAT_SanPham)gridView.GetFocusedRow(); int rs = SanPhamCtrl.Insert(sanPham); if (rs == 0) { NotifyHelper.ShowInsertError(); gridControl_Load(); } }
private void InsertCommand() { var kh = (CAT_KhachHang)gridView.GetFocusedRow(); int rs = KhachHangCtrl.Insert(kh); if (rs == 0) { NotifyHelper.ShowInsertError(); gridControl_Load(); } }
private void InsertCommand() { var nhaCC = (CAT_NhaCungCap)gridView.GetFocusedRow(); int rs = NhaCungCapCtrl.Insert(nhaCC); if (rs == 0) { NotifyHelper.ShowInsertError(); gridControl_Load(); } }
private void InsertCommand() { var loai = (ViewCboLoaiVatTu)gridView.GetFocusedRow(); loai.ID_nhom_vat_tu = Properties.Settings.Default.ID_nhom_vat_tu; int rs = LoaiVatTuCtrl.Insert(loai); if (rs == 0) { NotifyHelper.ShowInsertError(); gridControl_Load(); } }
private void InsertCommand() { var nhom = (STO_NhomVatTu)gridView.GetFocusedRow(); nhom.ID_kho = Properties.Settings.Default.ID_kho; int rs = NhomVatTuCtrl.Insert(nhom); if (rs == 0) { NotifyHelper.ShowInsertError(); gridControl_Load(); } }
private void InsertCommand() { var vt = (ViewCboVatTu)gridView.GetFocusedRow(); vt.ID_loai_vat_tu = (int)ledLoaiVatTu.EditValue; int rs = VatTuCtrl.Insert(vt); if (rs == 0) { NotifyHelper.ShowInsertError(); gridControl_Load(); } }