1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| Quintiq file version 2.0
| #parent: #root
| StaticMethod ExportTemplate (
| MacroPlan macroplan,
| Boolean isxlsxformat
| ) as BinaryValue
| {
| TextBody:
| [*
| // 甄兰鸽 Aug-22-2024 (created)
| traverse( macroplan, ChangeLossSetting, cls ){
| macroplan.ChangeLossSettingExcel( relnew, Product1 := cls.ProductFirst().ID(), Product2 := cls.ProductSecond().ID(), Unit := cls.Unit().ID(), ChangeLossNumber := [String]cls.ChangeLossNr(), StartDate := cls.StartDate(), EndDate := cls.EndDate() );
| }
| value := macroplan.MP_ExportChangeLossSettingsBroker().ExecuteToXLS( isxlsxformat ).AsBinaryValue();
| macroplan.ChangeLossSettingExcel( relflush );
| return value;
| *]
| }
|
|