From 353fa9fdca0c04cd9bdba536824bce0c9f4952d1 Mon Sep 17 00:00:00 2001
From: lihongji <3117313295@qq.com>
Date: 星期五, 13 九月 2024 14:39:23 +0800
Subject: [PATCH] 需求存档
---
_Main/BL/Type_InterfaceTRCForecast/Attribute_Date.qbl | 8 ++++
_Main/BL/Type_InterfaceTRCForecast/StaticMethod_ArchivedData.qbl | 27 +++++++++++++
_Main/BL/Relations/Relation_InterfaceTRCForecast_InterfaceDataset_InterfaceDataset_InterfaceTRC.qbl | 23 +++++++++++
_Main/BL/Type_InterfaceTRCForecast/Attribute_Factory.qbl | 8 ++++
_Main/BL/Type_InterfaceTRCForecast/_ROOT_Type_InterfaceTRCForecast.qbl | 9 ++++
_Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_ListSalesDemands.def | 4 --
_Main/BL/Type_InterfaceTRCForecast/Attribute_Quantity.qbl | 7 +++
_Main/BL/Type_InterfaceTRCForecast/Attribute_PartNumber.qbl | 8 ++++
8 files changed, 90 insertions(+), 4 deletions(-)
diff --git a/_Main/BL/Relations/Relation_InterfaceTRCForecast_InterfaceDataset_InterfaceDataset_InterfaceTRC.qbl b/_Main/BL/Relations/Relation_InterfaceTRCForecast_InterfaceDataset_InterfaceDataset_InterfaceTRC.qbl
new file mode 100644
index 0000000..027677c
--- /dev/null
+++ b/_Main/BL/Relations/Relation_InterfaceTRCForecast_InterfaceDataset_InterfaceDataset_InterfaceTRC.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation InterfaceTRCForecast_InterfaceDataset_InterfaceDataset_InterfaceTRCForecast
+{
+ #keys: '1[413988.0.1541044644]'
+ DefaultRelationStrategy
+ {
+ }
+ RelationSide.LeftSide InterfaceDataset
+ {
+ #keys: '3[413988.0.1541044646][413988.0.1541044645][413988.0.1541044647]'
+ Cardinality: '0to1'
+ ObjectDefinition: InterfaceTRCForecast
+ OwningSide: 'Reference'
+ }
+ RelationSide.RightSide InterfaceTRCForecast
+ {
+ #keys: '3[413988.0.1541044649][413988.0.1541044648][413988.0.1541044650]'
+ Cardinality: '1toN'
+ ObjectDefinition: InterfaceDataset
+ OwningSide: 'Owned'
+ }
+}
diff --git a/_Main/BL/Type_InterfaceTRCForecast/Attribute_Date.qbl b/_Main/BL/Type_InterfaceTRCForecast/Attribute_Date.qbl
new file mode 100644
index 0000000..3671c7e
--- /dev/null
+++ b/_Main/BL/Type_InterfaceTRCForecast/Attribute_Date.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Date
+{
+ #keys: '3[413988.0.1541044687][413988.0.1541044686][413988.0.1541044688]'
+ Description: '鏃ユ湡'
+ ValueType: Date
+}
diff --git a/_Main/BL/Type_InterfaceTRCForecast/Attribute_Factory.qbl b/_Main/BL/Type_InterfaceTRCForecast/Attribute_Factory.qbl
new file mode 100644
index 0000000..f12b934
--- /dev/null
+++ b/_Main/BL/Type_InterfaceTRCForecast/Attribute_Factory.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Factory
+{
+ #keys: '3[413988.0.1541044660][413988.0.1541044659][413988.0.1541044661]'
+ Description: '宸ュ巶'
+ ValueType: String
+}
diff --git a/_Main/BL/Type_InterfaceTRCForecast/Attribute_PartNumber.qbl b/_Main/BL/Type_InterfaceTRCForecast/Attribute_PartNumber.qbl
new file mode 100644
index 0000000..1b5bfc9
--- /dev/null
+++ b/_Main/BL/Type_InterfaceTRCForecast/Attribute_PartNumber.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute PartNumber
+{
+ #keys: '3[413988.0.1541044670][413988.0.1541044669][413988.0.1541044671]'
+ Description: '闆朵欢鍙�'
+ ValueType: String
+}
diff --git a/_Main/BL/Type_InterfaceTRCForecast/Attribute_Quantity.qbl b/_Main/BL/Type_InterfaceTRCForecast/Attribute_Quantity.qbl
new file mode 100644
index 0000000..99d898a
--- /dev/null
+++ b/_Main/BL/Type_InterfaceTRCForecast/Attribute_Quantity.qbl
@@ -0,0 +1,7 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Quantity
+{
+ #keys: '3[413988.0.1541044680][413988.0.1541044679][413988.0.1541044681]'
+ ValueType: Real
+}
diff --git a/_Main/BL/Type_InterfaceTRCForecast/StaticMethod_ArchivedData.qbl b/_Main/BL/Type_InterfaceTRCForecast/StaticMethod_ArchivedData.qbl
new file mode 100644
index 0000000..f5f5f2d
--- /dev/null
+++ b/_Main/BL/Type_InterfaceTRCForecast/StaticMethod_ArchivedData.qbl
@@ -0,0 +1,27 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod ArchivedData (
+ InterfaceDataset interfaceDataset,
+ MacroPlan macroPlan
+)
+{
+ TextBody:
+ [*
+ traverse ( macroPlan, SalesDemand.astype( Forecast ), f, f.Origin() = "CC-TRC" or f.Origin() = "DL-TRC" ) {
+ factory := f.Origin().Tokenize( "-" ).Element( 0 );
+
+ itrcf := select( interfaceDataset, InterfaceTRCForecast, tempITRCF, tempITRCF.PartNumber() = f.ProductID() and tempITRCF.Date() = f.StartDate() );
+
+ if ( not isnull( itrcf ) ) {
+ itrcf.Delete();
+ }
+
+ interfaceDataset.InterfaceTRCForecast( relnew,
+ Date := f.StartDate(),
+ Factory := factory,
+ PartNumber := f.ProductID(),
+ Quantity := f.Quantity()
+ );
+ }
+ *]
+}
diff --git a/_Main/BL/Type_InterfaceTRCForecast/_ROOT_Type_InterfaceTRCForecast.qbl b/_Main/BL/Type_InterfaceTRCForecast/_ROOT_Type_InterfaceTRCForecast.qbl
new file mode 100644
index 0000000..8e33fef
--- /dev/null
+++ b/_Main/BL/Type_InterfaceTRCForecast/_ROOT_Type_InterfaceTRCForecast.qbl
@@ -0,0 +1,9 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type InterfaceTRCForecast
+{
+ #keys: '5[413988.0.1541044641][413988.0.1541044639][0.0.0][413988.0.1541044640][413988.0.1541044642]'
+ BaseType: Object
+ StructuredName: 'InterfaceTRCForecasts'
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_ListSalesDemands.def b/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_ListSalesDemands.def
index b2c78ed..8fc3953 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_ListSalesDemands.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_ListSalesDemands.def
@@ -5,10 +5,6 @@
[
Component DataSetLevelSalesDemands #extension
{
- Children:
- [
- #child: listContextMenuSD
- ]
Properties:
[
Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeAllConstraint","columnid":"All constraints","title":"All constraints","subtotals":"","tooltip":"","width":1,"display":"shown"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ImgNotLinkedToPeriod","title":"ImgNotLinkedToPeriod","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ImgNotLinkedToPeriod"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ImgIsPostponed","title":"ImgIsPostponed","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ImgIsPostponed"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StockingPoint_MP.ID","title":"Stocking point","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"StockingPoint_MP.ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SalesSegment_MP.Name","title":"Sales segment","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"SalesSegment_MP.Name"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Product_MP.ID","title":"Product","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"Product_MP.ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StartDate","title":"Start","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StartDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"EndDate","title":"End","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"EndDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"UnitOfMeasure_MP.Name","title":"Quantity UoM","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"UnitOfMeasure_MP.Name"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Quantity","title":"Original Qty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Quantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"NettedQuantity","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"NettedQuantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"FulfilledQuantity","title":"Fulfilled","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"FulfilledQuantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeChart","columnid":"Fulfillment Illustration","title":"Fulfillment","subtotals":"","tooltip":"","width":-1,"display":"shown","type":"stackbar","relative":true,"attributes":[{"name":"Fulfilled demand","color":"rgb(87,184,71)","expression":{"classtype":"WebApiDefinitionAttributeExpression","columnid":"Fulfillment","title":"Fulfilled demand","subtotals":"","tooltip":"","width":-1,"display":"shown","expressionbody":"object.FulfilledQuantity().Round(2)"}},{"name":"Unfulfilled demand","color":"rgb(232,123,0)","expression":{"classtype":"WebApiDefinitionAttributeExpression","columnid":"Unfulfilled demand","title":"Unfulfilled demand","subtotals":"","tooltip":"","width":-1,"display":"shown","expressionbody":"maxvalue(object.NettedQuantity()-object.FulfilledQuantity(),0.0).Round(2)"}}]}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Price","title":"Price","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Price"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PriceUoM","title":"PriceUoM","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"PriceUoM"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Priority.Name","title":"Priority","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"Priority.Name"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"DemandUncertaintyPercentage","title":"Uncertainty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"DemandUncertaintyPercentage"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Origin","title":"Origin","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Origin"}}]'
--
Gitblit v1.9.3