private void LoadDataGridView()
        {
            Helper.InitializeDataGridView(dgvProductDetailList);

            Cursor = Cursors.WaitCursor;
            _purchaseReceiveDetailList      = _purchaseReceiveDetailService.GetAllPurchaseReceiveDetail(_purchaseReceive.Id).Where(w => !w.IsDeleted).ToList();
            dgvProductDetailList.DataSource = _purchaseReceiveDetailList;
            Cursor = Cursors.Default;
        }
Esempio n. 2
0
        private void LoadPurchaseReceiveDetailComboBox()
        {
            Helper.InitializeComboBox(cbxPurchaseReceiveDetail);

            Cursor = Cursors.WaitCursor;
            var selectedPurchaseReceiveId = Convert.ToInt64(cbxPurchaseReceive.SelectedValue);

            _purchaseReceiveDetailList = _purchaseReceiveDetailService.GetAllPurchaseReceiveDetail(selectedPurchaseReceiveId).Where(w => !w.IsDeleted).ToList();
            Cursor = Cursors.Default;

            cbxPurchaseReceiveDetail.SelectedIndexChanged -= cbxPurchaseReceiveDetail_SelectedIndexChanged;
            cbxPurchaseReceiveDetail.DataSource            = _purchaseReceiveDetailList;
            cbxPurchaseReceiveDetail.DisplayMember         = "PurchaseChallanDetailId";
            cbxPurchaseReceiveDetail.ValueMember           = "Id";
            cbxPurchaseReceiveDetail.SelectedIndexChanged += cbxPurchaseReceiveDetail_SelectedIndexChanged;
        }