public void Save(clsParametros cParametros)
        {
            int iNumeroCampos = 23;

            //int iKeys = 0;
            string[]    pstrFields = new string[iNumeroCampos];
            string[]    pstrValues = new string[iNumeroCampos];
            TipoCampo[] pstrTipo   = new TipoCampo[iNumeroCampos];
            int         iContador  = 0;

            string pstrSql   = string.Empty;
            string pstrFrom  = null;
            string pstrWhere = null;
            string pstrOrder = null;

            Inicialize(cParametros);
            pclsDataSql.Conexion = Conexion;
            try
            {
                pstrFrom = gstrNameTable;

                iContador = 0;
                pstrFields[iContador++] = intAplicacion.Name.ToString();
                pstrFields[iContador++] = intId.Name.ToString();
                pstrFields[iContador++] = strCode.Name.ToString();
                pstrFields[iContador++] = strTipoLog.Name.ToString();
                pstrFields[iContador++] = strTipo.Name.ToString();
                pstrFields[iContador++] = strSeverity.Name.ToString();
                pstrFields[iContador++] = strMetodo.Name.ToString();
                pstrFields[iContador++] = strMessage.Name.ToString();
                pstrFields[iContador++] = strInfo.Name.ToString();
                pstrFields[iContador++] = strSource.Name.ToString();
                pstrFields[iContador++] = strStackTrace.Name.ToString();
                pstrFields[iContador++] = strTargetSite.Name.ToString();
                pstrFields[iContador++] = strInnerException.Name.ToString();
                pstrFields[iContador++] = strComplemento.Name.ToString();
                pstrFields[iContador++] = strViewMessage.Name.ToString();
                pstrFields[iContador++] = strSugerencia.Name.ToString();
                pstrFields[iContador++] = strIp.Name.ToString();
                pstrFields[iContador++] = strExplorer.Name.ToString();
                pstrFields[iContador++] = strPage.Name.ToString();
                pstrFields[iContador++] = strPlataform.Name.ToString();
                pstrFields[iContador++] = strHostName.Name.ToString();
                pstrFields[iContador++] = strSesion.Name.ToString();
                //pstrFields[iContador++] = dtmMFecha.Name.ToString();
                pstrFields[iContador++] = intContactoUser.Name.ToString();

                iContador             = 0;
                pstrTipo[iContador++] = intAplicacion.TypeDat;
                pstrTipo[iContador++] = intId.TypeDat;
                pstrTipo[iContador++] = strCode.TypeDat;
                pstrTipo[iContador++] = strTipoLog.TypeDat;
                pstrTipo[iContador++] = strTipo.TypeDat;
                pstrTipo[iContador++] = strSeverity.TypeDat;
                pstrTipo[iContador++] = strMetodo.TypeDat;
                pstrTipo[iContador++] = strMessage.TypeDat;
                pstrTipo[iContador++] = strInfo.TypeDat;
                pstrTipo[iContador++] = strSource.TypeDat;
                pstrTipo[iContador++] = strStackTrace.TypeDat;
                pstrTipo[iContador++] = strTargetSite.TypeDat;
                pstrTipo[iContador++] = strInnerException.TypeDat;
                pstrTipo[iContador++] = strComplemento.TypeDat;
                pstrTipo[iContador++] = strViewMessage.TypeDat;
                pstrTipo[iContador++] = strSugerencia.TypeDat;
                pstrTipo[iContador++] = strIp.TypeDat;
                pstrTipo[iContador++] = strExplorer.TypeDat;
                pstrTipo[iContador++] = strPage.TypeDat;
                pstrTipo[iContador++] = strPlataform.TypeDat;
                pstrTipo[iContador++] = strHostName.TypeDat;
                pstrTipo[iContador++] = strSesion.TypeDat;
                //pstrTipo[iContador++] = dtmMFecha.TypeDat;
                pstrTipo[iContador++] = intContactoUser.TypeDat;

                iContador = 0;
                pstrValues[iContador++] = intAplicacion.Value;
                pstrValues[iContador++] = intId.Value;
                pstrValues[iContador++] = strCode.Value;
                pstrValues[iContador++] = strTipoLog.Value;
                pstrValues[iContador++] = strTipo.Value;
                pstrValues[iContador++] = strSeverity.Value;
                pstrValues[iContador++] = strMetodo.Value;
                pstrValues[iContador++] = strMessage.Value;
                pstrValues[iContador++] = strInfo.Value;
                pstrValues[iContador++] = strSource.Value;
                pstrValues[iContador++] = strStackTrace.Value;
                pstrValues[iContador++] = strTargetSite.Value;
                pstrValues[iContador++] = strInnerException.Value;
                pstrValues[iContador++] = strComplemento.Value;
                pstrValues[iContador++] = strViewMessage.Value;
                pstrValues[iContador++] = strSugerencia.Value;
                pstrValues[iContador++] = strIp.Value;
                pstrValues[iContador++] = strExplorer.Value;
                pstrValues[iContador++] = strPage.Value;
                pstrValues[iContador++] = strPlataform.Value;
                pstrValues[iContador++] = strHostName.Value;
                pstrValues[iContador++] = strSesion.Value;
                //pstrValues[iContador++] = dtmMFecha.Value;
                pstrValues[iContador++] = intContactoUser.Value;

                pstrSql = pstrSql + pclsSql.SqlSentencia(TipoComando.Insert, pstrFields, pstrValues, pstrTipo, pstrFrom, pstrWhere, pstrOrder, iNumeroCampos) + "   ";
                pclsDataSql.UpdateInsert(pstrSql);
                cParametros.Complemento = "SQL: " + pstrSql;
                ExceptionHandled.EventoTexto(cParametros);
            }
            catch (Exception Ex)
            {
                ExceptionHandled.EventoTexto(cParametros);
                cParametros.Message     = Ex.Message.ToString();
                cParametros.Info        = "Log en BD";
                cParametros.Tipo        = clsTipoError.DataBase;
                cParametros.Severity    = clsSeveridad.Alta;
                cParametros.Complemento = "Los datos no se guardaron, SQL: " + pstrSql;
                ExceptionHandled.EventoTexto(cParametros);
            }
        }