yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
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
Quintiq file version 2.0
#parent: SplitterWnd2/MatrixEditorStockingPointCapacities
Response OnEndEdit (
  StockingPointInPeriod cell,
  Real newvalue
) id:Response_SplitterWnd2_MatrixEditorStockingPointCapacities_OnEndEdit
{
  #keys: '[110880.4.1095755493]'
  Body:
  [*
    // Update the max capacity by creating / editing stocking point capacity
    // Pasting from excel is diallowed due to difficulty to distinguish which value belongs to which cell when creating / update this instance
    StockingPointCapacity::CreateOrUpdateForStockingPointInPeriod( cell, newvalue, false );
    this.EndEdit( false );
  *]
  DefinitionID: 'Responsedef_MatrixEditor_OnEndEdit'
  Precondition:
  [*
    sanitycheckfeedback := '';
    return StockingPointCapacity::ValidateInput( feedback,
                                                 sanitycheckfeedback,
                                                 cell.StockingPoint_MP(),
                                                 cell.Start().Date(),
                                                 newvalue,
                                                 cell.StockingPointCapacity(),
                                                 true );
  *]
  UserRequiresReadWrite: true
}