Beispiel #1
0
        /// <summary>
        /// Function to delete size based on parameter and return corresponding id
        /// </summary>
        /// <param name="SizeId"></param>
        /// <returns></returns>
        public decimal SizeDeleting(decimal SizeId)
        {
            decimal decId = 0;

            try
            {
                decId = spSize.SizeDeleting(SizeId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("SZ5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(decId);
        }
Beispiel #2
0
 /// <summary>
 /// Delete Function
 /// </summary>
 public void DeleteFunction()
 {
     try
     {
         SizeSP spSize = new SizeSP();
         if (spSize.SizeDeleting(decSizeId) <= 0)
         {
             Messages.ReferenceExistsMessage();
         }
         else
         {
             Messages.DeletedMessage();
             GridFill();
             Clear();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("SZ5" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }