From 27ddcd7163f80b831031086bf599d01e6883a7e0 Mon Sep 17 00:00:00 2001
From: renhao <renhui.hao@capgemini.com>
Date: 星期三, 13 九月 2023 14:53:41 +0800
Subject: [PATCH] operation 唯一值

---
 _Main/BL/Type_MappingOperation/TypeIndex_MappingOperationTypeIndex.qbl |   18 +++++++++++-------
 _Main/BL/Type_MappingOperation/Attribute_SequenceNumber.qbl            |    1 +
 _Main/BL/EDI/Broker_Broker_OTD_Operation.qbl                           |    1 +
 3 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/_Main/BL/EDI/Broker_Broker_OTD_Operation.qbl b/_Main/BL/EDI/Broker_Broker_OTD_Operation.qbl
index 64aa83d..e269f2f 100644
--- a/_Main/BL/EDI/Broker_Broker_OTD_Operation.qbl
+++ b/_Main/BL/EDI/Broker_Broker_OTD_Operation.qbl
@@ -15,6 +15,7 @@
       PrimaryKeyColumns: PlantName
       PrimaryKeyColumns: ProcessSection
       PrimaryKeyColumns: ProductID
+      PrimaryKeyColumns: SequenceNumber
       TargetType: MappingOperation
       TypeIndex: MappingOperationTypeIndex
       EDIMLColumn ActualCapacity { Attribute: ActualCapacity ValueType: Real }
diff --git a/_Main/BL/Type_MappingOperation/Attribute_SequenceNumber.qbl b/_Main/BL/Type_MappingOperation/Attribute_SequenceNumber.qbl
index 4fc6ea4..fed9689 100644
--- a/_Main/BL/Type_MappingOperation/Attribute_SequenceNumber.qbl
+++ b/_Main/BL/Type_MappingOperation/Attribute_SequenceNumber.qbl
@@ -3,5 +3,6 @@
 Attribute SequenceNumber
 {
   #keys: '3[412960.0.86978408][412960.0.86978407][412960.0.86978409]'
+  IsReadOnly: true
   ValueType: Number
 }
diff --git a/_Main/BL/Type_MappingOperation/TypeIndex_MappingOperationTypeIndex.qbl b/_Main/BL/Type_MappingOperation/TypeIndex_MappingOperationTypeIndex.qbl
index 35ab7e4..2fc4aff 100644
--- a/_Main/BL/Type_MappingOperation/TypeIndex_MappingOperationTypeIndex.qbl
+++ b/_Main/BL/Type_MappingOperation/TypeIndex_MappingOperationTypeIndex.qbl
@@ -6,11 +6,7 @@
   [
     TypeIndexAttribute
     {
-      ModelElement: Line
-    }
-    TypeIndexAttribute
-    {
-      ModelElement: BusinessType
+      ModelElement: ProcessSection
     }
     TypeIndexAttribute
     {
@@ -18,7 +14,11 @@
     }
     TypeIndexAttribute
     {
-      ModelElement: OrganCode
+      ModelElement: BusinessType
+    }
+    TypeIndexAttribute
+    {
+      ModelElement: Line
     }
     TypeIndexAttribute
     {
@@ -26,7 +26,11 @@
     }
     TypeIndexAttribute
     {
-      ModelElement: ProcessSection
+      ModelElement: SequenceNumber
+    }
+    TypeIndexAttribute
+    {
+      ModelElement: OrganCode
     }
   ]
 }

--
Gitblit v1.9.3