Exemplo n.º 1
0
 /// <summary>
 /// Function to delete selected pricing level
 /// </summary>
 public void DeleteFunction()
 {
     try
     {
         PricingLevelSP spPricingLevel = new PricingLevelSP();
         if (spPricingLevel.PricingLevelCheckReferenceAndDelete(decPricingLevel) <= 0)
         {
             Messages.ReferenceExistsMessage();
         }
         else
         {
             spPricingLevel.PricingLevelDelete(Convert.ToDecimal(dgvPricingLevel.CurrentRow.Cells[1].Value.ToString()));
             Messages.DeletedMessage();
             Clear();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PL6" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Function to delete selected pricing level
 /// </summary>
 public void DeleteFunction()
 {
     try
     {
         PricingLevelSP spPricingLevel = new PricingLevelSP();
         if (spPricingLevel.PricingLevelCheckReferenceAndDelete(decPricingLevel) <= 0)
         {
             Messages.ReferenceExistsMessage();
         }
         else
         {
             spPricingLevel.PricingLevelDelete(Convert.ToDecimal(dgvPricingLevel.CurrentRow.Cells[1].Value.ToString()));
             Messages.DeletedMessage();
             Clear();
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "PL6" + ex.Message;
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Function to delete selected pricing level
 /// </summary>
 public void DeleteFunction()
 {
     try
     {
         PricingLevelSP spPricingLevel = new PricingLevelSP();
         if (spPricingLevel.PricingLevelCheckReferenceAndDelete(decPricingLevel) <= 0)
         {
             Messages.ReferenceExistsMessage();
         }
         else
         {
             spPricingLevel.PricingLevelDelete(Convert.ToDecimal(dgvPricingLevel.CurrentRow.Cells[1].Value.ToString()));
             Messages.DeletedMessage();
             Clear();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PL6" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }