Показать сообщение отдельно
Старый 08.12.2011, 03:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,646 / 848 (80) +++++++
Регистрация: 28.10.2006
Dynamics AXBR: Base de NCMs
Источник: http://feedproxy.google.com/~r/daxbr/~3/b42jkDIMHo0/
==============

Caros,
Como no post anterior, segue a base de ncms e o respectivo script para importar.

ncms_20111206.rar

12345678910111213141516171819202122232425262728293031static void loadNCMsFromFile(Args _args){ TaxFiscalClassification_BR buffer; Dialog dialog; DialogField dfFileName; TextIO inFile; RecordInsertList recordInsert = new RecordInsertList(tableNum(TaxFiscalClassification_BR)); Container line; ; delete_from buffer; dialog = new Dialog("Selecione o arquivo"); dfFileName = dialog.addField(typeId(FilenameOpen), "Selecione o arquivo"); if(!dialog.run()) return; inFile = new TextIO(dfFileName.value(), 'R'); inFile.inFieldDelimiter(";"); line = inFile.read(); while(line) { buffer.FiscalClassificationId = conpeek(line,1); buffer.Name = conpeek(line,2); buffer.IPITaxCode = 'IPI 0'; //hard coded porque é o que eu preciso. recordInsert.add(buffer); line = inFile.read(); } recordInsert.insertDatabase();}
[]s
Pichler






Источник: http://feedproxy.google.com/~r/daxbr/~3/b42jkDIMHo0/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.