Пример #1
0
        public override void OpenAddForm()
        {
            TipoGastoInfo tipo = TipoGastoInfo.Get(Library.Store.ModulePrincipal.GetDefaultNominasSetting(), false);

            if (tipo.Oid == 0)
            {
                throw new iQException(Library.Store.Resources.Messages.NO_TIPOGASTO_NOMINAS);
            }

            PayrollbatchAddForm form = new PayrollbatchAddForm(this);

            AddForm(form);
            if (form.ActionResult == DialogResult.OK)
            {
                _entity = form.Entity;
            }
        }
Пример #2
0
        protected void SetTipoAction()
        {
            TipoGastoSelectForm form = new TipoGastoSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                _tipo           = form.Selected as TipoGastoInfo;
                _entity.OidTipo = _tipo.Oid;
                _entity.Tipo    = _tipo.Nombre;
                if (_entity.Descripcion == string.Empty)
                {
                    _entity.Descripcion = _tipo.Nombre;
                }
                _entity.CategoriaGasto = _tipo.Categoria;
                _entity.PrevisionPago  = moleQule.Common.EnumFunctions.GetPrevisionPago(_tipo.EFormaPago, _entity.Fecha, _tipo.DiasPago);

                Categoria_BT.Enabled = false;
            }
        }
Пример #3
0
 public override void RefreshSecondaryData()
 {
     _tipo = TipoGastoInfo.Get(_entity.OidTipo, false);
 }
Пример #4
0
 protected override void GetFormSourceData(long oid)
 {
     _entity  = TipoGastoInfo.Get(oid, true);
     _mf_type = ManagerFormType.MFView;
 }