摘要: void getSearchingCriteria(Query _q) { int i,j,curFieldID; str curPname ; str curRangeValue; ; for (i=1; i<= _q.dataSourceCount(); i++) { for (j=1... 阅读全文
posted @ 2011-10-24 11:39 perock 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 用X++读取文本文件(txt文件)的例子,完整Job演示 static void Job1(Args _args) { Asciiio Txtfile; Container c; ; Txtfile = new Asciiio('d:\\itemMaster.txt','r'); Txtfile.inFieldDelimi... 阅读全文
posted @ 2011-10-11 08:35 perock 阅读(331) 评论(0) 推荐(0) 编辑
摘要: #AOT ; infolog.findNode("Data Dictionary\\Base Enums").AOTadd("PrintMedium"); infolog.findNode("Data Dictionary\\Base Enums\\PrintMedium").AOTadd("File"); infolog.findNode(... 阅读全文
posted @ 2011-10-10 12:11 perock 阅读(385) 评论(0) 推荐(0) 编辑
摘要: /* * -------------------------------------------- * 获取AOT对象的属性值(StringSize) * by hank[2011-02-21] * -------------------------------------------- */ static void getProperties(Args _arg... 阅读全文
posted @ 2011-10-10 12:10 perock 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 1,运行下列的job即可。 2,本例子是以扩展类型itemID为例说明的,可以修改为任何扩展类型。 完整job演示: static void ListFields(Args _args) { int curFieldNum =extendedTypeNum('ITEMID'); str 100 curFi... 阅读全文
posted @ 2011-10-10 12:09 perock 阅读(316) 评论(0) 推荐(0) 编辑
摘要: static void CheckAllTable(Args _args) { Dictionary dictionary = new Dictionary(); DictTable dictTable; int i,m,n;... 阅读全文
posted @ 2011-10-10 11:49 perock 阅读(158) 评论(0) 推荐(0) 编辑
摘要: public container strSplit(str _stringToSplit, str _delimiters) { container c; int oldPos = 1; int pos; int strLength = strlen(_stringToSplit); do { ... 阅读全文
posted @ 2011-10-07 12:19 perock 阅读(266) 评论(0) 推荐(0) 编辑
摘要: For (I=0;I<edtProdId.getLineCount();I++) { if(strlen(edtProdID.getLine(I)) == 0) Continue; ACT_tmpProductionWIPMaterial.ProdId = edtProdID.getLine(I); } 阅读全文
posted @ 2011-09-23 16:13 perock 阅读(306) 评论(0) 推荐(0) 编辑
摘要: whileselect ItemId,sum(Qty), sum(QtySec), WrkCtrID, InventSizeId, ConfigId, InventcolorId, UnitId, UnitIdSec from _NJ_WIP GroupBy ItemId ,WrkCtrID, In... 阅读全文
posted @ 2011-09-20 11:35 perock 阅读(725) 评论(0) 推荐(0) 编辑
摘要: void runWrkCtr() { NJ_WIP _NJ_WIP; ACT_tmpProductionWIPMaterial _tmpWIP; Int I, ctr = 0; ProdTable _ProdTable; str tmps... 阅读全文
posted @ 2011-09-20 11:26 perock 阅读(505) 评论(0) 推荐(0) 编辑