public decimal CurrencyCheckReferences(decimal decCurrencyId)
        {
            decimal decReturnValue = 0;

            try
            {
                decReturnValue = SpCurrency.CurrencyCheckReferences(decCurrencyId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("C11:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(decReturnValue);
        }
Пример #2
0
 /// <summary>
 /// Function to delete
 /// </summary>
 public void DeleteFunction()
 {
     try
     {
         CurrencySP spCurrency = new CurrencySP();
         if (spCurrency.CurrencyCheckReferences(decId) == -1)
         {
             Messages.ReferenceExistsMessage();
         }
         else
         {
             Messages.DeletedMessage();
             Clear();
             GridFill();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("C8:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }