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