Exemple #1
0
        private void BtPrint_Click(object sender, EventArgs e)
        {
            gtiCore.Ocupado(this);
            String           sReportName = "Detalhe_Parcela";
            dsDetalheParcela Ds          = new dsDetalheParcela();
            DataTable        dTable      = new dsDetalheParcela.DetalheParcelaDataTable();

            foreach (ListViewItem Item in TributoListView.Items)
            {
                if (Item.Index < TributoListView.Items.Count - 1)
                {
                    DataRow dRow = dTable.NewRow();
                    dRow["Descricao"] = Item.Text;
                    dRow["Principal"] = Item.SubItems[1].Text;
                    dRow["Juros"]     = Item.SubItems[2].Text;
                    dRow["Multa"]     = Item.SubItems[3].Text;
                    dRow["Correcao"]  = Item.SubItems[4].Text;
                    dRow["Total"]     = Item.SubItems[5].Text;
                    dTable.Rows.Add(dRow);
                }
            }
            Ds.Tables.Add(dTable);

            ReportParameter p1  = new ReportParameter("prmContribuinte", NomeLabel.Text);
            ReportParameter p2  = new ReportParameter("prmExercicio", Lista_Extrato_Tributo[0].Anoexercicio.ToString());
            ReportParameter p3  = new ReportParameter("prmLancamento", LancamentoLabel.Text);
            ReportParameter p4  = new ReportParameter("prmSequencia", Lista_Extrato_Tributo[0].Seqlancamento.ToString());
            ReportParameter p5  = new ReportParameter("prmParcela", Lista_Extrato_Tributo[0].Numparcela.ToString("00"));
            ReportParameter p6  = new ReportParameter("prmComplemento", Lista_Extrato_Tributo[0].Codcomplemento.ToString("00"));
            ReportParameter p7  = new ReportParameter("prmSituacao", StatusLabel.Text);
            ReportParameter p8  = new ReportParameter("prmIsento", IsentoLabel.Text);
            ReportParameter p9  = new ReportParameter("prmDesconto", DescontoLabel.Text);
            ReportParameter p10 = new ReportParameter("prmLivro", LivroLabel.Text);
            ReportParameter p11 = new ReportParameter("prmInscricao", DataInscricaoLabel.Text);
            ReportParameter p12 = new ReportParameter("prmPagina", PaginaLabel.Text);
            ReportParameter p13 = new ReportParameter("prmCertidao", CertidaoLabel.Text);
            ReportParameter p14 = new ReportParameter("prmAjuizamento", AjuizamentoLabel.Text);
            ReportParameter p15 = new ReportParameter("prmProcessoCNJ", ProcessoCNJLabel.Text);
            ReportParameter p16 = new ReportParameter("prmProtocolo", NumProtocoloLabel.Text);
            ReportParameter p17 = new ReportParameter("prmDataRemessa", DataRemessaLabel.Text);
            ReportParameter p18 = new ReportParameter("prmDataBase", DataBaseLabel.Text);
            ReportParameter p19 = new ReportParameter("prmDataVencimento", DataVenctoLabel.Text);
            ReportParameter p20 = new ReportParameter("prmDataVencimentoCalc", DataVenctoCalcLabel.Text);
            ReportParameter p21 = new ReportParameter("prmValorLancado", ValorLancadoLabel.Text);
            ReportParameter p22 = new ReportParameter("prmValorAtual", ValorAtualLabel.Text);
            ReportParameter p23 = new ReportParameter("prmDataPagamento", DataPagtoLabel.Text);
            ReportParameter p24 = new ReportParameter("prmDataReceita", DataReceitaLabel.Text);
            ReportParameter p25 = new ReportParameter("prmBanco", BancoLabel.Text);
            ReportParameter p26 = new ReportParameter("prmValorPago", ValorPagoLabel.Text);
            ReportParameter p27 = new ReportParameter("prmValorDif", ValorDifLabel.Text);

            gtiCore.Liberado(this);
            Report f1 = new Report(sReportName, Ds, 1, true, new ReportParameter[] { p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27 })
            {
                Tag = this.Name
            };

            f1.ShowDialog();
        }
Exemple #2
0
        public override global::System.Data.DataSet Clone()
        {
            dsDetalheParcela cln = ((dsDetalheParcela)(base.Clone()));

            cln.InitVars();
            cln.SchemaSerializationMode = this.SchemaSerializationMode;
            return(cln);
        }
Exemple #3
0
        public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs)
        {
            dsDetalheParcela ds = new dsDetalheParcela();

            global::System.Xml.Schema.XmlSchemaComplexType type     = new global::System.Xml.Schema.XmlSchemaComplexType();
            global::System.Xml.Schema.XmlSchemaSequence    sequence = new global::System.Xml.Schema.XmlSchemaSequence();
            global::System.Xml.Schema.XmlSchemaAny         any      = new global::System.Xml.Schema.XmlSchemaAny();
            any.Namespace = ds.Namespace;
            sequence.Items.Add(any);
            type.Particle = sequence;
            global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
            if (xs.Contains(dsSchema.TargetNamespace))
            {
                global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
                global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
                try {
                    global::System.Xml.Schema.XmlSchema schema = null;
                    dsSchema.Write(s1);
                    for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext();)
                    {
                        schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
                        s2.SetLength(0);
                        schema.Write(s2);
                        if ((s1.Length == s2.Length))
                        {
                            s1.Position = 0;
                            s2.Position = 0;
                            for (; ((s1.Position != s1.Length) &&
                                    (s1.ReadByte() == s2.ReadByte()));)
                            {
                                ;
                            }
                            if ((s1.Position == s1.Length))
                            {
                                return(type);
                            }
                        }
                    }
                }
                finally {
                    if ((s1 != null))
                    {
                        s1.Close();
                    }
                    if ((s2 != null))
                    {
                        s2.Close();
                    }
                }
            }
            xs.Add(dsSchema);
            return(type);
        }
Exemple #4
0
            public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs)
            {
                global::System.Xml.Schema.XmlSchemaComplexType type     = new global::System.Xml.Schema.XmlSchemaComplexType();
                global::System.Xml.Schema.XmlSchemaSequence    sequence = new global::System.Xml.Schema.XmlSchemaSequence();
                dsDetalheParcela ds = new dsDetalheParcela();

                global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
                any1.Namespace       = "http://www.w3.org/2001/XMLSchema";
                any1.MinOccurs       = new decimal(0);
                any1.MaxOccurs       = decimal.MaxValue;
                any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any1);
                global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
                any2.Namespace       = "urn:schemas-microsoft-com:xml-diffgram-v1";
                any2.MinOccurs       = new decimal(1);
                any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any2);
                global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
                attribute1.Name       = "namespace";
                attribute1.FixedValue = ds.Namespace;
                type.Attributes.Add(attribute1);
                global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
                attribute2.Name       = "tableTypeName";
                attribute2.FixedValue = "DetalheParcelaDataTable";
                type.Attributes.Add(attribute2);
                type.Particle = sequence;
                global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
                if (xs.Contains(dsSchema.TargetNamespace))
                {
                    global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
                    global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
                    try {
                        global::System.Xml.Schema.XmlSchema schema = null;
                        dsSchema.Write(s1);
                        for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext();)
                        {
                            schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
                            s2.SetLength(0);
                            schema.Write(s2);
                            if ((s1.Length == s2.Length))
                            {
                                s1.Position = 0;
                                s2.Position = 0;
                                for (; ((s1.Position != s1.Length) &&
                                        (s1.ReadByte() == s2.ReadByte()));)
                                {
                                    ;
                                }
                                if ((s1.Position == s1.Length))
                                {
                                    return(type);
                                }
                            }
                        }
                    }
                    finally {
                        if ((s1 != null))
                        {
                            s1.Close();
                        }
                        if ((s2 != null))
                        {
                            s2.Close();
                        }
                    }
                }
                xs.Add(dsSchema);
                return(type);
            }