private void Fill() { DocumentPaymentTypesLogic types = new DocumentPaymentTypesLogic(manager); DataGV.AutoGenerateColumns = false; DataGV.DataSource = types.GetAll(); DataGV.Update(); }
private void FillPaymentTypes() { Compas.Logic.Documents.DocumentPaymentTypesLogic paymentTypesLogic = new DocumentPaymentTypesLogic(manager); PaymentTypesCB.DataSource = paymentTypesLogic.GetAll(); PaymentTypesCB.ValueMember = "ID"; PaymentTypesCB.DisplayMember = "Name"; PaymentTypesCB.Update(); }
private void FillPaymentTypes() { DocumentPaymentTypesLogic typesLogic = new DocumentPaymentTypesLogic(manager); List <WareDocumentPaymentType> types = typesLogic.GetAll(); PaymentTypesLUE.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("Name", "Назва")); PaymentTypesLUE.Properties.DataSource = types; PaymentTypesLUE.Properties.DisplayMember = "Name"; PaymentTypesLUE.Properties.ValueMember = "ID"; if (types.Count > 0) { PaymentTypesLUE.EditValue = types[0].ID; } }
private void FillPaymentTypes() { DocumentPaymentTypesLogic typesLogic = new DocumentPaymentTypesLogic(manager); List<WareDocumentPaymentType> types = typesLogic.GetAll(); PaymentTypesLUE.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("Name", "Назва")); PaymentTypesLUE.Properties.DataSource = types; PaymentTypesLUE.Properties.DisplayMember = "Name"; PaymentTypesLUE.Properties.ValueMember = "ID"; if (types.Count > 0) { PaymentTypesLUE.EditValue = types[0].ID; } }