上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
1、在 Basic/setup/Number sequence/numberSequence 增加一个Sequence 编号:比如 'MySequence', from 1 to 9999999 format='######'。2、在form的数据源的Create方法添加以下代码。1 public void create(boolean _append = false)2 {3 NumberSeq _numberSeq;//declare a NumberSeq variable4 ;5 super(_append);6 _numberSeq = numberS Read More
posted @ 2012-08-30 11:22 Sprite.z Views(179) Comments(0) Diggs(0)
本例中使用到很多Axapta高级技巧,比如函数的嵌套等,值得大家揣摩。例子中使用到的三个函数解释:fileExists(_name) 若存在文件,则返回 true。folderExists(_name) 若存在文件夹或文件,则返回true。pathExists(_name) 若存在文件夹,则返回true。 1 static void FindFile(Args _args) 2 { 3 #File 4 FileName fullFileName(FileName _path, FileName _fileName) 5 { 6 FileName p... Read More
posted @ 2012-08-30 11:20 Sprite.z Views(174) Comments(0) Diggs(0)
1 str URL; 2 #DEFINE.MapURL('http://maps.google.com/maps?q=') 3 ; 4 if (!Address.QVS_Latitude || !Address.QVS_Longitude) 5 { 6 SmmUtility::GoogleMap(Address); 7 } 8 else 9 {10 URL = Address.QVS_Latitude;11 URL += "," + Address.QVS_Longitude;12 13 URL = #MapURL + URL;14 infolog.urlL Read More
posted @ 2012-08-30 11:19 Sprite.z Views(327) Comments(0) Diggs(0)
1 ReportName.setTarget(printMedium::Printer);//直接打印到打印机2 this.suppressReportIsEmptyMessage(true);//空报表提示3 this.printJobSettings().suppressScalingMessage(true);//预览缩放提示 Read More
posted @ 2012-08-30 11:13 Sprite.z Views(159) Comments(0) Diggs(0)
AX的进度条比较简单,参考以下代码。 1 #avifiles 2 SysOperationProgress simpleProgress = SysOperationProgress::newGeneral(#aviUpdate, 'Posting', 100); 3 ; 4 simpleprogress.setCaption('Please wait...'); 5 simpleProgress.incCount(5); 6 simpleprogress.setText(strfmt("Percent: %1"+'%', 5 Read More
posted @ 2012-08-30 11:09 Sprite.z Views(258) Comments(0) Diggs(0)
1、先在form的声明的地方声明变量。1 public class FormRun extends ObjectRun2 {3 QueryBuildRange criteriaPosted;4 }2、数据源(datasource)对应的表的ini方法。1 public void init()2 {3 super();4 criteriaPosted=this.query().dataSourceName('YouTable').addRange(fieldNum(YouTable,FieldName));5 }3、数据源的ExecuteQuery方法下。1 public voi Read More
posted @ 2012-08-30 11:07 Sprite.z Views(206) Comments(0) Diggs(0)
1 static void closeAxapta(Args _args)2 {3 infolog.shutDown(true);4 } Read More
posted @ 2012-08-30 11:01 Sprite.z Views(147) Comments(0) Diggs(0)
1 public void init()2 {3 object obj;4 ;5 super();6 obj = element.design().sectionName("SalesLine_1").controlName("SalesLine_LineAmount");7 obj.SumAll(NoYes::Yes);8 } Read More
posted @ 2012-08-30 11:00 Sprite.z Views(184) Comments(0) Diggs(0)
1 void modified()2 {3 object fieldNameRef;4 super();5 fieldNameRef = tableName_ds.object(fieldNum(tableName, fieldName));6 fieldNameRef.methodName();7 } Read More
posted @ 2012-08-30 10:59 Sprite.z Views(148) Comments(0) Diggs(0)
1 static void loopFieldsInTable(Args _args) 2 { 3 dictTable dt; 4 int numberOfFields; 5 int fieldId; 6 int i; 7 ; 8 dt = new dictTable(tableNum(CustTable)); 9 //name of table10 info(dt.name()); 11 numberOfFields = dt.fieldCnt(); 12 info(int2str(numberOf... Read More
posted @ 2012-08-30 10:58 Sprite.z Views(171) Comments(0) Diggs(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页