public void PopulaVeiculo(belinfCte objbelinfCte, string sCte) { try { objbelinfCte.infCTeNorm.rodo.veic = new List<belveic>(); if (objbelinfCte.infCTeNorm.rodo.lota == "1") { for (int tot = 0; tot < objbelinfCte.ide.Veiculo.Count; tot++) { DataTable dt = BuscaDadosVeiculo(objbelinfCte.ide.Veiculo[tot]); foreach (DataRow dr in dt.Rows) { belveic veic = new belveic(); veic.RENAVAM = dr["RENAVAM"].ToString(); veic.placa = dr["placa"].ToString(); veic.tara = dr["tara"].ToString().Substring(0, dr["tara"].ToString().IndexOf('.')); veic.capKG = dr["capKG"].ToString().Substring(0, dr["capKG"].ToString().IndexOf('.')); veic.capM3 = dr["capM3"].ToString().Substring(0, dr["capM3"].ToString().IndexOf('.')); veic.tpProp = dr["tpProp"].ToString(); veic.tpVeic = dr["tpVeic"].ToString(); veic.tpRod = dr["tpRod"].ToString(); veic.tpCar = dr["tpCar"].ToString(); veic.UF = dr["UF"].ToString(); objbelinfCte.infCTeNorm.rodo.veic.Add(veic); } if (objbelinfCte.infCTeNorm.rodo.veic[tot].tpProp == "T") { DataTable dtP = BuscaDadosProprietarioVeiculo(objbelinfCte.ide.Veiculo[tot]); objbelinfCte.infCTeNorm.rodo.veic[tot].prop = new belprop(); foreach (DataRow dr in dtP.Rows) { objbelinfCte.infCTeNorm.rodo.veic[tot].prop.CPFCNPJ = Util.TiraSimbolo(dr["CPF"].ToString()); objbelinfCte.infCTeNorm.rodo.veic[tot].prop.RNTRC = dr["RNTRC"].ToString(); objbelinfCte.infCTeNorm.rodo.veic[tot].prop.xNome = Util.TiraSimbolo(dr["xNome"].ToString(), ""); objbelinfCte.infCTeNorm.rodo.veic[tot].prop.IE = Util.TiraSimbolo(dr["IE"].ToString()); objbelinfCte.infCTeNorm.rodo.veic[tot].prop.UF = dr["UF"].ToString(); objbelinfCte.infCTeNorm.rodo.veic[tot].prop.tpProp = dr["tpProp"].ToString(); } } } } } catch (Exception ex) { throw ex; } }
private void CriaObjAlter() { try { List<belinfCte> objList = new List<belinfCte>(); for (int i = 0; i < this.objObjetos.objListaConhecimentos.Count; i++) { belinfCte objbelinfCte = new belinfCte(); belinfCte obj = this.objObjetos.objListaConhecimentos[i]; #region Identificacao objbelinfCte.id = obj.id; objbelinfCte.ide = new belide(); objbelinfCte.ide.cUF = obj.ide.cUF; objbelinfCte.ide.cCT = obj.ide.cCT; objbelinfCte.ide.CFOP = obj.ide.CFOP; objbelinfCte.ide.natOp = obj.ide.natOp; objbelinfCte.ide.forPag = obj.ide.forPag; objbelinfCte.ide.mod = obj.ide.mod; objbelinfCte.ide.serie = obj.ide.serie; objbelinfCte.ide.nCT = obj.ide.nCT; objbelinfCte.ide.tpImp = obj.ide.tpImp; objbelinfCte.ide.tpEmis = obj.ide.tpEmis; objbelinfCte.ide.cDV = obj.ide.cDV; objbelinfCte.ide.tpAmb = obj.ide.tpAmb; objbelinfCte.ide.tpCTe = obj.ide.tpCTe; objbelinfCte.ide.procEmi = obj.ide.procEmi; objbelinfCte.ide.verProc = obj.ide.verProc; objbelinfCte.ide.cMunEnv = obj.ide.cMunEnv; objbelinfCte.ide.xMunEnv = obj.ide.xMunEnv; objbelinfCte.ide.UFEnv = obj.ide.UFEnv; objbelinfCte.ide.modal = obj.ide.modal; objbelinfCte.ide.tpServ = obj.ide.tpServ; objbelinfCte.ide.cMunIni = obj.ide.cMunIni; objbelinfCte.ide.xMunIni = obj.ide.xMunIni; objbelinfCte.ide.UFIni = obj.ide.UFIni; objbelinfCte.ide.cMunFim = obj.ide.cMunFim; objbelinfCte.ide.xMunFim = obj.ide.xMunFim; objbelinfCte.ide.UFFim = obj.ide.UFFim; objbelinfCte.ide.retira = obj.ide.retira; objbelinfCte.ide.xDetRetira = obj.ide.xDetRetira; #endregion #region Tomador if (obj.ide.toma03 != null) { objbelinfCte.ide.toma03 = new beltoma03(); objbelinfCte.ide.toma03.toma = obj.ide.toma03.toma; } else if (obj.ide.toma04 != null) { objbelinfCte.ide.toma04 = new beltoma04(); objbelinfCte.ide.toma04.toma = obj.ide.toma04.toma; objbelinfCte.ide.toma04.CNPJ = obj.ide.toma04.CNPJ; objbelinfCte.ide.toma04.CPF = obj.ide.toma04.CPF; objbelinfCte.ide.toma04.IE = obj.ide.toma04.IE; objbelinfCte.ide.toma04.xNome = obj.ide.toma04.xNome; objbelinfCte.ide.toma04.xFant = obj.ide.toma04.xFant; objbelinfCte.ide.toma04.fone = obj.ide.toma04.fone; objbelinfCte.ide.toma04.enderToma = new belenderToma(); objbelinfCte.ide.toma04.enderToma.xLgr = obj.ide.toma04.enderToma.xLgr; objbelinfCte.ide.toma04.enderToma.nro = obj.ide.toma04.enderToma.nro; objbelinfCte.ide.toma04.enderToma.xCpl = obj.ide.toma04.enderToma.xCpl; objbelinfCte.ide.toma04.enderToma.xBairro = obj.ide.toma04.enderToma.xBairro; objbelinfCte.ide.toma04.enderToma.cMun = obj.ide.toma04.enderToma.cMun; objbelinfCte.ide.toma04.enderToma.xMun = obj.ide.toma04.enderToma.xMun; objbelinfCte.ide.toma04.enderToma.CEP = obj.ide.toma04.enderToma.CEP; objbelinfCte.ide.toma04.enderToma.UF = obj.ide.toma04.enderToma.UF; objbelinfCte.ide.toma04.enderToma.cPais = obj.ide.toma04.enderToma.cPais; objbelinfCte.ide.toma04.enderToma.xPais = obj.ide.toma04.enderToma.xPais; } #endregion #region Emitente objbelinfCte.emit = new belemit(); objbelinfCte.emit.CNPJ = obj.emit.CNPJ; objbelinfCte.emit.IE = obj.emit.IE; objbelinfCte.emit.xNome = obj.emit.xNome; objbelinfCte.emit.xFant = obj.emit.xFant; objbelinfCte.emit.enderEmit = new belenderEmit(); objbelinfCte.emit.enderEmit.xLgr = obj.emit.enderEmit.xLgr; objbelinfCte.emit.enderEmit.nro = obj.emit.enderEmit.nro; objbelinfCte.emit.enderEmit.xCpl = obj.emit.enderEmit.xCpl; objbelinfCte.emit.enderEmit.xBairro = obj.emit.enderEmit.xBairro; objbelinfCte.emit.enderEmit.cMun = obj.emit.enderEmit.cMun; objbelinfCte.emit.enderEmit.xMun = obj.emit.enderEmit.xMun; objbelinfCte.emit.enderEmit.CEP = obj.emit.enderEmit.CEP; objbelinfCte.emit.enderEmit.UF = obj.emit.enderEmit.UF; objbelinfCte.emit.enderEmit.fone = obj.emit.enderEmit.fone; #endregion #region Remetente objbelinfCte.rem = new belrem(); objbelinfCte.rem.CNPJ = obj.rem.CNPJ; objbelinfCte.rem.CPF = obj.rem.CPF; objbelinfCte.rem.IE = obj.rem.IE; objbelinfCte.rem.xNome = obj.rem.xNome; objbelinfCte.rem.xFant = obj.rem.xFant; objbelinfCte.rem.fone = obj.rem.fone; objbelinfCte.rem.enderReme = new belenderReme(); objbelinfCte.rem.enderReme.xLgr = obj.rem.enderReme.xLgr; objbelinfCte.rem.enderReme.nro = obj.rem.enderReme.nro; objbelinfCte.rem.enderReme.xCpl = obj.rem.enderReme.xCpl; objbelinfCte.rem.enderReme.xBairro = obj.rem.enderReme.xBairro; objbelinfCte.rem.enderReme.cMun = obj.rem.enderReme.cMun; objbelinfCte.rem.enderReme.xMun = obj.rem.enderReme.xMun; try { objbelinfCte.rem.enderReme.CEP = obj.rem.enderReme.CEP; } catch (Exception) { } objbelinfCte.rem.enderReme.UF = obj.rem.enderReme.UF; objbelinfCte.rem.enderReme.xPais = obj.rem.enderReme.xPais; objbelinfCte.rem.enderReme.cPais = obj.rem.enderReme.cPais; #endregion #region Destinatario objbelinfCte.dest = new beldest(); objbelinfCte.dest.CNPJ = obj.dest.CNPJ; objbelinfCte.dest.CPF = obj.dest.CPF; objbelinfCte.dest.IE = obj.dest.IE; objbelinfCte.dest.xNome = obj.dest.xNome; objbelinfCte.dest.fone = obj.dest.fone; objbelinfCte.dest.ISUF = obj.dest.ISUF; objbelinfCte.dest.enderDest = new belenderDest(); objbelinfCte.dest.enderDest.xLgr = obj.dest.enderDest.xLgr; objbelinfCte.dest.enderDest.nro = obj.dest.enderDest.nro; objbelinfCte.dest.enderDest.xCpl = obj.dest.enderDest.xCpl; objbelinfCte.dest.enderDest.xBairro = obj.dest.enderDest.xBairro; objbelinfCte.dest.enderDest.cMun = obj.dest.enderDest.cMun; objbelinfCte.dest.enderDest.xMun = obj.dest.enderDest.xMun; objbelinfCte.dest.enderDest.CEP = obj.dest.enderDest.CEP; objbelinfCte.dest.enderDest.UF = obj.dest.enderDest.UF; objbelinfCte.dest.enderDest.xPais = obj.dest.enderDest.xPais; objbelinfCte.dest.enderDest.cPais = obj.dest.enderDest.cPais; #endregion #region Expedidor if (obj.exped != null) { objbelinfCte.exped = new belexped(); objbelinfCte.exped.CNPJ = obj.exped.CNPJ; objbelinfCte.exped.CPF = obj.exped.CPF; objbelinfCte.exped.IE = obj.exped.IE; objbelinfCte.exped.xNome = obj.exped.xNome; objbelinfCte.exped.fone = obj.exped.fone; objbelinfCte.exped.enderExped = new belenderExped(); objbelinfCte.exped.enderExped.xLgr = obj.exped.enderExped.xLgr; objbelinfCte.exped.enderExped.nro = obj.exped.enderExped.nro; objbelinfCte.exped.enderExped.xCpl = obj.exped.enderExped.xCpl; objbelinfCte.exped.enderExped.xBairro = obj.exped.enderExped.xBairro; objbelinfCte.exped.enderExped.cMun = obj.exped.enderExped.cMun; objbelinfCte.exped.enderExped.xMun = obj.exped.enderExped.xMun; objbelinfCte.exped.enderExped.CEP = obj.exped.enderExped.CEP; objbelinfCte.exped.enderExped.UF = obj.exped.enderExped.UF; objbelinfCte.exped.enderExped.xPais = obj.exped.enderExped.xPais; objbelinfCte.exped.enderExped.cPais = obj.exped.enderExped.cPais; } #endregion #region Recebedor if (obj.receb != null) { objbelinfCte.receb = new belreceb(); objbelinfCte.receb.CNPJ = obj.receb.CNPJ; objbelinfCte.receb.CPF = obj.receb.CPF; objbelinfCte.receb.IE = obj.receb.IE; objbelinfCte.receb.xNome = obj.receb.xNome; objbelinfCte.receb.fone = obj.receb.fone; objbelinfCte.receb.enderReceb = new belenderReceb(); objbelinfCte.receb.enderReceb.xLgr = obj.receb.enderReceb.xLgr; objbelinfCte.receb.enderReceb.nro = obj.receb.enderReceb.nro; objbelinfCte.receb.enderReceb.xCpl = obj.receb.enderReceb.xCpl; objbelinfCte.receb.enderReceb.xBairro = obj.receb.enderReceb.xBairro; objbelinfCte.receb.enderReceb.cMun = obj.receb.enderReceb.cMun; objbelinfCte.receb.enderReceb.xMun = obj.receb.enderReceb.xMun; objbelinfCte.receb.enderReceb.CEP = obj.receb.enderReceb.CEP; objbelinfCte.receb.enderReceb.UF = obj.receb.enderReceb.UF; objbelinfCte.receb.enderReceb.xPais = obj.receb.enderReceb.xPais; objbelinfCte.receb.enderReceb.cPais = obj.receb.enderReceb.cPais; } #endregion #region Informacoes da NF objbelinfCte.infCTeNorm.infDoc.infNF = obj.infCTeNorm.infDoc.infNF; //objbelinfCte.infCTeNorm.infDoc.infNF = new List<belinfNF>(); //for (int j = 0; j < obj.infCTeNorm.infDoc.infNF.Count; j++) //{ // belinfNF nf = new belinfNF(); // nf.mod = obj.infCTeNorm.infDoc.infNF[j].mod; // nf.nDoc = obj.infCTeNorm.infDoc.infNF[j].nDoc; // nf.serie = obj.infCTeNorm.infDoc.infNF[j].serie; // nf.dEmi = obj.infCTeNorm.infDoc.infNF[j].dEmi; // nf.vBC = obj.infCTeNorm.infDoc.infNF[j].vBC; // nf.vICMS = obj.infCTeNorm.infDoc.infNF[j].vICMS; // nf.vBCST = obj.infCTeNorm.infDoc.infNF[j].vBCST; // nf.vST = obj.infCTeNorm.infDoc.infNF[j].vST; // nf.vProd = obj.infCTeNorm.infDoc.infNF[j].vProd; // nf.vNF = obj.infCTeNorm.infDoc.infNF[j].vNF; // nf.nCFOP = Convert.ToInt32(obj.infCTeNorm.infDoc.infNF[j].nCFOP).ToString(); // objbelinfCte.infCTeNorm.infDoc.infNF.Add(nf); //} objbelinfCte.infCTeNorm.infDoc.infNFe = obj.infCTeNorm.infDoc.infNFe; //objbelinfCte.infCTeNorm.infDoc.infNFe = new List<belinfNFe>(); //for (int n = 0; n < obj.infCTeNorm.infDoc.infNFe.Count; n++) //{ // belinfNFe nfe = new belinfNFe(); // nfe.chave = obj.infCTeNorm.infDoc.infNFe[n].chave; // nfe.nDoc = obj.infCTeNorm.infDoc.infNFe[n].nDoc; // objbelinfCte.infCTeNorm.infDoc.infNFe.Add(nfe); //} #endregion #region Outros Documentos objbelinfCte.infCTeNorm.infDoc.infOutros = obj.infCTeNorm.infDoc.infOutros; //objbelinfCte.infCTeNorm.infDoc.infOutros = new List<belinfOutros>(); //for (int j = 0; j < obj.infCTeNorm.infDoc.infOutros.Count; j++) //{ // belinfOutros infOutros = new belinfOutros(); // infOutros.tpDoc = obj.infCTeNorm.infDoc.infOutros[j].tpDoc; // infOutros.descOutros = obj.infCTeNorm.infDoc.infOutros[j].descOutros; // infOutros.nDoc = obj.infCTeNorm.infDoc.infOutros[j].nDoc; // infOutros.dEmi = obj.infCTeNorm.infDoc.infOutros[j].dEmi; // infOutros.vDocFisc = obj.infCTeNorm.infDoc.infOutros[j].vDocFisc; // objbelinfCte.infCTeNorm.infDoc.infOutros.Add(infOutros); //} #endregion #region Valores objbelinfCte.vPrest = new belvPrest(); objbelinfCte.vPrest.vTPrest = obj.vPrest.vTPrest; objbelinfCte.vPrest.vRec = obj.vPrest.vRec; objbelinfCte.vPrest.Comp = obj.vPrest.Comp; objbelinfCte.imp = new belimp(); objbelinfCte.imp.ICMS = new belICMS(); if (obj.imp.ICMS.ICMS00 != null) { objbelinfCte.imp.ICMS.ICMS00 = new belICMS00(); objbelinfCte.imp.ICMS.ICMS00.CST = obj.imp.ICMS.ICMS00.CST; objbelinfCte.imp.ICMS.ICMS00.vBC = obj.imp.ICMS.ICMS00.vBC; objbelinfCte.imp.ICMS.ICMS00.pICMS = obj.imp.ICMS.ICMS00.pICMS; objbelinfCte.imp.ICMS.ICMS00.vICMS = obj.imp.ICMS.ICMS00.vICMS; } else if (obj.imp.ICMS.ICMS20 != null) { objbelinfCte.imp.ICMS.ICMS20 = new belICMS20(); objbelinfCte.imp.ICMS.ICMS20.CST = obj.imp.ICMS.ICMS20.CST; objbelinfCte.imp.ICMS.ICMS20.pRedBC = obj.imp.ICMS.ICMS20.pRedBC; objbelinfCte.imp.ICMS.ICMS20.vBC = obj.imp.ICMS.ICMS20.vBC; objbelinfCte.imp.ICMS.ICMS20.pICMS = obj.imp.ICMS.ICMS20.pICMS; objbelinfCte.imp.ICMS.ICMS20.vICMS = obj.imp.ICMS.ICMS20.vICMS; } else if (obj.imp.ICMS.ICMS45 != null) { objbelinfCte.imp.ICMS.ICMS45 = new belICMS45(); objbelinfCte.imp.ICMS.ICMS45.CST = obj.imp.ICMS.ICMS45.CST; } else if (obj.imp.ICMS.ICMS60 != null) { objbelinfCte.imp.ICMS.ICMS60 = new belICMS60(); objbelinfCte.imp.ICMS.ICMS60.CST = obj.imp.ICMS.ICMS60.CST; objbelinfCte.imp.ICMS.ICMS60.vBCSTRet = obj.imp.ICMS.ICMS60.vBCSTRet; objbelinfCte.imp.ICMS.ICMS60.vICMSSTRet = obj.imp.ICMS.ICMS60.vICMSSTRet; objbelinfCte.imp.ICMS.ICMS60.pICMSSTRet = obj.imp.ICMS.ICMS60.pICMSSTRet; objbelinfCte.imp.ICMS.ICMS60.vCred = obj.imp.ICMS.ICMS60.vCred; } else if (obj.imp.ICMS.ICMS90 != null) { objbelinfCte.imp.ICMS.ICMS90 = new belICMS90(); objbelinfCte.imp.ICMS.ICMS90.CST = obj.imp.ICMS.ICMS90.CST; objbelinfCte.imp.ICMS.ICMS90.pRedBC = obj.imp.ICMS.ICMS90.pRedBC; objbelinfCte.imp.ICMS.ICMS90.vBC = obj.imp.ICMS.ICMS90.vBC; objbelinfCte.imp.ICMS.ICMS90.pICMS = obj.imp.ICMS.ICMS90.pICMS; objbelinfCte.imp.ICMS.ICMS90.vICMS = obj.imp.ICMS.ICMS90.vICMS; objbelinfCte.imp.ICMS.ICMS90.vCred = obj.imp.ICMS.ICMS90.vCred; } else if (obj.imp.ICMS.ICMSOutraUF != null) { objbelinfCte.imp.ICMS.ICMSOutraUF = new belICMSOutraUF(); objbelinfCte.imp.ICMS.ICMSOutraUF.CST = obj.imp.ICMS.ICMSOutraUF.CST; objbelinfCte.imp.ICMS.ICMSOutraUF.pRedBCOutraUF = obj.imp.ICMS.ICMSOutraUF.pRedBCOutraUF; objbelinfCte.imp.ICMS.ICMSOutraUF.vBCOutraUF = obj.imp.ICMS.ICMSOutraUF.vBCOutraUF; objbelinfCte.imp.ICMS.ICMSOutraUF.pICMSOutraUF = obj.imp.ICMS.ICMSOutraUF.pICMSOutraUF; objbelinfCte.imp.ICMS.ICMSOutraUF.vICMSOutraUF = obj.imp.ICMS.ICMSOutraUF.vICMSOutraUF; } #endregion #region InformacoesCarga //objbelinfCte.infCTeNorm = new belinfCTeNorm(); objbelinfCte.infCTeNorm.infCarga = new belinfCarga(); objbelinfCte.infCTeNorm.infCarga.vCarga = obj.infCTeNorm.infCarga.vCarga; objbelinfCte.infCTeNorm.infCarga.proPred = obj.infCTeNorm.infCarga.proPred; objbelinfCte.infCTeNorm.infCarga.xOutCat = obj.infCTeNorm.infCarga.xOutCat; objbelinfCte.infCTeNorm.infCarga.infQ = new List<belinfQ>(); for (int j = 0; j < obj.infCTeNorm.infCarga.infQ.Count; j++) { belinfQ objInfQ = new belinfQ(); objInfQ.cUnid = obj.infCTeNorm.infCarga.infQ[j].cUnid; objInfQ.tpMed = obj.infCTeNorm.infCarga.infQ[j].tpMed; objInfQ.qCarga = obj.infCTeNorm.infCarga.infQ[j].qCarga; objbelinfCte.infCTeNorm.infCarga.infQ.Add(objInfQ); } #endregion #region Rodoviario objbelinfCte.infCTeNorm.seg = new belseg(); objbelinfCte.infCTeNorm.rodo = new belrodo(); objbelinfCte.infCTeNorm.seg.respSeg = obj.infCTeNorm.seg.respSeg; objbelinfCte.infCTeNorm.seg.nApol = obj.infCTeNorm.seg.nApol; objbelinfCte.infCTeNorm.rodo.RNTRC = obj.infCTeNorm.rodo.RNTRC; objbelinfCte.infCTeNorm.rodo.dPrev = obj.infCTeNorm.rodo.dPrev; objbelinfCte.infCTeNorm.rodo.lota = obj.infCTeNorm.rodo.lota; #endregion #region Obs objbelinfCte.compl = new belcompl(); objbelinfCte.compl.ObsCont.xTexto = obj.compl.ObsCont.xTexto; #endregion #region Veiculo objbelinfCte.infCTeNorm.rodo.veic = new List<belveic>(); for (int v = 0; v < obj.infCTeNorm.rodo.veic.Count; v++) { belveic veic = new belveic(); veic.RENAVAM = obj.infCTeNorm.rodo.veic[v].RENAVAM; veic.placa = obj.infCTeNorm.rodo.veic[v].placa; veic.tara = obj.infCTeNorm.rodo.veic[v].tara; veic.capKG = obj.infCTeNorm.rodo.veic[v].capKG; veic.capM3 = obj.infCTeNorm.rodo.veic[v].capM3; veic.tpProp = obj.infCTeNorm.rodo.veic[v].tpProp; veic.tpVeic = obj.infCTeNorm.rodo.veic[v].tpVeic; veic.tpRod = obj.infCTeNorm.rodo.veic[v].tpRod; veic.tpCar = obj.infCTeNorm.rodo.veic[v].tpCar; veic.UF = obj.infCTeNorm.rodo.veic[v].UF; if (obj.infCTeNorm.rodo.veic[v].prop != null) { veic.prop = new belprop(); veic.prop.CPFCNPJ = obj.infCTeNorm.rodo.veic[v].prop.CPFCNPJ; veic.prop.RNTRC = obj.infCTeNorm.rodo.veic[v].prop.RNTRC; veic.prop.xNome = obj.infCTeNorm.rodo.veic[v].prop.xNome; veic.prop.IE = obj.infCTeNorm.rodo.veic[v].prop.IE; veic.prop.UF = obj.infCTeNorm.rodo.veic[v].prop.UF; veic.prop.tpProp = obj.infCTeNorm.rodo.veic[v].prop.tpProp; } objbelinfCte.infCTeNorm.rodo.veic.Add(veic); } if (obj.infCTeNorm.rodo.moto != null) { objbelinfCte.infCTeNorm.rodo.moto = new belmoto(); objbelinfCte.infCTeNorm.rodo.moto.xNome = obj.infCTeNorm.rodo.moto.xNome; objbelinfCte.infCTeNorm.rodo.moto.CPF = obj.infCTeNorm.rodo.moto.CPF; } #endregion objList.Add(objbelinfCte); } this.objObjetosAlter = new belPopulaObjetos(objObjetos.objListaNumeroConhecimentos); this.objObjetosAlter.objListaConhecimentos = objList; this.objObjetosAlter.sFormEmiss = objObjetos.sFormEmiss; this.objObjetosAlter.sNomeArq = objObjetos.sNomeArq; this.objObjetosAlter.sPath = objObjetos.sPath; bsNotas.DataSource = this.objObjetosAlter.objListaConhecimentos; bsNotas.MoveFirst(); lblContagemNotas.Text = "1 de " + bsNotas.Count; } catch (Exception ex) { new HLPexception(ex); } }