1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| Quintiq file version 2.0
| #parent: #root
| StaticMethod RequirementProcessing (
| Archive archive,
| MacroPlan macroPlan,
| String userName,
| String prFileName,
| BinaryValue prBinaryValue,
| Boolean isPRArchive,
| String ppFileName,
| BinaryValue ppBinaryValue,
| Boolean isPPArchive,
| String budgetFileName,
| BinaryValue budgetBinaryValue,
| Boolean isBudgetArchive,
| String ppaFileName,
| BinaryValue ppaBinaryValue,
| Boolean isPPAArchive,
| String curveFileName,
| BinaryValue curveBinaryValue,
| String idsFileName,
| BinaryValue idsBinaryValue
| )
| {
| TextBody:
| [*
| filePath := archive.FileArchivePath() + "\" + "temp" + "\";
| OS::CreateDirectory( filePath );
|
| // 创建执行状态
| archive.RequirementImportExecutionStatus( relnew,
| ExecutionStatus := "InProgress",
| ExecutionUserName := userName );
|
| if ( prBinaryValue.Size() > 0 ) {
| archive -> Archive::HandlePR( macroPlan, userName, prFileName, prBinaryValue, isPRArchive, filePath );
| } else if ( ppBinaryValue.Size() > 0 ) {
| Archive::HandlePP( archive, macroPlan, userName, ppFileName, ppBinaryValue, isPPArchive, filePath );
| } else if ( budgetBinaryValue.Size() > 0 ) {
| Archive::HandleBudget( archive, macroPlan, userName, budgetFileName, budgetBinaryValue, isBudgetArchive, filePath );
| } else {
| Archive::HandlePPA_Curve_IDS( archive, macroPlan, userName, ppaFileName, ppaBinaryValue, isPPAArchive, curveFileName, curveBinaryValue, idsFileName, idsBinaryValue, filePath );
| }
| *]
| }
|
|