public void DeleteForm(string keyValue) { if (_meterChargingApp.IsUsePrice(keyValue)) { throw new Exception("删除失败!当前价格方式已被使用。"); } _service.DeleteForm(keyValue); }