Example #1
0
        private void UpdateCommand()
        {
            var sanPham = (CAT_SanPham)gridView.GetFocusedRow();
            int rs      = SanPhamCtrl.Update(sanPham);

            if (rs == 0)
            {
                NotifyHelper.ShowUpdateError();
                gridControl_Load();
            }
        }
Example #2
0
        private void UpdateKhoVatTu()
        {
            var kho = (STO_KhoVatTu)grvKhoVatTu.GetFocusedRow();
            int rs  = KhoVatTuCtrl.Update(kho);

            if (rs == 0)
            {
                NotifyHelper.ShowUpdateError();
                grvKhoVatTu_Load();
            }
        }
Example #3
0
        private void UpdateCommand()
        {
            var kh = (CAT_KhachHang)gridView.GetFocusedRow();
            int rs = KhachHangCtrl.Update(kh);

            if (rs == 0)
            {
                NotifyHelper.ShowUpdateError();
                gridControl_Load();
            }
        }
        private void UpdateKhoVatTuCT()
        {
            STO_KhoVatTuCT khoCT = (STO_KhoVatTuCT)grvKhoVatTuCT.GetFocusedRow();
            var            rs    = KhoVatTuCTCtrl.Update(khoCT);

            if (rs == 0)
            {
                NotifyHelper.ShowUpdateError();
                grvKhoVatTuCT_Load();
            }
        }
Example #5
0
        private void UpdateCommand()
        {
            var nhaCC = (CAT_NhaCungCap)gridView.GetFocusedRow();
            int rs    = NhaCungCapCtrl.Update(nhaCC);

            if (rs == 0)
            {
                NotifyHelper.ShowUpdateError();
                gridControl_Load();
            }
        }
        private void UpdateCommand()
        {
            var loai = (ViewCboLoaiVatTu)gridView.GetFocusedRow();

            loai.ID_nhom_vat_tu = Properties.Settings.Default.ID_nhom_vat_tu;

            int rs = LoaiVatTuCtrl.Update(loai);

            if (rs == 0)
            {
                NotifyHelper.ShowUpdateError();
                gridControl_Load();
            }
        }
        private void UpdateCommand()
        {
            var nhom = (STO_NhomVatTu)gridView.GetFocusedRow();

            nhom.ID_kho = Properties.Settings.Default.ID_kho;

            int rs = NhomVatTuCtrl.Update(nhom);

            if (rs == 0)
            {
                NotifyHelper.ShowUpdateError();
                gridControl_Load();
            }
        }
Example #8
0
        private void UpdateCommand()
        {
            gridView.SetRowCellValue(gridView.FocusedRowHandle, gridView.Columns["ID_loai_vat_tu"], ID_loai_vat_tu);

            var vt = (ViewCboVatTu)gridView.GetFocusedRow();

            vt.ID_loai_vat_tu = (int)ledLoaiVatTu.EditValue;

            int rs = VatTuCtrl.Update(vt);

            if (rs == 0)
            {
                NotifyHelper.ShowUpdateError();
                gridControl_Load();
            }
        }