摘要: static void findFiles(Args _args){ void findFile(str path,str filesExt,boolean subFolder=false) { int hdl; Filename filename; ; [hdl, filename] = WinAPI::findFirstFile(path+filesExt); while (filename) { info(path+filename); ... 阅读全文
posted @ 2014-01-02 09:29 Huaen 阅读(239) 评论(0) 推荐(0) 编辑
摘要: CommaTextIO m_CSVFile; container m_con; InventTable m_inventTable; int i; #File ; m_CSVFile = new CommaTextIO("C:\\Users\\JSZhang1002\\Desktop\\Data\\Items.csv", #io_read); if (!m_CSVFile || m_CSVFile.status() != IO_Status::Ok) throw error("访问磁盘失败。"); while (m_CSVFile.status() == 阅读全文
posted @ 2014-01-02 09:28 Huaen 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 首先要在 form 中的 datasource 中重载 displayoption方法。1:控制行的颜色public void displayOption(Common _record, FormRowDisplayOption _options){ PushTbBOMConfiguration config; config = _record; if (config.Color=='Red') { _options.textColor(WinAPI::RGB2int(255,0,0)); } super(_record, _options);} 效果图:​​2:控制列的颜色p 阅读全文
posted @ 2014-01-02 09:27 Huaen 阅读(344) 评论(0) 推荐(0) 编辑
摘要: void importFromExcel(){ str file; FileNameFilter filter=["07-10",'*.xlsx',"97-02",'*.xls']; COMVariant Variant; SysExcelApplication app; SysExcelWorkbooks Workbooks; SysExcelWorkbook Workbook; SysExcelWorksheets Worksheets; SysExcelWorksheet Worksheet; SysExcelCel 阅读全文
posted @ 2014-01-02 09:26 Huaen 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 1,使用TextBuffer从Ax 2009中导出数据到CSV文件中:static void ExportToCSVFile01(Args _args){ TextBuffer textBuffer= new TextBuffer(); InventTable inventTable; FileIoPermission perm; counter Lines; #define.ExampleFile(@"c:\\AX2009.csv") #define.ExampleOpenMode("W"); try { perm = new FileIoPer... 阅读全文
posted @ 2014-01-02 09:25 Huaen 阅读(409) 评论(0) 推荐(0) 编辑