Example #1
0
        private void GerarRegistro50()
        {
            ACBrSintegraInterop.Registro50Rec[] record = new ACBrSintegraInterop.Registro50Rec[Registro50.Count];
            for (int i = 0; i < Registro50.Count; i++)
            {
                record[i].CPFCNPJ          = ToUTF8(Registro50[i].CPFCNPJ);
                record[i].Inscricao        = ToUTF8(Registro50[i].Inscricao);
                record[i].UF               = ToUTF8(Registro50[i].UF);
                record[i].Situacao         = ToUTF8(Registro50[i].Situacao);
                record[i].Aliquota         = Convert.ToDouble(Registro50[i].Aliquota);
                record[i].Isentas          = Convert.ToDouble(Registro50[i].Isentas);
                record[i].Icms             = Convert.ToDouble(Registro50[i].Icms);
                record[i].ValorContabil    = Convert.ToDouble(Registro50[i].ValorContabil);
                record[i].BasedeCalculo    = Convert.ToDouble(Registro50[i].BasedeCalculo);
                record[i].Outras           = Convert.ToDouble(Registro50[i].Outras);
                record[i].EmissorDocumento = ToUTF8(Registro50[i].EmissorDocumento);
                record[i].Cfop             = ToUTF8(Registro50[i].Cfop);
                record[i].Serie            = ToUTF8(Registro50[i].Serie);
                record[i].Modelo           = ToUTF8(Registro50[i].Modelo);
                record[i].Numero           = ToUTF8(Registro50[i].Numero);
                record[i].DataDocumento    = Registro50[i].DataDocumento.ToOADate();
            }

            int ret = ACBrSintegraInterop.SIN_Registro50(this.Handle, record, Registro50.Count);

            CheckResult(ret);
        }
Example #2
0
		private void GerarRegistro50()
		{
			ACBrSintegraInterop.Registro50Rec[] record = new ACBrSintegraInterop.Registro50Rec[Registro50.Count];
			for (int i = 0; i < Registro50.Count; i++)
			{
				record[i].CPFCNPJ = ToUTF8(Registro50[i].CPFCNPJ);
				record[i].Inscricao = ToUTF8(Registro50[i].Inscricao);
				record[i].UF = ToUTF8(Registro50[i].UF);
				record[i].Situacao = ToUTF8(Registro50[i].Situacao);
				record[i].Aliquota = Convert.ToDouble(Registro50[i].Aliquota);
				record[i].Isentas = Convert.ToDouble(Registro50[i].Isentas);
				record[i].Icms = Convert.ToDouble(Registro50[i].Icms);
				record[i].ValorContabil = Convert.ToDouble(Registro50[i].ValorContabil);
				record[i].BasedeCalculo = Convert.ToDouble(Registro50[i].BasedeCalculo);
				record[i].Outras = Convert.ToDouble(Registro50[i].Outras);
				record[i].EmissorDocumento = ToUTF8(Registro50[i].EmissorDocumento);
				record[i].Cfop = ToUTF8(Registro50[i].Cfop);
				record[i].Serie = ToUTF8(Registro50[i].Serie);
				record[i].Modelo = ToUTF8(Registro50[i].Modelo);
				record[i].Numero = ToUTF8(Registro50[i].Numero);
				record[i].DataDocumento = Registro50[i].DataDocumento.ToOADate();
			}

			int ret = ACBrSintegraInterop.SIN_Registro50(this.Handle, record, Registro50.Count);
			CheckResult(ret);
		}