Example #1
0
        public void SetEsConstitucion(DataFromTexto datos)
        {
            OleDbConnection  connection = new OleDbConnection(connectionString);
            OleDbDataAdapter dataAdapter;
            OleDbCommand     cmd;

            cmd            = connection.CreateCommand();
            cmd.Connection = connection;

            bool insertCompleted = false;

            try
            {
                connection.Open();

                DataSet dataSet = new DataSet();
                DataRow dr;

                string OleDbQuery = "SELECT * FROM Municipio WHERE Id = @Id";

                dataAdapter = new OleDbDataAdapter();
                dataAdapter.SelectCommand = new OleDbCommand(OleDbQuery, connection);
                dataAdapter.SelectCommand.Parameters.AddWithValue("@Id", datos.Id);
                dataAdapter.Fill(dataSet, "Municipio");

                if (dataSet.Tables["Municipio"].Rows.Count > 0)
                {
                    dr = dataSet.Tables["Municipio"].Rows[0];
                    dr.BeginEdit();
                    dr["EsConstitucion"] = datos.EsConstitucion;
                    dr.EndEdit();

                    dataAdapter.UpdateCommand = connection.CreateCommand();

                    dataAdapter.UpdateCommand.CommandText = "UPDATE Municipio SET EsConstitucion = @EsConstitucion WHERE Id = @Id"; //Aqui Tambien hay que validar con el nombre

                    dataAdapter.UpdateCommand.Parameters.Add("@EsConstitucion", OleDbType.Numeric, 0, "EsConstitucion");
                    dataAdapter.UpdateCommand.Parameters.Add("@Id", OleDbType.Numeric, 0, "Id");
                    dataAdapter.Update(dataSet, "Municipio");
                }

                dataSet.Dispose();
                dataAdapter.Dispose();
                insertCompleted = true;
            }
            catch (OleDbException ex)
            {
                string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
                ErrorUtilities.SetNewErrorMessage(ex, methodName + " Exception,PadronModel", "Padron");
            }
            catch (Exception ex)
            {
                string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
                ErrorUtilities.SetNewErrorMessage(ex, methodName + " Exception,PadronModel", "Padron");
            }
            finally
            {
                connection.Close();
            }
        }
Example #2
0
        public bool GetCostoAccionesMet2(DataFromTexto datos, int errores)
        {
            bool exito = false;

            try
            {
                datos.TextoStr = StringUtilities.ReplaceSaltoDeLinea(datos.TextoStr);


                int startIndex = datos.TextoStr.IndexOf("VALOR DE CADA");

                if (startIndex != -1)
                {
                    string tempString = datos.TextoStr.Substring(startIndex);

                    int permisoIndex = tempString.IndexOf("PERMISO");

                    tempString = tempString.Substring(0, permisoIndex + 8).Replace("$ ", " $");

                    Match match = regex.Match(tempString);

                    var numero = match.Value;

                    datos.ValorAcciones = match.Value;

                    float valorFloatAcciones = 0;
                    float.TryParse(datos.ValorAcciones.Replace(",", "").Replace("'", "").Replace("$", ""), out valorFloatAcciones);


                    if (valorFloatAcciones == 0)
                    {
                        datos.ValorAcciones = String.Empty;
                    }
                    else
                    {
                        datos.ValorIntAcciones = Convert.ToInt32(valorFloatAcciones);
                    }

                    exito = true;
                }
                else
                {
                    //MessageBox.Show(datos.Id.ToString());
                }
            }
            catch (ArgumentOutOfRangeException)
            {
                //MessageBox.Show(datos.Id.ToString() + "Error");
                return(false);
            }
            catch (FormatException)
            {
                //MessageBox.Show(datos.Id.ToString() + "Error");
                return(false);
            }
            return(exito);
        }
Example #3
0
        public void GetMissingData(DataFromTexto datos)
        {
            try
            {
                int startIndex = datos.Texto.IndexOf("ANTE NOTARIO");

                if (startIndex != -1)
                {
                    string tempString = datos.Texto.Substring(startIndex);

                    int endIndex = tempString.IndexOf("A CONSTITUIR");

                    if (endIndex != -1)
                    {
                        tempString = tempString.Substring(0, endIndex);
                        tempString = tempString.Replace("ANTE ", "");

                        int indezNum = tempString.IndexOf("NO.");

                        datos.TipoFedatarios = tempString.Substring(0, indezNum);

                        tempString = VerificationUtilities.TextBoxStringValidation(tempString.Substring(indezNum + 3));

                        int defaultNumber = 0;
                        Int32.TryParse(tempString.Split(' ')[0], out defaultNumber);
                        datos.NumFedObt = defaultNumber;

                        if (tempString.Contains("MUNICIPIO"))
                        {
                            tempString         = tempString.Substring(tempString.IndexOf("MUNICIPIO"));
                            datos.MunicipioObt = VerificationUtilities.TextBoxStringValidation(tempString.Substring(0, tempString.IndexOf("ESTADO")).Replace("MUNICIPIO", ""));
                        }

                        if (tempString.Contains("ESTADO"))
                        {
                            tempString = tempString.Substring(tempString.IndexOf("ESTADO"));

                            datos.EstadoObt = tempString.Substring(0, tempString.IndexOf("NOMBRE")).Replace("ESTADO", "");
                        }

                        datos.FedatarioObt = tempString.Substring(tempString.IndexOf("NOMBRE")).Replace("NOMBRE", "").Replace("COMPARECE (N)", "").Replace("-", "");

                        this.SetMissingInfo(datos);
                    }
                }
                else
                {
                    MessageBox.Show(datos.Id.ToString());
                }
            }
            catch (ArgumentOutOfRangeException) { }
        }
Example #4
0
        public bool GetNumeroAccionesMetodoRegex(DataFromTexto datos, int errores)
        {
            try
            {
                string alphabetical = datos.TextoStr;// StringUtilities.PrepareToAlphabeticalOrder(datos.TextoStr);

                int startIndex = alphabetical.IndexOf(numAcciones);

                if (startIndex != -1)
                {
                    string tempString = alphabetical.Substring(startIndex);
                    tempString = tempString.Substring(0, tempString.IndexOf(valorAcciones) + 10);

                    Match match = regex.Match(tempString);

                    datos.NumAcciones = match.Value;

                    int numeroAcciones = 0;
                    Int32.TryParse(datos.NumAcciones.Replace(",", "").Replace("'", ""), out numeroAcciones);

                    if (numeroAcciones == 0)
                    {
                        datos.NumAcciones = String.Empty;
                    }
                    else
                    {
                        datos.NumeroAcciones = numeroAcciones;
                    }
                }
                else
                {
                    //MessageBox.Show(datos.Id.ToString());
                }
            }
            catch (ArgumentOutOfRangeException)
            {
                //MessageBox.Show(datos.Id.ToString() + "Error");
                return(false);
            }
            catch (FormatException)
            {
                //MessageBox.Show(datos.Id.ToString() + "Error");
                return(false);
            }
            return(true);
        }
Example #5
0
        public void SetCostoAcciones(DataFromTexto datos)
        {
            SqlConnection  connection = new SqlConnection(connectionStringSql);
            SqlDataAdapter dataAdapter;
            SqlCommand     cmd;

            cmd            = connection.CreateCommand();
            cmd.Connection = connection;

            bool insertCompleted = false;

            try
            {
                connection.Open();

                DataSet dataSet = new DataSet();
                DataRow dr;

                string OleDbQuery = "SELECT * FROM Acciones2 WHERE Folio = @Folio";

                dataAdapter = new SqlDataAdapter();
                dataAdapter.SelectCommand = new SqlCommand(OleDbQuery, connection);
                dataAdapter.SelectCommand.Parameters.AddWithValue("@Folio", datos.Folio);
                dataAdapter.Fill(dataSet, "Acciones2");

                if (dataSet.Tables["Acciones2"].Rows.Count > 0)
                {
                    dr = dataSet.Tables["Acciones2"].Rows[0];
                    dr.BeginEdit();
                    dr["ValorAcciones"]   = datos.ValorIntAcciones;
                    dr["TextValorAccion"] = datos.ValorAcciones;
                    dr.EndEdit();

                    dataAdapter.UpdateCommand = connection.CreateCommand();

                    dataAdapter.UpdateCommand.CommandText = "UPDATE Acciones2 SET ValorAcciones = @ValorAcciones, TextValorAccion = @TextValorAccion WHERE Folio = @Folio"; //Aqui Tambien hay que validar con el nombre

                    dataAdapter.UpdateCommand.Parameters.Add("@ValorAcciones", SqlDbType.Int, 0, "ValorAcciones");
                    dataAdapter.UpdateCommand.Parameters.Add("@TextValorAccion", SqlDbType.VarChar, 0, "TextValorAccion");
                    dataAdapter.UpdateCommand.Parameters.Add("@Folio", SqlDbType.Int, 0, "Folio");
                    dataAdapter.Update(dataSet, "Acciones2");
                }

                dataSet.Dispose();
                dataAdapter.Dispose();
                insertCompleted = true;
            }
            catch (OleDbException ex)
            {
                //string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
                //ErrorUtilities.SetNewErrorMessage(ex, methodName + " Exception,PadronModel", "Padron");
            }
            catch (Exception ex)
            {
                //string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
                //ErrorUtilities.SetNewErrorMessage(ex, methodName + " Exception,PadronModel", "Padron");
            }
            finally
            {
                connection.Close();
            }
        }
Example #6
0
        public ObservableCollection <DataFromTexto> GetCampoTextoSinGuinoes()
        {
            ObservableCollection <DataFromTexto> listaTexto = new ObservableCollection <DataFromTexto>();

            //string oleDbCadena = "select * from Municipio where esConstitucion = 1";
            string oleDbCadena = "select * from FechasRelex where expedienteRelex is null Order by id desc";

            OleDbConnection connection = new OleDbConnection(connectionString);
            OleDbCommand    cmd        = null;
            OleDbDataReader reader     = null;

            int folio = 0;

            try
            {
                connection.Open();

                cmd    = new OleDbCommand(oleDbCadena, connection);
                reader = cmd.ExecuteReader();

                if (reader.HasRows)
                {
                    while (reader.Read())
                    {
                        DataFromTexto datos = new DataFromTexto();
                        datos.Id    = Convert.ToInt32(reader["Id"]);
                        datos.Folio = Convert.ToInt32(reader["Folio"]);
                        folio       = datos.Folio;
                        datos.Texto = reader["Texto"].ToString();

                        if (!String.IsNullOrWhiteSpace(datos.Texto) && !String.IsNullOrEmpty(datos.Texto))
                        {
                            datos.TextoStr = VerificationUtilities.TextBoxStringValidation(StringUtilities.PrepareToAlphabeticalOrder(datos.Texto)).Replace("-", "");
                            listaTexto.Add(datos);
                        }
                        Console.WriteLine(datos.Id);
                    }
                }
                cmd.Dispose();
                reader.Close();
            }
            catch (OleDbException ex)
            {
                MessageBox.Show(folio.ToString());
                //                string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
                //              ErrorUtilities.SetNewErrorMessage(ex, methodName + " Exception,PadronModel", "Padron");
            }
            catch (Exception ex)
            {
                MessageBox.Show(folio.ToString());
                //string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
                //ErrorUtilities.SetNewErrorMessage(ex, methodName + " Exception,PadronModel", "Padron");
            }
            finally
            {
                connection.Close();
            }

            int totalErrores = 0;

            foreach (DataFromTexto data in listaTexto)
            {
                if (!this.GetRelexInfo(data, totalErrores))
                {
                    totalErrores++;
                }
            }

            MessageBox.Show(String.Format("{0} Errores de {1} registros", totalErrores, listaTexto.Count));
            return(listaTexto);
        }
Example #7
0
        public bool GetCostoAccionesMet1(DataFromTexto datos, int errores)
        {
            try
            {
                datos.TextoStr = StringUtilities.ReplaceSaltoDeLinea(datos.TextoStr);

                if (datos.TextoStr.Contains("VALOR DE CADAACCION PERMISO"))
                {
                    datos.ValorAcciones = "No viene informaciĆ³n";
                }
                else if (datos.TextoStr.Contains("VALOR DE CADAACCION SIN VALOR"))
                {
                    datos.ValorAcciones = "Sin Valor";
                }
                else if (datos.TextoStr.Contains("VALOR DE CADAACCION SIN EXPRESION DE VALOR NOMINAL"))
                {
                    datos.ValorAcciones = "Sin Expresion de Valor Nominal";
                }
                else if (datos.TextoStr.Contains("VALOR DE CADAACCION SIN EXPRESION DE VALOR"))
                {
                    datos.ValorAcciones = "Sin Expresion de Valor";
                }
                else if (datos.TextoStr.Contains("VALOR DE CADAACCION $ PERMISO"))
                {
                    datos.ValorAcciones = "No viene informaciĆ³n";
                }
                else
                {
                    int startIndex = datos.TextoStr.IndexOf(valorAcciones);

                    if (startIndex != -1)
                    {
                        string tempString = datos.TextoStr.Substring(startIndex + valorAcciones.Length + 1);

                        datos.ValorAcciones = tempString.Substring(0, tempString.IndexOf(' '));

                        float valorFloatAcciones = 0;
                        float.TryParse(datos.ValorAcciones.Replace(",", "").Replace("'", "").Replace("$", ""), out valorFloatAcciones);


                        if (valorFloatAcciones == 0)
                        {
                            datos.ValorAcciones = String.Empty;
                        }
                        else
                        {
                            datos.ValorIntAcciones = Convert.ToInt32(valorFloatAcciones);
                        }
                    }
                    else
                    {
                        //MessageBox.Show(datos.Id.ToString());
                    }
                }
            }
            catch (ArgumentOutOfRangeException)
            {
                //MessageBox.Show(datos.Id.ToString() + "Error");
                return(false);
            }
            catch (FormatException)
            {
                //MessageBox.Show(datos.Id.ToString() + "Error");
                return(false);
            }
            return(true);
        }
Example #8
0
        public bool GetNumeroAcciones(DataFromTexto datos, int errores)
        {
            try
            {
                int startIndex = datos.TextoStr.IndexOf(numAcciones);

                if (startIndex != -1)
                {
                    string tempString = datos.TextoStr.Substring(startIndex + numAcciones.Length + 1);

                    datos.NumAcciones = tempString.Substring(0, tempString.IndexOf(' '));

                    int numeroAcciones = 0;
                    Int32.TryParse(datos.NumAcciones.Replace(",", "").Replace("'", ""), out numeroAcciones);

                    if (numeroAcciones == 0)
                    {
                        datos.NumAcciones = String.Empty;
                    }
                    else
                    {
                        datos.NumeroAcciones = numeroAcciones;
                    }

                    //int endIndex = tempString.IndexOf("V");

                    //if (endIndex != -1)
                    //{
                    //    tempString = tempString.Substring(endIndex + 3);

                    //    string permisoRelex = tempString.Substring(0, tempString.IndexOf(' '));

                    //    datos.PermisoRelex = permisoRelex;

                    //    Match largeDate = Regex.Match(tempString, largeDateRegex);

                    //    if (largeDate.Value != null)
                    //    {

                    //        DateTime fechaRegex = Convert.ToDateTime(largeDate.Value.ToString().Replace("DEL", "DE"));
                    //        datos.FechaPermisoRelex = fechaRegex.ToString("dd/MM/yyyy");
                    //    }
                    //    else
                    //    {
                    //        tempString = tempString.Substring(tempString.IndexOf(' ') + 1).Replace("DE FECHA ", "");

                    //        string[] completeText = tempString.Split(' ');


                    //        string fechaRelex = String.Format(completeText[0] + "{0}" + this.SetMonthLanguaje(completeText[1]) + "{0}" + completeText[2], "-");

                    //        DateTime dt = Convert.ToDateTime(fechaRelex, new CultureInfo("es-ES"));
                    //        datos.FechaPermisoRelex = dt.ToString("dd/MM/yyyy");
                    //    }

                    //    Console.WriteLine(String.Format("{0}    {1}", datos.Id, datos.FechaPermisoRelex));

                    //    try
                    //    {
                    //        tempString = tempString.Substring(tempString.IndexOf("NO")).Replace("NO ", "");

                    //        //string expedienteRelex = tempString.Substring(0, tempString.IndexOf(' '));
                    //        //datos.ExpedienteRelex = expedienteRelex;

                    //        string originalSinGuion = StringUtilities.ReplaceDoubleSpaces(Regex.Replace(datos.Texto, "--+", "-"));

                    //        startIndex = datos.Texto.IndexOf("EXPEDIENTE NO.");

                    //        string[] orgString = datos.Texto.Substring(startIndex).Replace("EXPEDIENTE NO. ", "").Split(new[] { " ", "" }, StringSplitOptions.RemoveEmptyEntries);

                    //        char[] expediente = orgString[0].ToCharArray();


                    //        if (!VerificationUtilities.IsNumber(Char.ToString(expediente[0])))
                    //        {
                    //            datos.ExpedienteRelex = orgString[0];
                    //        }
                    //        else
                    //            datos.ExpedienteRelex = "0";
                    //    }
                    //    catch (Exception)
                    //    {
                    //        datos.ExpedienteRelex = "0";
                    //    }


                    //    // datos.TipoFedatarios = tempString.Substring(0, indezNum);

                    //    this.SetRelexInfo(datos);

                    //}
                }
                else
                {
                    //MessageBox.Show(datos.Id.ToString());
                }
            }
            catch (ArgumentOutOfRangeException)
            {
                //MessageBox.Show(datos.Id.ToString() + "Error");
                return(false);
            }
            catch (FormatException)
            {
                //MessageBox.Show(datos.Id.ToString() + "Error");
                return(false);
            }
            return(true);
        }
Example #9
0
        public ObservableCollection <DataFromTexto> GetTextoForAcciones(int processNumber)
        {
            ObservableCollection <DataFromTexto> listaTexto = new ObservableCollection <DataFromTexto>();

            //string oleDbCadena = "select * from Municipio where esConstitucion = 1";
            string oleDbCadena = "select * from Acciones2 where Folio NOT IN (351506,270853,342197,358941,261041,257856) and TextValorAccion = '' ";

            SqlConnection connection = new SqlConnection(connectionStringSql);
            SqlCommand    cmd        = null;
            SqlDataReader reader     = null;

            int folio    = 0;
            int contador = 1;

            try
            {
                connection.Open();

                cmd    = new SqlCommand(oleDbCadena, connection);
                reader = cmd.ExecuteReader();

                if (reader.HasRows)
                {
                    while (reader.Read())
                    {
                        DataFromTexto datos = new DataFromTexto();
                        datos.Folio = Convert.ToInt32(reader["Folio"]);
                        folio       = datos.Folio;
                        datos.Texto = reader["Texto"].ToString();

                        if (!String.IsNullOrWhiteSpace(datos.Texto) && !String.IsNullOrEmpty(datos.Texto))
                        {
                            //datos.TextoStr = VerificationUtilities.TextBoxStringValidation(StringUtilities.PrepareToAlphabeticalOrder(datos.Texto)).Replace("-", "");
                            datos.TextoStr = VerificationUtilities.TextBoxStringValidation(datos.Texto).Replace("-", "");
                            listaTexto.Add(datos);
                        }

                        if (processNumber == 1)
                        {
                            this.GetNumeroAccionesMetodoRegex(datos, 0);
                            this.SetNumeroAcciones(datos);
                        }
                        else if (processNumber == 2)
                        {
                            bool exito = this.GetCostoAccionesMet2(datos, 0);

                            if (exito)
                            {
                                this.SetCostoAcciones(datos);
                            }
                        }
                        Console.WriteLine(String.Format("{0}. ---  {1}", contador, datos.Folio));
                        contador++;
                    }
                }
                cmd.Dispose();
                reader.Close();
            }
            catch (SqlException ex)
            {
                MessageBox.Show(folio.ToString());
                //                string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
                //              ErrorUtilities.SetNewErrorMessage(ex, methodName + " Exception,PadronModel", "Padron");
            }
            catch (Exception ex)
            {
                MessageBox.Show(folio.ToString());
                //string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
                //ErrorUtilities.SetNewErrorMessage(ex, methodName + " Exception,PadronModel", "Padron");
            }
            finally
            {
                connection.Close();
            }

            //int totalErrores = 0;



            //MessageBox.Show(String.Format("{0} Errores de {1} registros", totalErrores, listaTexto.Count));
            return(listaTexto);
        }
Example #10
0
        public ObservableCollection <DataFromTexto> GetCampoTexto()
        {
            ObservableCollection <DataFromTexto> listaTexto = new ObservableCollection <DataFromTexto>();

            //string oleDbCadena = "select * from Municipio where esConstitucion = 1";
            string oleDbCadena = "select * from FedatariosNull";

            OleDbConnection connection = new OleDbConnection(connectionString);
            OleDbCommand    cmd        = null;
            OleDbDataReader reader     = null;

            int folio = 0;

            try
            {
                connection.Open();

                cmd    = new OleDbCommand(oleDbCadena, connection);
                reader = cmd.ExecuteReader();

                if (reader.HasRows)
                {
                    while (reader.Read())
                    {
                        DataFromTexto datos = new DataFromTexto();
                        datos.Id       = Convert.ToInt32(reader["Id"]);
                        datos.Folio    = Convert.ToInt32(reader["Folio"]);
                        folio          = datos.Folio;
                        datos.Texto    = reader["Texto"].ToString();
                        datos.TextoStr = VerificationUtilities.TextBoxStringValidation(StringUtilities.PrepareToAlphabeticalOrder(datos.Texto));

                        //if(!datos.TextoStr.Contains("SOCIEDAD COOPERATIVA"))
                        listaTexto.Add(datos);
                    }
                }
                cmd.Dispose();
                reader.Close();
            }
            catch (OleDbException ex)
            {
                MessageBox.Show(folio.ToString());
//                string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
//              ErrorUtilities.SetNewErrorMessage(ex, methodName + " Exception,PadronModel", "Padron");
            }
            catch (Exception ex)
            {
                MessageBox.Show(folio.ToString());
                //string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
                //ErrorUtilities.SetNewErrorMessage(ex, methodName + " Exception,PadronModel", "Padron");
            }
            finally
            {
                connection.Close();
            }

            foreach (DataFromTexto data in listaTexto)
            {
                this.GetMissingData(data);
            }

            MessageBox.Show("Finito");
            return(listaTexto);
        }
Example #11
0
        private void SetDataInForm()
        {
            txtValorTexto.Text = String.Empty;
            TxtNumerico.Text   = String.Empty;

            currentData = listaPendientes[position];

            Console.WriteLine(currentData.Folio.ToString());

            int startIndex = StringUtilities.PrepareToAlphabeticalOrder(currentData.TextoStr).IndexOf("VALOR DE CADA");

            if (startIndex != -1)
            {
                string tempString = currentData.TextoStr.Substring(startIndex);

                int permisoIndex = tempString.IndexOf("PERMISO");

                tempString = StringUtilities.PrepareToAlphabeticalOrder(tempString.Substring(0, permisoIndex + 8).Replace("$ ", " $"));

                if (tempString.Contains("DIEZ PESOS"))
                {
                    txtValorTexto.Text = "DIEZ PESOS";
                    TxtNumerico.Text   = "10";
                }
                else if (tempString.Contains("CIEN PESOS"))
                {
                    txtValorTexto.Text = "CIEN PESOS";
                    TxtNumerico.Text   = "100";
                }
                else if (tempString.Contains("QUINIENTOS PESOS"))
                {
                    txtValorTexto.Text = "QUINIENTOS PESOS";
                    TxtNumerico.Text   = "500";
                }
                else if (tempString.Contains("UN MIL PESOS"))
                {
                    txtValorTexto.Text = "UN MIL PESOS";
                    TxtNumerico.Text   = "1000";
                }
                else if (tempString.Contains("ACCION MIL PESOS"))
                {
                    txtValorTexto.Text = "MIL PESOS";
                    TxtNumerico.Text   = "1000";
                }
                else if (tempString.Contains("CINCUENTA PESOS"))
                {
                    txtValorTexto.Text = "CINCUENTA PESOS";
                    TxtNumerico.Text   = "50";
                }
                else if (tempString.Contains("CINCUENTA MIL PESOS"))
                {
                    txtValorTexto.Text = "CINCUENTA MIL PESOS";
                    TxtNumerico.Text   = "50000";
                }
                else if (tempString.Contains("UN PESO"))
                {
                    txtValorTexto.Text = "UN PESO";
                    TxtNumerico.Text   = "1";
                }


                TxtTexto.Text = tempString;

                position++;
            }
            else
            {
                position++;
                SetDataInForm();
            }
        }