07 2011 档案

摘要:linux下,要访问windows的共享,有好几种情况,下面进行总结。 外面的文章,有点介绍需要使用samba,有点说什么都不需要,只需要mount加上参数, 功能是实现,不过原理,还是不太明白,我发现系统多了一个winbind的服务。 下面就是我的测试过程。我的系统是centos5.4,最小化安装。 [root@centos5 ~]# mkdir /mnt/share [root@centos... 阅读全文
posted @ 2011-07-29 14:45 perock 阅读(21435) 评论(0) 推荐(0)
摘要:1.先声明DialogField变量,记住需要指定事件的控件使用FormStringControl 2.在Dialog事件中创建相关控件,注意DialogField与FormStringControl的不同之处。FormStringControl需要指定name 3.在DialogPostRun方法中编写代码,允许覆盖方法和覆盖的对象,以及为FormStringControl指定实例 4.在... 阅读全文
posted @ 2011-07-29 12:15 perock 阅读(286) 评论(0) 推荐(0)
摘要:当使用Form作为Lookup窗口时,让Form显示 在下拉控件的left button处需设置form design的属性WindowType为Popup即可 或者将Frame设置Border 阅读全文
posted @ 2011-07-29 11:57 perock 阅读(229) 评论(0) 推荐(0)
摘要:1.首先声明两个QueryBuildRange 2.然后在数据源的init方法中指定Range对象到this.query public void init() { super(); itemRange = this.query().dataSourceName('ItemPhotoTable').addRange(fieldnum(ItemPhotoTable,ItemId)); color... 阅读全文
posted @ 2011-07-29 11:50 perock 阅读(289) 评论(0) 推荐(0)
摘要:当对象转换为object之后可以调用任一方法,而且编译器不会报错。这样有利全用args.caller()传递对象到目标后,在目标方利用object转换后调用caller中的方法 boolean useConvertableLookup(Object caller) { InventMovement inventMovement; InventTableModule inventTableMod... 阅读全文
posted @ 2011-07-29 11:42 perock 阅读(480) 评论(0) 推荐(0)
摘要:因为三个数据源中的记录显示在一个grid中所以数据源使用LinkType用了Inner Join 记住,第一个主表的LinkType不能设置为Inner Joing 一定要设置为Delayed,否则将查不到记录。 其它两个datasource的LinkType设置为Inner Join 阅读全文
posted @ 2011-07-29 11:30 perock 阅读(417) 评论(0) 推荐(0)
摘要: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 阅读(338) 评论(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 阅读(590) 评论(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 阅读(1433) 评论(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 阅读(255) 评论(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 阅读(395) 评论(0) 推荐(0)
摘要:“打开文件”对话框 container c,conFilter = ["Excel Files(*.csv)", "*.csv"]; ; s = Winapi::getOpenFileName(0, conFilter, "","Open File", "", ""); 阅读全文
posted @ 2011-07-28 08:54 perock 阅读(267) 评论(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 阅读(297) 评论(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 阅读(320) 评论(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 阅读(330) 评论(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 阅读(367) 评论(0) 推荐(0)
摘要:static void CretateForm(Args _args) { Args args; Form form; FormRun formRun; FormBuildDesign formBuildDesign; FormBuildDataSource formBuildDataSource; FormBuildGridControl formBuildGridControl; ... 阅读全文
posted @ 2011-07-27 12:07 perock 阅读(306) 评论(0) 推荐(0)
摘要:DictEnum de; int i; ; de = new DictEnum(enumName2Id("ActionType")); for (i=0; i < de.values(); i++) { print int2str(i) + ", " + de.index2Name(i); } 阅读全文
posted @ 2011-07-27 12:03 perock 阅读(348) 评论(0) 推荐(0)
摘要:按照MSDN的解释: Overridden. Increases the number of references to a FormRun object. This increase prevents the release of the object memory during garbage collection when the FormRun object goes out of sco... 阅读全文
posted @ 2011-07-27 10:51 perock 阅读(369) 评论(0) 推荐(0)
摘要:void addPicBox() { FormWindowControl c; DocuRef tmpDocuRef; Image tmpImage; int i = 1; int j, maxControl; container tmpBitmap; ; element.lock(); maxControl = groupPics.controlCount(); //获取gro... 阅读全文
posted @ 2011-07-26 17:37 perock 阅读(249) 评论(0) 推荐(0)
摘要:Container类型累加其实是添加元素。 如: Container c; ; C = [‘a’]; C +=[‘b’] 此时C中有两个元素分别为 [‘a’,’b’] 阅读全文
posted @ 2011-07-26 16:23 perock 阅读(301) 评论(0) 推荐(0)
摘要:static void ShowNum2Str(Args _args) { Real Num; ; Num = 2.001; info(Num2Str(Num,0,3,1,2)); //输出2.001 } ShowNum2Str参数介绍: ShowNum2Str(待转real,文本长度,小数位,小数点分隔符,千位分隔符) 文本长度:意指转换后的文本长度,不足位将用空格填充; 小数位:小数长... 阅读全文
posted @ 2011-07-26 15:22 perock 阅读(7469) 评论(0) 推荐(0)
摘要:static void ShowDate2Str(Args _args) { Date FrDate; ; FrDate = SystemDateGet(); info(date2str(FrDate,213,2,3,2,3,4)); //输出结果:05-26-2011 } Date2Str()参数说明: Date2Str(待转日期,日期格式,天长度,天分隔符,月长度,月分隔符,年长度)... 阅读全文
posted @ 2011-07-26 15:02 perock 阅读(3213) 评论(0) 推荐(0)
摘要:--查询生产单PO的位置Declare @tmpWrkCtrId VarChar(20)Declare curWrkCtrID# Cursor For Select WRKCTRID From ACT_JOBTABLE a inner join ACT_JOBTRANS b on b.ACT_JobId = a.ACT_JobId Where PRODID = 'WR0073262' and WRKCTRID != 'WC-PL' and b.ItemId = 'PO' group by WRKCTRIDIF EXISTS(SELECT Name 阅读全文
posted @ 2011-07-23 11:14 perock 阅读(285) 评论(0) 推荐(0)