自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 D365 批处理作业 3 使用SysOperation 基于之前批处理作业1进行完善

使用SysOperation做批处理

2023-07-27 17:04:37 85

原创 查询枚举值

为了方便开发,可以更快捷的查询到枚举值及枚举显示值,D365开发了一个页面用于查询表字段的对应枚举值。

2023-07-26 15:43:39 342

原创 D365 批处理 多任务批处理 方法2(比方法1更简单)

1.普通批处理方法,必须要参数2. BatchHeader batchHeader; RefRecId batchJobId; SysRecurrenceData sysRecurrenceDate = SysRecurrence::defaultRecurrence(); sysRecurrenceDate = SysRecurrence::setRecurrenceEndAfter(sysRecurrenceDate, 1);

2021-06-02 17:22:34 296

原创 D365 Email

SysMailerMessageBuilder mailer = new SysMailerMessageBuilder();SysMailerSMTP smtp = new SysMailerSMTP();mailer.setSubject('Test');mailer.setFrom("邮箱");mailer.setBody('body');mailer.addTo('发送至邮箱');//mailer.addAttachment(memoryStream,"库存快照"+number+".x.

2021-01-25 16:21:44 380

原创 D365 批处理 多任务批处理 方法1

多任务批处理需要5个类:1.Contract 新建参数2.Task 任务逻辑3.Service 调用 Task4.Controller 调用Service5.Scheduler 调用 controller 并传参案例:还在整理

2020-12-29 11:32:26 546

原创 D365 批处理案例一:普通批处理

class Test extends RunBaseBatch{ DialogField startdateField,enddateField,branchCodeField; FormBuildStringControl branchCodeControl; str branchSum; date startdate,enddate; //批处理用于存储数据 #define.CurrentVersion(1) #.

2020-12-29 11:22:46 421

原创 D365 批处理

1.this.getLast(),this.saveLast();

2020-12-29 11:07:29 235

原创 D365 表对表赋值

Table2:有数据,Table1:待取值1.insert_recordSetinsert_recordset Table1(T1fieldName1,T1fieldName2) select T2fieldName1,T2fieldName2 from Table2; 2,buf2buf(注:Table1,Table2必须是同一张表)buf2Buf(Table2,Table1)3.针对不同表但字段名一致的...

2020-12-02 17:18:40 281

原创 D365 汇率计算方法

1.rate=ExchangeRateHelper::newExchangeDate(Ledger::current(),CurrencyCode,date).getExchangeRate1()/100;直接换算金额2.public static real currencyExcanger(real _amtCur, CurrencyCode _fromCurrencyCode, CurrencyCode _toCurrencyCode,date _date = systemDate..

2020-12-02 10:13:27 180

原创 D365 窗体字段跳转 Jumpref

改方法需覆盖数据源字段或者控件下的jumpref,super()需删除Args args;MenuFunction menuFunction;Common rec;//可以使用对应表申明;当前公司rec=Table::find(Table.No);args = new Args();args.record(rec);args.caller(element);menuFunction = new MenuFunction(menuitemdisplaystr

2020-11-30 11:21:21 258

原创 D365 自动读取控件显示值

在已知控件名称,无法得知控件类型的情况下使用Object control;str txt;control = element.design().controlName('FieldName') ;if (SysTest::hasMethod(control, identifierStr(text))){ txt= control.text();}else if (SysTest::hasMethod(control, identifierStr(val

2020-11-30 11:10:33 230

原创 D365 窗体的 Lookup写法

D365 窗体的 Lookup写法

2020-11-30 10:47:38 663

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除