From 9399ea261b189f15638a73261df2c68757d71d57 Mon Sep 17 00:00:00 2001
From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com>
Date: 星期三, 06 十一月 2024 14:43:32 +0800
Subject: [PATCH] 修复一些bug

---
 _Main/UI/MacroPlannerWebApp/Component_FormAnnualPlanReport/Response_ListPowers_OnClick.def              |   18 ++++++
 _Main/BL/Type_LocalValue/StaticMethod_CreateProduct_MPAttribute.qbl                                     |    6 +-
 _Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Response_ListMQBMLB_670_OnClick.def          |   18 ++++++
 _Main/UI/MacroPlannerWebApp/Component_FormAnnualPlanReport/Response_ListGenerations_OnClick.def         |   18 ++++++
 _Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_ListPowers_667_OnClick.def     |   18 ++++++
 _Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_ListGenerations_61_OnClick.def |   18 ++++++
 _Main/UI/MacroPlannerWebApp/Component_FormAnnualPlanReport/Response_ListMQBMLB_OnClick.def              |   18 ++++++
 _Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Response_ListGenerations_61_OnClick.def      |   18 ++++++
 _Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_ListMQBMLB_670_OnClick.def     |   18 ++++++
 _Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Response_ListPowers_667_OnClick.def          |   18 ++++++
 10 files changed, 165 insertions(+), 3 deletions(-)

diff --git a/_Main/BL/Type_LocalValue/StaticMethod_CreateProduct_MPAttribute.qbl b/_Main/BL/Type_LocalValue/StaticMethod_CreateProduct_MPAttribute.qbl
index e12a176..59c32c7 100644
--- a/_Main/BL/Type_LocalValue/StaticMethod_CreateProduct_MPAttribute.qbl
+++ b/_Main/BL/Type_LocalValue/StaticMethod_CreateProduct_MPAttribute.qbl
@@ -11,21 +11,21 @@
     // Akari Nov-5-2024 (created)
     result := construct( LocalValues );
     if( attributeName.ToLower() = "generation" ){
-      generations := selectuniquevalues( macroPlan,Product_MP,product,product.Generation() );
+      generations := selectuniquevalues( macroPlan,Product_MP,product,product.Generation() <> "",product.Generation() );
       traverse( generations,Elements,generation ){
         localValue := owner.LocalValue( relnew,StringValue := generation );
         result.Add( localValue );
       }
     }
     if( attributeName.ToLower() = "power" ){
-      powers := selectuniquevalues( macroPlan,Product_MP,product,product.Power() );
+      powers := selectuniquevalues( macroPlan,Product_MP,product,product.Power() <> "",product.Power() );
       traverse( powers,Elements,power ){
         localValue := owner.LocalValue( relnew,StringValue := power );
         result.Add( localValue );
       }
     }
     if( attributeName.ToLower() = "mqbmlb" ){
-      mqbmlbs := selectuniquevalues( macroPlan,Product_MP,product,product.MQBMLB() );
+      mqbmlbs := selectuniquevalues( macroPlan,Product_MP,product,product.MQBMLB() <> "",product.MQBMLB() );
       traverse( mqbmlbs,Elements,mqbmlb ){
         localValue := owner.LocalValue( relnew,StringValue := mqbmlb );
         result.Add( localValue );
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormAnnualPlanReport/Response_ListGenerations_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FormAnnualPlanReport/Response_ListGenerations_OnClick.def
new file mode 100644
index 0000000..b6af33b
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormAnnualPlanReport/Response_ListGenerations_OnClick.def
@@ -0,0 +1,18 @@
+Quintiq file version 2.0
+#parent: ListGenerations
+Response OnClick (
+  LocalValue selection
+) id:Response_ListGenerations_OnClick
+{
+  #keys: '[414996.1.195221920]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebList_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      selection.IsCheck( not selection.IsCheck() );
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormAnnualPlanReport/Response_ListMQBMLB_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FormAnnualPlanReport/Response_ListMQBMLB_OnClick.def
new file mode 100644
index 0000000..2f48a9f
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormAnnualPlanReport/Response_ListMQBMLB_OnClick.def
@@ -0,0 +1,18 @@
+Quintiq file version 2.0
+#parent: ListMQBMLB
+Response OnClick (
+  LocalValue selection
+) id:Response_ListMQBMLB_OnClick
+{
+  #keys: '[414996.1.197722619]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebList_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      selection.IsCheck( not selection.IsCheck() );
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormAnnualPlanReport/Response_ListPowers_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FormAnnualPlanReport/Response_ListPowers_OnClick.def
new file mode 100644
index 0000000..9c14fe0
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormAnnualPlanReport/Response_ListPowers_OnClick.def
@@ -0,0 +1,18 @@
+Quintiq file version 2.0
+#parent: ListPowers
+Response OnClick (
+  LocalValue selection
+) id:Response_ListPowers_OnClick
+{
+  #keys: '[414996.1.197722607]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebList_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      selection.IsCheck( not selection.IsCheck() );
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Response_ListGenerations_61_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Response_ListGenerations_61_OnClick.def
new file mode 100644
index 0000000..0022821
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Response_ListGenerations_61_OnClick.def
@@ -0,0 +1,18 @@
+Quintiq file version 2.0
+#parent: ListGenerations_61
+Response OnClick (
+  LocalValue selection
+) id:Response_ListGenerations_61_OnClick
+{
+  #keys: '[414996.1.197722723]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebList_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      selection.IsCheck( not selection.IsCheck() );
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Response_ListMQBMLB_670_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Response_ListMQBMLB_670_OnClick.def
new file mode 100644
index 0000000..db6d202
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Response_ListMQBMLB_670_OnClick.def
@@ -0,0 +1,18 @@
+Quintiq file version 2.0
+#parent: ListMQBMLB_670
+Response OnClick (
+  LocalValue selection
+) id:Response_ListMQBMLB_670_OnClick
+{
+  #keys: '[414996.1.197722745]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebList_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      selection.IsCheck( not selection.IsCheck() );
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Response_ListPowers_667_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Response_ListPowers_667_OnClick.def
new file mode 100644
index 0000000..34e063f
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Response_ListPowers_667_OnClick.def
@@ -0,0 +1,18 @@
+Quintiq file version 2.0
+#parent: ListPowers_667
+Response OnClick (
+  LocalValue selection
+) id:Response_ListPowers_667_OnClick
+{
+  #keys: '[414996.1.197722734]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebList_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      selection.IsCheck( not selection.IsCheck() );
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_ListGenerations_61_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_ListGenerations_61_OnClick.def
new file mode 100644
index 0000000..46e2683
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_ListGenerations_61_OnClick.def
@@ -0,0 +1,18 @@
+Quintiq file version 2.0
+#parent: ListGenerations_61
+Response OnClick (
+  LocalValue selection
+) id:Response_ListGenerations_61_OnClick
+{
+  #keys: '[414996.1.197722673]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebList_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      selection.IsCheck( not selection.IsCheck() );
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_ListMQBMLB_670_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_ListMQBMLB_670_OnClick.def
new file mode 100644
index 0000000..242d357
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_ListMQBMLB_670_OnClick.def
@@ -0,0 +1,18 @@
+Quintiq file version 2.0
+#parent: ListMQBMLB_670
+Response OnClick (
+  LocalValue selection
+) id:Response_ListMQBMLB_670_OnClick
+{
+  #keys: '[414996.1.197722695]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebList_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      selection.IsCheck( not selection.IsCheck() );
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_ListPowers_667_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_ListPowers_667_OnClick.def
new file mode 100644
index 0000000..1e49feb
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_ListPowers_667_OnClick.def
@@ -0,0 +1,18 @@
+Quintiq file version 2.0
+#parent: ListPowers_667
+Response OnClick (
+  LocalValue selection
+) id:Response_ListPowers_667_OnClick
+{
+  #keys: '[414996.1.197722684]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebList_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      selection.IsCheck( not selection.IsCheck() );
+    *]
+  }
+}

--
Gitblit v1.9.3