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
51
52
53
54
55
56
Quintiq file version 2.0
#parent: #root
Constraint DuplicateCreatedName
{
  #keys: '2[142876.9.512317468][142876.9.512317469]'
  ConstraintXML:
  [*
    <?xml version="1.0" encoding="UTF-16"?>
    <GEBConstraintElement xmlns="http://www.quintiq.com/GEB/GEBConstraintElement" Key="@DuplicateCreatedName1" TargetType="TG_UIObject" ValueType="Boolean" ModelElement="TG_UIObject.DuplicateCreatedName" TargetColumn="@DuplicateCreatedName2">
      <Name>DuplicateCreatedName</Name>
      <Description></Description>
      <DefinitionID>[142876.9.512317468]</DefinitionID>
      <ConstraintKind>Soft</ConstraintKind>
      <Priority>0</Priority>
      <ConstraintText>The name @this.CreatedName()@ is duplicate with another instance.</ConstraintText>
      <GEBConstraintElementData Key="@1">
        <DefaultColumnPrefix></DefaultColumnPrefix>
        <ColumnPostfix></ColumnPostfix>
        <GEBProcessColumn Key="@DuplicateCreatedName2" ElementType="TG_UIObject" ValueType="Boolean">
          <ColumnID>[142876.9.512317467]</ColumnID>
          <BaseName>DuplicateCreatedName</BaseName>
          <Name>DuplicateCreatedName</Name>
          <Title>NewConstraint</Title>
          <IsTarget>true</IsTarget>
          <NameHasBeenSet>false</NameHasBeenSet>
          <ColumnFinal>False</ColumnFinal>
          <GEBDerivation Key="@2">
            <GEBDerivationBase Key="@3" TargetType="TG_UIObject">
              <ColumnID>[142876.9.512317467]</ColumnID>
              <GEBNodeDerivation Key="@4">
                <Operation>FirstExpression</Operation>
                <Conditional>false</Conditional>
                <Multiple>false</Multiple>
                <AllowWildcards>false</AllowWildcards>
                <GEBNodeDerivationExpression Key="@5">
                  <GEBNodeDerivationExpressionBody Key="@6">
                    <ExpressionText>return guard( this.Previous().CreatedName() &lt;&gt; this.CreatedName(), true )
                and guard( this.Next().CreatedName() &lt;&gt; this.CreatedName(), true );</ExpressionText>
                    <Converter>
                      <ZeroConverter Key="@7">
                        <IsStandard>true</IsStandard>
                        <IsISO>false</IsISO>
                        <IsCustom>false</IsCustom>
                        <ConversionType>0</ConversionType>
                      </ZeroConverter>
                    </Converter>
                  </GEBNodeDerivationExpressionBody>
                </GEBNodeDerivationExpression>
              </GEBNodeDerivation>
            </GEBDerivationBase>
          </GEBDerivation>
        </GEBProcessColumn>
      </GEBConstraintElementData>
    </GEBConstraintElement>
  *]
}