private void Serie_BT_Click(object sender, EventArgs e)
        {
            FamilySelectForm form = new FamilySelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                FamiliaInfo item = (FamiliaInfo)form.Selected;
                _entity.OidFamilia    = item.Oid;
                _entity.Familia       = item.Nombre;
                _entity.CodigoFamilia = item.Codigo.ToString();
            }
        }
Пример #2
0
        public override void NuevaFamiliaAction()
        {
            FamilySelectForm form = new FamilySelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                FamiliaInfo item = form.Selected as FamiliaInfo;

                SerieFamilia newItem = _entity.SerieFamilias.NewItem(_entity, item);

                Datos_Familias.ResetBindings(false);
            }
        }
Пример #3
0
        protected void SetFamiliaAction()
        {
            FamilySelectForm form = new FamilySelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                FamiliaInfo item = (FamiliaInfo)form.Selected;
                _entity.OidFamilia            = item.Oid;
                _entity.Familia               = item.Nombre;
                _entity.CodigoFamilia         = item.Codigo.ToString();
                _entity.AvisarBeneficioMinimo = item.AvisarBeneficioMinimo;
                _entity.PBeneficioMinimo      = item.PBeneficioMinimo;

                Datos.ResetBindings(false);
            }
        }