admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
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
46
47
48
49
50
Quintiq file version 2.0
#parent: #root
StaticMethod GenerateData (
  InterfaceLoginfo owner,
  StringToDate cnv,
  JSON item
) as FinishedEngineInventory
{
  TextBody:
  [*
    // 甄兰鸽 Jul-17-2024 (created)
    four_code                  := guard( item.Get( "four_code").GetString(),"");
    vehicle_type               := guard( item.Get( "vehicle_type").GetString(),"");
    receipt_place              := guard( item.Get( "receipt_place").GetString(),"");
    full_name                  := guard( item.Get( "full_name").GetString(),"");
    spell_name                 := guard( item.Get( "spell_name").GetString(),"");
    engine_type                := guard( item.Get( "engine_type").GetString(),"");
    engine_modular_platform    := guard( item.Get( "engine_modular_platform").GetString(),"");
    brand                      := guard( item.Get( "brand").GetString(),"");
    bi_place                   := guard( item.Get( "bi_place").GetString(),"");
    price                      := guard( item.Get( "price").GetString(),"");
    total                      := [Real]guard( item.Get( "total").GetString(),"");
    amount                     := [Real]guard( item.Get( "amount").GetString(),"");
    dtype                      := guard( item.Get( "dtype").GetString(),"");
    fac                        := guard( item.Get( "fac").GetString(),"");
    dday                       := guard( item.Get( "dday").GetString(),"");
    dweek                      := guard( item.Get( "dweek").GetString(),"");
    dmonth                     := guard( item.Get( "dmonth").GetString(),"");
    
    msdata           := owner.FinishedEngineInventory( relnew, FourCode := four_code
                                                       , VehicleType := vehicle_type
                                                       , ReceiptPlace := receipt_place
                                                       , FullName := full_name
                                                       , SpellName := spell_name
                                                       , EngineType := engine_type
                                                       , EngineModularPlatform := engine_modular_platform
                                                       , Brand := brand
                                                       , BIPlace := bi_place
                                                       , Price := price
                                                       , Total := total
                                                       , Amount := amount
                                                       , DType := dtype
                                                       , Fac := fac
                                                       , DDay := cnv.Convert( dday )
                                                       , DWeek := dweek
                                                       , DMonth := dmonth );
    
    return msdata;
  *]
}