protected override void SubmitAction()
        {
            _source.CopyFrom(_entity);

            _expediente.UpdateAyudaEstimada();
            _expediente.UpdateAyudas();

            _action_result = DialogResult.OK;
        }
Exemple #2
0
        public void RemoveItem(REAExpedient item, Expedient parent)
        {
            if (item.FechaCobro != DateTime.MinValue)
            {
                throw new iQException(Resources.Messages.DELETE_REA_NOT_ALLOWED);
            }

            Remove(item.Oid);
            parent.UpdateAyudas();
        }
 private void Ayuda_CkB_CheckedChanged(object sender, EventArgs e)
 {
     REALeft_SC.Panel2.Enabled = Ayuda_CkB.Checked;
     _entity.Ayuda             = Ayuda_CkB.Checked;
     try
     {
         _entity.UpdateAyudas(_entity.Ayuda);
     }
     catch { }
     UpdateBindings();
 }
Exemple #4
0
        public REAExpedient NewItem(Expedient parent, BatchInfo source)
        {
            if (GetItemByPartida(source) != null)
            {
                throw new iQException(String.Format(Resources.Messages.EXPEDIENTE_REA_DUPLICATED, source.CodigoAduanero));
            }

            REAExpedient item = REAExpedient.NewChild(parent, source);

            this.NewItem(item);
            SetNextCode(item);

            parent.UpdateAyudas();

            return(item);
        }
Exemple #5
0
 protected void UpdateAyudaPartida(Expedient expediente)
 {
     expediente.UpdateAyudas();
     UpdateBindings();
 }