比如,已知一个扩展类型是ProjCategoryId,下面的代码将为你找出所有使用过这个扩展类型的表。 1 static void findTableWithProjCategoryId(Args _args) 2 { 3 xInfo xInfo = new xInfo(); 4 5 treeNode t = xInfo.rootNode().AOTfindChild("DataDictionary").AOTfindChild("Tables"); 6 treeNode childNode; 7 treeNode fields; 8 treenod..    Read More
posted @ 2012-08-30 16:10
Sprite.z
Views(266)
Comments(0)
Diggs(0)
        
            
        
        
        
在某个class(比如可以加在winAPI中)中增加如下的方法,然后调用此方法即可。 1 client static str getPrivateProfileString(str section, str key, str value, str file) 2 { 3 #WinAPI 4 #define.sizeOfStringValue(1024) 5 Binary stringValue; 6 7 DLL DLL = new DLL(#KERNELDLL); 8 DLLFunction method = ...    Read More
posted @ 2012-08-30 16:09
Sprite.z
Views(215)
Comments(0)
Diggs(0)
        
            
        
        
        
比如要在下拉框中显示ItemID,但是只显示ItemGroup='Group1' 且 ItemType='Bom'的物项,那么传统的使用扩展类型的方法就不使用了,因为扩展类型不能动态传递参数(Itemgroup和ITEMTYPE)。第一步,在InventTable里建立一个方法,lookupItemByItemTypeGroup。 1 client static void lookupItemByItemTypeGroup(FormStringControl lookupCtrl,ItemGroupId ItemGroupId,ItemType _ItemTYp    Read More
posted @ 2012-08-30 16:03
Sprite.z
Views(513)
Comments(0)
Diggs(0)
        
            
        
        
        
有几个Ax开头的class值得我们研究一下,下面就是调用AxSalesTable和AxSalesLine来创建销售单的例子。 1 static void main(Args args) 2 { 3 AxSalesTable axSalesTable; 4 AxSalesLine axSalesLine; 5 ; 6 // 建立销售单头 7 axSalesTable = new AxSalesTable(); 8 axSalesTable.purchOrderFormNum('CUSTPONUM'); 9 axSalesTable.cust...    Read More
posted @ 2012-08-30 15:59
Sprite.z
Views(262)
Comments(0)
Diggs(0)
        
            
        
        
        
1 static void Jinn_printter(Args _args) 2 { 3 Args m_args = new Args(); 4 SysReportRun m_reportRun; 5 printJobSettings m_printJobSettings = new printJobSettings(); 6 7 boolean isCorrect = true; 8 ; 9 try10 {11 if (winAPI::fileExists(...    Read More
posted @ 2012-08-30 15:56
Sprite.z
Views(204)
Comments(0)
Diggs(0)
        
            
        
        
        
1 if (infolog.language() == "zh-hans")2 infolog.language("en-us");3 else4 infolog.language("zh-hans");5 infolog.navPane().loadStartupButtons();6 Infolog.navPane().refreshFavorites(infolog.navPane().selectedFavoriteGroup(), xInfo::currentWorkspaceNum());    Read More
posted @ 2012-08-30 15:54
Sprite.z
Views(186)
Comments(0)
Diggs(0)
        
            
        
        
        
窗体分隔符是通过组(group)容器来实现的,将它添加到窗口后,将属性HideIfEmpty和AlignChild设置为No;FrameType设置为Raise 3D;设置好其它外观样式后,重写它的鼠标事件就可以实现了。 1 int mouseUp(int x, int y, int button, boolean ctrl, boolean shift) 2 { 3 int ret; 4 ret = super(x, y, button, ctrl, shift); 5 return _formSplitterVertical.mouseUp(x, y, button...    Read More
posted @ 2012-08-30 15:54
Sprite.z
Views(273)
Comments(0)
Diggs(0)
        
            
        
        
        
1 void resetUserData() 2 { 3 DialogButton button; 4 SysLastValue sysLastValue; 5 Dialog Dialog = new Dialog("@SYS70748"); 6 DialogField dlg = Dialog.addField(typeid(UserId)); 7 userId userId; 8 ; 9 dlg.value(curuserId());10 Dialog.doInit();...    Read More
posted @ 2012-08-30 15:53
Sprite.z
Views(400)
Comments(0)
Diggs(0)
        
            
        
        
        
1 void clicked() 2 { 3 Dialog Dialog = new Dialog("Destroy Content Pane Window"); 4 DialogField dlgHide = Dialog.addField(typeid(Noyes),"Hide Content Pane Window"); 5 DialogField dlgShow = Dialog.addField(typeid(Noyes),"Show Content Pane Window"); 6 Dia...    Read More
posted @ 2012-08-30 15:52
Sprite.z
Views(279)
Comments(0)
Diggs(0)
        
            
        
        
        
1 static void Job_ScheduleBatch2(Args _args) 2 { 3 BatchHeader batHeader; 4 BatchInfo batInfo; 5 RunBaseBatch rbbTask; 6 str sParmCaption = "My RunbaseBatch Report Run"; 7 ; 8 rbbTask = new AV_RunbaseBatchDemo(); 9 batInfo = rbbTask .batchInfo();10 batInfo .parmCapti...    Read More
posted @ 2012-08-30 15:51
Sprite.z
Views(172)
Comments(0)
Diggs(0)
        
                    
                
浙公网安备 33010602011771号