Esempio n. 1
0
        private void MostrarComprobante(string id_abonoparcial)
        {
            DataTable table = null;

            table = ConsultasEspecificas.MostrarAbonoParcialCabezera(id_abonoparcial);
            if ((table.Rows.Count > 0) && (table != null))
            {
                if (table.Rows[0]["tipo"].ToString() == "E")
                {
                    this.Page.RegisterClientScriptBlock("Mensaje", "<script>alert('Los excedentes no se imprimen, ya que se incluyen en la letra siguiente a pagar');window.close();</script>");
                }
                else
                {
                    this.nroabono.Text   = table.Rows[0]["id_abonoparcial"].ToString().PadLeft(8, '0');
                    this.cliente.Text    = table.Rows[0]["cliente"].ToString();
                    this.deudor.Text     = table.Rows[0]["deudor"].ToString();
                    this.rutdeudor.Text  = table.Rows[0]["rut_deudor"].ToString();
                    this.operacion.Text  = table.Rows[0]["nrooperacion"].ToString();
                    this.idasociado.Text = table.Rows[0]["id_abono_comprobante"].ToString();
                    this.fecha.Text      = table.Rows[0]["fabonoparcial"].ToString();
                    this.montoabono.Text = this.Evaluar(table.Rows[0]["montoparcial"]);
                    this.TipoMoneda.Text = "Efectivo";
                }
            }
        }