摘要:
void addPicBox() { FormWindowControl c; QueryRun qr; DocuRef tmpDocuRef; Image tmpImage; int i = 1; int j, maxControl; container tmpBitmap,picCon; nj_ItemPhotoTable nj_ItemPhotoTable,ItemPhoto... 阅读全文
摘要:
void clicked() { #AviFiles str s,tempStr; inventBatchId sBatchId; prodid sProdid; int i,cnt,fieldCount; container c,conFilter = ["Excel Files(*.csv)", "*.csv"]; NJ_MF_SilverModelInventory_tbl S... 阅读全文
摘要:
public List strSplit(str _stringToSplit, str _delimiters) { List list = new List(Types::String); int oldPos = 1; int pos; int strLength = strlen(_stringToSplit); do { pos = strfind(_stringToSp... 阅读全文
摘要:
窗体中的选中数据传递给报表 窗体 { Args args = new args(); Int cnt = 0; Common common; ; super(); args.caller(element); args.record(InventTable); new menufunction('NJ_MF_PrintPicture_rpt',MenuItemType::Output... 阅读全文
摘要:
从数据库和文件夹中读取图片并且resize container c,cImage; str PicfileName; int w,h,tmp; real bmpW = bmp1.widthValue(),bmpH = bmp1.heightValue(); image img = new image(); Act_DesignNoTable Act_DesignNoTable; D... 阅读全文
摘要:
“打开文件”对话框 container c,conFilter = ["Excel Files(*.csv)", "*.csv"]; ; s = Winapi::getOpenFileName(0, conFilter, "","Open File", "", ""); 阅读全文
摘要:
对筛选之后的grid进行求和统计 NJ_MF_SilverModelInventory_tbl Smi; NJ_MF_SilverModelInventory_tbl tmp; QueryRun m_qrCount; QueryBuildDataSource m_qbdsCount; ; //-------------------行数 m_qrCount = new QueryRun(... 阅读全文
摘要:
设置数据源中某字段为disable ACT_MouldQCLines_ds.object(fieldnum(ACT_MouldQCLines,QtySec)).allowEdit(!ACT_MouldQCLines.Posted); 设置数据源不可删除 ACT_MouldQCBOM_ds.allowDelete(ACT_MouldQCLines.Posted ? false : true); 设置... 阅读全文
摘要:
在AX中实现splitter控件,添加group控件,覆盖mouseUp\mouseDown\mouseMove事件方法,添加代码class Declaration中: SysFormSplitter_Y formSplitter;init方法中: formSplitter = new SysFormSplitter_Y(Line,routeNum,this); //参数说明 前面两个group控件作为上下分隔,后面this是窗体自身returnformSplitter.mouseDown(_x,_y,_button,_Ctrl,_Shift);returnformSplit... 阅读全文
摘要:
控件的Lookup SysTableLookup sysTableLookup = SysTableLookup::newParameters(tablenum(prodTable),this); Query query = new Query(); QueryBuildDataSource qbds; ; qbds = query.addDataSource(tablenum(Pr... 阅读全文