Beispiel #1
0
        private void GerarRegistro75()
        {
            ACBrSintegraInterop.Registro75Rec[] record = new ACBrSintegraInterop.Registro75Rec[Registro75.Count];
            for (int i = 0; i < Registro75.Count; i++)
            {
                record[i].Codigo       = Registro75[i].Codigo;
                record[i].Descricao    = Registro75[i].Descricao;
                record[i].Reducao      = Convert.ToDouble(Registro75[i].Reducao);
                record[i].BaseST       = Convert.ToDouble(Registro75[i].BaseST);
                record[i].AliquotaIpi  = Convert.ToDouble(Registro75[i].AliquotaIpi);
                record[i].NCM          = Registro75[i].NCM;
                record[i].Unidade      = Registro75[i].Unidade;
                record[i].AliquotaICMS = Convert.ToDouble(Registro75[i].AliquotaICMS);
                record[i].DataFinal    = Registro75[i].DataFinal.ToOADate();
                record[i].DataInicial  = Registro75[i].DataInicial.ToOADate();
            }

            int ret = ACBrSintegraInterop.SIN_Registro75(this.Handle, record, Registro75.Count);

            CheckResult(ret);
        }
Beispiel #2
0
		private void GerarRegistro75()
		{
			ACBrSintegraInterop.Registro75Rec[] record = new ACBrSintegraInterop.Registro75Rec[Registro75.Count];
			for (int i = 0; i < Registro75.Count; i++)
			{
				record[i].Codigo = Registro75[i].Codigo;
				record[i].Descricao = Registro75[i].Descricao;
				record[i].Reducao = Convert.ToDouble(Registro75[i].Reducao);
				record[i].BaseST = Convert.ToDouble(Registro75[i].BaseST);
				record[i].AliquotaIpi = Convert.ToDouble(Registro75[i].AliquotaIpi);
				record[i].NCM = Registro75[i].NCM;
				record[i].Unidade = Registro75[i].Unidade;
				record[i].AliquotaICMS = Convert.ToDouble(Registro75[i].AliquotaICMS);
				record[i].DataFinal = Registro75[i].DataFinal.ToOADate();
				record[i].DataInicial = Registro75[i].DataInicial.ToOADate();
			}

			int ret = ACBrSintegraInterop.SIN_Registro75(this.Handle, record, Registro75.Count);
			CheckResult(ret);
		}