//FUNCION QUE ACTUALIZA LAS VIAS DE PAGO LEYENDO LA INFORMACION DE LA GRILLA Y ACTUALIZANDO LA GRILLA DGCHEQUES //(QUE GUARDA LA INFO DE LAS VIAS DE PAGO AL REALIZAR EL PAGO POR LA RFC) public void ActualizaViasPago() { List <DetalleViasPago> ListViasPag = new List <DetalleViasPago>(); for (int i = 0; i < DGResumenViasPago.Items.Count; i++) { ListViasPag.Add(DGResumenViasPago.Items.CurrentItem as DetalleViasPago); DGResumenViasPago.Items.MoveCurrentToNext(); } //FORM RESUMENVIASPAGO ENVIA LA INFORMACION AL DGCHEQUES Vista.PagoDocumento.PagoDocumento window = new Vista.PagoDocumento.PagoDocumento(); // PagosDocumentos window = Window.GetWindow(this.Owner) as PagosDocumentos; if (window != null) { this.Close(); window.DGCheque.ItemsSource = ListViasPag; } Close(); }
private void btnAutoriza_Click(object sender, RoutedEventArgs e) { AutorizaAnulaciones autorizaanulaciones = new AutorizaAnulaciones(); //RFC AUTORIZACION DE ANULACIONES DE COMPROBANTES txtUserAutoriza.Text = txtUserAutoriza.Text.ToUpper(); autorizaanulaciones.anulacioncomprobantes(txtUser.Text, txtPassword.Text, txtIdSistema.Text, txtInstancia.Text, txtMandante.Text, txtSapRouter.Text, txtServer.Text, txtIdioma.Text, txtUserAutoriza.Text, txtPass.Password, txtIdCaja2.Text); //AutorizacionInterfaz formInterface = this.Owner as AutorizacionInterfaz; //if (formInterface != null) //{ // formInterface.BuscaAutorizacion(autorizaanulaciones.Autorizado); //} //PagosDocumentos pagosdocumentos = PagosDocumentos.GetWindow(this); //Window pagosdocumentos = Window.GetWindow(this); //pagosdocumentos.GBDetalleDocs.Visibility = Visibility.Visible; Vista.PagoDocumento.PagoDocumento window = new Vista.PagoDocumento.PagoDocumento(); // PagosDocumentos window = Window.GetWindow(this.Owner) as PagosDocumentos; if (window != null) { this.Close(); if (autorizaanulaciones.Valido == true) { //window.ListaDocumentosAnulacion(); // window.txtUserAnula.Text = txtUserAutoriza.Text; // window.txtComentAnula.Text = txtComment.Text; //window.btnAnular.IsEnabled = true; } } GC.Collect(); }
private void CargarDatos() { UserCaja = UsuarioCaja.Text; PassCaja = PassUserCaja.Text; IdCaja = idcaja.Text; NombCaja = NomCaja.Text; SociedadCaja = SociedCaja.Text; string MonedCaja = MonedaCaja.Text; PaisCja = PaisCaja.Text; Monto = "0"; IdSistema = txtIdSistema.Text; Instancia = txtInstancia.Text; mandante = txtMandante.Text; SapRouter = txtSapRouter.Text; server = txtServer.Text; idioma = txtIdioma.Text; if (PagoDocumentos.IsMouseOver == true) { PagDocum = new PagoDocumento.PagoDocumento(UserCaja, PassCaja, UserCaja, IdCaja, NombCaja, SociedadCaja, MonedCaja, PaisCja, Convert.ToDouble(Monto), IdSistema, Instancia, mandante, SapRouter, server, idioma, logApertura2); PagDocum.Show(); this.Hide(); } if (EmisionNC.IsMouseOver == true) { NotaCredit = new Vista.NotaCredito.NotaCredito(UserCaja, PassCaja, UserCaja, IdCaja, NombCaja, SociedadCaja, MonedCaja, PaisCja, Convert.ToDouble(Monto), IdSistema, Instancia, mandante, SapRouter, server, idioma, logApertura2); NotaCredit.Show(); this.Hide(); } if (Anulacion.IsMouseOver == true) { Anula = new Anulacion.Anulacion(UserCaja, PassCaja, UserCaja, IdCaja, NombCaja, SociedadCaja, MonedCaja, PaisCja, Convert.ToDouble(Monto), IdSistema, Instancia, mandante, SapRouter, server, idioma, logApertura2); Anula.Show(); this.Hide(); } if (Reimpresion.IsMouseOver == true) { Reimp = new Reimpresion.Reimpresion(UserCaja, PassCaja, UserCaja, IdCaja, NombCaja, SociedadCaja, MonedCaja, PaisCja, Convert.ToDouble(Monto), IdSistema, Instancia, mandante, SapRouter, server, idioma, logApertura2); Reimp.Show(); this.Hide(); } if (RecaudacionVeh.IsMouseOver == true) { Vehi = new Vehiculos.Vehiculo(UserCaja, PassCaja, UserCaja, IdCaja, NombCaja, SociedadCaja, MonedCaja, PaisCja, Convert.ToDouble(Monto), IdSistema, Instancia, mandante, SapRouter, server, idioma, logApertura2); Vehi.Show(); this.Hide(); } if (CierreCaja.IsMouseOver == true) { CierCaja = new CierreCaja.CierreCaja(UserCaja, PassCaja, UserCaja, IdCaja, NombCaja, SociedadCaja, MonedCaja, PaisCja, Convert.ToDouble(Monto), IdSistema, Instancia, mandante, SapRouter, server, idioma, logApertura2); CierCaja.Show(); this.Hide(); } if (ReportesCaja.IsMouseOver == true) { Reporte = new Reportes.Reportes(UserCaja, PassCaja, UserCaja, IdCaja, NombCaja, SociedadCaja, MonedCaja, PaisCja, Convert.ToDouble(Monto), IdSistema, Instancia, mandante, SapRouter, server, idioma, logApertura2); Reporte.Show(); this.Hide(); } }