摘要: void addPicBox() { FormWindowControl c; QueryRun qr; DocuRef tmpDocuRef; Image tmpImage; int i = 1; int j, maxControl; container tmpBitmap,picCon; nj_ItemPhotoTable nj_ItemPhotoTable,ItemPhoto... 阅读全文
posted @ 2011-07-28 09:48 perock 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2011-07-28 09:17 perock 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2011-07-28 09:13 perock 阅读(1422) 评论(0) 推荐(0) 编辑
摘要: 窗体中的选中数据传递给报表 窗体 { Args args = new args(); Int cnt = 0; Common common; ; super(); args.caller(element); args.record(InventTable); new menufunction('NJ_MF_PrintPicture_rpt',MenuItemType::Output... 阅读全文
posted @ 2011-07-28 09:09 perock 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 从数据库和文件夹中读取图片并且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... 阅读全文
posted @ 2011-07-28 08:59 perock 阅读(391) 评论(0) 推荐(0) 编辑
摘要: “打开文件”对话框 container c,conFilter = ["Excel Files(*.csv)", "*.csv"]; ; s = Winapi::getOpenFileName(0, conFilter, "","Open File", "", ""); 阅读全文
posted @ 2011-07-28 08:54 perock 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 对筛选之后的grid进行求和统计 NJ_MF_SilverModelInventory_tbl Smi; NJ_MF_SilverModelInventory_tbl tmp; QueryRun m_qrCount; QueryBuildDataSource m_qbdsCount; ; //-------------------行数 m_qrCount = new QueryRun(... 阅读全文
posted @ 2011-07-28 08:52 perock 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 设置数据源中某字段为disable ACT_MouldQCLines_ds.object(fieldnum(ACT_MouldQCLines,QtySec)).allowEdit(!ACT_MouldQCLines.Posted); 设置数据源不可删除 ACT_MouldQCBOM_ds.allowDelete(ACT_MouldQCLines.Posted ? false : true); 设置... 阅读全文
posted @ 2011-07-28 08:50 perock 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 在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... 阅读全文
posted @ 2011-07-28 08:48 perock 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 控件的Lookup SysTableLookup sysTableLookup = SysTableLookup::newParameters(tablenum(prodTable),this); Query query = new Query(); QueryBuildDataSource qbds; ; qbds = query.addDataSource(tablenum(Pr... 阅读全文
posted @ 2011-07-28 08:45 perock 阅读(356) 评论(0) 推荐(0) 编辑