private void comboProductRecognitionId() { var data = _PurchaseRequisition.GetAllData(); var data1 = data.Where(a => a.IsApprovedByGM == 1); cmbPrNId.DataSource = data1; cmbPrNId.ValueMember = "PurchaseRequisitionNoteId"; cmbPrNId.DisplayMember = "PrnNumber"; }
public void Listview() { LVPRn.Items.Clear(); var data = _purchaseRequisitionNoteService.GetAllData(); var data1 = data.Where(a => a.IsApprovedByGM == 0 || a.IsApprovedByGM == null); LVPRn.DataSource = data1; LVPRn.ValueMember = "PurchaseRequisitionNoteId"; LVPRn.DisplayMember = "PrnNumber"; invisiblecolumns(); }