yypsybs
2023-10-10 550ebcf02217f8a0c6fe9001fcfa8e42e9cd6b83
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
Quintiq file version 2.0
#parent: #root
Method PrintCall (
  GlobalOTDTable globalData,
  String callBy
) as String
{
  TextBody:
  [*
    // yypsybs Sep-11-2023 (created)
    result := globalData.PRHistoryData( relnew );
    
    // 照搬部分
    result.AuthorizationStatus( this.AuthorizationStatus() );
    result.BusinessType( this.BusinessType() );
    result.DataID( this.DataID() );
    result.DeliverToRequestorId( this.DeliverToRequestorId() );
    result.DestinationOrganizationID( this.DestinationOrganizationID() );
    result.DestinationTypeCode( this.DestinationTypeCode() );
    result.HeaderDescription( this.HeaderDescription() );
    result.LineAttribute1( this.LineAttribute1() );
    result.LineAttribute6( this.LineAttribute6() );
    result.LineType( this.LineType() );
    result.LineTypeId( this.LineTypeId() );
    result.MRPCalverNo( this.MRPCalverNo() );
    result.OrganCode( this.OrganCode() );
    result.OrgId( this.OrgId() );
    result.PreparerID( this.PreparerId() );
    result.DeliveryDate( this.DeliveryDate() );
    result.ProductID( this.ProductID() );
    result.ProductName( this.ProductName() );
    result.ProviderCode( this.ProviderCode() );
    result.ProviderName( this.ProviderName() );
    result.Quantity( this.Quantity() );
    result.RequisitionType( this.RequisitionType() );
    result.StockingPointID( this.StockingPointID() );
    result.UnitOfMeasure( this.UnitOfMeasure() );
    result.UnitPrice( this.UnitPrice() );
    
    // 请求部分
    request := ERPRequestOfPR::Create( result );
    retult := request.GetCallJSONString();
    request.Delete();
    return retult;
  *]
}