Пример #1
0
        private void GerarRegistro60M()
        {
            ACBrSintegraInterop.Registro60MRec[] record = new ACBrSintegraInterop.Registro60MRec[Registro60M.Count];
            for (int i = 0; i < Registro60M.Count; i++)
            {
                record[i].CRO        = Registro60M[i].CRO;
                record[i].NumOrdem   = Registro60M[i].NumOrdem;
                record[i].VendaBruta = Convert.ToDouble(Registro60M[i].VendaBruta);
                record[i].ModeloDoc  = Registro60M[i].ModeloDoc;
                record[i].ValorGT    = Convert.ToDouble(Registro60M[i].ValorGT);
                record[i].CRZ        = Registro60M[i].CRZ;
                record[i].CooFinal   = Registro60M[i].CooFinal;
                record[i].CooInicial = Registro60M[i].CooInicial;
                record[i].NumSerie   = Registro60M[i].NumSerie;
                record[i].Emissao    = Registro60M[i].Emissao.ToOADate();
            }

            int ret = ACBrSintegraInterop.SIN_Registro60M(this.Handle, record, Registro60M.Count);

            CheckResult(ret);
        }
Пример #2
0
		private void GerarRegistro60M()
		{
			ACBrSintegraInterop.Registro60MRec[] record = new ACBrSintegraInterop.Registro60MRec[Registro60M.Count];
			for (int i = 0; i < Registro60M.Count; i++)
			{
				record[i].CRO = Registro60M[i].CRO;
				record[i].NumOrdem = Registro60M[i].NumOrdem;
				record[i].VendaBruta = Convert.ToDouble(Registro60M[i].VendaBruta);
				record[i].ModeloDoc = Registro60M[i].ModeloDoc;
				record[i].ValorGT = Convert.ToDouble(Registro60M[i].ValorGT);
				record[i].CRZ = Registro60M[i].CRZ;
				record[i].CooFinal = Registro60M[i].CooFinal;
				record[i].CooInicial = Registro60M[i].CooInicial;
				record[i].NumSerie = Registro60M[i].NumSerie;
				record[i].Emissao = Registro60M[i].Emissao.ToOADate();
			}

			int ret = ACBrSintegraInterop.SIN_Registro60M(this.Handle, record, Registro60M.Count);
			CheckResult(ret);
		}