コード例 #1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            try
            {
                prod_Clave_Autorizacion_Bus busPrd_Clave = new prod_Clave_Autorizacion_Bus();
                string Clavessss = string.Empty;

                if (busPrd_Clave.GuardarDB(DataSource.ToList(), param.IdEmpresa) == true)
                {
                    foreach (var item in DataSource)
                    {
                        Clavessss += "\n" + item.Clave.ToUpper();
                    }

                    string Correos = "";
                }
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }
コード例 #2
0
        private void txtClave_Leave(object sender, EventArgs e)
        {
            try
            {
                prod_Clave_Autorizacion_Bus validar_b = new prod_Clave_Autorizacion_Bus();

                if (validar_b.ValidarClave(param.IdEmpresa, txtClave.Text, 4))
                {
                    MessageBox.Show("Apertura Ok");
                    colLLeno.OptionsColumn.AllowEdit = true;
                    colVacio.OptionsColumn.AllowEdit = true;
                }
                else
                {
                    MessageBox.Show("La clave ingresada es invalida");
                    colLLeno.OptionsColumn.AllowEdit = false;
                    colVacio.OptionsColumn.AllowEdit = false;
                }
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }