private string CreateNumberCertificate(int IdClient)
        {
            string strNumberCertificate = "";

            try
            {
                Cursor = Cursors.WaitCursor;

                string strAbrevClient = "";
                int    intNumero      = 0;
                string strNumero      = "";

                ClientBE objE_Client = null;
                objE_Client = new ClientBL().Selecciona(IdClient);
                if (objE_Client != null)
                {
                    strAbrevClient = objE_Client.Certificate;
                }

                intNumero = new InspectionCertificateBL().SeleccionaBusquedaCount(Parametros.intEmpresaId, Convert.ToInt32(cboClient.EditValue));
                strNumero = FuncionBase.AgregarCaracter(intNumero.ToString(), "0", 5);

                strNumberCertificate = strAbrevClient + Parametros.intPeriodo.ToString().Substring(2, 2) + strNumero;

                Cursor = Cursors.Default;

                return(strNumberCertificate);
            }
            catch (Exception ex)
            {
                Cursor = Cursors.Default;
                return(strNumberCertificate);

                XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }