上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 22 下一页
摘要: 在ax中有时可能需要在打印时,不显示报表的预览与设置窗口,而是直接Send到打印机。可以使用ClassFactory、PrintJobSettings、ReportRun来完成。 static void NJ_MF_DirectPrint(Args _args) { Args args = new Args(); Re... 阅读全文
posted @ 2012-03-06 08:55 perock 阅读(384) 评论(0) 推荐(0) 编辑
摘要: Exportfile for AOT version 1.0 or later Formatversion: 1 ***Element: FTM ; Microsoft Dynamics AX MENUITEM : MF_QueryBrowser unloaded ; ---------------------------------------------------------... 阅读全文
posted @ 2012-03-05 08:58 perock 阅读(818) 评论(0) 推荐(0) 编辑
摘要: Ax2009与4.0在窗体显示上有所不同,2009中除Aot、编辑器之外的窗体一量失去焦点后会从工作区中隐藏,这时需要在窗口菜单中寻找,这使得开发人员十分不方便。 2009中默认窗体的属性WindowType多了三种类型: FormWindowType枚举值: ContentPage ListPage Popup Standard ... 阅读全文
posted @ 2012-03-02 10:15 perock 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 在ax中新建表时,通常要实现这两个方法,以便于重用。下面贴出Find与Exists方法示例,摘自表InvenBatch Find方法: static InventBatch find(InventBatchId _inventBatchId, ItemId _itemId, boolean _forupdate = false) { InventBatch inven... 阅读全文
posted @ 2012-03-02 08:53 perock 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 使用FormLetter取Logo图,下面方法是某报表中display方法 display Bitmap dispCompanyLogo() { return FormLetter::companyLogo(); } display Bitmap dispCompanyName() { Image tempImage = ne... 阅读全文
posted @ 2012-03-01 16:09 perock 阅读(389) 评论(0) 推荐(0) 编辑
摘要: public static server PwC_Import readexcel(filenameopen _file) { #Excel #AviFiles SysExcelApplication excelApp = SysExcelApplication::construct(); SysOperationPro... 阅读全文
posted @ 2012-03-01 15:52 perock 阅读(2171) 评论(1) 推荐(0) 编辑
摘要: 领料或退料过账,主要是用两个Class来完成 ProdJournalCheckPost ProdJournalCheckPostBOM::newJournalCheckPost(); 过账步骤: 在ProdJournalTable建立领料日志,插入相关数据与生成凭证编号 在ProdJournalBom插入领料日志行,与主表关联 使用上述两过账类: jour... 阅读全文
posted @ 2012-03-01 12:25 perock 阅读(472) 评论(0) 推荐(0) 编辑
摘要: static Qty ConvertUnit(InventTable _inventTable,Qty _qtyFrom,UnitID _unitTo) { qty qtyTo; ; setprefix("Unit Conversion"); if (_inventTable.inventTableModuleInvent()... 阅读全文
posted @ 2012-03-01 12:14 perock 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 使用自定义窗体做为Lookup窗体,其实非常简单:关键地方有两处: CloseSelect方法 this.performFormLookup(formRun); 步骤: 新建一个窗体作为lookup窗体,将Frame设为Border; 添加一个数据源,这个数据源即是lookup内容; 覆盖窗体方法CloseSelect写上: (此处我们将Unit表作为Loo... 阅读全文
posted @ 2012-03-01 12:11 perock 阅读(302) 评论(0) 推荐(0) 编辑
摘要: static str num2eng(real _num) { str ret, sign, sCents = ''; int tThousand, i; str sThousand[8]; //---------------------------------------------------------- ... 阅读全文
posted @ 2012-03-01 11:59 perock 阅读(292) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 22 下一页