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; } }
public override void RefreshSecondaryData() { _tipo = TipoGastoInfo.Get(_entity.OidTipo, false); }
protected override void GetFormSourceData(long oid) { _entity = TipoGastoInfo.Get(oid, true); _mf_type = ManagerFormType.MFView; }