示例#1
0
        public decimal UnitDeleteCheck(decimal UnitId)
        {
            decimal decReturnValue = 0;

            try
            {
                decReturnValue = spUnit.UnitDeleteCheck(UnitId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("UBLL5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(decReturnValue);
        }
示例#2
0
 /// <summary>
 /// checking references fro delete
 /// </summary>
 public void DeleteFunction()
 {
     try
     {
         UnitSP spUnit = new UnitSP();
         if (spUnit.UnitDeleteCheck(decUnitid) <= 0)
         {
             Messages.ReferenceExistsMessage();
         }
         else
         {
             Clear();
             btnSave.Text = "Save";
             Messages.DeletedMessage();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("U7:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }