Пример #1
0
        private void Fill()
        {
            DocumentPaymentTypesLogic types = new DocumentPaymentTypesLogic(manager);

            DataGV.AutoGenerateColumns = false;
            DataGV.DataSource          = types.GetAll();
            DataGV.Update();
        }
Пример #2
0
 private void FillPaymentTypes()
 {
     Compas.Logic.Documents.DocumentPaymentTypesLogic paymentTypesLogic = new DocumentPaymentTypesLogic(manager);
     PaymentTypesCB.DataSource    = paymentTypesLogic.GetAll();
     PaymentTypesCB.ValueMember   = "ID";
     PaymentTypesCB.DisplayMember = "Name";
     PaymentTypesCB.Update();
 }
Пример #3
0
        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;
            }
        }
Пример #4
0
        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;
            }
        }