示例#1
0
        public frmPrincipal(Ent_Usuario ent_us)
        {
            try
            {
                InitializeComponent();
                ent_usuario = ent_us;
                tipo_venta  = "BO";
                InicializarSistema();
                cod_tienda     = ent_tienda.cod_tienda;
                des_tienda     = ent_tienda.des_tienda;
                lblTienda.Text = "Tienda: " + des_tienda;
                log.Info("Tipo de Venta: " + tipo_venta, System.Reflection.MethodBase.GetCurrentMethod().Name);
                log.Info("Serie N°: " + lblSerie.Text, System.Reflection.MethodBase.GetCurrentMethod().Name);

                frmAlerta frm = new frmAlerta(cod_tienda);
                frm.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error: " + ex.Message);
                log.Error(ex.Message, System.Reflection.MethodBase.GetCurrentMethod().Name);
            }
        }
示例#2
0
        private void alertasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAlerta frm = new frmAlerta(cod_tienda);

            frm.ShowDialog();
        }