示例#1
0
        //private void btnCF_Click(object sender, RoutedEventArgs e)
        //{

        //    if (variableCF == false)
        //    {
        //        FMR_AUTENTICACION au = new FMR_AUTENTICACION();
        //        try
        //        {
        //            objecF.CrearFactura(idF, au.valorid);
        //            MessageBox.Show("Se ha creado una factura");



        //        }
        //        catch (Exception ex)
        //        {
        //            MessageBox.Show("No es posible crear la factura por :" + ex);

        //        }



        //    }
        //    else { MessageBox.Show("Verifique sus datos"); }

        //}

        private void btnCF_Click_1(object sender, RoutedEventArgs e)
        {
            var idUsuario = FMR_AUTENTICACION.GetInstancia();
            int id        = factura.CrearFactura(idCliente, idUsuario.valorid);

            MessageBox.Show("" + id);
        }
 public static FMR_AUTENTICACION GetInstancia()
 {
     if (instancia == null)
     {
         instancia = new FMR_AUTENTICACION();
     }
     return(instancia);
 }
示例#3
0
        //private void btnCF_Click(object sender, RoutedEventArgs e)
        //{

        //    if (variableCF == false)
        //    {
        //        FMR_AUTENTICACION au = new FMR_AUTENTICACION();
        //        try
        //        {
        //            objecF.CrearFactura(idF, au.valorid);
        //            MessageBox.Show("Se ha creado una factura");



        //        }
        //        catch (Exception ex)
        //        {
        //            MessageBox.Show("No es posible crear la factura por :" + ex);

        //        }



        //    }
        //    else { MessageBox.Show("Verifique sus datos"); }

        //}

        private void btnCF_Click_1(object sender, RoutedEventArgs e)
        {
            var idUsuario = FMR_AUTENTICACION.GetInstancia();
            int id        = factura.CrearFactura(idCliente, idUsuario.valorid);

            idFactura          = id.ToString();
            txt_idFactura.Text = idFactura;
            MessageBox.Show("Se creó la factura, proceda a ingresar el detalle");
            btn_AgregarProducto.IsEnabled = true;
            btn_agregarServicio.IsEnabled = true;
            btn_agregarDetalle.IsEnabled  = true;
            btnRs_Copy1.IsEnabled         = true;
        }
示例#4
0
        //private void btnCF_Click(object sender, RoutedEventArgs e)
        //{

        //    if (variableCF == false)
        //    {
        //        FMR_AUTENTICACION au = new FMR_AUTENTICACION();
        //        try
        //        {
        //            objecF.CrearFactura(idF, au.valorid);
        //            MessageBox.Show("Se ha creado una factura");



        //        }
        //        catch (Exception ex)
        //        {
        //            MessageBox.Show("No es posible crear la factura por :" + ex);

        //        }



        //    }
        //    else { MessageBox.Show("Verifique sus datos"); }

        //}

        private void btnCF_Click_1(object sender, RoutedEventArgs e)
        {
            if (variableCF == false)
            {
                FMR_AUTENTICACION    au  = new FMR_AUTENTICACION();
                ListaClientesFactura ltc = new ListaClientesFactura();
                try
                {
                    objecF.CrearFactura(ltc.VA, au.valorid);
                    MessageBox.Show("Se ha creado una factura");
                }
                catch (Exception ex)
                {
                    MessageBox.Show("No es posible crear la factura por :" + ex);
                }
            }
            else
            {
                MessageBox.Show("Verifique sus datos");
            }
        }
 public FMR_AUTENTICACION()
 {
     InitializeComponent();
     instancia = this;
 }