From a279329b095994eaa37a40ff075d927777a18c64 Mon Sep 17 00:00:00 2001
From: yunchai <yunying.chai@capgemini.com>
Date: 星期一, 18 九月 2023 20:52:41 +0800
Subject: [PATCH] 冲减

---
 _Main/BL/Type_H_OrderRecord/Attribute_CustomerCode.qbl                                                                                            |    8 
 _Main/BL/Type_H_MaterialPurchase/Attribute_ID.qbl                                                                                                 |    8 
 _Main/BL/Type_H_MaterialPurchase/Attribute_IssuingDate.qbl                                                                                        |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_list_ForecastView_FOF#670.def                                                    |   43 
 _Main/BL/Type_DS_HedgingRecord/Attribute_Operator.qbl                                                                                             |    8 
 _Main/BL/Type_H_MaterialPurchase/Attribute_Status.qbl                                                                                             |    8 
 _Main/BL/Relations/Relation_H_ErrorLogs_MacroPlan_MacroPlan_H_ErrorLogs.qbl                                                                       |   23 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel645.def                                                  |   27 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelOptimizerGeneral718.def                                           |   39 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel890.def                                                  |   27 
 _Main/BL/Type_H_OrderForecastRealQty/Attribute_Unit.qbl                                                                                           |    8 
 _Main/BL/Type_H_Forecast/Attribute_ForecastQty.qbl                                                                                                |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_list_ForecastView_FOF_OnSelectionChanged.def                                      |   25 
 _Main/BL/Type_H_OrderRecord/Attribute_ForecastHitQty.qbl                                                                                          |    8 
 _Main/BL/Relations/Relation_H_TestMap_H_OrderRecord_H_OrderRecord_H_TestMap.qbl                                                                   |   23 
 _Main/BL/Type_H_OrderRecord/Attribute_OperateQty.qbl                                                                                              |    8 
 _Main/BL/Type_H_OrderRecord/Attribute_OperateType.qbl                                                                                             |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_OnCreated.def                                                                          |   23 
 _Main/BL/Relations/Relation_H_MaterialRealQty_MacroPlan_MacroPlan_H_MaterialRealQty.qbl                                                           |   23 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_listActionBarPage195.def                                                           |   10 
 _Main/BL/Type_DS_HedgingRecord/Attribute_SKU.qbl                                                                                                  |    8 
 _Main/BL/Type_H_AuthorizeRealQty/Attribute_AuthorizeRealQty.qbl                                                                                   |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnSelectionChanged.def                                               |   23 
 _Main/BL/Type_H_MaterialPurchase/Attribute_WarehouseCode.qbl                                                                                      |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listActionBarPage963.def                                                         |   10 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop360.def                                                        |   29 
 _Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/_ROOT_Component_FrmErrorLogs.def                                                               |   43 
 _Main/UI/MacroPlannerWebApp/Component_Form234/Component_listContextMenu108.def                                                                    |   10 
 _Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_List832_OnSelectionChanged.def                                                         |   23 
 _Main/BL/Type_H_OrderRecord/Attribute_OrderDateTime.qbl                                                                                           |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Response_Panel445_btn_Query_FOR_OnClick.def                                                  |   22 
 _Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listContextMenu623.def                                                                    |   10 
 _Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_PanelReleaseRecord108.def                                                       |   39 
 _Main/BL/Type_H_MaterialPurchase/Attribute_Unit.qbl                                                                                               |    8 
 _Main/BL/Type_DS_HedgingRecord/Attribute_VCode.qbl                                                                                                |    8 
 _Main/BL/Type_H_MaterialPurchase/Attribute_Qty.qbl                                                                                                |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop.def                                                           |   27 
 _Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_PanelReleaseRecord.def                                                          |   26 
 _Main/BL/Type_H_FunctionClass/StaticMethod_UpdateOrderForecastRealQty.qbl                                                                         |   44 
 _Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Response_PanelReleaseRecord_dtMonth_OnChanged.def                                         |   17 
 _Main/BL/Relations/Relation_H_MaterialPurchase_H_ReleaseRecord_H_ReleaseRecord_H_MaterialPurcha.qbl                                               |   23 
 _Main/BL/Type_H_ErrorLogs/Attribute_ErrorNr.qbl                                                                                                   |    7 
 _Main/BL/Type_H_OrderRecord/Attribute_Operator.qbl                                                                                                |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop597.def                                                        |   28 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop820.def                                                        |   23 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel961.def                                                                     |   25 
 _Main/BL/Type_H_FunctionClass/StaticMethod_SM_MaterialReverse.qbl                                                                                 |  233 ++
 _Main/BL/Type_H_MaterialPurchase/Attribute_H_ReleaseRecord_ID.qbl                                                                                 |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listActionBarPageReleaseRecord199.def                                           |   10 
 _Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_listContextMenuMaterialPurchase.def                                          |   10 
 _Main/BL/Type_H_TestMap/Attribute_SKU.qbl                                                                                                         |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/_ROOT_Component_FormHedgingOfLog.def                                                       |   28 
 _Main/BL/Type_H_AuthorizeRealQty/_ROOT_Type_H_AuthorizeRealQty.qbl                                                                                |   10 
 _Main/BL/Type_H_ReleaseRecord/Attribute_FinishDate.qbl                                                                                            |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/_ROOT_Component_FrmAuthorizeAndCountersign_Material.def                 |   29 
 _Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_Panel418.def                                                                          |   60 
 _Main/BL/Type_H_MaterialRealQty/Attribute_ReverseRealQty.qbl                                                                                      |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_PanelHedgingOfLog593.def                                                         |   24 
 _Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_Panel418_btn_Query_FM_OnClick.def                                                      |   19 
 _Main/BL/Type_H_ReverseRealQty/Attribute_SKU.qbl                                                                                                  |    8 
 _Main/BL/Type_H_AuthorizeRealQty/Attribute_CustomName.qbl                                                                                         |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_PanelHedgingOfLog.def                                                            |   41 
 _Main/BL/Type_H_AuthorizeRealQty/Attribute_Month.qbl                                                                                              |    8 
 _Main/BL/Type_H_AuthorizeRealQty/Attribute_Unit.qbl                                                                                               |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_PanelSDIP.def                                                                       |    8 
 _Main/BL/Type_DS_HedgingRecord/Attribute_CustomerCode.qbl                                                                                         |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/_ROOT_Component_FormMaterialPurchase.def                                               |   55 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel383.def                                                                     |   52 
 _Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_PanelReleaseRecord527.def                                                       |   39 
 _Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_ListMaterialPurchase.def                                                     |   41 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listContextMenu687.def                                                           |   10 
 _Main/BL/Type_H_FunctionClass/_ROOT_Type_H_FunctionClass.qbl                                                                                      |   10 
 _Main/BL/Type_H_ReleaseRecord/Attribute_Status.qbl                                                                                                |    8 
 _Main/UI/MacroPlannerWebApp/Component_Form234/Component_List174.def                                                                               |   42 
 _Main/BL/Type_H_MaterialRealQty/Attribute_ForecastQty_Month.qbl                                                                                   |    8 
 _Main/BL/Type_H_MaterialPurchase/_ROOT_Type_H_MaterialPurchase.qbl                                                                                |   10 
 _Main/BL/Type_H_MaterialPurchase/Attribute_DemandTime#567.qbl                                                                                     |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop612.def                                                        |   28 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop744.def                                                        |   27 
 _Main/BL/Relations/Relation_H_OrderForecastRealQty_MacroPlan_MacroPlan_H_OrderForecastRealQty.qbl                                                 |   23 
 _Main/BL/Type_H_OrderForecastRealQty/Attribute_CustomID.qbl                                                                                       |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop264.def                                                        |   28 
 _Main/BL/Type_DS_HedgingRecord/Attribute_ID.qbl                                                                                                   |    8 
 _Main/BL/Type_H_MessagePassing/Attribute_Value.qbl                                                                                                |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Response_OnCreated.def                                                                     |   12 
 _Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_ListReleaseRecord243.def                                                        |   41 
 _Main/UI/MacroPlannerWebApp/Component_Form234/Response_OnCreated.def                                                                              |   16 
 _Main/BL/Type_H_ErrorLogs/Attribute_EClassName.qbl                                                                                                |    8 
 _Main/UI/MacroPlannerWebApp/Component_Form234/Component_listActionBarPage349.def                                                                  |   10 
 _Main/BL/Type_H_TestMap/Attribute_Unit.qbl                                                                                                        |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_List710.def                                                                          |   41 
 _Main/BL/Relations/Relation_H_ReleaseRecord_MacroPlan_MacroPlan_H_ReleaseRecord.qbl                                                               |   23 
 _Main/UI/MacroPlannerWebApp/Component_Form234/Component_Panel650.def                                                                              |   25 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Response_Panel227_btn_OK_FAACM_OnClick.def                              |   44 
 _Main/BL/Type_H_Forecast/Attribute_Department.qbl                                                                                                 |    8 
 _Main/BL/Type_H_OrderForecastRealQty/Attribute_CustomName.qbl                                                                                     |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel647_btn_Add_Material_FOF_OnClick.def                                         |   20 
 _Main/BL/Type_H_OrderForecastRealQty/Attribute_Month.qbl                                                                                          |    8 
 _Main/BL/Type_H_Forecast/Attribute_NeedTime.qbl                                                                                                   |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_OnCreated.def                                                                     |   52 
 _Main/BL/Type_H_MaterialRealQty/Attribute_CustomName.qbl                                                                                          |    8 
 _Main/BL/Type_H_AuthorizeRealQty/Attribute_CustomID.qbl                                                                                           |    8 
 _Main/BL/Type_H_OrderRecord/Attribute_OperateTime.qbl                                                                                             |    7 
 _Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderReverseOrAuthorize.qbl                                                                         |  240 ++
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Response_OnCreated.def                                                                       |   16 
 _Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_PanelSalesDemands.def                                                               |   22 
 _Main/BL/Type_H_ErrorLogs/Attribute_EDateTime.qbl                                                                                                 |    8 
 _Main/BL/Type_H_ErrorLogs/Attribute_EFunctionName.qbl                                                                                             |    8 
 _Main/BL/Type_H_FunctionClass/StaticMethod_SM_GenerateID.qbl                                                                                      |   39 
 _Main/BL/Type_H_FunctionClass/Attribute_VCode_Material.qbl                                                                                        |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormKpiMatrix/_ROOT_Component_FormKpiMatrix.def                                                             |   10 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel455.def                                                  |   27 
 _Main/BL/Type_H_ReleaseRecord/Attribute_Serial.qbl                                                                                                |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Response_PanelMaterialPurchase613_btn_Issuing_OnClick.def                              |   37 
 _Main/BL/Type_DS_HedgingRecord/Attribute_ForecastQty.qbl                                                                                          |    8 
 _Main/BL/Type_DS_HedgingRecord/Attribute_OperateQty.qbl                                                                                           |    8 
 _Main/BL/Relations/Relation_H_MessagePassing_MacroPlan_MacroPlan_H_MessagePassing.qbl                                                             |   23 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop104.def                                                        |   28 
 _Main/BL/Type_H_ReleaseRecord/Attribute_VCode.qbl                                                                                                 |    8 
 _Main/BL/Type_H_OrderRecord/Attribute_OrderQty.qbl                                                                                                |    8 
 _Main/BL/Type_H_ReleaseRecord/Attribute_ID.qbl                                                                                                    |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_liH_Forecast.def                                                                 |   41 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel445.def                                                  |   29 
 _Main/BL/Type_H_Forecast/Attribute_SKU.qbl                                                                                                        |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listActionBarPageReleaseRecord.def                                              |   10 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel488.def                                                  |   26 
 _Main/UI/MacroPlannerWebApp/Component_FrmRAShow/_ROOT_Component_FrmRAShow.def                                                                     |   12 
 _Main/BL/Relations/Relation_H_Forecast_MacroPlan_MacroPlan_H_Forecast.qbl                                                                         |   23 
 _Main/UI/MacroPlannerWebApp/Component_Form234/_ROOT_Component_FrmOrderResultEx#234.def                                                            |   45 
 _Main/BL/Relations/Relation_H_TestMap_MacroPlan_MacroPlan_H_TestMap.qbl                                                                           |   23 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listActionBarPage729.def                                                         |   10 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel227.def                                                  |   39 
 _Main/BL/Type_H_MessagePassing/Attribute_ItemKey.qbl                                                                                              |    8 
 _Main/BL/Type_H_ErrorLogs/Attribute_EInformation.qbl                                                                                              |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_Panel261_btn_OK_FAAC_OnClick.def                                        |   44 
 _Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_PanelMaterialPurchase.def                                                    |   27 
 _Main/BL/Type_H_MaterialPurchase/Attribute_SKU.qbl                                                                                                |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Response_ListReleaseRecord_OnSelectionChanged.def                                         |   18 
 _Main/BL/Type_H_MaterialPurchase/Attribute_VCode.qbl                                                                                              |    8 
 _Main/BL/Type_H_OrderForecastRealQty/Attribute_OrderCode.qbl                                                                                      |    8 
 _Main/BL/Type_H_OrderRecord/Attribute_ReverseDeductQty.qbl                                                                                        |    8 
 _Main/BL/Type_H_MaterialPurchase/Attribute_Serial.qbl                                                                                             |    8 
 _Main/BL/Type_H_MessagePassing/_ROOT_Type_H_MessagePassing.qbl                                                                                    |   14 
 _Main/BL/Type_H_OrderRecord/Attribute_CustomerName.qbl                                                                                            |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Response_OnCreated.def                                                                    |   16 
 _Main/BL/Type_H_MaterialPurchase/Attribute_H_HedgingRecord_ID.qbl                                                                                 |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/_ROOT_Component_FrmOrderForecast.def                                                       |  132 +
 _Main/UI/MacroPlannerWebApp/Component_FormKpiMatrix/Component_PanelKpiMatrixButton.def                                                            |   10 
 _Main/BL/Type_H_OrderRecord/Attribute_AuthorizeDeductQty.qbl                                                                                      |    8 
 _Main/BL/Type_H_AuthorizeRealQty/Attribute_ID.qbl                                                                                                 |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_Panel261_btn_Cancel_FAAC_OnClick.def                                    |   16 
 _Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_PanelHedgingOfLog761.def                                                         |   28 
 _Main/BL/Type_H_TestMap/_ROOT_Type_H_TestMap.qbl                                                                                                  |   10 
 _Main/BL/Type_H_OrderForecastRealQty/Attribute_SKU.qbl                                                                                            |    8 
 _Main/BL/Type_DS_HedgingRecord/Attribute_OperateType.qbl                                                                                          |    8 
 _Main/BL/Type_H_Forecast/Attribute_Util.qbl                                                                                                       |    8 
 _Main/BL/Type_H_ErrorLogs/Attribute_GeneralInformation.qbl                                                                                        |    7 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_listContextMenu526.def                                                             |   10 
 _Main/BL/Type_H_AuthorizeRealQty/Attribute_OrderCode.qbl                                                                                          |    8 
 _Main/UI/MacroPlannerWebApp/Component_Form234/Component_Panel570.def                                                                              |   50 
 _Main/BL/Type_H_ReleaseRecord/_ROOT_Type_H_ReleaseRecord.qbl                                                                                      |   10 
 _Main/BL/Type_H_ErrorLogs/Attribute_DetailedInformation.qbl                                                                                       |    7 
 _Main/BL/Type_H_ReleaseRecord/Attribute_IssuingDate.qbl                                                                                           |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel694.def                                                  |   26 
 _Main/UI/MacroPlannerWebApp/Component_SWF_DialogCeateNextStepDefinitionDependency/Component_pnlContent.def                                        |   10 
 _Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_Panel456.def                                                                          |   25 
 _Main/BL/Type_H_Forecast/_ROOT_Type_H_Forecast.qbl                                                                                                |   10 
 _Main/BL/Type_H_MaterialRealQty/Attribute_AuthorizeRealQty.qbl                                                                                    |    8 
 _Main/BL/Type_H_MaterialRealQty/Attribute_Util.qbl                                                                                                |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/_ROOT_Component_FormReleaseRecord.def                                                     |   31 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/_ROOT_Component_FrmAuthorizeAndCountersign.def                                   |   30 
 _Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_ListHedgingOfLog.def                                                             |   41 
 _Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_ListReleaseRecord.def                                                           |   41 
 _Main/BL/Type_H_OrderRecord/Attribute_Unit.qbl                                                                                                    |    8 
 _Main/BL/Type_H_OrderRecord/_ROOT_Type_H_OrderRecord.qbl                                                                                          |   10 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel523.def                                                  |   27 
 _Main/BL/Type_H_MaterialRealQty/Attribute_VCode.qbl                                                                                               |    8 
 _Main/BL/Relations/Relation_H_AuthorizeRealQty_MacroPlan_MacroPlan_H_AuthorizeRealQty.qbl                                                         |   23 
 _Main/BL/Type_H_MaterialPurchase/Attribute_ProductSubclassType.qbl                                                                                |    8 
 _Main/BL/Type_H_OrderRecord/Attribute_ForecastQty.qbl                                                                                             |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel849.def                                                                     |   17 
 _Main/BL/Relations/Relation_H_OrderRecord_MacroPlan_MacroPlan_H_OrderRecord.qbl                                                                   |   23 
 _Main/BL/Type_H_OrderRecord/Attribute_VCode.qbl                                                                                                   |    8 
 _Main/BL/Type_H_ReverseRealQty/_ROOT_Type_H_ReverseRealQty.qbl                                                                                    |   10 
 _Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_ListData_FT#710.def                                                                       |   41 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_Panel261.def                                                           |   39 
 _Main/BL/Type_H_MaterialRealQty/_ROOT_Type_H_MaterialRealQty.qbl                                                                                  |   10 
 _Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_listContextMenuHedgingOfLog.def                                                  |   10 
 _Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_listContextMenu892.def                                                                |   10 
 _Main/BL/Type_H_FunctionClass/StaticMethod_NewStaticMethod.qbl                                                                                    |   10 
 _Main/BL/Type_H_OrderRecord/Attribute_ReverseQty.qbl                                                                                              |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop846.def                                                        |   28 
 _Main/BL/Type_H_Forecast/Attribute_CustomCode.qbl                                                                                                 |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel383_btn_Query_FOF_OnClick.def                                                |   17 
 _Main/BL/Type_H_FunctionClass/StaticMethod_UpdateMaterialItems.qbl                                                                                |   44 
 _Main/BL/Type_H_FunctionClass/StaticMethod_SM_MaterialPurchaseIssuer.qbl                                                                          |   70 
 _Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_ListSDIP.def                                                                        |   14 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_OnCreated.def                                                           |   46 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop0001#655.def                                                   |   24 
 _Main/BL/Type_H_OrderForecastRealQty/Attribute_ForecatsQty.qbl                                                                                    |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_listActionBarPageMaterialPurchase.def                                        |   10 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listContextMenu367.def                                                           |   10 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel418.def                                                  |   26 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_Panel576.def                                                                       |   25 
 _Main/BL/Type_H_FunctionClass/Attribute_UpdateTime_Forecast.qbl                                                                                   |    8 
 _Main/BL/Relations/Relation_H_MaterialPurchase_H_HedgingRecord_H_HedgingRecord_H_MaterialPurcha.qbl                                               |   23 
 _Main/BL/Type_DS_HedgingRecord/Attribute_ReverseQty.qbl                                                                                           |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listContextMenuReleaseRecord690.def                                             |   10 
 _Main/UI/MacroPlannerWebApp/Component_Form234/Response_Panel570_btn_Query_FORE_OnClick.def                                                        |   22 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_list_ForecastView_FOF_OnDoubleClick.def                                           |   30 
 _Main/BL/Type_H_OrderRecord/Attribute_Serial.qbl                                                                                                  |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_Panel675.def                                                                              |   23 
 _Main/UI/MacroPlannerWebApp/Component_SWF_DialogCeateNextStepDefinitionDependency/_ROOT_Component_SWF_DialogCeateNextStepDefinitionDependency.def |   10 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel972.def                                                  |   25 
 _Main/BL/Type_H_MessagePassing/Attribute_FKey.qbl                                                                                                 |    8 
 _Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_PanelMaterialPurchase613.def                                                 |   30 
 _Main/BL/Type_H_ReverseRealQty/Attribute_ReverseRealQty.qbl                                                                                       |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel504.def                                                  |   25 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Response_Panel227_btn_Cancel_FAACM_OnClick.def                          |   20 
 _Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_listActionBarPage361.def                                                             |   10 
 _Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_listActionBarPage456.def                                                              |   10 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel647_btn_Add_Order_FOF_OnClick.def                                            |   28 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel647_btn_InitialData_OnClick.def                                              |   39 
 _Main/BL/Type_H_Forecast/Attribute_Serial.qbl                                                                                                     |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel647.def                                                                     |   50 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnDoubleClick.def                                                    |   24 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/_ROOT_Component_FrmOrderResult.def                                                           |   44 
 _Main/BL/Type_H_FunctionClass/StaticMethod_UpdateAuthorizeRealQty.qbl                                                                             |   43 
 _Main/BL/Relations/Relation_H_FunctionClass_MacroPlan_MacroPlan_H_FunctionClass.qbl                                                               |   23 
 _Main/UI/MacroPlannerWebApp/Component_FrmTEST/_ROOT_Component_FrmTEST.def                                                                         |   42 
 _Main/BL/Type_H_OrderRecord/Attribute_OrderCode.qbl                                                                                               |    8 
 _Main/BL/Type_H_FunctionClass/Attribute_UpdateTime_Material.qbl                                                                                   |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listActionBarPage748.def                                                                  |   10 
 _Main/BL/Type_H_OrderRecord/Attribute_ForecastNoHitQty.qbl                                                                                        |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel616.def                                                  |   25 
 _Main/BL/Relations/Relation_H_ReverseRealQty_MacroPlan_MacroPlan_H_ReverseRealQty.qbl                                                             |   23 
 _Main/BL/Type_H_Forecast/Attribute_CustomName.qbl                                                                                                 |    8 
 _Main/BL/Type_H_OrderRecord/Attribute_SKU.qbl                                                                                                     |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Response_OnCreated.def                                                  |   37 
 _Main/BL/Type_DS_HedgingRecord/Attribute_AuthorizeQty.qbl                                                                                         |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_listContextMenu619.def                                                               |   10 
 _Main/BL/Type_H_OrderRecord/Attribute_AuthorizeQty.qbl                                                                                            |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmMaterial/_ROOT_Component_FrmMaterial.def                                                                 |   44 
 _Main/BL/Type_H_MaterialPurchase/Attribute_OrgCode.qbl                                                                                            |    8 
 _Main/BL/Type_H_MaterialRealQty/Attribute_MaterialType.qbl                                                                                        |    8 
 _Main/BL/Type_H_FunctionClass/Method_InitialData_R.qbl                                                                                            |   51 
 _Main/BL/Type_H_MaterialRealQty/Attribute_CustomCode.qbl                                                                                          |    8 
 _Main/BL/Type_DS_HedgingRecord/Attribute_Serial.qbl                                                                                               |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_OnClose.def                                                                       |   21 
 _Main/BL/Type_H_FunctionClass/Attribute_VCode_Forecast.qbl                                                                                        |    8 
 _Main/BL/Relations/Relation_H_MaterialPurchase_MacroPlan_MacroPlan_H_MaterialPurchase.qbl                                                         |   23 
 _Main/BL/Type_H_OrderRecord/Attribute_ID.qbl                                                                                                      |    8 
 _Main/BL/Type_H_ReverseRealQty/Attribute_Unit.qbl                                                                                                 |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_List832.def                                                                           |   41 
 _Main/BL/Type_DS_HedgingRecord/_ROOT_Type_H_HedgingRecord.qbl                                                                                     |   10 
 _Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_listActionBarPageHedgingOfLog.def                                                |   10 
 _Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_Panel418_btn_Add_FM_OnClick.def                                                        |   20 
 _Main/BL/Type_H_ErrorLogs/Attribute_DeveloperInformation.qbl                                                                                      |    7 
 _Main/BL/Type_H_AuthorizeRealQty/Attribute_SKU.qbl                                                                                                |    8 
 _Main/BL/Type_H_OrderForecastRealQty/Attribute_ForecatsRealQty.qbl                                                                                |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_Panel445.def                                                                       |   49 
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_List782.def                                                                        |   41 
 _Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listContextMenuReleaseRecord.def                                                |   10 
 _Main/BL/Type_H_OrderForecastRealQty/_ROOT_Type_H_OrderForecastRealQty.qbl                                                                        |   10 
 _Main/BL/Type_H_MaterialRealQty/Attribute_SKU.qbl                                                                                                 |    8 
 _Main/BL/Type_H_Forecast/Attribute_OrderCode.qbl                                                                                                  |    8 
 _Main/BL/Type_DS_HedgingRecord/Attribute_OperateTime.qbl                                                                                          |    8 
 _Main/BL/Type_H_ReverseRealQty/Attribute_ID.qbl                                                                                                   |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel368.def                                                  |   27 
 _Main/UI/MacroPlannerWebApp/Component_FormForecasts/_ROOT_Component_FormForecasts.def                                                             |   10 
 _Main/BL/Type_H_OrderForecastRealQty/Attribute_ID.qbl                                                                                             |    8 
 _Main/BL/Relations/Relation_H_HedgingRecord_MacroPlan_MacroPlan_H_HedgingRecord.qbl                                                               |   23 
 _Main/BL/Type_H_ReleaseRecord/Attribute_Issuer.qbl                                                                                                |    8 
 _Main/UI/MacroPlannerWebApp/Component_FrmTEST/Response_Panel675_ButtonClear_OnClick.def                                                           |   36 
 _Main/BL/Type_H_ErrorLogs/_ROOT_Type_H_ErrorLogs.qbl                                                                                              |   10 
 275 files changed, 5,596 insertions(+), 0 deletions(-)

diff --git a/_Main/BL/Relations/Relation_H_AuthorizeRealQty_MacroPlan_MacroPlan_H_AuthorizeRealQty.qbl b/_Main/BL/Relations/Relation_H_AuthorizeRealQty_MacroPlan_MacroPlan_H_AuthorizeRealQty.qbl
new file mode 100644
index 0000000..764e791
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_AuthorizeRealQty_MacroPlan_MacroPlan_H_AuthorizeRealQty.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_AuthorizeRealQty_MacroPlan_MacroPlan_H_AuthorizeRealQty
+{
+  #keys: '1[414724.0.46380468]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide MacroPlan
+  {
+    #keys: '3[414724.0.46380470][414724.0.46380469][414724.0.46380471]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_AuthorizeRealQty
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_AuthorizeRealQty
+  {
+    #keys: '3[414724.0.46380473][414724.0.46380472][414724.0.46380474]'
+    Cardinality: '1toN'
+    ObjectDefinition: MacroPlan
+    OwningSide: 'Owned'
+  }
+}
diff --git a/_Main/BL/Relations/Relation_H_ErrorLogs_MacroPlan_MacroPlan_H_ErrorLogs.qbl b/_Main/BL/Relations/Relation_H_ErrorLogs_MacroPlan_MacroPlan_H_ErrorLogs.qbl
new file mode 100644
index 0000000..7aced6d
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_ErrorLogs_MacroPlan_MacroPlan_H_ErrorLogs.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_ErrorLogs_MacroPlan_MacroPlan_H_ErrorLogs
+{
+  #keys: '1[414724.0.54835743]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide MacroPlan
+  {
+    #keys: '3[414724.0.54835745][414724.0.54835744][414724.0.54835746]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_ErrorLogs
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_ErrorLogs
+  {
+    #keys: '3[414724.0.54835748][414724.0.54835747][414724.0.54835749]'
+    Cardinality: '1toN'
+    ObjectDefinition: MacroPlan
+    OwningSide: 'Owned'
+  }
+}
diff --git a/_Main/BL/Relations/Relation_H_Forecast_MacroPlan_MacroPlan_H_Forecast.qbl b/_Main/BL/Relations/Relation_H_Forecast_MacroPlan_MacroPlan_H_Forecast.qbl
new file mode 100644
index 0000000..8882961
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_Forecast_MacroPlan_MacroPlan_H_Forecast.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_Forecast_MacroPlan_MacroPlan_H_Forecast
+{
+  #keys: '1[414724.0.87401001]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide MacroPlan
+  {
+    #keys: '3[414724.0.87401003][414724.0.87401002][414724.0.87401004]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_Forecast
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_Forecast
+  {
+    #keys: '3[414724.0.87401006][414724.0.87401005][414724.0.87401007]'
+    Cardinality: '1toN'
+    ObjectDefinition: MacroPlan
+    OwningSide: 'Owned'
+  }
+}
diff --git a/_Main/BL/Relations/Relation_H_FunctionClass_MacroPlan_MacroPlan_H_FunctionClass.qbl b/_Main/BL/Relations/Relation_H_FunctionClass_MacroPlan_MacroPlan_H_FunctionClass.qbl
new file mode 100644
index 0000000..4dd0d52
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_FunctionClass_MacroPlan_MacroPlan_H_FunctionClass.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_FunctionClass_MacroPlan_MacroPlan_H_FunctionClass
+{
+  #keys: '1[414724.0.53669732]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide MacroPlan
+  {
+    #keys: '3[414724.0.53669734][414724.0.53669733][414724.0.53669735]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_FunctionClass
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_FunctionClass
+  {
+    #keys: '3[414724.0.53669737][414724.0.53669736][414724.0.53669738]'
+    Cardinality: '1toN'
+    ObjectDefinition: MacroPlan
+    OwningSide: 'Owned'
+  }
+}
diff --git a/_Main/BL/Relations/Relation_H_HedgingRecord_MacroPlan_MacroPlan_H_HedgingRecord.qbl b/_Main/BL/Relations/Relation_H_HedgingRecord_MacroPlan_MacroPlan_H_HedgingRecord.qbl
new file mode 100644
index 0000000..681b3dc
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_HedgingRecord_MacroPlan_MacroPlan_H_HedgingRecord.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_HedgingRecord_MacroPlan_MacroPlan_H_HedgingRecord
+{
+  #keys: '1[414724.0.26781388]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide MacroPlan
+  {
+    #keys: '3[414724.0.26781390][414724.0.26781389][414724.0.26781391]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_HedgingRecord
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_HedgingRecord
+  {
+    #keys: '3[414724.0.26781393][414724.0.26781392][414724.0.26781394]'
+    Cardinality: '1toN'
+    ObjectDefinition: MacroPlan
+    OwningSide: 'Owned'
+  }
+}
diff --git a/_Main/BL/Relations/Relation_H_MaterialPurchase_H_HedgingRecord_H_HedgingRecord_H_MaterialPurcha.qbl b/_Main/BL/Relations/Relation_H_MaterialPurchase_H_HedgingRecord_H_HedgingRecord_H_MaterialPurcha.qbl
new file mode 100644
index 0000000..d59bbd0
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_MaterialPurchase_H_HedgingRecord_H_HedgingRecord_H_MaterialPurcha.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_MaterialPurchase_H_HedgingRecord_H_HedgingRecord_H_MaterialPurchase
+{
+  #keys: '1[414724.0.26811012]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide H_HedgingRecord
+  {
+    #keys: '3[414724.0.26811014][414724.0.26811013][414724.0.26811015]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_MaterialPurchase
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_MaterialPurchase
+  {
+    #keys: '3[414724.0.26811017][414724.0.26811016][414724.0.26811018]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_HedgingRecord
+    OwningSide: 'Reference'
+  }
+}
diff --git a/_Main/BL/Relations/Relation_H_MaterialPurchase_H_ReleaseRecord_H_ReleaseRecord_H_MaterialPurcha.qbl b/_Main/BL/Relations/Relation_H_MaterialPurchase_H_ReleaseRecord_H_ReleaseRecord_H_MaterialPurcha.qbl
new file mode 100644
index 0000000..40c4c4b
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_MaterialPurchase_H_ReleaseRecord_H_ReleaseRecord_H_MaterialPurcha.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_MaterialPurchase_H_ReleaseRecord_H_ReleaseRecord_H_MaterialPurchase
+{
+  #keys: '1[414724.0.26810992]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide H_ReleaseRecord
+  {
+    #keys: '3[414724.0.26810994][414724.0.26810993][414724.0.26810995]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_MaterialPurchase
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_MaterialPurchase
+  {
+    #keys: '3[414724.0.26810997][414724.0.26810996][414724.0.26810998]'
+    Cardinality: '1toN'
+    ObjectDefinition: H_ReleaseRecord
+    OwningSide: 'Reference'
+  }
+}
diff --git a/_Main/BL/Relations/Relation_H_MaterialPurchase_MacroPlan_MacroPlan_H_MaterialPurchase.qbl b/_Main/BL/Relations/Relation_H_MaterialPurchase_MacroPlan_MacroPlan_H_MaterialPurchase.qbl
new file mode 100644
index 0000000..09f8641
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_MaterialPurchase_MacroPlan_MacroPlan_H_MaterialPurchase.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_MaterialPurchase_MacroPlan_MacroPlan_H_MaterialPurchase
+{
+  #keys: '1[414724.0.26811046]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide MacroPlan
+  {
+    #keys: '3[414724.0.26811048][414724.0.26811047][414724.0.26811049]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_MaterialPurchase
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_MaterialPurchase
+  {
+    #keys: '3[414724.0.26811051][414724.0.26811050][414724.0.26811052]'
+    Cardinality: '1toN'
+    ObjectDefinition: MacroPlan
+    OwningSide: 'Owned'
+  }
+}
diff --git a/_Main/BL/Relations/Relation_H_MaterialRealQty_MacroPlan_MacroPlan_H_MaterialRealQty.qbl b/_Main/BL/Relations/Relation_H_MaterialRealQty_MacroPlan_MacroPlan_H_MaterialRealQty.qbl
new file mode 100644
index 0000000..0ff2a6b
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_MaterialRealQty_MacroPlan_MacroPlan_H_MaterialRealQty.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_MaterialRealQty_MacroPlan_MacroPlan_H_MaterialRealQty
+{
+  #keys: '1[414724.0.87400875]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide MacroPlan
+  {
+    #keys: '3[414724.0.87400877][414724.0.87400876][414724.0.87400878]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_MaterialRealQty
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_MaterialRealQty
+  {
+    #keys: '3[414724.0.87400880][414724.0.87400879][414724.0.87400881]'
+    Cardinality: '1toN'
+    ObjectDefinition: MacroPlan
+    OwningSide: 'Owned'
+  }
+}
diff --git a/_Main/BL/Relations/Relation_H_MessagePassing_MacroPlan_MacroPlan_H_MessagePassing.qbl b/_Main/BL/Relations/Relation_H_MessagePassing_MacroPlan_MacroPlan_H_MessagePassing.qbl
new file mode 100644
index 0000000..af4b2bd
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_MessagePassing_MacroPlan_MacroPlan_H_MessagePassing.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_MessagePassing_MacroPlan_MacroPlan_H_MessagePassing
+{
+  #keys: '1[414724.0.87274652]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide MacroPlan
+  {
+    #keys: '3[414724.0.87274654][414724.0.87274653][414724.0.87274655]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_MessagePassing
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_MessagePassing
+  {
+    #keys: '3[414724.0.87274657][414724.0.87274656][414724.0.87274658]'
+    Cardinality: '1toN'
+    ObjectDefinition: MacroPlan
+    OwningSide: 'Owned'
+  }
+}
diff --git a/_Main/BL/Relations/Relation_H_OrderForecastRealQty_MacroPlan_MacroPlan_H_OrderForecastRealQty.qbl b/_Main/BL/Relations/Relation_H_OrderForecastRealQty_MacroPlan_MacroPlan_H_OrderForecastRealQty.qbl
new file mode 100644
index 0000000..c82c771
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_OrderForecastRealQty_MacroPlan_MacroPlan_H_OrderForecastRealQty.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_OrderForecastRealQty_MacroPlan_MacroPlan_H_OrderForecastRealQty
+{
+  #keys: '1[414724.0.46380281]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide MacroPlan
+  {
+    #keys: '3[414724.0.46380283][414724.0.46380282][414724.0.46380284]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_OrderForecastRealQty
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_OrderForecastRealQty
+  {
+    #keys: '3[414724.0.46380286][414724.0.46380285][414724.0.46380287]'
+    Cardinality: '1toN'
+    ObjectDefinition: MacroPlan
+    OwningSide: 'Owned'
+  }
+}
diff --git a/_Main/BL/Relations/Relation_H_OrderRecord_MacroPlan_MacroPlan_H_OrderRecord.qbl b/_Main/BL/Relations/Relation_H_OrderRecord_MacroPlan_MacroPlan_H_OrderRecord.qbl
new file mode 100644
index 0000000..a6a7ebb
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_OrderRecord_MacroPlan_MacroPlan_H_OrderRecord.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_OrderRecord_MacroPlan_MacroPlan_H_OrderRecord
+{
+  #keys: '1[414724.0.46380068]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide MacroPlan
+  {
+    #keys: '3[414724.0.46380070][414724.0.46380069][414724.0.46380071]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_OrderRecord
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_OrderRecord
+  {
+    #keys: '3[414724.0.46380073][414724.0.46380072][414724.0.46380074]'
+    Cardinality: '1toN'
+    ObjectDefinition: MacroPlan
+    OwningSide: 'Owned'
+  }
+}
diff --git a/_Main/BL/Relations/Relation_H_ReleaseRecord_MacroPlan_MacroPlan_H_ReleaseRecord.qbl b/_Main/BL/Relations/Relation_H_ReleaseRecord_MacroPlan_MacroPlan_H_ReleaseRecord.qbl
new file mode 100644
index 0000000..e907aa6
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_ReleaseRecord_MacroPlan_MacroPlan_H_ReleaseRecord.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_ReleaseRecord_MacroPlan_MacroPlan_H_ReleaseRecord
+{
+  #keys: '1[414724.0.26810912]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide MacroPlan
+  {
+    #keys: '3[414724.0.26810914][414724.0.26810913][414724.0.26810915]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_ReleaseRecord
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_ReleaseRecord
+  {
+    #keys: '3[414724.0.26810917][414724.0.26810916][414724.0.26810918]'
+    Cardinality: '1toN'
+    ObjectDefinition: MacroPlan
+    OwningSide: 'Owned'
+  }
+}
diff --git a/_Main/BL/Relations/Relation_H_ReverseRealQty_MacroPlan_MacroPlan_H_ReverseRealQty.qbl b/_Main/BL/Relations/Relation_H_ReverseRealQty_MacroPlan_MacroPlan_H_ReverseRealQty.qbl
new file mode 100644
index 0000000..ca792d1
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_ReverseRealQty_MacroPlan_MacroPlan_H_ReverseRealQty.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_ReverseRealQty_MacroPlan_MacroPlan_H_ReverseRealQty
+{
+  #keys: '1[414724.0.46380395]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide MacroPlan
+  {
+    #keys: '3[414724.0.46380397][414724.0.46380396][414724.0.46380398]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_ReverseRealQty
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_ReverseRealQty
+  {
+    #keys: '3[414724.0.46380400][414724.0.46380399][414724.0.46380401]'
+    Cardinality: '1toN'
+    ObjectDefinition: MacroPlan
+    OwningSide: 'Owned'
+  }
+}
diff --git a/_Main/BL/Relations/Relation_H_TestMap_H_OrderRecord_H_OrderRecord_H_TestMap.qbl b/_Main/BL/Relations/Relation_H_TestMap_H_OrderRecord_H_OrderRecord_H_TestMap.qbl
new file mode 100644
index 0000000..cf06d1f
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_TestMap_H_OrderRecord_H_OrderRecord_H_TestMap.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_TestMap_H_OrderRecord_H_OrderRecord_H_TestMap
+{
+  #keys: '1[414724.0.96595934]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide H_OrderRecord
+  {
+    #keys: '3[414724.0.96595936][414724.0.96595935][414724.0.96595937]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_TestMap
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_TestMap
+  {
+    #keys: '3[414724.0.96595939][414724.0.96595938][414724.0.96595940]'
+    Cardinality: '1toN'
+    ObjectDefinition: H_OrderRecord
+    OwningSide: 'Reference'
+  }
+}
diff --git a/_Main/BL/Relations/Relation_H_TestMap_MacroPlan_MacroPlan_H_TestMap.qbl b/_Main/BL/Relations/Relation_H_TestMap_MacroPlan_MacroPlan_H_TestMap.qbl
new file mode 100644
index 0000000..8029c04
--- /dev/null
+++ b/_Main/BL/Relations/Relation_H_TestMap_MacroPlan_MacroPlan_H_TestMap.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation H_TestMap_MacroPlan_MacroPlan_H_TestMap
+{
+  #keys: '1[414724.0.96595895]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide MacroPlan
+  {
+    #keys: '3[414724.0.96595897][414724.0.96595896][414724.0.96595898]'
+    Cardinality: '0to1'
+    ObjectDefinition: H_TestMap
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide H_TestMap
+  {
+    #keys: '3[414724.0.96595900][414724.0.96595899][414724.0.96595901]'
+    Cardinality: '1toN'
+    ObjectDefinition: MacroPlan
+    OwningSide: 'Owned'
+  }
+}
diff --git a/_Main/BL/Type_DS_HedgingRecord/Attribute_AuthorizeQty.qbl b/_Main/BL/Type_DS_HedgingRecord/Attribute_AuthorizeQty.qbl
new file mode 100644
index 0000000..daaa7c4
--- /dev/null
+++ b/_Main/BL/Type_DS_HedgingRecord/Attribute_AuthorizeQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute AuthorizeQty
+{
+  #keys: '3[414724.0.26810845][414724.0.26810844][414724.0.26810846]'
+  Description: '鎺堟潈鍓╀綑鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_DS_HedgingRecord/Attribute_CustomerCode.qbl b/_Main/BL/Type_DS_HedgingRecord/Attribute_CustomerCode.qbl
new file mode 100644
index 0000000..e06118e
--- /dev/null
+++ b/_Main/BL/Type_DS_HedgingRecord/Attribute_CustomerCode.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute CustomerCode
+{
+  #keys: '3[414724.0.26810895][414724.0.26810894][414724.0.26810896]'
+  Description: '瀹㈡埛ID'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_DS_HedgingRecord/Attribute_ForecastQty.qbl b/_Main/BL/Type_DS_HedgingRecord/Attribute_ForecastQty.qbl
new file mode 100644
index 0000000..0f7b94f
--- /dev/null
+++ b/_Main/BL/Type_DS_HedgingRecord/Attribute_ForecastQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ForecastQty
+{
+  #keys: '3[414724.0.26810822][414724.0.26810821][414724.0.26810823]'
+  Description: '褰撴湀棰勬祴鍓╀綑鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_DS_HedgingRecord/Attribute_ID.qbl b/_Main/BL/Type_DS_HedgingRecord/Attribute_ID.qbl
new file mode 100644
index 0000000..e7efb6d
--- /dev/null
+++ b/_Main/BL/Type_DS_HedgingRecord/Attribute_ID.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ID
+{
+  #keys: '3[414724.0.26781405][414724.0.26781404][414724.0.26781406]'
+  Description: 'KEY'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_DS_HedgingRecord/Attribute_OperateQty.qbl b/_Main/BL/Type_DS_HedgingRecord/Attribute_OperateQty.qbl
new file mode 100644
index 0000000..bed9ebe
--- /dev/null
+++ b/_Main/BL/Type_DS_HedgingRecord/Attribute_OperateQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute OperateQty
+{
+  #keys: '3[414724.0.26810885][414724.0.26810884][414724.0.26810886]'
+  Description: '鎿嶄綔鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_DS_HedgingRecord/Attribute_OperateTime.qbl b/_Main/BL/Type_DS_HedgingRecord/Attribute_OperateTime.qbl
new file mode 100644
index 0000000..2d14ed5
--- /dev/null
+++ b/_Main/BL/Type_DS_HedgingRecord/Attribute_OperateTime.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute OperateTime
+{
+  #keys: '3[414724.0.26810875][414724.0.26810874][414724.0.26810876]'
+  Description: '鎿嶄綔鏃堕棿'
+  ValueType: DateTime
+}
diff --git a/_Main/BL/Type_DS_HedgingRecord/Attribute_OperateType.qbl b/_Main/BL/Type_DS_HedgingRecord/Attribute_OperateType.qbl
new file mode 100644
index 0000000..51587f6
--- /dev/null
+++ b/_Main/BL/Type_DS_HedgingRecord/Attribute_OperateType.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute OperateType
+{
+  #keys: '3[414724.0.26810855][414724.0.26810854][414724.0.26810856]'
+  Description: '鎿嶄綔绫诲瀷: 鎺堟潈銆佸弽绛�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_DS_HedgingRecord/Attribute_Operator.qbl b/_Main/BL/Type_DS_HedgingRecord/Attribute_Operator.qbl
new file mode 100644
index 0000000..adb6450
--- /dev/null
+++ b/_Main/BL/Type_DS_HedgingRecord/Attribute_Operator.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Operator
+{
+  #keys: '3[414724.0.26810865][414724.0.26810864][414724.0.26810866]'
+  Description: '鎿嶄綔浜�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_DS_HedgingRecord/Attribute_ReverseQty.qbl b/_Main/BL/Type_DS_HedgingRecord/Attribute_ReverseQty.qbl
new file mode 100644
index 0000000..4f5eb16
--- /dev/null
+++ b/_Main/BL/Type_DS_HedgingRecord/Attribute_ReverseQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ReverseQty
+{
+  #keys: '3[414724.0.26810832][414724.0.26810831][414724.0.26810833]'
+  Description: '鍙嶇鍓╀綑鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_DS_HedgingRecord/Attribute_SKU.qbl b/_Main/BL/Type_DS_HedgingRecord/Attribute_SKU.qbl
new file mode 100644
index 0000000..8087bf8
--- /dev/null
+++ b/_Main/BL/Type_DS_HedgingRecord/Attribute_SKU.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute SKU
+{
+  #keys: '3[414724.0.26810809][414724.0.26810808][414724.0.26810810]'
+  Description: 'SKU缂栫爜'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_DS_HedgingRecord/Attribute_Serial.qbl b/_Main/BL/Type_DS_HedgingRecord/Attribute_Serial.qbl
new file mode 100644
index 0000000..518029b
--- /dev/null
+++ b/_Main/BL/Type_DS_HedgingRecord/Attribute_Serial.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Serial
+{
+  #keys: '3[414724.0.26781415][414724.0.26781414][414724.0.26781416]'
+  Description: '搴忓彿锛屼笉涓�瀹氫娇鐢�'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_DS_HedgingRecord/Attribute_VCode.qbl b/_Main/BL/Type_DS_HedgingRecord/Attribute_VCode.qbl
new file mode 100644
index 0000000..75e9790
--- /dev/null
+++ b/_Main/BL/Type_DS_HedgingRecord/Attribute_VCode.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute VCode
+{
+  #keys: '3[414724.0.26810799][414724.0.26810798][414724.0.26810800]'
+  Description: '鐗堟湰鍙�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_DS_HedgingRecord/_ROOT_Type_H_HedgingRecord.qbl b/_Main/BL/Type_DS_HedgingRecord/_ROOT_Type_H_HedgingRecord.qbl
new file mode 100644
index 0000000..79f9e34
--- /dev/null
+++ b/_Main/BL/Type_DS_HedgingRecord/_ROOT_Type_H_HedgingRecord.qbl
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type H_HedgingRecord
+{
+  #keys: '5[414724.0.26781385][414724.0.26781383][0.0.0][414724.0.26781384][414724.0.26781386]'
+  BaseType: Object
+  Description: '鍐插噺璁板綍'
+  StructuredName: 'H_HedgingRecords'
+}
diff --git a/_Main/BL/Type_H_AuthorizeRealQty/Attribute_AuthorizeRealQty.qbl b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_AuthorizeRealQty.qbl
new file mode 100644
index 0000000..892901a
--- /dev/null
+++ b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_AuthorizeRealQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute AuthorizeRealQty
+{
+  #keys: '3[414724.0.46380545][414724.0.46380544][414724.0.46380546]'
+  Description: '瀹炴椂鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_AuthorizeRealQty/Attribute_CustomID.qbl b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_CustomID.qbl
new file mode 100644
index 0000000..0e695ea
--- /dev/null
+++ b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_CustomID.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute CustomID
+{
+  #keys: '3[414724.0.46380505][414724.0.46380504][414724.0.46380506]'
+  Description: '瀹㈡埛ID'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_AuthorizeRealQty/Attribute_CustomName.qbl b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_CustomName.qbl
new file mode 100644
index 0000000..81d8766
--- /dev/null
+++ b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_CustomName.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute CustomName
+{
+  #keys: '3[414724.0.46380495][414724.0.46380494][414724.0.46380496]'
+  Description: '瀹㈡埛鍚嶇О'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_AuthorizeRealQty/Attribute_ID.qbl b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_ID.qbl
new file mode 100644
index 0000000..46f0041
--- /dev/null
+++ b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_ID.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ID
+{
+  #keys: '3[414724.0.46380485][414724.0.46380484][414724.0.46380486]'
+  Description: '涓婚敭ID'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_AuthorizeRealQty/Attribute_Month.qbl b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_Month.qbl
new file mode 100644
index 0000000..d091aba
--- /dev/null
+++ b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_Month.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Month
+{
+  #keys: '3[414724.0.46380515][414724.0.46380514][414724.0.46380516]'
+  Description: '鏈堜唤'
+  ValueType: Date
+}
diff --git a/_Main/BL/Type_H_AuthorizeRealQty/Attribute_OrderCode.qbl b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_OrderCode.qbl
new file mode 100644
index 0000000..4f9d60f
--- /dev/null
+++ b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_OrderCode.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute OrderCode
+{
+  #keys: '3[414724.0.46380525][414724.0.46380524][414724.0.46380526]'
+  Description: '璁㈠崟缂栧彿'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_AuthorizeRealQty/Attribute_SKU.qbl b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_SKU.qbl
new file mode 100644
index 0000000..f99e100
--- /dev/null
+++ b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_SKU.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute SKU
+{
+  #keys: '3[414724.0.46380535][414724.0.46380534][414724.0.46380536]'
+  Description: 'SKU缂栫爜'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_AuthorizeRealQty/Attribute_Unit.qbl b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_Unit.qbl
new file mode 100644
index 0000000..a76d536
--- /dev/null
+++ b/_Main/BL/Type_H_AuthorizeRealQty/Attribute_Unit.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Unit
+{
+  #keys: '3[414724.0.46380555][414724.0.46380554][414724.0.46380556]'
+  Description: '鍗曚綅'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_AuthorizeRealQty/_ROOT_Type_H_AuthorizeRealQty.qbl b/_Main/BL/Type_H_AuthorizeRealQty/_ROOT_Type_H_AuthorizeRealQty.qbl
new file mode 100644
index 0000000..ab13797
--- /dev/null
+++ b/_Main/BL/Type_H_AuthorizeRealQty/_ROOT_Type_H_AuthorizeRealQty.qbl
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type H_AuthorizeRealQty
+{
+  #keys: '5[414724.0.46380462][414724.0.46380460][0.0.0][414724.0.46380461][414724.0.46380463]'
+  BaseType: Object
+  Description: '鎺堟潈瀹炴椂鏁版嵁锛屾案涔呬繚鎸�'
+  StructuredName: 'H_AuthorizeRealQtys'
+}
diff --git a/_Main/BL/Type_H_ErrorLogs/Attribute_DetailedInformation.qbl b/_Main/BL/Type_H_ErrorLogs/Attribute_DetailedInformation.qbl
new file mode 100644
index 0000000..2d2de2b
--- /dev/null
+++ b/_Main/BL/Type_H_ErrorLogs/Attribute_DetailedInformation.qbl
@@ -0,0 +1,7 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute DetailedInformation
+{
+  #keys: '3[414724.0.53669845][414724.0.53669844][414724.0.53669846]'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_ErrorLogs/Attribute_DeveloperInformation.qbl b/_Main/BL/Type_H_ErrorLogs/Attribute_DeveloperInformation.qbl
new file mode 100644
index 0000000..d205771
--- /dev/null
+++ b/_Main/BL/Type_H_ErrorLogs/Attribute_DeveloperInformation.qbl
@@ -0,0 +1,7 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute DeveloperInformation
+{
+  #keys: '3[414724.0.53669855][414724.0.53669854][414724.0.53669856]'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_ErrorLogs/Attribute_EClassName.qbl b/_Main/BL/Type_H_ErrorLogs/Attribute_EClassName.qbl
new file mode 100644
index 0000000..be5ee15
--- /dev/null
+++ b/_Main/BL/Type_H_ErrorLogs/Attribute_EClassName.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute EClassName
+{
+  #keys: '3[414724.0.54835773][414724.0.54835772][414724.0.54835774]'
+  Description: '鍙戠敓鐨勭被'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_ErrorLogs/Attribute_EDateTime.qbl b/_Main/BL/Type_H_ErrorLogs/Attribute_EDateTime.qbl
new file mode 100644
index 0000000..8380f6d
--- /dev/null
+++ b/_Main/BL/Type_H_ErrorLogs/Attribute_EDateTime.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute EDateTime
+{
+  #keys: '3[414724.0.54835763][414724.0.54835762][414724.0.54835764]'
+  Description: '閿欒鍙戠敓鏃ユ湡'
+  ValueType: DateTime
+}
diff --git a/_Main/BL/Type_H_ErrorLogs/Attribute_EFunctionName.qbl b/_Main/BL/Type_H_ErrorLogs/Attribute_EFunctionName.qbl
new file mode 100644
index 0000000..fedaa55
--- /dev/null
+++ b/_Main/BL/Type_H_ErrorLogs/Attribute_EFunctionName.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute EFunctionName
+{
+  #keys: '3[414724.0.54835793][414724.0.54835792][414724.0.54835794]'
+  Description: '閿欒鍑芥暟'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_ErrorLogs/Attribute_EInformation.qbl b/_Main/BL/Type_H_ErrorLogs/Attribute_EInformation.qbl
new file mode 100644
index 0000000..60c6abd
--- /dev/null
+++ b/_Main/BL/Type_H_ErrorLogs/Attribute_EInformation.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute EInformation
+{
+  #keys: '3[414724.0.54835783][414724.0.54835782][414724.0.54835784]'
+  Description: '閿欒娑堟伅'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_ErrorLogs/Attribute_ErrorNr.qbl b/_Main/BL/Type_H_ErrorLogs/Attribute_ErrorNr.qbl
new file mode 100644
index 0000000..5becead
--- /dev/null
+++ b/_Main/BL/Type_H_ErrorLogs/Attribute_ErrorNr.qbl
@@ -0,0 +1,7 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ErrorNr
+{
+  #keys: '3[414724.0.54890030][414724.0.54890029][414724.0.54890031]'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_ErrorLogs/Attribute_GeneralInformation.qbl b/_Main/BL/Type_H_ErrorLogs/Attribute_GeneralInformation.qbl
new file mode 100644
index 0000000..8f844aa
--- /dev/null
+++ b/_Main/BL/Type_H_ErrorLogs/Attribute_GeneralInformation.qbl
@@ -0,0 +1,7 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute GeneralInformation
+{
+  #keys: '3[414724.0.53669835][414724.0.53669834][414724.0.53669836]'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_ErrorLogs/_ROOT_Type_H_ErrorLogs.qbl b/_Main/BL/Type_H_ErrorLogs/_ROOT_Type_H_ErrorLogs.qbl
new file mode 100644
index 0000000..7eab462
--- /dev/null
+++ b/_Main/BL/Type_H_ErrorLogs/_ROOT_Type_H_ErrorLogs.qbl
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type H_ErrorLogs
+{
+  #keys: '5[414724.0.54835740][414724.0.54835738][0.0.0][414724.0.54835739][414724.0.54835741]'
+  BaseType: Object
+  Description: '閿欒鏃ュ織'
+  StructuredName: 'H_ErrorLogss'
+}
diff --git a/_Main/BL/Type_H_Forecast/Attribute_CustomCode.qbl b/_Main/BL/Type_H_Forecast/Attribute_CustomCode.qbl
new file mode 100644
index 0000000..1d632e6
--- /dev/null
+++ b/_Main/BL/Type_H_Forecast/Attribute_CustomCode.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute CustomCode
+{
+  #keys: '3[414724.0.87401068][414724.0.87401067][414724.0.87401069]'
+  Description: '瀹㈡埛ID'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_Forecast/Attribute_CustomName.qbl b/_Main/BL/Type_H_Forecast/Attribute_CustomName.qbl
new file mode 100644
index 0000000..e62814a
--- /dev/null
+++ b/_Main/BL/Type_H_Forecast/Attribute_CustomName.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute CustomName
+{
+  #keys: '3[414724.0.87401078][414724.0.87401077][414724.0.87401079]'
+  Description: '瀹㈡埛鍚嶇О'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_Forecast/Attribute_Department.qbl b/_Main/BL/Type_H_Forecast/Attribute_Department.qbl
new file mode 100644
index 0000000..6491619
--- /dev/null
+++ b/_Main/BL/Type_H_Forecast/Attribute_Department.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Department
+{
+  #keys: '3[414724.0.87401098][414724.0.87401097][414724.0.87401099]'
+  Description: '閿�鍞儴闂�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_Forecast/Attribute_ForecastQty.qbl b/_Main/BL/Type_H_Forecast/Attribute_ForecastQty.qbl
new file mode 100644
index 0000000..1a021e5
--- /dev/null
+++ b/_Main/BL/Type_H_Forecast/Attribute_ForecastQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ForecastQty
+{
+  #keys: '3[414724.0.87401048][414724.0.87401047][414724.0.87401049]'
+  Description: '棰勬祴鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_Forecast/Attribute_NeedTime.qbl b/_Main/BL/Type_H_Forecast/Attribute_NeedTime.qbl
new file mode 100644
index 0000000..1e2886f
--- /dev/null
+++ b/_Main/BL/Type_H_Forecast/Attribute_NeedTime.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute NeedTime
+{
+  #keys: '3[414724.0.87401088][414724.0.87401087][414724.0.87401089]'
+  Description: '闇�姹傛椂闂达紝绮剧‘鍒版棩鏈�'
+  ValueType: Date
+}
diff --git a/_Main/BL/Type_H_Forecast/Attribute_OrderCode.qbl b/_Main/BL/Type_H_Forecast/Attribute_OrderCode.qbl
new file mode 100644
index 0000000..3939190
--- /dev/null
+++ b/_Main/BL/Type_H_Forecast/Attribute_OrderCode.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute OrderCode
+{
+  #keys: '3[414724.0.87401028][414724.0.87401027][414724.0.87401029]'
+  Description: '璁㈠崟鍙�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_Forecast/Attribute_SKU.qbl b/_Main/BL/Type_H_Forecast/Attribute_SKU.qbl
new file mode 100644
index 0000000..74b5351
--- /dev/null
+++ b/_Main/BL/Type_H_Forecast/Attribute_SKU.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute SKU
+{
+  #keys: '3[414724.0.87401038][414724.0.87401037][414724.0.87401039]'
+  Description: 'SKU缂栧彿'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_Forecast/Attribute_Serial.qbl b/_Main/BL/Type_H_Forecast/Attribute_Serial.qbl
new file mode 100644
index 0000000..6fa9183
--- /dev/null
+++ b/_Main/BL/Type_H_Forecast/Attribute_Serial.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Serial
+{
+  #keys: '3[414724.0.87401018][414724.0.87401017][414724.0.87401019]'
+  Description: '搴忓彿'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_Forecast/Attribute_Util.qbl b/_Main/BL/Type_H_Forecast/Attribute_Util.qbl
new file mode 100644
index 0000000..57d21a7
--- /dev/null
+++ b/_Main/BL/Type_H_Forecast/Attribute_Util.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Util
+{
+  #keys: '3[414724.0.87401058][414724.0.87401057][414724.0.87401059]'
+  Description: '鍗曚綅'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_Forecast/_ROOT_Type_H_Forecast.qbl b/_Main/BL/Type_H_Forecast/_ROOT_Type_H_Forecast.qbl
new file mode 100644
index 0000000..6d6bb0b
--- /dev/null
+++ b/_Main/BL/Type_H_Forecast/_ROOT_Type_H_Forecast.qbl
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type H_Forecast
+{
+  #keys: '5[414724.0.87400998][414724.0.87400996][0.0.0][414724.0.87400997][414724.0.87400999]'
+  BaseType: Object
+  Description: '璁㈠崟棰勬祴'
+  StructuredName: 'H_Forecasts'
+}
diff --git a/_Main/BL/Type_H_FunctionClass/Attribute_UpdateTime_Forecast.qbl b/_Main/BL/Type_H_FunctionClass/Attribute_UpdateTime_Forecast.qbl
new file mode 100644
index 0000000..a5d408e
--- /dev/null
+++ b/_Main/BL/Type_H_FunctionClass/Attribute_UpdateTime_Forecast.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute UpdateTime_Forecast
+{
+  #keys: '3[414724.0.53669779][414724.0.53669778][414724.0.53669780]'
+  Description: '璁㈠崟棰勬祴鏇存柊鏃堕棿'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_FunctionClass/Attribute_UpdateTime_Material.qbl b/_Main/BL/Type_H_FunctionClass/Attribute_UpdateTime_Material.qbl
new file mode 100644
index 0000000..8dc9d1a
--- /dev/null
+++ b/_Main/BL/Type_H_FunctionClass/Attribute_UpdateTime_Material.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute UpdateTime_Material
+{
+  #keys: '3[414724.0.53669759][414724.0.53669758][414724.0.53669760]'
+  Description: '鐗╂枡鏇存柊鏃堕棿'
+  ValueType: DateTime
+}
diff --git a/_Main/BL/Type_H_FunctionClass/Attribute_VCode_Forecast.qbl b/_Main/BL/Type_H_FunctionClass/Attribute_VCode_Forecast.qbl
new file mode 100644
index 0000000..33e09da
--- /dev/null
+++ b/_Main/BL/Type_H_FunctionClass/Attribute_VCode_Forecast.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute VCode_Forecast
+{
+  #keys: '3[414724.0.53669769][414724.0.53669768][414724.0.53669770]'
+  Description: '璁㈠崟棰勬祴鏇存柊鐗堟湰鍙�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_FunctionClass/Attribute_VCode_Material.qbl b/_Main/BL/Type_H_FunctionClass/Attribute_VCode_Material.qbl
new file mode 100644
index 0000000..f816ee2
--- /dev/null
+++ b/_Main/BL/Type_H_FunctionClass/Attribute_VCode_Material.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute VCode_Material
+{
+  #keys: '3[414724.0.53669749][414724.0.53669748][414724.0.53669750]'
+  Description: '鐗╂枡鏇存柊鐗堟湰鍙�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_FunctionClass/Method_InitialData_R.qbl b/_Main/BL/Type_H_FunctionClass/Method_InitialData_R.qbl
new file mode 100644
index 0000000..451505c
--- /dev/null
+++ b/_Main/BL/Type_H_FunctionClass/Method_InitialData_R.qbl
@@ -0,0 +1,51 @@
+Quintiq file version 2.0
+#parent: #root
+Method InitialData_R (
+  MacroPlan Owner
+) as Boolean
+{
+  TextBody:
+  [*
+    /*********************************************鏇存柊鐗╂枡椤圭洰*********************************
+    *鍑芥暟鍚嶇О锛歎pdateMaterialItems
+    *鍒� 寤� 浜猴細yunying
+    *鍒涘缓鏃ユ湡锛�2023-09-14
+    *鍑芥暟鎻忚堪锛氫粠鐗╂枡淇℃伅琛ㄦ洿鏂板埌鐗╂枡鍙嶇鏁伴噺琛紝鍙閲忥紝涓嶈鐩栧師鏉ョ殑鏁版嵁锛屽鍔犵殑鏉$洰鏁伴噺榛樿涓�0,鎵ц鎴愬姛杩斿洖Ture
+    *淇� 鏀� 浜猴細
+    *淇敼鏃ユ湡锛�
+    *淇敼鍐呭锛�
+    *****************************************************************************************/
+    bResult := false;
+    try
+    {
+      if(Owner.H_ReverseRealQty(relget ).Size() <= 10)
+      {
+        for ( x := 1; x <= 10; x := x + 1 )
+        {
+            Owner.H_ReverseRealQty(relnew,ID := "AAAAA",SKU := "OTN-00-ACC-001",Unit := "PCS",ReverseRealQty := 0);
+        }
+      }
+      //H_FunctionClass := Owner.H_FunctionClass(relnew,VCode_Material := VCode,UpdateTime_Material := Date::ActualDate());
+      // Traverse the selected set of Product_MPs for batch update
+    
+      Num_AAA := 1/0;
+      if(Num_AAA>0)
+      {
+        bResult := true;
+      }
+      else
+      {
+         bResult := false;
+      }
+    }
+    onerror
+    {
+        Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "UpdateMaterialItems",
+                           DeveloperInformation :=  e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(),
+                           GeneralInformation := e.GeneralInformation());
+                          
+                           
+    }
+    return bResult;
+  *]
+}
diff --git a/_Main/BL/Type_H_FunctionClass/StaticMethod_NewStaticMethod.qbl b/_Main/BL/Type_H_FunctionClass/StaticMethod_NewStaticMethod.qbl
new file mode 100644
index 0000000..7118da1
--- /dev/null
+++ b/_Main/BL/Type_H_FunctionClass/StaticMethod_NewStaticMethod.qbl
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod NewStaticMethod () as owning JSON
+{
+  TextBody:
+  [*
+    jResult := JSON::Object().Add( "A","123");
+    return jResult.Build();
+  *]
+}
diff --git a/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_GenerateID.qbl b/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_GenerateID.qbl
new file mode 100644
index 0000000..3c263bd
--- /dev/null
+++ b/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_GenerateID.qbl
@@ -0,0 +1,39 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod SM_GenerateID (
+  String HeaderCode
+) as String
+{
+  Description: '鐢熸垚ID, 18浣�'
+  TextBody:
+  [*
+    /*********************************************鐢熸垚鍞竴ID*********************************
+    *鍑芥暟鍚嶇О锛歋M_GenerateID
+    *鍒� 寤� 浜猴細yunying
+    *鍒涘缓鏃ユ湡锛�2023-09-14
+    *鍑芥暟鎻忚堪锛氱敓鎴愬敮涓�ID
+    *淇� 鏀� 浜猴細
+    *淇敼鏃ユ湡锛�
+    *淇敼鍐呭锛�
+    *****************************************************************************************/
+    // 鍞竴ID
+    strID :="";
+    
+    // 寰楀埌鏃堕棿瀛楃涓� 绮剧‘鍒扮
+    dtCurrent := DateTime::ActualTime();
+    strDt := dtCurrent.Format( "YM2D2Hms");
+    
+    // 瀹氫箟鍓嶄袱浣嶄唬鐮侊紙鍙互鐢辩敤鎴蜂紶鍏ワ紝榛樿AC(Auto Code)
+    strHeader :="AC";
+    if(HeaderCode.Length()>=2)
+    {
+        strHeader:= HeaderCode.SubString( 0,2);
+    }
+    // 涓ゆ闅忔満鏁板瓧锛屽噺灏戦噸澶嶆��
+    First:=Number::Random( 1000,9999);
+    Second:=Number::Random(10000,99999);
+    // 缁勫悎ID
+    strID := strHeader+strDt+First.AsQUILL()+Second.AsQUILL();
+    return strID;
+  *]
+}
diff --git a/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_MaterialPurchaseIssuer.qbl b/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_MaterialPurchaseIssuer.qbl
new file mode 100644
index 0000000..b934584
--- /dev/null
+++ b/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_MaterialPurchaseIssuer.qbl
@@ -0,0 +1,70 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod SM_MaterialPurchaseIssuer (
+  output String OResultMsg,
+  MacroPlan Owner,
+  String VCode,
+  String Operator
+) as Boolean
+{
+  Description: '閲囪喘鏄庣粏鍙戝竷'
+  TextBody:
+  [*
+    /*********************************************閲囪喘鏄庣粏鍙戝竷*********************************
+    *鍑芥暟鍚嶇О锛歋M_MaterialPurchaseIssuer
+    *鍒� 寤� 浜猴細yunying
+    *鍒涘缓鏃ユ湡锛�2023-09-15
+    *鍑芥暟鎻忚堪锛氬皢绯荤粺鍐呮墍鏈夌姸鎬佷负鏈彂甯冪殑閲囪喘鍗曞彂甯�,true 鎴愬姛锛宖alse 澶辫触锛�
+    *淇� 鏀� 浜猴細
+    *淇敼鏃ユ湡锛�
+    *淇敼鍐呭锛�
+    *****************************************************************************************/
+    bResult := false;
+    OResultMsg:="";
+    try
+    {
+      if(not isnull( Owner))
+      { 
+        // 妫�鏌ユ槸鍚︽湁鏈彂甯冪殑鏁版嵁
+        AllMaterialPurchase := selectset( Owner,H_MaterialPurchase,Obj,Obj.Status()="鏈彂甯�");
+        if(AllMaterialPurchase.Size()>0)
+        {
+          // 鑾峰彇鍙戝竷ID
+          IssuerID:=H_FunctionClass::SM_GenerateID( "RR");
+          
+          // 鐢熸垚鍙戝竷璁板綍
+          Owner.H_ReleaseRecord(relnew,ID := IssuerID,Issuer := Operator,VCode := VCode,IssuingDate := DateTime::ActualTime());
+          
+          // 鏇存柊璁㈠崟鐘舵��
+          traverse(Owner,H_MaterialPurchase,Obj,Obj.Status()="鏈彂甯�")
+          {
+            Obj.Status("宸插彂甯�");
+            Obj.IssuingDate(DateTime::ActualTime());
+            Obj.H_ReleaseRecord_ID(IssuerID);
+          }
+          
+          bResult := true;
+          OResultMsg :="鐗╂枡鍙戝竷瀹屾垚";
+        }
+        else
+        {
+          OResultMsg :="鏃犲彲鍙戝竷鐨勭墿鏂欒鍗�";
+        }    
+      }
+      else
+      {
+        OResultMsg :="Owner 涓嶈兘涓篘ull";
+      }
+    }
+    onerror
+    {
+      OResultMsg:="鐗╂枡鍙戝竷閿欒锛岃鑱旂郴绯荤粺绠$悊鍛橈紒";
+      Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "SM_MaterialPurchaseIssuer",
+                         DeveloperInformation :=  e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(),
+                         GeneralInformation := e.GeneralInformation());
+                          
+                           
+    }
+    return bResult;
+  *]
+}
diff --git a/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_MaterialReverse.qbl b/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_MaterialReverse.qbl
new file mode 100644
index 0000000..52dcd9d
--- /dev/null
+++ b/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_MaterialReverse.qbl
@@ -0,0 +1,233 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod SM_MaterialReverse (
+  MacroPlan Owner,
+  String VCode,
+  String CustomerCode,
+  String SKU,
+  Number OperateQty,
+  String Operator,
+  output String OResultMsg,
+  String OperateType
+) as Boolean
+{
+  Description: '鐗╂枡鍙嶇'
+  TextBody:
+  [*
+    /*********************************************鐗╂枡鍙嶇鎴栨巿鏉�*********************************
+    *鍑芥暟鍚嶇О锛歋M_MaterialReverse
+    *鍒� 寤� 浜猴細yunying
+    *鍒涘缓鏃ユ湡锛�2023-09-14
+    *鍑芥暟鎻忚堪锛氱墿鏂欏弽绛炬垨鎺堟潈,true 鎴愬姛锛宖alse 澶辫触锛�
+    *淇� 鏀� 浜猴細
+    *淇敼鏃ユ湡锛�
+    *淇敼鍐呭锛�
+    *****************************************************************************************/
+    bResult := false;
+    OResultMsg:="";
+    try
+    {
+      if(OperateQty>0 and not isnull(Owner))
+      {
+        nForecastQtyOld := 0; //鍘熼娴嬫暟閲�
+        nReverseQtyOld :=0;   //鍘熷弽绛炬暟閲�
+        nAuthorizeQtyOld :=0; //鍘熸巿鏉冩暟閲�
+        nForecastQtyNew :=0;  //璁$畻鍚庣殑棰勬祴鏁伴噺
+        nReverseQtyNew :=0;   //璁$畻鍚庣殑鍙嶇鏁伴噺
+        nAuthorizeQtyNew :=0; //璁$畻鍚庣殑鎺堟潈鏁伴噺
+        nHaveForecastQty :=0; //鏈夐娴嬫暟閲�
+        nNoHaveForecastQty:=0;//浜旈娴嬫暟閲�
+        // 鑾峰彇棰勬祴鏁伴噺锛堝鎴�+SKU+鏈堜唤 鐞嗚鏄病鏈夌墿鏂欓娴嬶級
+        OrderForecast := select(Owner, H_OrderForecastRealQty , Obj, Obj.SKU() = SKU 
+                                              and Obj.CustomID() = CustomerCode 
+                                              and Obj.Month().Format( "YM2") = Date::ActualDate().Format( "YM2"));
+        if ( not isnull(OrderForecast))
+        {
+            nForecastQtyOld := OrderForecast.ForecatsRealQty();
+            nForecastQtyNew := nForecastQtyOld;
+        }
+        
+        // 鑾峰彇鍙嶇鏁伴噺锛堝彧鍒ゆ柇SKU锛�
+        ObjReverse := select(Owner, H_ReverseRealQty , Obj, Obj.SKU() = SKU);
+        if ( not isnull(ObjReverse))
+        {
+            nReverseQtyOld := ObjReverse.ReverseRealQty();
+            nReverseQtyNew := nReverseQtyOld;
+        }
+        
+        // 鑾峰彇鎺堟潈鏁伴噺锛堝鎴稩D+SKU锛�
+        ObjAuthorize := select(Owner, H_AuthorizeRealQty , Obj, Obj.SKU() = SKU 
+                                                                and Obj.CustomID() = CustomerCode );
+        if ( not isnull(ObjAuthorize))
+        {
+            nAuthorizeQtyOld := ObjAuthorize.AuthorizeRealQty();
+            nAuthorizeQtyNew :=nAuthorizeQtyOld;
+        }
+    /******************************************鍙嶇鐗╂枡*************************************************/
+        if( OperateType="鍙嶇")
+        {
+          // 鍙嶇璁板綍ID
+          HRID := H_FunctionClass::SM_GenerateID( "FQ");
+          // 鍙嶇鍚庢暟閲� = 鍘熸暟閲�+鏂板鐨勬暟閲�
+          nReverseQtyNew := nReverseQtyOld+OperateQty;
+          // 璁板綍鍔ㄤ綔
+          Owner.H_HedgingRecord(relnew,
+                                 ID := HRID,
+                                 VCode:=VCode,
+                                 SKU:=SKU,
+                                 ForecastQty := nForecastQtyNew,
+                                 ReverseQty := nReverseQtyNew,
+                                 AuthorizeQty := nAuthorizeQtyNew,
+                                 OperateType := OperateType,
+                                 Operator := Operator,
+                                 OperateTime := DateTime::ActualTime(),
+                                 CustomerCode := CustomerCode,
+                                 OperateQty := OperateQty);
+          // 鏇存柊褰撳墠鍙嶇鏁伴噺
+          if( not isnull( ObjReverse))
+          {
+            ObjReverse.ReverseRealQty(nReverseQtyNew);
+          }
+          else
+          {
+            Owner.H_ReverseRealQty(relnew,ID := H_FunctionClass::SM_GenerateID( "RQ"),SKU := SKU,Unit := "閫氳繃SKU鑾峰彇",ReverseRealQty := nReverseQtyNew);
+          } 
+          
+          // 閲婃斁閲囪喘
+          Owner.H_MaterialPurchase(relnew,ID := H_FunctionClass::SM_GenerateID( "MP"),VCode:=VCode, DemandTime := DateTime::ActualTime(),
+                                    H_HedgingRecord_ID := HRID,SKU := SKU,ProductSubclassType := "鐗╂枡绫诲瀷锛岀敤SKU鎶撶墿鏂欒〃寰楀埌",Qty := OperateQty,Unit := "閫氳繃SKU鎶�",
+                                    OrgCode := "閫氳繃SKU鍦˙OOM涓姄鍙�",WarehouseCode := "鏆傛湭寰楀埌鏉ユ簮",Status := "鏈彂甯�");
+          
+          bResult := true;
+          OResultMsg:="鍙嶇鎴愬姛锛�";
+        }
+    /******************************************鎺堟潈鐗╂枡*************************************************/
+        else if(OperateType="鎺堟潈")
+        {
+          // 鎺堟潈璁板綍ID
+          AQID := H_FunctionClass::SM_GenerateID( "AQ");
+          // 鎺堟潈鍐插噺--鍙嶇
+          if( nReverseQtyOld>OperateQty)
+          {
+            nReverseQtyNew := nReverseQtyOld - OperateQty;
+          }
+          else 
+          {
+            nReverseQtyNew :=0;
+          }
+          // 鎺堟潈鍐插噺--鎺堟潈
+          nAuthorizeQtyNew := nAuthorizeQtyOld + OperateQty;
+          // 鎺堟潈鍐插噺--棰勬祴
+          nMid := OperateQty - nReverseQtyOld;
+          if( nMid<0)
+          {
+            nMid := 0;  
+          }
+          nForecastQtyNew := nForecastQtyOld-nMid;
+          if(nForecastQtyNew<0)
+          {
+            nForecastQtyNew :=0;
+          }
+          // 鎺堟潈鍐插噺--鏈夐娴嬪拰鏃犻娴�
+          if( nMid>=nForecastQtyOld)
+          {
+            nHaveForecastQty := nForecastQtyOld;
+            nNoHaveForecastQty := nMid-nForecastQtyOld;
+          }
+          else
+          {
+            nHaveForecastQty := nMid;
+            nNoHaveForecastQty := 0;
+          }
+          
+          // 璁板綍鍔ㄤ綔
+          Owner.H_HedgingRecord(relnew,
+                                 ID := AQID,
+                                 VCode:=VCode,
+                                 SKU:=SKU,
+                                 ForecastQty := nForecastQtyNew,
+                                 ReverseQty := nReverseQtyNew,
+                                 AuthorizeQty := nAuthorizeQtyNew,
+                                 OperateType := OperateType,
+                                 Operator := Operator,
+                                 OperateTime := DateTime::ActualTime(),
+                                 CustomerCode := CustomerCode,
+                                 OperateQty := OperateQty);
+                                 
+          // 鏇存柊褰撳墠鍙嶇鏁伴噺
+          if( not isnull( ObjReverse))
+          {
+            ObjReverse.ReverseRealQty(nReverseQtyNew);
+          }
+          else
+          {
+            Owner.H_ReverseRealQty(relnew,ID := H_FunctionClass::SM_GenerateID( "RQ"),SKU := SKU,Unit := "PCS",ReverseRealQty := nReverseQtyNew);
+          } 
+          
+          // 鏇存柊棰勬祴
+          if( not isnull( OrderForecast))
+          {
+            OrderForecast.ForecatsRealQty(nForecastQtyNew);
+          }
+          else
+          {
+            Owner.H_OrderForecastRealQty(relnew,ID := H_FunctionClass::SM_GenerateID( "OF"),SKU := SKU,
+                                                                                            Month := Date::ActualDate(),
+                                                                                            CustomID := CustomerCode,
+                                                                                            CustomName := "瀹㈡埛琛ㄨ幏鍙�",
+                                                                                            OrderCode := "-",
+                                                                                            ForecatsQty :=0,
+                                                                                            ForecatsRealQty :=nForecastQtyNew,
+                                                                                            Unit := "SKU 鍒扮墿鏂欒〃鑾峰彇");
+          } 
+          
+          // 鏇存柊鎺堟潈
+          if( not isnull( ObjAuthorize))
+          {
+            ObjAuthorize.AuthorizeRealQty(nAuthorizeQtyNew);
+          }
+          else
+          {
+            Owner.H_AuthorizeRealQty(relnew,ID := H_FunctionClass::SM_GenerateID( "AR"),SKU := SKU,
+                                                                                            Month := Date::ActualDate(),
+                                                                                            CustomID := CustomerCode,
+                                                                                            CustomName := "瀹㈡埛琛ㄨ幏鍙�",
+                                                                                            OrderCode := "-",
+                                                                                            AuthorizeRealQty :=nAuthorizeQtyNew,
+                                                                                            Unit := "SKU 鍒扮墿鏂欒〃鑾峰彇");
+          } 
+          
+          // 閲婃斁閲囪喘
+          nMid_R :=OperateQty - nReverseQtyOld;
+          if( nMid_R > 0)
+          {
+            Owner.H_MaterialPurchase(relnew,ID := H_FunctionClass::SM_GenerateID( "MP"),VCode:=VCode, DemandTime := DateTime::ActualTime(),
+                                    H_HedgingRecord_ID := AQID,SKU := SKU,ProductSubclassType := "鐗╂枡绫诲瀷锛岀敤SKU鎶撶墿鏂欒〃寰楀埌",Qty := nMid_R,Unit := "閫氳繃SKU鎶�",
+                                    OrgCode := "閫氳繃SKU鍦˙OOM涓姄鍙�",WarehouseCode := "鏆傛湭寰楀埌鏉ユ簮",Status := "鏈彂甯�");
+          }
+          
+          bResult := true;
+          OResultMsg:="鎺堟潈鎴愬姛锛�";
+        }
+        else
+        {
+          OResultMsg:="鎿嶄綔澶辫触锛屾棤娉曡瘑鍒搷浣滅被鍨嬶紒";
+        }
+      }
+      else
+      {
+        OResultMsg:="鎿嶄綔澶辫触锛�" + OperateType + "鏁伴噺蹇呴』澶т簬0";
+      }
+    }
+    onerror
+    {
+      OResultMsg:="鍙嶇鏃跺彂鐢熼敊璇紝璇疯仈绯荤郴缁熺鐞嗗憳锛�";
+      Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "SM_MaterialReverse",
+                         DeveloperInformation :=  e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(),
+                         GeneralInformation := e.GeneralInformation());
+                          
+                           
+    }
+    return bResult;
+  *]
+}
diff --git a/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderReverseOrAuthorize.qbl b/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderReverseOrAuthorize.qbl
new file mode 100644
index 0000000..72a96c0
--- /dev/null
+++ b/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderReverseOrAuthorize.qbl
@@ -0,0 +1,240 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod SM_OrderReverseOrAuthorize (
+  MacroPlan Owner,
+  String Unit,
+  String VCode,
+  Date NeedDate,
+  String CustomerCode,
+  String SKU,
+  Number OperateQty,
+  String Operator,
+  String CustomName,
+  output String OResultMsg,
+  String OperateType
+) as Boolean
+{
+  Description: '璁㈠崟鍙嶇鎴栨巿鏉�'
+  TextBody:
+  [*
+    /*********************************************璁㈠崟鍙嶇鎴栨巿鏉�*********************************
+    *鍑芥暟鍚嶇О锛歋M_MaterialReverse
+    *鍒� 寤� 浜猴細yunying
+    *鍒涘缓鏃ユ湡锛�2023-09-15
+    *鍑芥暟鎻忚堪锛氳鍗曞弽绛炬垨鎺堟潈,true 鎴愬姛锛宖alse 澶辫触锛�
+    *淇� 鏀� 浜猴細
+    *淇敼鏃ユ湡锛�
+    *淇敼鍐呭锛�
+    *****************************************************************************************/
+    bResult := false;
+    OResultMsg:="";
+    try
+    {
+      if(OperateQty>0 and not isnull(Owner))
+      {
+        nForecastQtyOld := 0; //鍘熼娴嬫暟閲�
+        nReverseQtyOld :=0;   //鍘熷弽绛炬暟閲�
+        nAuthorizeQtyOld :=0; //鍘熸巿鏉冩暟閲�
+        nForecastQtyNew :=0;  //璁$畻鍚庣殑棰勬祴鏁伴噺
+        nReverseQtyNew :=0;   //璁$畻鍚庣殑鍙嶇鏁伴噺
+        nAuthorizeQtyNew :=0; //璁$畻鍚庣殑鎺堟潈鏁伴噺
+        nHaveForecastQty :=0; //鏈夐娴嬫暟閲�
+        nNoHaveForecastQty:=0;//浜旈娴嬫暟閲�
+        // 鑾峰彇棰勬祴鏁伴噺锛堝鎴�+SKU+鏈堜唤 鐞嗚鏄病鏈夌墿鏂欓娴嬶級
+        OrderForecast := select(Owner, H_OrderForecastRealQty , Obj, Obj.SKU() = SKU 
+                                              and Obj.CustomID() = CustomerCode 
+                                              and Obj.Month().Format( "YM2") = Date::ActualDate().Format( "YM2"));
+        if ( not isnull(OrderForecast))
+        {
+            nForecastQtyOld := OrderForecast.ForecatsRealQty();
+            nForecastQtyNew := nForecastQtyOld;
+        }
+        
+        // 鑾峰彇鍙嶇鏁伴噺锛堝彧鍒ゆ柇SKU锛�
+        ObjReverse := select(Owner, H_ReverseRealQty , Obj, Obj.SKU() = SKU);
+        if ( not isnull(ObjReverse))
+        {
+            nReverseQtyOld := ObjReverse.ReverseRealQty();
+            nReverseQtyNew := nReverseQtyOld;
+        }
+        
+        // 鑾峰彇鎺堟潈鏁伴噺锛堝鎴稩D+SKU锛�
+        ObjAuthorize := select(Owner, H_AuthorizeRealQty , Obj, Obj.SKU() = SKU 
+                                                                and Obj.CustomID() = CustomerCode );
+        if ( not isnull(ObjAuthorize))
+        {
+            nAuthorizeQtyOld := ObjAuthorize.AuthorizeRealQty();
+            nAuthorizeQtyNew :=nAuthorizeQtyOld;
+        }
+    /******************************************鍙嶇鐗╂枡*************************************************/
+        if( OperateType="鍙嶇")
+        {
+          // 鍙嶇璁板綍ID
+          HRID := H_FunctionClass::SM_GenerateID( "OR");
+          // 鍙嶇鍚庢暟閲� = 鍘熸暟閲�+鏂板鐨勬暟閲�
+          nReverseQtyNew := nReverseQtyOld+OperateQty;
+          // 璁板綍鍔ㄤ綔
+          Owner.H_OrderRecord(relnew,
+                                 ID := HRID,
+                                 VCode:=VCode,
+                                 SKU:=SKU,
+                                 ReverseQty := nReverseQtyNew,
+                                 CustomerCode := CustomerCode,
+                                 CustomerName := CustomName,
+                                 ForecastQty := nForecastQtyNew,
+                                 OrderDateTime := NeedDate,
+                                 OrderQty := OperateQty,
+                                 OrderCode:=H_FunctionClass::SM_GenerateID( "OC"),
+                                 AuthorizeQty := nAuthorizeQtyNew,
+                                 ReverseDeductQty := OperateQty,
+                                 AuthorizeDeductQty := 0,
+                                 ForecastHitQty :=0,
+                                 ForecastNoHitQty :=0,
+                                 OperateType := OperateType,
+                                 Operator := Operator,
+                                 Unit := Unit,
+                                 OperateQty := OperateQty,
+                                 OperateTime := DateTime::ActualTime());
+          // 鏇存柊褰撳墠鍙嶇鏁伴噺
+          if( not isnull( ObjReverse))
+          {
+            ObjReverse.ReverseRealQty(nReverseQtyNew);
+          }
+          else
+          {
+            Owner.H_ReverseRealQty(relnew,ID := H_FunctionClass::SM_GenerateID( "RQ"),SKU := SKU,Unit := Unit,ReverseRealQty := nReverseQtyNew);
+          } 
+          
+          bResult := true;
+          OResultMsg:="璁㈠崟鍙嶇鎴愬姛锛�";
+        }
+    /******************************************鎺堟潈鐗╂枡*************************************************/
+        else if(OperateType="鎺堟潈")
+        {
+          // 鎺堟潈璁板綍ID
+          AQID := H_FunctionClass::SM_GenerateID( "AQ");
+          // 鎺堟潈鍐插噺--鍙嶇
+          if( nReverseQtyOld>OperateQty)
+          {
+            nReverseQtyNew := nReverseQtyOld - OperateQty;
+          }
+          else 
+          {
+            nReverseQtyNew :=0;
+          }
+          // 鎺堟潈鍐插噺--鎺堟潈
+          nAuthorizeQtyNew := nAuthorizeQtyOld + OperateQty;
+          // 鎺堟潈鍐插噺--棰勬祴
+          nMid := OperateQty - nReverseQtyOld;
+          if( nMid<0)
+          {
+            nMid := 0;  
+          }
+          nForecastQtyNew := nForecastQtyOld-nMid;
+          if(nForecastQtyNew<0)
+          {
+            nForecastQtyNew :=0;
+          }
+          // 鎺堟潈鍐插噺--鏈夐娴嬪拰鏃犻娴�
+          if( nMid>=nForecastQtyOld)
+          {
+            nHaveForecastQty := nForecastQtyOld;
+            nNoHaveForecastQty := nMid-nForecastQtyOld;
+          }
+          else
+          {
+            nHaveForecastQty := nMid;
+            nNoHaveForecastQty := 0;
+          }
+          
+          // 璁板綍鍔ㄤ綔
+          Owner.H_OrderRecord(relnew,
+                                 ID := AQID,
+                                 VCode:=VCode,
+                                 SKU:=SKU,
+                                 ReverseQty := nReverseQtyNew,
+                                 CustomerCode := CustomerCode,
+                                 CustomerName := CustomName,
+                                 ForecastQty := nForecastQtyNew,
+                                 OrderDateTime := NeedDate,
+                                 OrderQty := OperateQty,
+                                 OrderCode:=H_FunctionClass::SM_GenerateID( "OC"),
+                                 AuthorizeQty := nAuthorizeQtyNew,
+                                 ReverseDeductQty := nReverseQtyOld - nReverseQtyNew,
+                                 AuthorizeDeductQty := OperateQty,
+                                 ForecastHitQty :=nHaveForecastQty,
+                                 ForecastNoHitQty :=nNoHaveForecastQty,
+                                 OperateType := OperateType,
+                                 Operator := Operator,
+                                 Unit := Unit,
+                                 OperateQty := OperateQty,
+                                 OperateTime := DateTime::ActualTime());
+                                 
+          // 鏇存柊褰撳墠鍙嶇鏁伴噺
+          if( not isnull( ObjReverse))
+          {
+            ObjReverse.ReverseRealQty(nReverseQtyNew);
+          }
+          else
+          {
+            Owner.H_ReverseRealQty(relnew,ID := H_FunctionClass::SM_GenerateID( "RQ"),SKU := SKU,Unit := Unit,ReverseRealQty := nReverseQtyNew);
+          } 
+          
+          // 鏇存柊棰勬祴
+          if( not isnull( OrderForecast))
+          {
+            OrderForecast.ForecatsRealQty(nForecastQtyNew);
+          }
+          else
+          {
+            Owner.H_OrderForecastRealQty(relnew,ID := H_FunctionClass::SM_GenerateID( "OF"),SKU := SKU,
+                                                                                            Month := Date::ActualDate(),
+                                                                                            CustomID := CustomerCode,
+                                                                                            CustomName := CustomName,
+                                                                                            OrderCode := "-",
+                                                                                            ForecatsQty :=0,
+                                                                                            ForecatsRealQty :=nForecastQtyNew,
+                                                                                            Unit := Unit);
+          } 
+          
+          // 鏇存柊鎺堟潈
+          if( not isnull( ObjAuthorize))
+          {
+            ObjAuthorize.AuthorizeRealQty(nAuthorizeQtyNew);
+          }
+          else
+          {
+            Owner.H_AuthorizeRealQty(relnew,ID := H_FunctionClass::SM_GenerateID( "AR"),SKU := SKU,
+                                                                                            Month := Date::ActualDate(),
+                                                                                            CustomID := CustomerCode,
+                                                                                            CustomName := CustomName,
+                                                                                            OrderCode := "-",
+                                                                                            AuthorizeRealQty :=nAuthorizeQtyNew,
+                                                                                            Unit := Unit);
+          } 
+          
+          bResult := true;
+          OResultMsg:="鎺堟潈鎴愬姛锛�";
+        }
+        else
+        {
+          OResultMsg:="鎿嶄綔澶辫触锛屾棤娉曡瘑鍒搷浣滅被鍨嬶紒";
+        }
+      }
+      else
+      {
+        OResultMsg:="鎿嶄綔澶辫触锛�" + OperateType + "鏁伴噺蹇呴』澶т簬0";
+      }
+    }
+    onerror
+    {
+      OResultMsg:="鍙嶇鏃跺彂鐢熼敊璇紝璇疯仈绯荤郴缁熺鐞嗗憳锛�";
+      Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "SM_MaterialReverse",
+                         DeveloperInformation :=  e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(),
+                         GeneralInformation := e.GeneralInformation());
+                          
+                           
+    }
+    return bResult;
+  *]
+}
diff --git a/_Main/BL/Type_H_FunctionClass/StaticMethod_UpdateAuthorizeRealQty.qbl b/_Main/BL/Type_H_FunctionClass/StaticMethod_UpdateAuthorizeRealQty.qbl
new file mode 100644
index 0000000..9ad500f
--- /dev/null
+++ b/_Main/BL/Type_H_FunctionClass/StaticMethod_UpdateAuthorizeRealQty.qbl
@@ -0,0 +1,43 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod UpdateAuthorizeRealQty (
+  MacroPlan Owner
+) as Boolean
+{
+  TextBody:
+  [*
+    /*********************************************鏇存柊鎺堟潈淇℃伅*********************************
+    *鍑芥暟鍚嶇О锛欰uthorizeRealQty
+    *鍒� 寤� 浜猴細yunying
+    *鍒涘缓鏃ユ湡锛�2023-09-14
+    *鍑芥暟鎻忚堪锛氭洿鏂拌鍗曢娴嬩俊鎭紝澧為噺鏇存柊锛屾柊澧炴爲鏁伴噺榛樿涓�0锛屾墽琛屾垚鍔熻繑鍥濼ure
+    *淇� 鏀� 浜猴細
+    *淇敼鏃ユ湡锛�
+    *淇敼鍐呭锛�
+    *****************************************************************************************/
+    bResult := false;
+    try
+    {
+      if( Owner.H_AuthorizeRealQty(relget ).Size()<10)
+      {
+        for ( x := 1; x <= 10; x := x + 1 )
+        {
+            Owner.H_AuthorizeRealQty(relnew,ID := "AAAAA_"+ x.AsQUILL(),SKU := "OTN-01-ACC-00"+ x.AsQUILL() ,Month := Date::ActualDate(),CustomName := "灏忕背",
+                                          CustomID := "XM0001",OrderCode:="OD0001",AuthorizeRealQty:=1000, Unit := "PCS");
+        }
+      }
+      //H_FunctionClass := Owner.H_FunctionClass(relnew,VCode_Material := VCode,UpdateTime_Material := Date::ActualDate());
+      // Traverse the selected set of Product_MPs for batch update
+        bResult := true;
+    }
+    onerror
+    {
+        Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "UpdateAuthorizeRealQty",
+                           DeveloperInformation :=  e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(),
+                           GeneralInformation := e.GeneralInformation());
+                          
+                           
+    }
+    return bResult;
+  *]
+}
diff --git a/_Main/BL/Type_H_FunctionClass/StaticMethod_UpdateMaterialItems.qbl b/_Main/BL/Type_H_FunctionClass/StaticMethod_UpdateMaterialItems.qbl
new file mode 100644
index 0000000..1c79db9
--- /dev/null
+++ b/_Main/BL/Type_H_FunctionClass/StaticMethod_UpdateMaterialItems.qbl
@@ -0,0 +1,44 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod UpdateMaterialItems (
+  String VCode,
+  MacroPlan Owner
+) as Boolean
+{
+  Description: '浠庣墿鏂欎俊鎭〃鏇存柊鍒扮墿鏂欏弽绛炬暟閲忚〃锛屽彧澧為噺锛屼笉瑕嗙洊鍘熸潵鐨勬暟鎹紝澧炲姞鐨勬潯鐩暟閲忛粯璁や负0'
+  TextBody:
+  [*
+    /*********************************************鏇存柊鐗╂枡椤圭洰*********************************
+    *鍑芥暟鍚嶇О锛歎pdateMaterialItems
+    *鍒� 寤� 浜猴細yunying
+    *鍒涘缓鏃ユ湡锛�2023-09-14
+    *鍑芥暟鎻忚堪锛氫粠鐗╂枡淇℃伅琛ㄦ洿鏂板埌鐗╂枡鍙嶇鏁伴噺琛紝鍙閲忥紝涓嶈鐩栧師鏉ョ殑鏁版嵁锛屽鍔犵殑鏉$洰鏁伴噺榛樿涓�0,鎵ц鎴愬姛杩斿洖Ture
+    *淇� 鏀� 浜猴細
+    *淇敼鏃ユ湡锛�
+    *淇敼鍐呭锛�
+    *****************************************************************************************/
+    bResult := false;
+    try
+    {
+      if( Owner.H_ReverseRealQty(relget ).Size()<10)
+      {
+        for ( x := 1; x <= 10; x := x + 1 )
+        {
+            Owner.H_ReverseRealQty(relnew,ID := "AAAAA_"+ x.AsQUILL()  ,SKU := "OTN-01-ACC-00"+ x.AsQUILL() ,Unit := "PCS",ReverseRealQty := 0);
+        }
+      }
+      //H_FunctionClass := Owner.H_FunctionClass(relnew,VCode_Material := VCode,UpdateTime_Material := Date::ActualDate());
+      // Traverse the selected set of Product_MPs for batch update
+        bResult := true;
+    }
+    onerror
+    {
+        Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "UpdateMaterialItems",
+                           DeveloperInformation :=  e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(),
+                           GeneralInformation := e.GeneralInformation());
+                          
+                           
+    }
+    return bResult;
+  *]
+}
diff --git a/_Main/BL/Type_H_FunctionClass/StaticMethod_UpdateOrderForecastRealQty.qbl b/_Main/BL/Type_H_FunctionClass/StaticMethod_UpdateOrderForecastRealQty.qbl
new file mode 100644
index 0000000..988d53e
--- /dev/null
+++ b/_Main/BL/Type_H_FunctionClass/StaticMethod_UpdateOrderForecastRealQty.qbl
@@ -0,0 +1,44 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod UpdateOrderForecastRealQty (
+  MacroPlan Owner
+) as Boolean
+{
+  Description: '鏇存柊璁㈠崟棰勬祴淇℃伅'
+  TextBody:
+  [*
+    /*********************************************鏇存柊璁㈠崟棰勬祴淇℃伅*********************************
+    *鍑芥暟鍚嶇О锛歎pdateOrderForecastRealQty
+    *鍒� 寤� 浜猴細yunying
+    *鍒涘缓鏃ユ湡锛�2023-09-14
+    *鍑芥暟鎻忚堪锛氭洿鏂拌鍗曢娴嬩俊鎭紝鎸夋湀鏇存柊锛岃鐩栨垨鏂板鏁版嵁锛屾墽琛屾垚鍔熻繑鍥濼ure
+    *淇� 鏀� 浜猴細
+    *淇敼鏃ユ湡锛�
+    *淇敼鍐呭锛�
+    *****************************************************************************************/
+    bResult := false;
+    try
+    {
+      if( Owner.H_OrderForecastRealQty(relget ).Size()<10)
+      {
+        for ( x := 1; x <= 10; x := x + 1 )
+        {
+            Owner.H_OrderForecastRealQty(relnew,ID := "AAAAA_"+ x.AsQUILL(),SKU := "OTN-01-ACC-00"+ x.AsQUILL() , Month := Date::ActualDate(),CustomName := "灏忕背",
+                                          CustomID := "XM0001",OrderCode:="OD0001",ForecatsQty:=1000,ForecatsRealQty:=1000, Unit := "PCS");
+        }
+      }
+      //H_FunctionClass := Owner.H_FunctionClass(relnew,VCode_Material := VCode,UpdateTime_Material := Date::ActualDate());
+      // Traverse the selected set of Product_MPs for batch update
+        bResult := true;
+    }
+    onerror
+    {
+        Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "UpdateOrderForecastRealQty",
+                           DeveloperInformation :=  e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(),
+                           GeneralInformation := e.GeneralInformation());
+                          
+                           
+    }
+    return bResult;
+  *]
+}
diff --git a/_Main/BL/Type_H_FunctionClass/_ROOT_Type_H_FunctionClass.qbl b/_Main/BL/Type_H_FunctionClass/_ROOT_Type_H_FunctionClass.qbl
new file mode 100644
index 0000000..6cb0560
--- /dev/null
+++ b/_Main/BL/Type_H_FunctionClass/_ROOT_Type_H_FunctionClass.qbl
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type H_FunctionClass
+{
+  #keys: '5[414724.0.53669729][414724.0.53669727][0.0.0][414724.0.53669728][414724.0.53669730]'
+  BaseType: Object
+  Description: '鍐插噺鎿嶄綔绫�'
+  StructuredName: 'H_FunctionClasss'
+}
diff --git "a/_Main/BL/Type_H_MaterialPurchase/Attribute_DemandTime\043567.qbl" "b/_Main/BL/Type_H_MaterialPurchase/Attribute_DemandTime\043567.qbl"
new file mode 100644
index 0000000..944801a
--- /dev/null
+++ "b/_Main/BL/Type_H_MaterialPurchase/Attribute_DemandTime\043567.qbl"
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute DemandTime
+{
+  #keys: '3[414724.0.26781557][414724.0.26781556][414724.0.26781558]'
+  Description: '闇�姹傛椂闂�'
+  ValueType: DateTime
+}
diff --git a/_Main/BL/Type_H_MaterialPurchase/Attribute_H_HedgingRecord_ID.qbl b/_Main/BL/Type_H_MaterialPurchase/Attribute_H_HedgingRecord_ID.qbl
new file mode 100644
index 0000000..b389f5a
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialPurchase/Attribute_H_HedgingRecord_ID.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute H_HedgingRecord_ID
+{
+  #keys: '3[414724.0.26781576][414724.0.26781575][414724.0.26781577]'
+  Description: '鍔ㄤ綔璁板綍ID'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialPurchase/Attribute_H_ReleaseRecord_ID.qbl b/_Main/BL/Type_H_MaterialPurchase/Attribute_H_ReleaseRecord_ID.qbl
new file mode 100644
index 0000000..f52882b
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialPurchase/Attribute_H_ReleaseRecord_ID.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute H_ReleaseRecord_ID
+{
+  #keys: '3[414724.0.26781656][414724.0.26781655][414724.0.26781657]'
+  Description: '鍙戝竷浠g爜'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialPurchase/Attribute_ID.qbl b/_Main/BL/Type_H_MaterialPurchase/Attribute_ID.qbl
new file mode 100644
index 0000000..c02afb2
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialPurchase/Attribute_ID.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ID
+{
+  #keys: '3[414724.0.26781527][414724.0.26781526][414724.0.26781528]'
+  Description: '涓婚敭ID'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialPurchase/Attribute_IssuingDate.qbl b/_Main/BL/Type_H_MaterialPurchase/Attribute_IssuingDate.qbl
new file mode 100644
index 0000000..32ac153
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialPurchase/Attribute_IssuingDate.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute IssuingDate
+{
+  #keys: '3[414724.0.26781666][414724.0.26781665][414724.0.26781667]'
+  Description: '鍙戝竷鏃ユ湡'
+  ValueType: DateTime
+}
diff --git a/_Main/BL/Type_H_MaterialPurchase/Attribute_OrgCode.qbl b/_Main/BL/Type_H_MaterialPurchase/Attribute_OrgCode.qbl
new file mode 100644
index 0000000..8a4aaef
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialPurchase/Attribute_OrgCode.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute OrgCode
+{
+  #keys: '3[414724.0.26781626][414724.0.26781625][414724.0.26781627]'
+  Description: '缁勭粐浠g爜'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialPurchase/Attribute_ProductSubclassType.qbl b/_Main/BL/Type_H_MaterialPurchase/Attribute_ProductSubclassType.qbl
new file mode 100644
index 0000000..71f619d
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialPurchase/Attribute_ProductSubclassType.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ProductSubclassType
+{
+  #keys: '3[414724.0.26781596][414724.0.26781595][414724.0.26781597]'
+  Description: '绫诲瀷'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialPurchase/Attribute_Qty.qbl b/_Main/BL/Type_H_MaterialPurchase/Attribute_Qty.qbl
new file mode 100644
index 0000000..4e5407c
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialPurchase/Attribute_Qty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Qty
+{
+  #keys: '3[414724.0.26781606][414724.0.26781605][414724.0.26781607]'
+  Description: '鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_MaterialPurchase/Attribute_SKU.qbl b/_Main/BL/Type_H_MaterialPurchase/Attribute_SKU.qbl
new file mode 100644
index 0000000..535b982
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialPurchase/Attribute_SKU.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute SKU
+{
+  #keys: '3[414724.0.26781586][414724.0.26781585][414724.0.26781587]'
+  Description: 'SKU缂栫爜锛堝師鏂橧D)'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialPurchase/Attribute_Serial.qbl b/_Main/BL/Type_H_MaterialPurchase/Attribute_Serial.qbl
new file mode 100644
index 0000000..2aafc74
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialPurchase/Attribute_Serial.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Serial
+{
+  #keys: '3[414724.0.26781547][414724.0.26781546][414724.0.26781548]'
+  Description: '搴忓彿'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_MaterialPurchase/Attribute_Status.qbl b/_Main/BL/Type_H_MaterialPurchase/Attribute_Status.qbl
new file mode 100644
index 0000000..4737bef
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialPurchase/Attribute_Status.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Status
+{
+  #keys: '3[414724.0.26781646][414724.0.26781645][414724.0.26781647]'
+  Description: '鐘舵��'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialPurchase/Attribute_Unit.qbl b/_Main/BL/Type_H_MaterialPurchase/Attribute_Unit.qbl
new file mode 100644
index 0000000..436827f
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialPurchase/Attribute_Unit.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Unit
+{
+  #keys: '3[414724.0.26781616][414724.0.26781615][414724.0.26781617]'
+  Description: '鍗曚綅'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialPurchase/Attribute_VCode.qbl b/_Main/BL/Type_H_MaterialPurchase/Attribute_VCode.qbl
new file mode 100644
index 0000000..b75c114
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialPurchase/Attribute_VCode.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute VCode
+{
+  #keys: '3[414724.0.26781537][414724.0.26781536][414724.0.26781538]'
+  Description: '鐗堟湰鍙�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialPurchase/Attribute_WarehouseCode.qbl b/_Main/BL/Type_H_MaterialPurchase/Attribute_WarehouseCode.qbl
new file mode 100644
index 0000000..7b27796
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialPurchase/Attribute_WarehouseCode.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute WarehouseCode
+{
+  #keys: '3[414724.0.26781636][414724.0.26781635][414724.0.26781637]'
+  Description: '浠撳簱浠g爜'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialPurchase/_ROOT_Type_H_MaterialPurchase.qbl b/_Main/BL/Type_H_MaterialPurchase/_ROOT_Type_H_MaterialPurchase.qbl
new file mode 100644
index 0000000..cf9c177
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialPurchase/_ROOT_Type_H_MaterialPurchase.qbl
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type H_MaterialPurchase
+{
+  #keys: '5[414724.0.26810970][414724.0.26810968][0.0.0][414724.0.26810969][414724.0.26810971]'
+  BaseType: Object
+  Description: '鍐插噺_鐗╂枡閲囪喘'
+  StructuredName: 'H_MaterialPurchases'
+}
diff --git a/_Main/BL/Type_H_MaterialRealQty/Attribute_AuthorizeRealQty.qbl b/_Main/BL/Type_H_MaterialRealQty/Attribute_AuthorizeRealQty.qbl
new file mode 100644
index 0000000..b6c8ea6
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialRealQty/Attribute_AuthorizeRealQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute AuthorizeRealQty
+{
+  #keys: '3[414724.0.87400932][414724.0.87400931][414724.0.87400933]'
+  Description: '鎺堟潈鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_MaterialRealQty/Attribute_CustomCode.qbl b/_Main/BL/Type_H_MaterialRealQty/Attribute_CustomCode.qbl
new file mode 100644
index 0000000..fb375ca
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialRealQty/Attribute_CustomCode.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute CustomCode
+{
+  #keys: '3[414724.0.87400942][414724.0.87400941][414724.0.87400943]'
+  Description: '瀹㈡埛ID'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialRealQty/Attribute_CustomName.qbl b/_Main/BL/Type_H_MaterialRealQty/Attribute_CustomName.qbl
new file mode 100644
index 0000000..2ebf142
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialRealQty/Attribute_CustomName.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute CustomName
+{
+  #keys: '3[414724.0.87400952][414724.0.87400951][414724.0.87400953]'
+  Description: '瀹㈡埛鍚嶇О'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialRealQty/Attribute_ForecastQty_Month.qbl b/_Main/BL/Type_H_MaterialRealQty/Attribute_ForecastQty_Month.qbl
new file mode 100644
index 0000000..347584b
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialRealQty/Attribute_ForecastQty_Month.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ForecastQty_Month
+{
+  #keys: '3[414724.0.87400912][414724.0.87400911][414724.0.87400913]'
+  Description: '褰撴湀棰勬祴'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_MaterialRealQty/Attribute_MaterialType.qbl b/_Main/BL/Type_H_MaterialRealQty/Attribute_MaterialType.qbl
new file mode 100644
index 0000000..5169ca6
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialRealQty/Attribute_MaterialType.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute MaterialType
+{
+  #keys: '3[414724.0.87400977][414724.0.87400976][414724.0.87400978]'
+  Description: '鐗╂枡绫诲瀷'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialRealQty/Attribute_ReverseRealQty.qbl b/_Main/BL/Type_H_MaterialRealQty/Attribute_ReverseRealQty.qbl
new file mode 100644
index 0000000..89f4265
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialRealQty/Attribute_ReverseRealQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ReverseRealQty
+{
+  #keys: '3[414724.0.87400922][414724.0.87400921][414724.0.87400923]'
+  Description: '鍙嶇鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_MaterialRealQty/Attribute_SKU.qbl b/_Main/BL/Type_H_MaterialRealQty/Attribute_SKU.qbl
new file mode 100644
index 0000000..f8c0c68
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialRealQty/Attribute_SKU.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute SKU
+{
+  #keys: '3[414724.0.87400892][414724.0.87400891][414724.0.87400893]'
+  Description: 'SKU缂栧彿'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialRealQty/Attribute_Util.qbl b/_Main/BL/Type_H_MaterialRealQty/Attribute_Util.qbl
new file mode 100644
index 0000000..f4e984b
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialRealQty/Attribute_Util.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Util
+{
+  #keys: '3[414724.0.87400987][414724.0.87400986][414724.0.87400988]'
+  Description: '鍗曚綅'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialRealQty/Attribute_VCode.qbl b/_Main/BL/Type_H_MaterialRealQty/Attribute_VCode.qbl
new file mode 100644
index 0000000..04e569b
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialRealQty/Attribute_VCode.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute VCode
+{
+  #keys: '3[414724.0.87400902][414724.0.87400901][414724.0.87400903]'
+  Description: '鐗堟湰鍙�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MaterialRealQty/_ROOT_Type_H_MaterialRealQty.qbl b/_Main/BL/Type_H_MaterialRealQty/_ROOT_Type_H_MaterialRealQty.qbl
new file mode 100644
index 0000000..b890ed6
--- /dev/null
+++ b/_Main/BL/Type_H_MaterialRealQty/_ROOT_Type_H_MaterialRealQty.qbl
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type H_MaterialRealQty
+{
+  #keys: '5[414724.0.87400872][414724.0.87400870][0.0.0][414724.0.87400871][414724.0.87400873]'
+  BaseType: Object
+  Description: '鐗╂枡瀹炴椂鏁版嵁'
+  StructuredName: 'H_MaterialRealQtys'
+}
diff --git a/_Main/BL/Type_H_MessagePassing/Attribute_FKey.qbl b/_Main/BL/Type_H_MessagePassing/Attribute_FKey.qbl
new file mode 100644
index 0000000..c085444
--- /dev/null
+++ b/_Main/BL/Type_H_MessagePassing/Attribute_FKey.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute FKey
+{
+  #keys: '3[414724.0.87274672][414724.0.87274671][414724.0.87274673]'
+  Description: '澶栭敭銆佺粍: 澶х被鍒紝鍖呭惈澶氫釜CKey'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MessagePassing/Attribute_ItemKey.qbl b/_Main/BL/Type_H_MessagePassing/Attribute_ItemKey.qbl
new file mode 100644
index 0000000..e1d64e6
--- /dev/null
+++ b/_Main/BL/Type_H_MessagePassing/Attribute_ItemKey.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ItemKey
+{
+  #keys: '3[414724.0.87274682][414724.0.87274681][414724.0.87274683]'
+  Description: '椤筀Ey'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MessagePassing/Attribute_Value.qbl b/_Main/BL/Type_H_MessagePassing/Attribute_Value.qbl
new file mode 100644
index 0000000..41c1c47
--- /dev/null
+++ b/_Main/BL/Type_H_MessagePassing/Attribute_Value.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Value
+{
+  #keys: '3[414724.0.87274692][414724.0.87274691][414724.0.87274693]'
+  Description: '鍊�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_MessagePassing/_ROOT_Type_H_MessagePassing.qbl b/_Main/BL/Type_H_MessagePassing/_ROOT_Type_H_MessagePassing.qbl
new file mode 100644
index 0000000..4d77133
--- /dev/null
+++ b/_Main/BL/Type_H_MessagePassing/_ROOT_Type_H_MessagePassing.qbl
@@ -0,0 +1,14 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type H_MessagePassing
+{
+  #keys: '5[414724.0.87274649][414724.0.87274647][0.0.0][414724.0.87274648][414724.0.87274650]'
+  BaseType: Object
+  Description:
+  [*
+    鍥犱负涓嶇煡閬撴�庝箞杩涜涓や釜绐椾綋涔嬮棿娑堟伅浼犻�掞紝
+    鐢ㄨ繖涓被鍋氫腑闂翠欢
+  *]
+  StructuredName: 'H_MessagePassings'
+}
diff --git a/_Main/BL/Type_H_OrderForecastRealQty/Attribute_CustomID.qbl b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_CustomID.qbl
new file mode 100644
index 0000000..f0cb7e7
--- /dev/null
+++ b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_CustomID.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute CustomID
+{
+  #keys: '3[414724.0.46380328][414724.0.46380327][414724.0.46380329]'
+  Description: '瀹㈡埛ID'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_OrderForecastRealQty/Attribute_CustomName.qbl b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_CustomName.qbl
new file mode 100644
index 0000000..f8a92fa
--- /dev/null
+++ b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_CustomName.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute CustomName
+{
+  #keys: '3[414724.0.46380318][414724.0.46380317][414724.0.46380319]'
+  Description: '瀹㈡埛鍚嶇О'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_OrderForecastRealQty/Attribute_ForecatsQty.qbl b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_ForecatsQty.qbl
new file mode 100644
index 0000000..2edd0bc
--- /dev/null
+++ b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_ForecatsQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ForecatsQty
+{
+  #keys: '3[414724.0.46380358][414724.0.46380357][414724.0.46380359]'
+  Description: '棰勬祴鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_OrderForecastRealQty/Attribute_ForecatsRealQty.qbl b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_ForecatsRealQty.qbl
new file mode 100644
index 0000000..28191e3
--- /dev/null
+++ b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_ForecatsRealQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ForecatsRealQty
+{
+  #keys: '3[414724.0.46380368][414724.0.46380367][414724.0.46380369]'
+  Description: '瀹炴椂鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_OrderForecastRealQty/Attribute_ID.qbl b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_ID.qbl
new file mode 100644
index 0000000..11098ab
--- /dev/null
+++ b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_ID.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ID
+{
+  #keys: '3[414724.0.46380298][414724.0.46380297][414724.0.46380299]'
+  Description: '涓婚敭ID'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_OrderForecastRealQty/Attribute_Month.qbl b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_Month.qbl
new file mode 100644
index 0000000..cc1224e
--- /dev/null
+++ b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_Month.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Month
+{
+  #keys: '3[414724.0.46380308][414724.0.46380307][414724.0.46380309]'
+  Description: '鏈堜唤'
+  ValueType: Date
+}
diff --git a/_Main/BL/Type_H_OrderForecastRealQty/Attribute_OrderCode.qbl b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_OrderCode.qbl
new file mode 100644
index 0000000..66e08c7
--- /dev/null
+++ b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_OrderCode.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute OrderCode
+{
+  #keys: '3[414724.0.46380338][414724.0.46380337][414724.0.46380339]'
+  Description: '璁㈠崟缂栧彿'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_OrderForecastRealQty/Attribute_SKU.qbl b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_SKU.qbl
new file mode 100644
index 0000000..a9eab85
--- /dev/null
+++ b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_SKU.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute SKU
+{
+  #keys: '3[414724.0.46380348][414724.0.46380347][414724.0.46380349]'
+  Description: 'SKU缂栫爜'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_OrderForecastRealQty/Attribute_Unit.qbl b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_Unit.qbl
new file mode 100644
index 0000000..6569ece
--- /dev/null
+++ b/_Main/BL/Type_H_OrderForecastRealQty/Attribute_Unit.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Unit
+{
+  #keys: '3[414724.0.46380378][414724.0.46380377][414724.0.46380379]'
+  Description: '鍗曚綅'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_OrderForecastRealQty/_ROOT_Type_H_OrderForecastRealQty.qbl b/_Main/BL/Type_H_OrderForecastRealQty/_ROOT_Type_H_OrderForecastRealQty.qbl
new file mode 100644
index 0000000..8d3d57b
--- /dev/null
+++ b/_Main/BL/Type_H_OrderForecastRealQty/_ROOT_Type_H_OrderForecastRealQty.qbl
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type H_OrderForecastRealQty
+{
+  #keys: '5[414724.0.46380278][414724.0.46380276][0.0.0][414724.0.46380277][414724.0.46380279]'
+  BaseType: Object
+  Description: '璁㈠崟棰勬祴瀹炴椂鏁伴噺锛屾瘡鏈堟洿鏂�'
+  StructuredName: 'H_OrderForecastRealQtys'
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_AuthorizeDeductQty.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_AuthorizeDeductQty.qbl
new file mode 100644
index 0000000..fccc38a
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_AuthorizeDeductQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute AuthorizeDeductQty
+{
+  #keys: '3[414724.0.46380215][414724.0.46380214][414724.0.46380216]'
+  Description: '鎺堟潈鍐插噺鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_AuthorizeQty.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_AuthorizeQty.qbl
new file mode 100644
index 0000000..18a2d67
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_AuthorizeQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute AuthorizeQty
+{
+  #keys: '3[414724.0.46380195][414724.0.46380194][414724.0.46380196]'
+  Description: '鎺堟潈鍓╀綑鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_CustomerCode.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_CustomerCode.qbl
new file mode 100644
index 0000000..e269588
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_CustomerCode.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute CustomerCode
+{
+  #keys: '3[414724.0.46380125][414724.0.46380124][414724.0.46380126]'
+  Description: '瀹㈡埛ID'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_CustomerName.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_CustomerName.qbl
new file mode 100644
index 0000000..a825907
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_CustomerName.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute CustomerName
+{
+  #keys: '3[414724.0.46380145][414724.0.46380144][414724.0.46380146]'
+  Description: '瀹㈡埛鍚嶇О'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_ForecastHitQty.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_ForecastHitQty.qbl
new file mode 100644
index 0000000..a401658
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_ForecastHitQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ForecastHitQty
+{
+  #keys: '3[414724.0.46380225][414724.0.46380224][414724.0.46380226]'
+  Description: '鏈夐娴嬫暟閲�'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_ForecastNoHitQty.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_ForecastNoHitQty.qbl
new file mode 100644
index 0000000..571a3fa
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_ForecastNoHitQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ForecastNoHitQty
+{
+  #keys: '3[414724.0.46380235][414724.0.46380234][414724.0.46380236]'
+  Description: '鏃犻娴嬫暟閲�'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_ForecastQty.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_ForecastQty.qbl
new file mode 100644
index 0000000..3983b2d
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_ForecastQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ForecastQty
+{
+  #keys: '3[414724.0.46380155][414724.0.46380154][414724.0.46380156]'
+  Description: '褰撴湀棰勬祴鍓╀綑鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_ID.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_ID.qbl
new file mode 100644
index 0000000..21257a6
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_ID.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ID
+{
+  #keys: '3[414724.0.46380085][414724.0.46380084][414724.0.46380086]'
+  Description: '涓婚敭ID'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_OperateQty.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_OperateQty.qbl
new file mode 100644
index 0000000..dbae162
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_OperateQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute OperateQty
+{
+  #keys: '3[414724.0.96596023][414724.0.96596022][414724.0.96596024]'
+  Description: '鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_OperateTime.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_OperateTime.qbl
new file mode 100644
index 0000000..80e1abf
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_OperateTime.qbl
@@ -0,0 +1,7 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute OperateTime
+{
+  #keys: '3[414724.0.80254680][414724.0.80254679][414724.0.80254681]'
+  ValueType: DateTime
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_OperateType.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_OperateType.qbl
new file mode 100644
index 0000000..3c75a06
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_OperateType.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute OperateType
+{
+  #keys: '3[414724.0.80254657][414724.0.80254656][414724.0.80254658]'
+  Description: '鎿嶄綔绫诲瀷锛氬弽娼滄垨鎺堟潈'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_Operator.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_Operator.qbl
new file mode 100644
index 0000000..a72a58a
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_Operator.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Operator
+{
+  #keys: '3[414724.0.80401529][414724.0.80401528][414724.0.80401530]'
+  Description: '鎿嶄綔浜�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_OrderCode.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_OrderCode.qbl
new file mode 100644
index 0000000..945f4e6
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_OrderCode.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute OrderCode
+{
+  #keys: '3[414724.0.46380185][414724.0.46380184][414724.0.46380186]'
+  Description: '璁㈠崟鍙�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_OrderDateTime.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_OrderDateTime.qbl
new file mode 100644
index 0000000..81d29a0
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_OrderDateTime.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute OrderDateTime
+{
+  #keys: '3[414724.0.46380165][414724.0.46380164][414724.0.46380166]'
+  Description: '闇�姹傛椂闂�'
+  ValueType: Date
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_OrderQty.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_OrderQty.qbl
new file mode 100644
index 0000000..25c5075
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_OrderQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute OrderQty
+{
+  #keys: '3[414724.0.46380175][414724.0.46380174][414724.0.46380176]'
+  Description: '璁㈠崟鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_ReverseDeductQty.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_ReverseDeductQty.qbl
new file mode 100644
index 0000000..fd3731e
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_ReverseDeductQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ReverseDeductQty
+{
+  #keys: '3[414724.0.46380205][414724.0.46380204][414724.0.46380206]'
+  Description: '鍙嶇鍐插噺鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_ReverseQty.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_ReverseQty.qbl
new file mode 100644
index 0000000..c537a90
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_ReverseQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ReverseQty
+{
+  #keys: '3[414724.0.46380115][414724.0.46380114][414724.0.46380116]'
+  Description: '鍙嶇鍓╀綑鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_SKU.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_SKU.qbl
new file mode 100644
index 0000000..ed90a54
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_SKU.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute SKU
+{
+  #keys: '3[414724.0.46380105][414724.0.46380104][414724.0.46380106]'
+  Description: 'SKU缂栫爜'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_Serial.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_Serial.qbl
new file mode 100644
index 0000000..bda8702
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_Serial.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Serial
+{
+  #keys: '3[414724.0.46380135][414724.0.46380134][414724.0.46380136]'
+  Description: '搴忓彿'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_Unit.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_Unit.qbl
new file mode 100644
index 0000000..5d08187
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_Unit.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Unit
+{
+  #keys: '3[414724.0.96596013][414724.0.96596012][414724.0.96596014]'
+  Description: '鍗曚綅'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_OrderRecord/Attribute_VCode.qbl b/_Main/BL/Type_H_OrderRecord/Attribute_VCode.qbl
new file mode 100644
index 0000000..5c87e17
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/Attribute_VCode.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute VCode
+{
+  #keys: '3[414724.0.46380095][414724.0.46380094][414724.0.46380096]'
+  Description: '鐗堟湰鍙�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_OrderRecord/_ROOT_Type_H_OrderRecord.qbl b/_Main/BL/Type_H_OrderRecord/_ROOT_Type_H_OrderRecord.qbl
new file mode 100644
index 0000000..243357b
--- /dev/null
+++ b/_Main/BL/Type_H_OrderRecord/_ROOT_Type_H_OrderRecord.qbl
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type H_OrderRecord
+{
+  #keys: '5[414724.0.46380065][414724.0.46380063][0.0.0][414724.0.46380064][414724.0.46380066]'
+  BaseType: Object
+  Description: '鍐插噺-璁㈠崟璁板綍'
+  StructuredName: 'H_OrderRecords'
+}
diff --git a/_Main/BL/Type_H_ReleaseRecord/Attribute_FinishDate.qbl b/_Main/BL/Type_H_ReleaseRecord/Attribute_FinishDate.qbl
new file mode 100644
index 0000000..43dc82d
--- /dev/null
+++ b/_Main/BL/Type_H_ReleaseRecord/Attribute_FinishDate.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute FinishDate
+{
+  #keys: '3[414724.0.26730938][414724.0.26730937][414724.0.26730939]'
+  Description: '鎴鏃堕棿'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_ReleaseRecord/Attribute_ID.qbl b/_Main/BL/Type_H_ReleaseRecord/Attribute_ID.qbl
new file mode 100644
index 0000000..3132966
--- /dev/null
+++ b/_Main/BL/Type_H_ReleaseRecord/Attribute_ID.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ID
+{
+  #keys: '3[414724.0.26810929][414724.0.26810928][414724.0.26810930]'
+  Description: '涓婚敭ID'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_ReleaseRecord/Attribute_Issuer.qbl b/_Main/BL/Type_H_ReleaseRecord/Attribute_Issuer.qbl
new file mode 100644
index 0000000..af863d9
--- /dev/null
+++ b/_Main/BL/Type_H_ReleaseRecord/Attribute_Issuer.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Issuer
+{
+  #keys: '3[414724.0.26810949][414724.0.26810948][414724.0.26810950]'
+  Description: '鍙戝竷浜�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_ReleaseRecord/Attribute_IssuingDate.qbl b/_Main/BL/Type_H_ReleaseRecord/Attribute_IssuingDate.qbl
new file mode 100644
index 0000000..8165543
--- /dev/null
+++ b/_Main/BL/Type_H_ReleaseRecord/Attribute_IssuingDate.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute IssuingDate
+{
+  #keys: '3[414724.0.26810959][414724.0.26810958][414724.0.26810960]'
+  Description: '鍙戝竷鏃堕棿'
+  ValueType: DateTime
+}
diff --git a/_Main/BL/Type_H_ReleaseRecord/Attribute_Serial.qbl b/_Main/BL/Type_H_ReleaseRecord/Attribute_Serial.qbl
new file mode 100644
index 0000000..547cdc6
--- /dev/null
+++ b/_Main/BL/Type_H_ReleaseRecord/Attribute_Serial.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Serial
+{
+  #keys: '3[414724.0.26730928][414724.0.26730927][414724.0.26730929]'
+  Description: '搴忓彿'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_ReleaseRecord/Attribute_Status.qbl b/_Main/BL/Type_H_ReleaseRecord/Attribute_Status.qbl
new file mode 100644
index 0000000..70b8389
--- /dev/null
+++ b/_Main/BL/Type_H_ReleaseRecord/Attribute_Status.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Status
+{
+  #keys: '3[414724.0.26730948][414724.0.26730947][414724.0.26730949]'
+  Description: '鐘舵��'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_ReleaseRecord/Attribute_VCode.qbl b/_Main/BL/Type_H_ReleaseRecord/Attribute_VCode.qbl
new file mode 100644
index 0000000..b2de97f
--- /dev/null
+++ b/_Main/BL/Type_H_ReleaseRecord/Attribute_VCode.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute VCode
+{
+  #keys: '3[414724.0.26810939][414724.0.26810938][414724.0.26810940]'
+  Description: '鐗堟湰鍙�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_ReleaseRecord/_ROOT_Type_H_ReleaseRecord.qbl b/_Main/BL/Type_H_ReleaseRecord/_ROOT_Type_H_ReleaseRecord.qbl
new file mode 100644
index 0000000..2392ded
--- /dev/null
+++ b/_Main/BL/Type_H_ReleaseRecord/_ROOT_Type_H_ReleaseRecord.qbl
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type H_ReleaseRecord
+{
+  #keys: '5[414724.0.26810909][414724.0.26810907][0.0.0][414724.0.26810908][414724.0.26810910]'
+  BaseType: Object
+  Description: '鍙嶅啿_鍙戝竷璁板綍'
+  StructuredName: 'H_ReleaseRecords'
+}
diff --git a/_Main/BL/Type_H_ReverseRealQty/Attribute_ID.qbl b/_Main/BL/Type_H_ReverseRealQty/Attribute_ID.qbl
new file mode 100644
index 0000000..8226548
--- /dev/null
+++ b/_Main/BL/Type_H_ReverseRealQty/Attribute_ID.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ID
+{
+  #keys: '3[414724.0.46380412][414724.0.46380411][414724.0.46380413]'
+  Description: '涓婚敭ID'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_ReverseRealQty/Attribute_ReverseRealQty.qbl b/_Main/BL/Type_H_ReverseRealQty/Attribute_ReverseRealQty.qbl
new file mode 100644
index 0000000..c47a901
--- /dev/null
+++ b/_Main/BL/Type_H_ReverseRealQty/Attribute_ReverseRealQty.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ReverseRealQty
+{
+  #keys: '3[414724.0.46380432][414724.0.46380431][414724.0.46380433]'
+  Description: '瀹炴椂鏁伴噺'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_H_ReverseRealQty/Attribute_SKU.qbl b/_Main/BL/Type_H_ReverseRealQty/Attribute_SKU.qbl
new file mode 100644
index 0000000..4e72ed0
--- /dev/null
+++ b/_Main/BL/Type_H_ReverseRealQty/Attribute_SKU.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute SKU
+{
+  #keys: '3[414724.0.46380422][414724.0.46380421][414724.0.46380423]'
+  Description: 'SKU缂栫爜'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_ReverseRealQty/Attribute_Unit.qbl b/_Main/BL/Type_H_ReverseRealQty/Attribute_Unit.qbl
new file mode 100644
index 0000000..83608c4
--- /dev/null
+++ b/_Main/BL/Type_H_ReverseRealQty/Attribute_Unit.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Unit
+{
+  #keys: '3[414724.0.46380442][414724.0.46380441][414724.0.46380443]'
+  Description: '鍗曚綅'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_ReverseRealQty/_ROOT_Type_H_ReverseRealQty.qbl b/_Main/BL/Type_H_ReverseRealQty/_ROOT_Type_H_ReverseRealQty.qbl
new file mode 100644
index 0000000..8af1dcf
--- /dev/null
+++ b/_Main/BL/Type_H_ReverseRealQty/_ROOT_Type_H_ReverseRealQty.qbl
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type H_ReverseRealQty
+{
+  #keys: '5[414724.0.46380389][414724.0.46380387][0.0.0][414724.0.46380388][414724.0.46380390]'
+  BaseType: Object
+  Description: '鍙嶇瀹炴椂鏁版嵁锛屾案涔呬繚鎸�'
+  StructuredName: 'H_ReverseRealQtys'
+}
diff --git a/_Main/BL/Type_H_TestMap/Attribute_SKU.qbl b/_Main/BL/Type_H_TestMap/Attribute_SKU.qbl
new file mode 100644
index 0000000..fe9f311
--- /dev/null
+++ b/_Main/BL/Type_H_TestMap/Attribute_SKU.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute SKU
+{
+  #keys: '3[414724.0.96595915][414724.0.96595914][414724.0.96595916]'
+  Description: 'SKU'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_TestMap/Attribute_Unit.qbl b/_Main/BL/Type_H_TestMap/Attribute_Unit.qbl
new file mode 100644
index 0000000..6ed009d
--- /dev/null
+++ b/_Main/BL/Type_H_TestMap/Attribute_Unit.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Unit
+{
+  #keys: '3[414724.0.96595925][414724.0.96595924][414724.0.96595926]'
+  Description: '鍗曚綅'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_H_TestMap/_ROOT_Type_H_TestMap.qbl b/_Main/BL/Type_H_TestMap/_ROOT_Type_H_TestMap.qbl
new file mode 100644
index 0000000..590106e
--- /dev/null
+++ b/_Main/BL/Type_H_TestMap/_ROOT_Type_H_TestMap.qbl
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type H_TestMap
+{
+  #keys: '5[414724.0.96595892][414724.0.96595890][0.0.0][414724.0.96595891][414724.0.96595893]'
+  BaseType: Object
+  Description: '娴嬭瘯涓や釜鏁版嵁闆嗗叧鑱旀樉绀�'
+  StructuredName: 'H_TestMaps'
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_Form234/Component_List174.def b/_Main/UI/MacroPlannerWebApp/Component_Form234/Component_List174.def
new file mode 100644
index 0000000..66db189
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_Form234/Component_List174.def
@@ -0,0 +1,42 @@
+Quintiq file version 2.0
+Component List174
+{
+  #keys: '[414724.0.53086425]'
+  BaseType: 'WebList'
+  Children:
+  [
+    Component DataExtractor936
+    {
+      #keys: '[414724.0.53086426]'
+      BaseType: 'WebDataExtractor'
+      Properties:
+      [
+        DataType: 'structured[H_OrderRecord]'
+        Source: 'DataHolder248'
+        Taborder: 0
+        Transformation: 'Elements'
+      ]
+    }
+    #child: listActionBarPage349
+    Component DataSetLevel386
+    {
+      #keys: '[414724.0.53086431]'
+      BaseType: 'WebDataSetLevel'
+      Children:
+      [
+        #child: listContextMenu108
+      ]
+      Properties:
+      [
+        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderCode","title":"OrderCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKU","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderDateTime","title":"OrderDateTime","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderDateTime"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderQty","title":"OrderQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastHitQty","title":"ForecastHitQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastHitQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastNoHitQty","title":"ForecastNoHitQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastNoHitQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Unit","title":"Unit","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Unit"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerName","title":"CustomerName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerCode","title":"CustomerCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerCode"}}]'
+        ContextMenu: 'listContextMenu108'
+        SortCriteria: 'OperateTime'
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Taborder: 3
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_Form234/Component_Panel570.def b/_Main/UI/MacroPlannerWebApp/Component_Form234/Component_Panel570.def
new file mode 100644
index 0000000..78634a1
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_Form234/Component_Panel570.def
@@ -0,0 +1,50 @@
+Quintiq file version 2.0
+Component Panel570
+{
+  #keys: '[414724.0.53023821]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component ds_Month_FORE
+    {
+      #keys: '[414724.0.53023837]'
+      BaseType: 'WebDateSelector'
+      Properties:
+      [
+        DateFormat: 'YMM'
+        Label: '鏈堜唤'
+        Taborder: 0
+      ]
+    }
+    Component txt_QueryContent_FORE
+    {
+      #keys: '[414724.0.53023852]'
+      BaseType: 'WebEditField'
+      Properties:
+      [
+        MaxRows: 0
+        NumberOfColumns: 20
+        PlaceHolder: '妯$硦鎼滅储'
+        Taborder: 1
+      ]
+    }
+    Component btn_Query_FORE
+    {
+      #keys: '[414724.0.53023864]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Image: 'VIEW'
+        Label: '鎼滅储'
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Alignment: 'trailing'
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_Form234/Component_Panel650.def b/_Main/UI/MacroPlannerWebApp/Component_Form234/Component_Panel650.def
new file mode 100644
index 0000000..fe73275
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_Form234/Component_Panel650.def
@@ -0,0 +1,25 @@
+Quintiq file version 2.0
+Component Panel650
+{
+  #keys: '[414724.0.52964252]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component Label300
+    {
+      #keys: '[414724.0.52964268]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Taborder: 0
+        Text: '璁㈠崟鍐插噺鍚庡垪琛ㄥ睍绀�'
+      ]
+    }
+  ]
+  Properties:
+  [
+    Border: true
+    FixedSize: true
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_Form234/Component_listActionBarPage349.def b/_Main/UI/MacroPlannerWebApp/Component_Form234/Component_listActionBarPage349.def
new file mode 100644
index 0000000..3d07bba
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_Form234/Component_listActionBarPage349.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listActionBarPage349
+{
+  #keys: '[414724.0.53086428]'
+  BaseType: 'listActionBarPage'
+  Properties:
+  [
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_Form234/Component_listContextMenu108.def b/_Main/UI/MacroPlannerWebApp/Component_Form234/Component_listContextMenu108.def
new file mode 100644
index 0000000..b83f144
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_Form234/Component_listContextMenu108.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listContextMenu108
+{
+  #keys: '[414724.0.53086433]'
+  BaseType: 'listContextMenu'
+  Properties:
+  [
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_Form234/Response_OnCreated.def b/_Main/UI/MacroPlannerWebApp/Component_Form234/Response_OnCreated.def
new file mode 100644
index 0000000..745284f
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_Form234/Response_OnCreated.def
@@ -0,0 +1,16 @@
+Quintiq file version 2.0
+#parent: #root
+Response OnCreated () id:Response_FrmOrderResultEx_OnCreated
+{
+  #keys: '[414724.0.101910615]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebComponent_OnCreated'
+  QuillAction
+  {
+    Body:
+    [*
+      ds_Month_FORE.Date(Date::ActualDate());
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_Form234/Response_Panel570_btn_Query_FORE_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_Form234/Response_Panel570_btn_Query_FORE_OnClick.def
new file mode 100644
index 0000000..b6cdf5d
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_Form234/Response_Panel570_btn_Query_FORE_OnClick.def
@@ -0,0 +1,22 @@
+Quintiq file version 2.0
+#parent: Panel570/btn_Query_FORE
+Response OnClick () id:Response_Panel570_btn_Query_FORE_OnClick
+{
+  #keys: '[414724.0.100771014]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  QuillAction
+  {
+    Body:
+    [*
+      DataExtractor338.FixedFilter( "( object.ID().LikeUserLocale( " + txt_QueryContent_FORE.Text().AsQUILL() + " )" 
+                                                   + " or " + "object.SKU().LikeUserLocale( " + txt_QueryContent_FORE.Text().AsQUILL() + " )"  
+                                                   + " or " + "object.CustomerCode().LikeUserLocale( " + txt_QueryContent_FORE.Text().AsQUILL() + " )" 
+                                                   + " or " + "object.CustomerName().LikeUserLocale( " + txt_QueryContent_FORE.Text().AsQUILL() + " ) )" 
+                                                   + "and" + "( object.OrderDateTime() < " + ds_Month_FORE.Date().StartOfNextMonth().AsQUILL() + 
+                                                   " and " + "object.OrderDateTime() >= " + ds_Month_FORE.Date().StartOfMonth().AsQUILL() + " )"
+                                                   );
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git "a/_Main/UI/MacroPlannerWebApp/Component_Form234/_ROOT_Component_FrmOrderResultEx\043234.def" "b/_Main/UI/MacroPlannerWebApp/Component_Form234/_ROOT_Component_FrmOrderResultEx\043234.def"
new file mode 100644
index 0000000..53c000e
--- /dev/null
+++ "b/_Main/UI/MacroPlannerWebApp/Component_Form234/_ROOT_Component_FrmOrderResultEx\043234.def"
@@ -0,0 +1,45 @@
+Quintiq file version 2.0
+#root
+#parent: MacroPlannerWebApp
+OrphanComponent FrmOrderResultEx
+{
+  #keys: '[414724.0.51403684]'
+  BaseType: 'WebForm'
+  Children:
+  [
+    #child: Panel650
+    #child: Panel570
+    #child: List174
+    Component DataHolder248
+    {
+      #keys: '[414724.0.51434769]'
+      BaseType: 'WebDataHolder'
+      Databinding: 'structured[H_OrderRecord]*'
+      Children:
+      [
+        Component DataExtractor338
+        {
+          #keys: '[414724.0.52813717]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'MacroPlan'
+            FixedFilter: 'object.OperateType()<>"鍙嶇"'
+            Source: 'MacroPlan'
+            Taborder: 0
+            Transformation: 'H_OrderRecord'
+          ]
+        }
+      ]
+      Properties:
+      [
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Description: '璁㈠崟鍐插噺鍚庡垪琛ㄥ睍绀�'
+    Title: '璁㈠崟鍐插噺鍚庡垪琛ㄥ睍绀�'
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_ListSDIP.def b/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_ListSDIP.def
new file mode 100644
index 0000000..726a92c
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_ListSDIP.def
@@ -0,0 +1,14 @@
+Quintiq file version 2.0
+Component ListSDIP #extension
+{
+  Children:
+  [
+    Component DataSetLevelSDIP #extension
+    {
+      Properties:
+      [
+        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeAllConstraint","columnid":"All constraints","title":"All constraints","subtotals":"","tooltip":"","width":1,"display":"shown"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ImgIsRestricted","title":"ImgIsRestricted","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ImgIsRestricted"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SalesSegmentName","title":"Sales segment","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"SalesSegmentName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"Product","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StockingPointID","title":"Stocking point","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"StockingPointID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StartDate","title":"Start","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"StartDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"EndDate","title":"End","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"EndDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"MasterSalesDemand.UnitOfMeasureName","title":"UoM","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"MasterSalesDemand.UnitOfMeasureName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"QuantityInSalesDemandUOM","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"QuantityInSalesDemandUOM"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"FulfilledQuantityInSalesDemandUOM","title":"Fulfilled","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"FulfilledQuantityInSalesDemandUOM"}},{"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":"Fulfilled demamd","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.Quantity()-object.FulfilledQuantity(), 0.0)"}}]}}]'
+      ]
+    }
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_PanelSDIP.def b/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_PanelSDIP.def
new file mode 100644
index 0000000..3d7315d
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_PanelSDIP.def
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+Component PanelSDIP #extension
+{
+  Children:
+  [
+    #child: ListSDIP
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_PanelSalesDemands.def b/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_PanelSalesDemands.def
new file mode 100644
index 0000000..743b727
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/Component_PanelSalesDemands.def
@@ -0,0 +1,22 @@
+Quintiq file version 2.0
+Component PanelSalesDemands #extension
+{
+  #error 102458: "Class Component with id 'PanelSalesDemands' cannot find its child with id 'PanelAllSalesDemands'. The file / folder structure might be corrupted due to integration."
+  Children:
+  [
+    Component DataHolderSalesDemands #extension
+    {
+      Children:
+      [
+        Component DataExtractorSDFromNavPanel #extension
+        {
+          Properties:
+          [
+            Source: 'DataHolderSalesDemandFromNavPanel'
+          ]
+        }
+      ]
+    }
+    #child: PanelSDIP
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/_ROOT_Component_FormForecasts.def b/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/_ROOT_Component_FormForecasts.def
new file mode 100644
index 0000000..697d046
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormForecasts/_ROOT_Component_FormForecasts.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#root
+#parent: LibMacroPlannerWebUI
+OrphanComponent FormForecasts #extension
+{
+  Children:
+  [
+    #child: PanelSalesDemands
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_ListHedgingOfLog.def b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_ListHedgingOfLog.def
new file mode 100644
index 0000000..6795199
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_ListHedgingOfLog.def
@@ -0,0 +1,41 @@
+Quintiq file version 2.0
+Component ListHedgingOfLog
+{
+  #keys: '[414724.0.28070551]'
+  BaseType: 'WebList'
+  Children:
+  [
+    Component DataExtractorHedgingOfLog883
+    {
+      #keys: '[414724.0.28070552]'
+      BaseType: 'WebDataExtractor'
+      Properties:
+      [
+        DataType: 'structured[H_HedgingRecord]'
+        Source: 'DataHolderHedgingOfLog'
+        Taborder: 0
+        Transformation: 'Elements'
+      ]
+    }
+    #child: listActionBarPageHedgingOfLog
+    Component DataSetLevelHedgingOfLog
+    {
+      #keys: '[414724.0.28070557]'
+      BaseType: 'WebDataSetLevel'
+      Children:
+      [
+        #child: listContextMenuHedgingOfLog
+      ]
+      Properties:
+      [
+        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Serial","title":"Serial","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Serial"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastQty","title":"ForecastQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ReverseQty","title":"ReverseQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ReverseQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"AuthorizeQty","title":"AuthorizeQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"AuthorizeQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OperateQty","title":"OperateQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OperateQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OperateType","title":"OperateType","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OperateType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Operator","title":"Operator","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Operator"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OperateTime","title":"OperateTime","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OperateTime"}}]'
+        ContextMenu: 'listContextMenuHedgingOfLog'
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Taborder: 3
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_PanelHedgingOfLog.def b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_PanelHedgingOfLog.def
new file mode 100644
index 0000000..ed7d295
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_PanelHedgingOfLog.def
@@ -0,0 +1,41 @@
+Quintiq file version 2.0
+Component PanelHedgingOfLog
+{
+  #keys: '[414724.0.28070480]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component DataHolderHedgingOfLog
+    {
+      #keys: '[414724.0.28070513]'
+      BaseType: 'WebDataHolder'
+      Databinding: 'structured[H_HedgingRecord]*'
+      Children:
+      [
+        Component DataExtractorHedgingOfLog
+        {
+          #keys: '[414724.0.28070527]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'MacroPlan'
+            Source: 'MacroPlan'
+            Taborder: 0
+            Transformation: 'H_HedgingRecord'
+          ]
+        }
+      ]
+      Properties:
+      [
+        Taborder: 2
+      ]
+    }
+    #child: ListHedgingOfLog
+    #child: PanelHedgingOfLog761
+    #child: PanelHedgingOfLog593
+  ]
+  Properties:
+  [
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_PanelHedgingOfLog593.def b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_PanelHedgingOfLog593.def
new file mode 100644
index 0000000..58cf03b
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_PanelHedgingOfLog593.def
@@ -0,0 +1,24 @@
+Quintiq file version 2.0
+Component PanelHedgingOfLog593
+{
+  #keys: '[414724.0.32210907]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component lb_SKUCode
+    {
+      #keys: '[414724.0.32210935]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Taborder: 0
+        Text: 'SKU缂栫爜锛欰AAAAAAAA'
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_PanelHedgingOfLog761.def b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_PanelHedgingOfLog761.def
new file mode 100644
index 0000000..dded053
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_PanelHedgingOfLog761.def
@@ -0,0 +1,28 @@
+Quintiq file version 2.0
+Component PanelHedgingOfLog761
+{
+  #keys: '[414724.0.26973497]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component LabelHedgingOfLog
+    {
+      #keys: '[414724.0.26973515]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        FixedSize: false
+        Taborder: 0
+        Text: '鏃ュ織椤甸潰'
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Padding: 'true'
+    Style: 'content'
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_listActionBarPageHedgingOfLog.def b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_listActionBarPageHedgingOfLog.def
new file mode 100644
index 0000000..21d6e75
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_listActionBarPageHedgingOfLog.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listActionBarPageHedgingOfLog
+{
+  #keys: '[414724.0.28070554]'
+  BaseType: 'listActionBarPage'
+  Properties:
+  [
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_listContextMenuHedgingOfLog.def b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_listContextMenuHedgingOfLog.def
new file mode 100644
index 0000000..255ce0a
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Component_listContextMenuHedgingOfLog.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listContextMenuHedgingOfLog
+{
+  #keys: '[414724.0.28070559]'
+  BaseType: 'listContextMenu'
+  Properties:
+  [
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Response_OnCreated.def b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Response_OnCreated.def
new file mode 100644
index 0000000..88f5a2f
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/Response_OnCreated.def
@@ -0,0 +1,12 @@
+Quintiq file version 2.0
+#parent: #root
+Response OnCreated () id:Response_FormHedgingOfLog_OnCreated
+{
+  #keys: '[414724.0.32481133]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebComponent_OnCreated'
+  GroupServerCalls: true
+  QuillAction
+  {
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/_ROOT_Component_FormHedgingOfLog.def b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/_ROOT_Component_FormHedgingOfLog.def
new file mode 100644
index 0000000..2b5e9aa
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/_ROOT_Component_FormHedgingOfLog.def
@@ -0,0 +1,28 @@
+Quintiq file version 2.0
+#root
+#parent: MacroPlannerWebApp
+OrphanComponent FormHedgingOfLog
+{
+  #keys: '[414724.0.28070348]'
+  BaseType: 'WebForm'
+  Children:
+  [
+    #child: PanelHedgingOfLog
+    Component lb_ForecastQty
+    {
+      #keys: '[414724.0.31031550]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Taborder: 1
+        Text: '鍘熸潗鏂欑殑棰勬祴鏁伴噺锛�0'
+      ]
+    }
+  ]
+  Properties:
+  [
+    Description: '鍐插噺缁撴灉-鏃ュ織'
+    Image: 'DOCUMENT_REFRESH'
+    Title: '鍙嶇鎺堟潈鍒楄〃鏄庣粏椤�'
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormKpiMatrix/Component_PanelKpiMatrixButton.def b/_Main/UI/MacroPlannerWebApp/Component_FormKpiMatrix/Component_PanelKpiMatrixButton.def
new file mode 100644
index 0000000..54d1eea
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormKpiMatrix/Component_PanelKpiMatrixButton.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component PanelKpiMatrixButton #extension
+{
+  Children:
+  [
+    Component ButtonKpiMatrixRefresh #extension
+    {
+    }
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormKpiMatrix/_ROOT_Component_FormKpiMatrix.def b/_Main/UI/MacroPlannerWebApp/Component_FormKpiMatrix/_ROOT_Component_FormKpiMatrix.def
new file mode 100644
index 0000000..fe53993
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormKpiMatrix/_ROOT_Component_FormKpiMatrix.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#root
+#parent: KpiTrackerWeb
+OrphanComponent FormKpiMatrix #extension
+{
+  Children:
+  [
+    #child: PanelKpiMatrixButton
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_ListMaterialPurchase.def b/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_ListMaterialPurchase.def
new file mode 100644
index 0000000..a9fc454
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_ListMaterialPurchase.def
@@ -0,0 +1,41 @@
+Quintiq file version 2.0
+Component ListMaterialPurchase
+{
+  #keys: '[414724.0.33312250]'
+  BaseType: 'WebList'
+  Children:
+  [
+    Component DataExtractorMaterialPurchase593
+    {
+      #keys: '[414724.0.33312251]'
+      BaseType: 'WebDataExtractor'
+      Properties:
+      [
+        DataType: 'structured[H_MaterialPurchase]'
+        Source: 'DataHolderMaterialPurchase'
+        Taborder: 0
+        Transformation: 'Elements'
+      ]
+    }
+    #child: listActionBarPageMaterialPurchase
+    Component DataSetLevelMaterialPurchase
+    {
+      #keys: '[414724.0.33312256]'
+      BaseType: 'WebDataSetLevel'
+      Children:
+      [
+        #child: listContextMenuMaterialPurchase
+      ]
+      Properties:
+      [
+        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKU","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductSubclassType","title":"ProductSubclassType","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductSubclassType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Qty","title":"Qty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Qty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Unit","title":"Unit","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Unit"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrgCode","title":"OrgCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrgCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"WarehouseCode","title":"WarehouseCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"WarehouseCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"DemandTime","title":"DemandTime","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"DemandTime"}}]'
+        ContextMenu: 'listContextMenuMaterialPurchase'
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Taborder: 3
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_PanelMaterialPurchase.def b/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_PanelMaterialPurchase.def
new file mode 100644
index 0000000..228bfb8
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_PanelMaterialPurchase.def
@@ -0,0 +1,27 @@
+Quintiq file version 2.0
+Component PanelMaterialPurchase
+{
+  #keys: '[414724.0.32581841]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component lb_StartTime
+    {
+      #keys: '[414724.0.32581870]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        NumberOfColumns: 50
+        Taborder: 0
+        Text: '寮�濮嬫椂闂达細2023-03-26 12:24:46'
+      ]
+    }
+    #child: PanelMaterialPurchase613
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_PanelMaterialPurchase613.def b/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_PanelMaterialPurchase613.def
new file mode 100644
index 0000000..25dd39f
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_PanelMaterialPurchase613.def
@@ -0,0 +1,30 @@
+Quintiq file version 2.0
+Component PanelMaterialPurchase613
+{
+  #keys: '[414724.0.32732360]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component btn_Issuing
+    {
+      #keys: '[414724.0.32702204]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Description: '鍙戝竷鎸夐挳'
+        Image: 'GOLDFISH'
+        Label: '鍙戝竷'
+        Taborder: 0
+      ]
+    }
+  ]
+  Properties:
+  [
+    Alignment: 'trailing'
+    FixedSize: true
+    MinimumColumns: 10
+    Orientation: 'horizontal'
+    Style: 'content'
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_listActionBarPageMaterialPurchase.def b/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_listActionBarPageMaterialPurchase.def
new file mode 100644
index 0000000..96c5f0b
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_listActionBarPageMaterialPurchase.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listActionBarPageMaterialPurchase
+{
+  #keys: '[414724.0.33312253]'
+  BaseType: 'listActionBarPage'
+  Properties:
+  [
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_listContextMenuMaterialPurchase.def b/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_listContextMenuMaterialPurchase.def
new file mode 100644
index 0000000..672eb72
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Component_listContextMenuMaterialPurchase.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listContextMenuMaterialPurchase
+{
+  #keys: '[414724.0.33312258]'
+  BaseType: 'listContextMenu'
+  Properties:
+  [
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Response_PanelMaterialPurchase613_btn_Issuing_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Response_PanelMaterialPurchase613_btn_Issuing_OnClick.def
new file mode 100644
index 0000000..039fd11
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/Response_PanelMaterialPurchase613_btn_Issuing_OnClick.def
@@ -0,0 +1,37 @@
+Quintiq file version 2.0
+#parent: PanelMaterialPurchase613/btn_Issuing
+Response OnClick () id:Response_PanelMaterialPurchase613_btn_Issuing_OnClick
+{
+  #keys: '[414724.0.32883517]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  Precondition:
+  [*
+    return not isnull( MacroPlan);
+  *]
+  QuillAction
+  {
+    Body:
+    [*
+      nExecute := WebMessageBox::Question("纭瑕佸彂甯冨綋鍓嶇殑鎵�鏈夐噰璐鍗曞悧锛�");
+      
+      if( nExecute = 0)
+      {
+        OutMsg :="";
+        bResult := H_FunctionClass::SM_MaterialPurchaseIssuer(OutMsg,MacroPlan,"-",ApplicationMacroPlanner.GetUserName());
+        if( OutMsg.Length()>0)
+        {
+          if(bResult)
+          {
+            WebMessageBox::Success( OutMsg);
+          }
+          else
+          {
+            WebMessageBox::Warning( OutMsg);
+          }
+        }   
+      }
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/_ROOT_Component_FormMaterialPurchase.def b/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/_ROOT_Component_FormMaterialPurchase.def
new file mode 100644
index 0000000..9c8ca6c
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/_ROOT_Component_FormMaterialPurchase.def
@@ -0,0 +1,55 @@
+Quintiq file version 2.0
+#root
+#parent: MacroPlannerWebApp
+OrphanComponent FormMaterialPurchase
+{
+  #keys: '[414724.0.32392142]'
+  BaseType: 'WebForm'
+  Children:
+  [
+    Component lb_Title
+    {
+      #keys: '[414724.0.32644779]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Description: '鎺堟潈/鍙嶇鐗╂枡閲囪喘鏄庣粏閲婃斁'
+        Taborder: 0
+        Text: '鎺堟潈/鍙嶇鐗╂枡閲囪喘鏄庣粏閲婃斁'
+      ]
+    }
+    #child: PanelMaterialPurchase
+    Component DataHolderMaterialPurchase
+    {
+      #keys: '[414724.0.32795597]'
+      BaseType: 'WebDataHolder'
+      Databinding: 'structured[H_MaterialPurchase]*'
+      Children:
+      [
+        Component DataExtractorMaterialPurchase
+        {
+          #keys: '[414724.0.32795611]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'MacroPlan'
+            Source: 'MacroPlan'
+            Taborder: 0
+            Transformation: 'H_MaterialPurchase'
+          ]
+        }
+      ]
+      Properties:
+      [
+        Taborder: 2
+      ]
+    }
+    #child: ListMaterialPurchase
+  ]
+  Properties:
+  [
+    Description: '鎺堟潈/鍙嶇鐗╂枡閲囪喘鏄庣粏閲婃斁'
+    Image: 'DOG'
+    Title: '鎺堟潈/鍙嶇鐗╂枡閲囪喘鏄庣粏閲婃斁'
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_ListReleaseRecord.def b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_ListReleaseRecord.def
new file mode 100644
index 0000000..fbb5054
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_ListReleaseRecord.def
@@ -0,0 +1,41 @@
+Quintiq file version 2.0
+Component ListReleaseRecord
+{
+  #keys: '[414724.0.35732464]'
+  BaseType: 'WebList'
+  Children:
+  [
+    Component DataExtractorReleaseRecord690
+    {
+      #keys: '[414724.0.35732465]'
+      BaseType: 'WebDataExtractor'
+      Properties:
+      [
+        DataType: 'structured[H_ReleaseRecord]'
+        Source: 'DataHolderReleaseRecord'
+        Taborder: 0
+        Transformation: 'Elements'
+      ]
+    }
+    #child: listActionBarPageReleaseRecord
+    Component DataSetLevelReleaseRecord
+    {
+      #keys: '[414724.0.35732470]'
+      BaseType: 'WebDataSetLevel'
+      Children:
+      [
+        #child: listContextMenuReleaseRecord
+      ]
+      Properties:
+      [
+        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ID","title":"ID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Issuer","title":"Issuer","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Issuer"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IssuingDate","title":"IssuingDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IssuingDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"FinishDate","title":"FinishDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"FinishDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Status","title":"Status","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Status"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"VCode","title":"VCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"VCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Serial","title":"Serial","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Serial"}}]'
+        ContextMenu: 'listContextMenuReleaseRecord'
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_ListReleaseRecord243.def b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_ListReleaseRecord243.def
new file mode 100644
index 0000000..6ef25a7
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_ListReleaseRecord243.def
@@ -0,0 +1,41 @@
+Quintiq file version 2.0
+Component ListReleaseRecord243
+{
+  #keys: '[414724.0.41061843]'
+  BaseType: 'WebList'
+  Children:
+  [
+    Component DataExtractorReleaseRecord404
+    {
+      #keys: '[414724.0.41061844]'
+      BaseType: 'WebDataExtractor'
+      Properties:
+      [
+        DataType: 'structured[H_MaterialPurchase]'
+        Source: 'DataHolderReleaseRecord319'
+        Taborder: 0
+        Transformation: 'Elements'
+      ]
+    }
+    #child: listActionBarPageReleaseRecord199
+    Component DataSetLevelReleaseRecord707
+    {
+      #keys: '[414724.0.41061849]'
+      BaseType: 'WebDataSetLevel'
+      Children:
+      [
+        #child: listContextMenuReleaseRecord690
+      ]
+      Properties:
+      [
+        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"H_ReleaseRecord_ID","title":"H_ReleaseRecord_ID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"H_ReleaseRecord_ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"H_HedgingRecord_ID","title":"H_HedgingRecord_ID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"H_HedgingRecord_ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ID","title":"ID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Qty","title":"Qty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Qty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Status","title":"Status","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Status"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IssuingDate","title":"IssuingDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IssuingDate"}}]'
+        ContextMenu: 'listContextMenuReleaseRecord690'
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_PanelReleaseRecord.def b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_PanelReleaseRecord.def
new file mode 100644
index 0000000..ae7d74e
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_PanelReleaseRecord.def
@@ -0,0 +1,26 @@
+Quintiq file version 2.0
+Component PanelReleaseRecord
+{
+  #keys: '[414724.0.37022508]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component dtMonth
+    {
+      #keys: '[414724.0.37110654]'
+      BaseType: 'WebDateSelector'
+      Properties:
+      [
+        DateFormat: 'YMM'
+        Label: '鏈堜唤'
+        Taborder: 0
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_PanelReleaseRecord108.def b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_PanelReleaseRecord108.def
new file mode 100644
index 0000000..c45790c
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_PanelReleaseRecord108.def
@@ -0,0 +1,39 @@
+Quintiq file version 2.0
+Component PanelReleaseRecord108
+{
+  #keys: '[414724.0.37293164]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component DataHolderReleaseRecord
+    {
+      #keys: '[414724.0.37293178]'
+      BaseType: 'WebDataHolder'
+      Databinding: 'structured[H_ReleaseRecord]*'
+      Children:
+      [
+        Component DataExtractorReleaseRecord
+        {
+          #keys: '[414724.0.37293193]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'MacroPlan'
+            Source: 'MacroPlan'
+            Taborder: 0
+            Transformation: 'H_ReleaseRecord'
+          ]
+        }
+      ]
+      Properties:
+      [
+        Taborder: 0
+      ]
+    }
+    #child: ListReleaseRecord
+  ]
+  Properties:
+  [
+    Taborder: 2
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_PanelReleaseRecord527.def b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_PanelReleaseRecord527.def
new file mode 100644
index 0000000..5c158ee
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_PanelReleaseRecord527.def
@@ -0,0 +1,39 @@
+Quintiq file version 2.0
+Component PanelReleaseRecord527
+{
+  #keys: '[414724.0.41061788]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component DataHolderReleaseRecord319
+    {
+      #keys: '[414724.0.41061799]'
+      BaseType: 'WebDataHolder'
+      Databinding: 'structured[H_MaterialPurchase]*'
+      Children:
+      [
+        Component DataExtractorReleaseRecord661
+        {
+          #keys: '[414724.0.41061814]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'MacroPlan'
+            Source: 'MacroPlan'
+            Taborder: 0
+            Transformation: 'H_MaterialPurchase'
+          ]
+        }
+      ]
+      Properties:
+      [
+        Taborder: 0
+      ]
+    }
+    #child: ListReleaseRecord243
+  ]
+  Properties:
+  [
+    Taborder: 3
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listActionBarPageReleaseRecord.def b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listActionBarPageReleaseRecord.def
new file mode 100644
index 0000000..6f4ec7e
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listActionBarPageReleaseRecord.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listActionBarPageReleaseRecord
+{
+  #keys: '[414724.0.35732467]'
+  BaseType: 'listActionBarPage'
+  Properties:
+  [
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listActionBarPageReleaseRecord199.def b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listActionBarPageReleaseRecord199.def
new file mode 100644
index 0000000..66121a1
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listActionBarPageReleaseRecord199.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listActionBarPageReleaseRecord199
+{
+  #keys: '[414724.0.41061846]'
+  BaseType: 'listActionBarPage'
+  Properties:
+  [
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listContextMenuReleaseRecord.def b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listContextMenuReleaseRecord.def
new file mode 100644
index 0000000..d2cf3cf
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listContextMenuReleaseRecord.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listContextMenuReleaseRecord
+{
+  #keys: '[414724.0.35732472]'
+  BaseType: 'listContextMenu'
+  Properties:
+  [
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listContextMenuReleaseRecord690.def b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listContextMenuReleaseRecord690.def
new file mode 100644
index 0000000..833cb86
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Component_listContextMenuReleaseRecord690.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listContextMenuReleaseRecord690
+{
+  #keys: '[414724.0.41061851]'
+  BaseType: 'listContextMenu'
+  Properties:
+  [
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Response_ListReleaseRecord_OnSelectionChanged.def b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Response_ListReleaseRecord_OnSelectionChanged.def
new file mode 100644
index 0000000..f4cc29c
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Response_ListReleaseRecord_OnSelectionChanged.def
@@ -0,0 +1,18 @@
+Quintiq file version 2.0
+#parent: ListReleaseRecord
+Response OnSelectionChanged (
+  H_ReleaseRecord selection
+) id:Response_ListReleaseRecord_OnSelectionChanged
+{
+  #keys: '[414724.0.69081721]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebList_OnSelectionChanged'
+  QuillAction
+  {
+    Body:
+    [*
+      DataExtractorReleaseRecord661.FixedFilter( "object.H_ReleaseRecord_ID() = " + selection.ID().AsQUILL());
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Response_OnCreated.def b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Response_OnCreated.def
new file mode 100644
index 0000000..5fc1173
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Response_OnCreated.def
@@ -0,0 +1,16 @@
+Quintiq file version 2.0
+#parent: #root
+Response OnCreated () id:Response_FormReleaseRecord_OnCreated
+{
+  #keys: '[414724.0.37110847]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebComponent_OnCreated'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      dtMonth.Date(Date::Today());
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Response_PanelReleaseRecord_dtMonth_OnChanged.def b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Response_PanelReleaseRecord_dtMonth_OnChanged.def
new file mode 100644
index 0000000..5161dff
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/Response_PanelReleaseRecord_dtMonth_OnChanged.def
@@ -0,0 +1,17 @@
+Quintiq file version 2.0
+#parent: PanelReleaseRecord/dtMonth
+Response OnChanged () id:Response_PanelReleaseRecord_dtMonth_OnChanged
+{
+  #keys: '[414724.0.71871659]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebDateTimeFieldBase_OnChanged'
+  QuillAction
+  {
+    Body:
+    [*
+      DataExtractorReleaseRecord.FixedFilter( "object.IssuingDate().Date() < " + dtMonth.Date().StartOfNextMonth().AsQUILL() + 
+                                                   " and " + "object.IssuingDate().Date() >= " + dtMonth.Date().StartOfMonth().AsQUILL());
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/_ROOT_Component_FormReleaseRecord.def b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/_ROOT_Component_FormReleaseRecord.def
new file mode 100644
index 0000000..28f9120
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/_ROOT_Component_FormReleaseRecord.def
@@ -0,0 +1,31 @@
+Quintiq file version 2.0
+#root
+#parent: MacroPlannerWebApp
+OrphanComponent FormReleaseRecord
+{
+  #keys: '[414724.0.36870764]'
+  BaseType: 'WebForm'
+  Children:
+  [
+    Component LabelReleaseRecord
+    {
+      #keys: '[414724.0.36933216]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        NumberOfColumns: 20
+        Taborder: 0
+        Text: '鍙嶇/鎺堟潈鐗╂枡鍙戝竷鐗堟湰鏄庣粏'
+      ]
+    }
+    #child: PanelReleaseRecord
+    #child: PanelReleaseRecord108
+    #child: PanelReleaseRecord527
+  ]
+  Properties:
+  [
+    Description: '鍙嶇/鎺堟潈鐗╂枡鍙戝竷鐗堟湰鏄庣粏'
+    Image: 'BULL'
+    Title: '鍙嶇/鎺堟潈鐗╂枡鍙戝竷鐗堟湰鏄庣粏'
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_Panel261.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_Panel261.def
new file mode 100644
index 0000000..a826c6e
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_Panel261.def
@@ -0,0 +1,39 @@
+Quintiq file version 2.0
+Component Panel261
+{
+  #keys: '[414724.0.44249978]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component btn_OK_FAAC
+    {
+      #keys: '[414724.0.44279077]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Image: 'OK'
+        Label: 'OK'
+        Taborder: 0
+      ]
+    }
+    Component btn_Cancel_FAAC
+    {
+      #keys: '[414724.0.44279090]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Image: 'DELETE'
+        Label: 'Cancel'
+        Taborder: 1
+      ]
+    }
+  ]
+  Properties:
+  [
+    Alignment: 'trailing'
+    Border: true
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 2
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelOptimizerGeneral718.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelOptimizerGeneral718.def
new file mode 100644
index 0000000..f043a99
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelOptimizerGeneral718.def
@@ -0,0 +1,39 @@
+Quintiq file version 2.0
+Component PanelOptimizerGeneral718
+{
+  #keys: '[414724.0.43041017]'
+  BaseType => //PanelOptimizerGeneral
+  Children:
+  [
+    Component CheckboxRunPeggingAfterOptRun
+    {
+      #keys: '[144528.1.1789128457]'
+      BaseType => //PanelOptimizerGeneral/CheckboxRunPeggingAfterOptRun
+      IsDerived: true
+      Properties:
+      [
+        Visible: false
+      ]
+    }
+    Component EditFieldMinSalesDemandQtyThreshold
+    {
+      #keys: '[144528.1.1789128515]'
+      BaseType => //PanelOptimizerGeneral/EditFieldMinSalesDemandQtyThreshold
+      IsDerived: true
+      Properties:
+      [
+        Visible: false
+      ]
+    }
+    Component EditFieldUsagePercentTripCleanup
+    {
+      #keys: '[144528.1.1789128517]'
+      BaseType => //PanelOptimizerGeneral/EditFieldUsagePercentTripCleanup
+      IsDerived: true
+      Properties:
+      [
+        Visible: false
+      ]
+    }
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop.def
new file mode 100644
index 0000000..49964fc
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop.def
@@ -0,0 +1,27 @@
+Quintiq file version 2.0
+Component PanelTop
+{
+  #keys: '[414724.0.43072496]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component lb_SKUCode_FAAC
+    {
+      #keys: '[414724.0.43602743]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Label: 'SKU缂栫爜'
+        NumberOfColumns: 30
+        Taborder: 0
+        Text: 'TM070RDH10-2322'
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 1
+  ]
+}
diff --git "a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop0001\043655.def" "b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop0001\043655.def"
new file mode 100644
index 0000000..9d296a3
--- /dev/null
+++ "b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop0001\043655.def"
@@ -0,0 +1,24 @@
+Quintiq file version 2.0
+Component PanelTop0001
+{
+  #keys: '[414724.0.43233506]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    #child: PanelTop
+    #child: PanelTop612
+    #child: PanelTop264
+    #child: PanelTop597
+    #child: PanelTop846
+    #child: PanelTop104
+    #child: PanelTop360
+    #child: PanelTop744
+    #child: PanelTop820
+  ]
+  Properties:
+  [
+    Border: true
+    Style: 'content'
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop104.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop104.def
new file mode 100644
index 0000000..2d52f9c
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop104.def
@@ -0,0 +1,28 @@
+Quintiq file version 2.0
+Component PanelTop104
+{
+  #keys: '[414724.0.43764561]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component txt_CustomName_FAAC
+    {
+      #keys: '[414724.0.43764592]'
+      BaseType: 'WebEditField'
+      Properties:
+      [
+        Description: '瀹㈡埛鍚嶇О'
+        Label: '瀹㈡埛鍚嶇О'
+        NumberOfColumns: 30
+        PlaceHolder: '璇疯緭鍏�'
+        Taborder: 0
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 7
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop264.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop264.def
new file mode 100644
index 0000000..9d587c8
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop264.def
@@ -0,0 +1,28 @@
+Quintiq file version 2.0
+Component PanelTop264
+{
+  #keys: '[414724.0.43764392]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component lb_Util_FAAC
+    {
+      #keys: '[414724.0.43764416]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Description: '鍗曚綅'
+        Label: '鍗曚綅'
+        NumberOfColumns: 30
+        Taborder: 0
+        Text: 'PCS'
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 4
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop360.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop360.def
new file mode 100644
index 0000000..6e7e7dc
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop360.def
@@ -0,0 +1,29 @@
+Quintiq file version 2.0
+Component PanelTop360
+{
+  #keys: '[414724.0.43764343]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component np_Qty_FAAC
+    {
+      #keys: '[414724.0.43764374]'
+      BaseType: 'WebNumberPicker'
+      Properties:
+      [
+        Label: '鏁伴噺'
+        MaximumColumns: 50
+        Min: '0'
+        NumberOfColumns: 23
+        Step: 100
+        Taborder: 0
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 3
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop597.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop597.def
new file mode 100644
index 0000000..861f761
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop597.def
@@ -0,0 +1,28 @@
+Quintiq file version 2.0
+Component PanelTop597
+{
+  #keys: '[414724.0.43764439]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component ddsl_OperateType_FAAC
+    {
+      #keys: '[414724.0.44398642]'
+      BaseType: 'WebDropDownStringList'
+      Properties:
+      [
+        InitialValue: '鍙嶇'
+        Label: '鍔ㄤ綔绫诲瀷'
+        NumberOfColumns: 26
+        Strings: '鍙嶇;鎺堟潈'
+        Taborder: 0
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 5
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop612.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop612.def
new file mode 100644
index 0000000..855b473
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop612.def
@@ -0,0 +1,28 @@
+Quintiq file version 2.0
+Component PanelTop612
+{
+  #keys: '[414724.0.43764662]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component lb_Operator_FAAC
+    {
+      #keys: '[414724.0.43764687]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Description: '鎿嶄綔浜�'
+        Label: '鎿嶄綔浜�'
+        NumberOfColumns: 30
+        Taborder: 0
+        Text: '鏉庡彲'
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 8
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop744.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop744.def
new file mode 100644
index 0000000..6408506
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop744.def
@@ -0,0 +1,27 @@
+Quintiq file version 2.0
+Component PanelTop744
+{
+  #keys: '[414724.0.43764285]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component lb_SKUName_FAAC
+    {
+      #keys: '[414724.0.43764315]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Label: 'SKU鍚嶇О'
+        NumberOfColumns: 30
+        Taborder: 0
+        Text: 'T1鍨嬫ā缁�'
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 2
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop820.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop820.def
new file mode 100644
index 0000000..8d132dd
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop820.def
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+Component PanelTop820
+{
+  #keys: '[414724.0.79122768]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component ds_NeedDate
+    {
+      #keys: '[414724.0.79122804]'
+      BaseType: 'WebDateSelector'
+      Properties:
+      [
+        Label: '闇�姹傛棩鏈�'
+        Taborder: 0
+      ]
+    }
+  ]
+  Properties:
+  [
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop846.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop846.def
new file mode 100644
index 0000000..07e3ec6
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop846.def
@@ -0,0 +1,28 @@
+Quintiq file version 2.0
+Component PanelTop846
+{
+  #keys: '[414724.0.43764508]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component txt_CustomID_FAAC
+    {
+      #keys: '[414724.0.43764542]'
+      BaseType: 'WebEditField'
+      Properties:
+      [
+        Label: '瀹㈡埛ID'
+        NumberOfColumns: 30
+        PlaceHolder: '璇疯緭鍏�'
+        Taborder: 0
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 6
+    Visible: false
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_OnCreated.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_OnCreated.def
new file mode 100644
index 0000000..e01820f
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_OnCreated.def
@@ -0,0 +1,46 @@
+Quintiq file version 2.0
+#parent: #root
+Response OnCreated () id:Response_FrmAuthorizeAndCountersign_OnCreated
+{
+  #keys: '[414724.0.80341563]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebComponent_OnCreated'
+  QuillAction
+  {
+    Body:
+    [*
+      /**********************鑾峰彇涓嬩竴涓懆5鐨勬棩鏈�*******************/
+      //瀹氫箟涓嬩竴涓槦鏈�
+      nTargetWeenNum := 5;
+      nTodayWeekNum := Date::ActualDate().DayOfWeek();
+      nAddDays := 0;
+      if( nTodayWeekNum <= nTargetWeenNum)
+      {
+        nAddDays := nTargetWeenNum-nTodayWeekNum;
+      }
+      else
+      {
+        nAddDays := 7 - nTodayWeekNum+nTargetWeenNum;
+      }
+      // 涓嬩竴涓槦鏈熺殑鏃ユ湡
+      dtNeedDate := Date::ActualDate() + nAddDays;
+      /******************************鑾峰彇涓嬩竴涓懆5鐨勬棩鏈� 缁撴潫***********************/
+      ds_NeedDate.Date(dtNeedDate);
+      
+      // 鑾峰彇閫夋嫨鍚庣殑SKU
+      SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
+      if(not isnull( SelectItem) and SelectItem.Value().Length()>0)
+      {
+        StrValue := SelectItem.Value().Tokenize( ";");
+        lb_SKUCode_FAAC.Text(StrValue.Element( 0));
+        lb_SKUName_FAAC.Text("浜у搧");
+        lb_Operator_FAAC.Text("");
+        lb_Util_FAAC.Text(StrValue.Element( 1));
+        txt_CustomID_FAAC.Text(StrValue.Element( 2));
+        txt_CustomName_FAAC.Text(StrValue.Element( 3));
+        lb_Operator_FAAC.Text(ApplicationMacroPlanner.GetUserName());
+      }
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_Panel261_btn_Cancel_FAAC_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_Panel261_btn_Cancel_FAAC_OnClick.def
new file mode 100644
index 0000000..353774e
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_Panel261_btn_Cancel_FAAC_OnClick.def
@@ -0,0 +1,16 @@
+Quintiq file version 2.0
+#parent: Panel261/btn_Cancel_FAAC
+Response OnClick () id:Response_Panel261_btn_Cancel_FAAC_OnClick
+{
+  #keys: '[414724.0.90212874]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      FrmAuthorizeAndCountersign.Close();
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_Panel261_btn_OK_FAAC_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_Panel261_btn_OK_FAAC_OnClick.def
new file mode 100644
index 0000000..c34f055
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_Panel261_btn_OK_FAAC_OnClick.def
@@ -0,0 +1,44 @@
+Quintiq file version 2.0
+#parent: Panel261/btn_OK_FAAC
+Response OnClick () id:Response_Panel261_btn_OK_FAAC_OnClick
+{
+  #keys: '[414724.0.56302031]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  Precondition:
+  [*
+    return not isnull( MacroPlan);
+  *]
+  QuillAction
+  {
+    Body:
+    [*
+      strQty := np_Qty_FAAC.Number().AsQUILL();
+      Qty := 0;
+      if( strQty.FindString( ".",0)>0)
+      {
+        Qty := [Number]strQty.SubString( 0,strQty.FindString( ".",0));
+      }
+      else
+      {
+        Qty := [Number]strQty;
+      }
+      OperateMsg :="";
+      OperateResult := H_FunctionClass::SM_OrderReverseOrAuthorize(  MacroPlan,lb_Util_FAAC.Text() ,"-",ds_NeedDate.Date() ,txt_CustomID_FAAC.Text(),lb_SKUCode_FAAC.Text(),Qty,
+                                                            lb_Operator_FAAC.Text(),txt_CustomName_FAAC.Text(),OperateMsg,ddsl_OperateType_FAAC.Text());
+      
+      if( OperateMsg.Length()>0)
+      {
+        if( OperateResult)
+        {
+          WebMessageBox::Success( OperateMsg);
+        }
+        else
+        {
+          WebMessageBox::Warning( OperateMsg);
+        }
+      }
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/_ROOT_Component_FrmAuthorizeAndCountersign.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/_ROOT_Component_FrmAuthorizeAndCountersign.def
new file mode 100644
index 0000000..69e5e49
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/_ROOT_Component_FrmAuthorizeAndCountersign.def
@@ -0,0 +1,30 @@
+Quintiq file version 2.0
+#root
+#parent: MacroPlannerWebApp
+OrphanComponent FrmAuthorizeAndCountersign
+{
+  #keys: '[414724.0.41821648]'
+  BaseType: 'WebForm'
+  Children:
+  [
+    Component lb_Title_FRMAAC
+    {
+      #keys: '[414724.0.41841127]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Description: '璁㈠崟鍙嶆綔鎺堟潈鏂板椤�'
+        Taborder: 0
+        Text: '璁㈠崟鍙嶇鎺堟潈鏂板椤�'
+      ]
+    }
+    #child: PanelTop0001
+    #child: Panel261
+  ]
+  Properties:
+  [
+    Description: '璁㈠崟鎺堟潈鍜屽弽绛�'
+    Image: 'DOCUMENTS_NEW'
+    Title: '璁㈠崟鍙嶇鎺堟潈鏂板椤�'
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel227.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel227.def
new file mode 100644
index 0000000..585fd28
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel227.def
@@ -0,0 +1,39 @@
+Quintiq file version 2.0
+Component Panel227
+{
+  #keys: '[414724.0.44768889]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component btn_OK_FAACM
+    {
+      #keys: '[414724.0.44768900]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Image: 'OK'
+        Label: 'OK'
+        Taborder: 0
+      ]
+    }
+    Component btn_Cancel_FAACM
+    {
+      #keys: '[414724.0.44768918]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Image: 'DELETE'
+        Label: 'Cancel'
+        Taborder: 1
+      ]
+    }
+  ]
+  Properties:
+  [
+    Alignment: 'trailing'
+    Border: true
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 12
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel368.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel368.def
new file mode 100644
index 0000000..8f8ecba
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel368.def
@@ -0,0 +1,27 @@
+Quintiq file version 2.0
+Component Panel368
+{
+  #keys: '[414724.0.44768637]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component ddsl_OperateType_FAACM
+    {
+      #keys: '[414724.0.44768691]'
+      BaseType: 'WebDropDownStringList'
+      Properties:
+      [
+        InitialValue: '鍙嶇'
+        Label: '鎿嶄綔绫诲瀷'
+        NumberOfColumns: 26
+        Strings: '鍙嶇;鎺堟潈'
+        Taborder: 0
+      ]
+    }
+  ]
+  Properties:
+  [
+    Orientation: 'horizontal'
+    Taborder: 7
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel418.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel418.def
new file mode 100644
index 0000000..2cf1300
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel418.def
@@ -0,0 +1,26 @@
+Quintiq file version 2.0
+Component Panel418
+{
+  #keys: '[414724.0.44768711]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component txt_CustomID_FAACM
+    {
+      #keys: '[414724.0.44768737]'
+      BaseType: 'WebEditField'
+      Properties:
+      [
+        Label: '瀹㈡埛ID'
+        NumberOfColumns: 30
+        Taborder: 0
+      ]
+    }
+  ]
+  Properties:
+  [
+    Orientation: 'horizontal'
+    Taborder: 8
+    Visible: false
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel445.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel445.def
new file mode 100644
index 0000000..834c7f3
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel445.def
@@ -0,0 +1,29 @@
+Quintiq file version 2.0
+Component Panel445
+{
+  #keys: '[414724.0.44768544]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component np_Qty_FAACM
+    {
+      #keys: '[414724.0.44768568]'
+      BaseType: 'WebNumberPicker'
+      Properties:
+      [
+        Label: '鏁伴噺'
+        MaximumColumns: 50
+        Min: '0'
+        NumberOfColumns: 23
+        Step: 100
+        Taborder: 0
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 5
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel455.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel455.def
new file mode 100644
index 0000000..88c30e0
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel455.def
@@ -0,0 +1,27 @@
+Quintiq file version 2.0
+Component Panel455
+{
+  #keys: '[414724.0.44768353]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component lb_SUK_FAACM
+    {
+      #keys: '[414724.0.44768369]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Label: 'SKU缂栫爜'
+        NumberOfColumns: 30
+        Taborder: 0
+        Text: 'TM070RDH10-23'
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel488.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel488.def
new file mode 100644
index 0000000..9bc250f
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel488.def
@@ -0,0 +1,26 @@
+Quintiq file version 2.0
+Component Panel488
+{
+  #keys: '[414724.0.44768844]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component lb_Operator_FAACM
+    {
+      #keys: '[414724.0.44768867]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Label: '鎿嶄綔浜�'
+        Taborder: 0
+        Text: '鏉庡彲'
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 11
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel504.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel504.def
new file mode 100644
index 0000000..9f57250
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel504.def
@@ -0,0 +1,25 @@
+Quintiq file version 2.0
+Component Panel504
+{
+  #keys: '[414724.0.45008336]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component Label861
+    {
+      #keys: '[414724.0.45008373]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Taborder: 0
+        Text: '鍘熸潗鏂欏崐鎴愬搧鍙嶇鎺堟潈鏂板椤�'
+      ]
+    }
+  ]
+  Properties:
+  [
+    Border: true
+    FixedSize: true
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel523.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel523.def
new file mode 100644
index 0000000..92f48e1
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel523.def
@@ -0,0 +1,27 @@
+Quintiq file version 2.0
+Component Panel523
+{
+  #keys: '[414724.0.44768447]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component lb_MaterialCode_FAACM
+    {
+      #keys: '[414724.0.44768476]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Label: '鍘熸枡缂栫爜'
+        NumberOfColumns: 30
+        Taborder: 0
+        Text: 'A1'
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 3
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel616.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel616.def
new file mode 100644
index 0000000..98be692
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel616.def
@@ -0,0 +1,25 @@
+Quintiq file version 2.0
+Component Panel616
+{
+  #keys: '[414724.0.44768757]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component txt_CustomName_FAACM
+    {
+      #keys: '[414724.0.44768782]'
+      BaseType: 'WebEditField'
+      Properties:
+      [
+        Label: '瀹㈡埛鍚嶇О'
+        NumberOfColumns: 30
+        Taborder: 0
+      ]
+    }
+  ]
+  Properties:
+  [
+    Orientation: 'horizontal'
+    Taborder: 9
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel645.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel645.def
new file mode 100644
index 0000000..977afd4
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel645.def
@@ -0,0 +1,27 @@
+Quintiq file version 2.0
+Component Panel645
+{
+  #keys: '[414724.0.44768399]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component lb_SKUName_FAACM
+    {
+      #keys: '[414724.0.44768428]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Label: 'SKU鍚嶇О'
+        NumberOfColumns: 30
+        Taborder: 0
+        Text: 'T1鍨嬫ā缁�'
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 2
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel694.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel694.def
new file mode 100644
index 0000000..00ec1d8
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel694.def
@@ -0,0 +1,26 @@
+Quintiq file version 2.0
+Component Panel694
+{
+  #keys: '[414724.0.44768495]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component lb_MaterialName
+    {
+      #keys: '[414724.0.44768519]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Label: '鍘熸枡鍚嶇О'
+        Taborder: 0
+        Text: '鐜荤拑'
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 4
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel890.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel890.def
new file mode 100644
index 0000000..c842a7b
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel890.def
@@ -0,0 +1,27 @@
+Quintiq file version 2.0
+Component Panel890
+{
+  #keys: '[414724.0.44768586]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component lb_Unit_FAACM
+    {
+      #keys: '[414724.0.44768614]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Label: '鍗曚綅'
+        NumberOfColumns: 30
+        Taborder: 0
+        Text: 'PCS'
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 6
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel972.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel972.def
new file mode 100644
index 0000000..0abe7a4
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Component_Panel972.def
@@ -0,0 +1,25 @@
+Quintiq file version 2.0
+Component Panel972
+{
+  #keys: '[414724.0.44768802]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component lb_MaterialType_FAACM
+    {
+      #keys: '[414724.0.44768826]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Label: '鐗╂枡绫诲瀷'
+        Taborder: 0
+        Text: '鍘熸潗鏂�'
+      ]
+    }
+  ]
+  Properties:
+  [
+    Orientation: 'horizontal'
+    Taborder: 10
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Response_OnCreated.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Response_OnCreated.def
new file mode 100644
index 0000000..c03f661
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Response_OnCreated.def
@@ -0,0 +1,37 @@
+Quintiq file version 2.0
+#parent: #root
+Response OnCreated () id:Response_FrmAuthorizeAndCountersign_Material_OnCreated
+{
+  #keys: '[414724.0.113356318]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebComponent_OnCreated'
+  Precondition:
+  [*
+    return not isnull( MacroPlan);
+  *]
+  QuillAction
+  {
+    Body:
+    [*
+      // 鑾峰彇閫夋嫨鍚庣殑SKU
+      SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmMaterial" and Obj.ItemKey()="ListSelect");
+      if(not isnull( SelectItem) and SelectItem.Value().Length()>0)
+      {
+        StrValue := SelectItem.Value().Tokenize( ";");
+        lb_SUK_FAACM.Text(StrValue.Element( 0));
+        lb_MaterialCode_FAACM.Text(StrValue.Element( 1));
+        lb_Unit_FAACM.Text(StrValue.Element( 2));
+        lb_Operator_FAACM.Text(ApplicationMacroPlanner.GetUserName());
+      }
+      // 鑾峰彇閫夋嫨鍚庣殑SKU
+      SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
+      if(not isnull( SelectItem) and SelectItem.Value().Length()>0)
+      {
+        StrValue := SelectItem.Value().Tokenize( ";");
+        txt_CustomID_FAACM.Text(StrValue.Element( 2));
+        txt_CustomName_FAACM.Text(StrValue.Element( 3));
+      }
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Response_Panel227_btn_Cancel_FAACM_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Response_Panel227_btn_Cancel_FAACM_OnClick.def
new file mode 100644
index 0000000..211cd7d
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Response_Panel227_btn_Cancel_FAACM_OnClick.def
@@ -0,0 +1,20 @@
+Quintiq file version 2.0
+#parent: Panel227/btn_Cancel_FAACM
+Response OnClick () id:Response_Panel227_btn_Cancel_FAACM_OnClick
+{
+  #keys: '[414724.0.65725554]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  Precondition:
+  [*
+    return not isnull( MacroPlan);
+  *]
+  QuillAction
+  {
+    Body:
+    [*
+      FrmAuthorizeAndCountersign_Material.Close();
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Response_Panel227_btn_OK_FAACM_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Response_Panel227_btn_OK_FAACM_OnClick.def
new file mode 100644
index 0000000..4f8495f
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Response_Panel227_btn_OK_FAACM_OnClick.def
@@ -0,0 +1,44 @@
+Quintiq file version 2.0
+#parent: Panel227/btn_OK_FAACM
+Response OnClick () id:Response_Panel227_btn_OK_FAACM_OnClick
+{
+  #keys: '[414724.0.61672228]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  Precondition:
+  [*
+    return not isnull( MacroPlan);
+  *]
+  QuillAction
+  {
+    Body:
+    [*
+      strQty := np_Qty_FAACM.Number().AsQUILL();
+      Qty := 0;
+      if( strQty.FindString( ".",0)>0)
+      {
+        Qty := [Number]strQty.SubString( 0,strQty.FindString( ".",0));
+      }
+      else
+      {
+        Qty := [Number]strQty;
+      }
+      OperateMsg :="";
+      OperateResult := H_FunctionClass::SM_MaterialReverse(   MacroPlan,"-",txt_CustomID_FAACM.Text(),lb_MaterialCode_FAACM.Text(),Qty,
+                                                            lb_Operator_FAACM.Text(),OperateMsg,ddsl_OperateType_FAACM.Text());
+      
+      if( OperateMsg.Length()>0)
+      {
+        if( OperateResult)
+        {
+          WebMessageBox::Success( OperateMsg);
+        }
+        else
+        {
+          WebMessageBox::Warning( OperateMsg);
+        }
+      }
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/_ROOT_Component_FrmAuthorizeAndCountersign_Material.def b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/_ROOT_Component_FrmAuthorizeAndCountersign_Material.def
new file mode 100644
index 0000000..748bae7
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/_ROOT_Component_FrmAuthorizeAndCountersign_Material.def
@@ -0,0 +1,29 @@
+Quintiq file version 2.0
+#root
+#parent: MacroPlannerWebApp
+OrphanComponent FrmAuthorizeAndCountersign_Material
+{
+  #keys: '[414724.0.44768276]'
+  BaseType: 'WebForm'
+  Children:
+  [
+    #child: Panel455
+    #child: Panel645
+    #child: Panel523
+    #child: Panel694
+    #child: Panel445
+    #child: Panel890
+    #child: Panel368
+    #child: Panel418
+    #child: Panel616
+    #child: Panel972
+    #child: Panel488
+    #child: Panel227
+    #child: Panel504
+  ]
+  Properties:
+  [
+    Description: '鍘熸潗鏂欏崐鎴愬搧鍙嶇鎺堟潈鏂板椤�'
+    Title: '鍘熸潗鏂欏崐鎴愬搧鍙嶇鎺堟潈鏂板椤�'
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_List710.def b/_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_List710.def
new file mode 100644
index 0000000..975cea9
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_List710.def
@@ -0,0 +1,41 @@
+Quintiq file version 2.0
+Component List710
+{
+  #keys: '[414724.0.56301766]'
+  BaseType: 'WebList'
+  Children:
+  [
+    Component DataExtractor332
+    {
+      #keys: '[414724.0.56301767]'
+      BaseType: 'WebDataExtractor'
+      Properties:
+      [
+        DataType: 'structured[H_ErrorLogs]'
+        Source: 'DataHolder674'
+        Taborder: 0
+        Transformation: 'Elements'
+      ]
+    }
+    #child: listActionBarPage361
+    Component DataSetLevel407
+    {
+      #keys: '[414724.0.56301772]'
+      BaseType: 'WebDataSetLevel'
+      Children:
+      [
+        #child: listContextMenu619
+      ]
+      Properties:
+      [
+        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"EClassName","title":"EClassName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"EClassName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"EFunctionName","title":"EFunctionName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"EFunctionName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"EDateTime","title":"EDateTime","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"EDateTime"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ErrorNr","title":"ErrorNr","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ErrorNr"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"DeveloperInformation","title":"DeveloperInformation","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"DeveloperInformation"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"DetailedInformation","title":"DetailedInformation","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"DetailedInformation"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"GeneralInformation","title":"GeneralInformation","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"GeneralInformation"}}]'
+        ContextMenu: 'listContextMenu619'
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_listActionBarPage361.def b/_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_listActionBarPage361.def
new file mode 100644
index 0000000..fb73e77
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_listActionBarPage361.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listActionBarPage361
+{
+  #keys: '[414724.0.56301769]'
+  BaseType: 'listActionBarPage'
+  Properties:
+  [
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_listContextMenu619.def b/_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_listContextMenu619.def
new file mode 100644
index 0000000..2ae4bcb
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_listContextMenu619.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listContextMenu619
+{
+  #keys: '[414724.0.56301774]'
+  BaseType: 'listContextMenu'
+  Properties:
+  [
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/_ROOT_Component_FrmErrorLogs.def b/_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/_ROOT_Component_FrmErrorLogs.def
new file mode 100644
index 0000000..23776ce
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/_ROOT_Component_FrmErrorLogs.def
@@ -0,0 +1,43 @@
+Quintiq file version 2.0
+#root
+#parent: MacroPlannerWebApp
+OrphanComponent FrmErrorLogs
+{
+  #keys: '[414724.0.56301712]'
+  BaseType: 'WebForm'
+  Children:
+  [
+    #child: List710
+    Component DataHolder674
+    {
+      #keys: '[414724.0.56301734]'
+      BaseType: 'WebDataHolder'
+      Databinding: 'structured[H_ErrorLogs]*'
+      Children:
+      [
+        Component DataExtractor131
+        {
+          #keys: '[414724.0.56301746]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'MacroPlan'
+            Source: 'MacroPlan'
+            Taborder: 0
+            Transformation: 'H_ErrorLogs'
+          ]
+        }
+      ]
+      Properties:
+      [
+        Taborder: 0
+      ]
+    }
+  ]
+  Properties:
+  [
+    Description: '閿欒鏃ュ織'
+    Image: 'WARNING'
+    Title: '閿欒鏃ュ織'
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_List832.def b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_List832.def
new file mode 100644
index 0000000..f24ffbd
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_List832.def
@@ -0,0 +1,41 @@
+Quintiq file version 2.0
+Component List832
+{
+  #keys: '[414724.0.53475318]'
+  BaseType: 'WebList'
+  Children:
+  [
+    Component DataExtractor470
+    {
+      #keys: '[414724.0.53475319]'
+      BaseType: 'WebDataExtractor'
+      Properties:
+      [
+        DataType: 'structured[Product_MP]'
+        Source: 'dh_FM_PruductMP'
+        Taborder: 0
+        Transformation: 'Elements'
+      ]
+    }
+    #child: listActionBarPage456
+    Component DataSetLevel707
+    {
+      #keys: '[414724.0.53475324]'
+      BaseType: 'WebDataSetLevel'
+      Children:
+      [
+        #child: listContextMenu892
+      ]
+      Properties:
+      [
+        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ID","title":"ID","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"TotalInventoryLevels","title":"TotalInventoryLevels","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"TotalInventoryLevels"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Level","title":"Level","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"Level"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsProductCategory","title":"IsProductCategory","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"IsProductCategory"}}]'
+        ContextMenu: 'listContextMenu892'
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Taborder: 3
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_Panel418.def b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_Panel418.def
new file mode 100644
index 0000000..987148b
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_Panel418.def
@@ -0,0 +1,60 @@
+Quintiq file version 2.0
+Component Panel418
+{
+  #keys: '[414724.0.50254946]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component lb_SUK_FM
+    {
+      #keys: '[414724.0.53353887]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Label: 'SKU缂栫爜锛�'
+        NumberOfColumns: 20
+        Taborder: 0
+      ]
+    }
+    Component txt_QueryContent_FM
+    {
+      #keys: '[414724.0.53353923]'
+      BaseType: 'WebEditField'
+      Properties:
+      [
+        NumberOfColumns: 15
+        PlaceHolder: '妯$硦鎼滅储'
+        Taborder: 1
+      ]
+    }
+    Component btn_Query_FM
+    {
+      #keys: '[414724.0.52966648]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Image: 'VIEW'
+        Label: '鏌ヨ'
+        Taborder: 2
+      ]
+    }
+    Component btn_Add_FM
+    {
+      #keys: '[414724.0.53385964]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Image: 'ADD2'
+        Label: '鏂板鍙嶇/鎺堟潈'
+        Taborder: 3
+      ]
+    }
+  ]
+  Properties:
+  [
+    Alignment: 'trailing'
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_Panel456.def b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_Panel456.def
new file mode 100644
index 0000000..77621e3
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_Panel456.def
@@ -0,0 +1,25 @@
+Quintiq file version 2.0
+Component Panel456
+{
+  #keys: '[414724.0.53325925]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component Label632
+    {
+      #keys: '[414724.0.53325937]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Taborder: 0
+        Text: '鍘熸枡鍒楄〃椤�'
+      ]
+    }
+  ]
+  Properties:
+  [
+    Border: true
+    FixedSize: true
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_listActionBarPage456.def b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_listActionBarPage456.def
new file mode 100644
index 0000000..fd9f86e
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_listActionBarPage456.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listActionBarPage456
+{
+  #keys: '[414724.0.53475321]'
+  BaseType: 'listActionBarPage'
+  Properties:
+  [
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_listContextMenu892.def b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_listContextMenu892.def
new file mode 100644
index 0000000..9da1efe
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_listContextMenu892.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listContextMenu892
+{
+  #keys: '[414724.0.53475326]'
+  BaseType: 'listContextMenu'
+  Properties:
+  [
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_List832_OnSelectionChanged.def b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_List832_OnSelectionChanged.def
new file mode 100644
index 0000000..4b24dec
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_List832_OnSelectionChanged.def
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: List832
+Response OnSelectionChanged (
+  Product_MP selection
+) id:Response_List832_OnSelectionChanged
+{
+  #keys: '[414724.0.113297034]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebList_OnSelectionChanged'
+  QuillAction
+  {
+    Body:
+    [*
+      SelectItem :=  select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmMaterial" and Obj.ItemKey()="ListSelect");
+      if( isnull( SelectItem))
+      {
+         MacroPlan.H_MessagePassing(relnew,FKey :="FrmMaterial",ItemKey := "ListSelect",Value := "");
+      }
+      SelectItem.Value(lb_SUK_FM.Text()+";"+ selection.ID() +";"+selection.UnitOfMeasureName()+";");
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_OnCreated.def b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_OnCreated.def
new file mode 100644
index 0000000..1704689
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_OnCreated.def
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Response OnCreated () id:Response_FrmMaterial_OnCreated
+{
+  #keys: '[414724.0.93205703]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebComponent_OnCreated'
+  QuillAction
+  {
+    Body:
+    [*
+      // 鑾峰彇閫夋嫨鍚庣殑SKU
+      SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
+      if(not isnull( SelectItem) and SelectItem.Value().Length()>0)
+      {
+        StrValue := SelectItem.Value().Tokenize( ";");
+        lb_SUK_FM.Text(StrValue.Element( 0));
+        de_dh_FM_ProductMP.FixedFilter( "object.ParentID()="+lb_SUK_FM.Text());
+      }
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_Panel418_btn_Add_FM_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_Panel418_btn_Add_FM_OnClick.def
new file mode 100644
index 0000000..6d50114
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_Panel418_btn_Add_FM_OnClick.def
@@ -0,0 +1,20 @@
+Quintiq file version 2.0
+#parent: Panel418/btn_Add_FM
+Response OnClick () id:Response_Panel418_btn_Add_FM_OnClick
+{
+  #keys: '[414724.0.93205915]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  Precondition:
+  [*
+    return not isnull( MacroPlan);
+  *]
+  QuillAction
+  {
+    Body:
+    [*
+      Application.OpenForm( "FrmAuthorizeAndCountersign_Material","popout");
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_Panel418_btn_Query_FM_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_Panel418_btn_Query_FM_OnClick.def
new file mode 100644
index 0000000..822a47c
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_Panel418_btn_Query_FM_OnClick.def
@@ -0,0 +1,19 @@
+Quintiq file version 2.0
+#parent: Panel418/btn_Query_FM
+Response OnClick () id:Response_Panel418_btn_Query_FM_OnClick
+{
+  #keys: '[414724.0.113144268]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  QuillAction
+  {
+    Body:
+    [*
+      de_dh_FM_ProductMP.FixedFilter( "object.ID().LikeUserLocale( " + txt_QueryContent_FM.Text().AsQUILL() + " )" );
+      //                                             + " or " + "object.SKU().LikeUserLocale( " + txt_QueryContent_FM.Text().AsQUILL() + " )"  
+      //                                             + " or " + "object.CustomerCode().LikeUserLocale( " + txt_QueryContent_FM.Text().AsQUILL() + " )" 
+      //                                             + " or " + "object.CustomerName().LikeUserLocale( " + txt_QueryContent_FM.Text().AsQUILL() + " )" );
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/_ROOT_Component_FrmMaterial.def b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/_ROOT_Component_FrmMaterial.def
new file mode 100644
index 0000000..899892b
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/_ROOT_Component_FrmMaterial.def
@@ -0,0 +1,44 @@
+Quintiq file version 2.0
+#root
+#parent: MacroPlannerWebApp
+OrphanComponent FrmMaterial
+{
+  #keys: '[414724.0.53175071]'
+  BaseType: 'WebForm'
+  Children:
+  [
+    #child: Panel456
+    #child: Panel418
+    #child: List832
+    Component dh_FM_PruductMP
+    {
+      #keys: '[414724.0.53475285]'
+      BaseType: 'WebDataHolder'
+      Databinding: 'structured[Product_MP]*'
+      Children:
+      [
+        Component de_dh_FM_ProductMP
+        {
+          #keys: '[414724.0.53475299]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'MacroPlan'
+            Source: 'MacroPlan'
+            Taborder: 0
+            Transformation: 'Product_MP'
+          ]
+        }
+      ]
+      Properties:
+      [
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Description: '鍘熸枡鍒楄〃椤�'
+    Title: '鍘熸枡鍒楄〃椤�'
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel383.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel383.def
new file mode 100644
index 0000000..a5ffa10
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel383.def
@@ -0,0 +1,52 @@
+Quintiq file version 2.0
+Component Panel383
+{
+  #keys: '[414724.0.86151558]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component ds_Month_FOF
+    {
+      #keys: '[414724.0.86151747]'
+      BaseType: 'WebDateSelector'
+      Properties:
+      [
+        DateFormat: 'YMM'
+        Label: '鏈堜唤'
+        Taborder: 0
+        Visible: false
+      ]
+    }
+    Component txt_QueryContent_FOF
+    {
+      #keys: '[414724.0.86151766]'
+      BaseType: 'WebEditField'
+      Properties:
+      [
+        PlaceHolder: '妯$硦鎼滅储'
+        Taborder: 1
+        Visible: false
+      ]
+    }
+    Component btn_Query_FOF
+    {
+      #keys: '[414724.0.88914059]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Description: '鏌ヨ'
+        Image: 'VIEW'
+        Label: '鏌ヨ'
+        Taborder: 2
+        Visible: false
+      ]
+    }
+  ]
+  Properties:
+  [
+    FixedSize: true
+    MinimumColumns: 80
+    Orientation: 'horizontal'
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel647.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel647.def
new file mode 100644
index 0000000..9fb6eb2
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel647.def
@@ -0,0 +1,50 @@
+Quintiq file version 2.0
+Component Panel647
+{
+  #keys: '[414724.0.86151576]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component btn_Add_Order_FOF
+    {
+      #keys: '[414724.0.87342042]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Description: '璁㈠崟鏂板鍙嶇/鎺堟潈'
+        Label: '璁㈠崟鏂板鍙嶇/鎺堟潈'
+        Taborder: 1
+      ]
+    }
+    Component btn_Add_Material_FOF
+    {
+      #keys: '[414724.0.86151707]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Description: '鍘熸枡鏂板鍙嶇/鎺堟潈'
+        Label: '鍘熸枡鏂板鍙嶇/鎺堟潈'
+        Taborder: 2
+      ]
+    }
+    Component btn_InitialData
+    {
+      #keys: '[414724.0.93657921]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Description: '鍔犺浇鏁版嵁锛堝亣鐨勶紝鍚庣画闇�瑕佸鎺ユ暟鎹級'
+        Label: '鍔犺浇棰勬祴璁㈠崟鏁版嵁'
+        Taborder: 0
+      ]
+    }
+  ]
+  Properties:
+  [
+    Alignment: 'trailing'
+    FixedSize: true
+    MinimumColumns: 20
+    Orientation: 'horizontal'
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel849.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel849.def
new file mode 100644
index 0000000..46d28e9
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel849.def
@@ -0,0 +1,17 @@
+Quintiq file version 2.0
+Component Panel849
+{
+  #keys: '[414724.0.87341748]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    #child: Panel383
+    #child: Panel647
+  ]
+  Properties:
+  [
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel961.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel961.def
new file mode 100644
index 0000000..6145b74
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel961.def
@@ -0,0 +1,25 @@
+Quintiq file version 2.0
+Component Panel961
+{
+  #keys: '[414724.0.93502088]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component Label800
+    {
+      #keys: '[414724.0.93502160]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Taborder: 0
+        Text: '棰勬祴鍒楄〃椤�'
+      ]
+    }
+  ]
+  Properties:
+  [
+    Border: true
+    FixedSize: true
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_liH_Forecast.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_liH_Forecast.def
new file mode 100644
index 0000000..bc95d75
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_liH_Forecast.def
@@ -0,0 +1,41 @@
+Quintiq file version 2.0
+Component liH_Forecast
+{
+  #keys: '[414724.0.106554517]'
+  BaseType: 'WebList'
+  Children:
+  [
+    Component DataExtractor980
+    {
+      #keys: '[414724.0.106554518]'
+      BaseType: 'WebDataExtractor'
+      Properties:
+      [
+        DataType: 'structured[H_Forecast]'
+        Source: 'dh_FOF_H_Forecast'
+        Taborder: 0
+        Transformation: 'Elements'
+      ]
+    }
+    #child: listActionBarPage729
+    Component DataSetLevel204
+    {
+      #keys: '[414724.0.106554523]'
+      BaseType: 'WebDataSetLevel'
+      Children:
+      [
+        #child: listContextMenu367
+      ]
+      Properties:
+      [
+        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderCode","title":"OrderCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKU","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastQty","title":"ForecastQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"NeedTime","title":"NeedTime","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"NeedTime"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Util","title":"Util","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Util"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomName","title":"CustomName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Department","title":"Department","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Department"}}]'
+        ContextMenu: 'listContextMenu367'
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Taborder: 6
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listActionBarPage729.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listActionBarPage729.def
new file mode 100644
index 0000000..7c8d9bb
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listActionBarPage729.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listActionBarPage729
+{
+  #keys: '[414724.0.106554520]'
+  BaseType: 'listActionBarPage'
+  Properties:
+  [
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listActionBarPage963.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listActionBarPage963.def
new file mode 100644
index 0000000..320820a
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listActionBarPage963.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listActionBarPage963
+{
+  #keys: '[414724.0.86151897]'
+  BaseType: 'listActionBarPage'
+  Properties:
+  [
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listContextMenu367.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listContextMenu367.def
new file mode 100644
index 0000000..979e4f8
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listContextMenu367.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listContextMenu367
+{
+  #keys: '[414724.0.106554525]'
+  BaseType: 'listContextMenu'
+  Properties:
+  [
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listContextMenu687.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listContextMenu687.def
new file mode 100644
index 0000000..5f3683c
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_listContextMenu687.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listContextMenu687
+{
+  #keys: '[414724.0.86151902]'
+  BaseType: 'listContextMenu'
+  Properties:
+  [
+    Taborder: 0
+  ]
+}
diff --git "a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_list_ForecastView_FOF\043670.def" "b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_list_ForecastView_FOF\043670.def"
new file mode 100644
index 0000000..4104d43
--- /dev/null
+++ "b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_list_ForecastView_FOF\043670.def"
@@ -0,0 +1,43 @@
+Quintiq file version 2.0
+Component list_ForecastView_FOF
+{
+  #keys: '[414724.0.86151894]'
+  BaseType: 'WebList'
+  Children:
+  [
+    Component de_list_ForecastView_FOF
+    {
+      #keys: '[414724.0.86151895]'
+      BaseType: 'WebDataExtractor'
+      Properties:
+      [
+        DataType: 'structured[SalesDemandBase]'
+        Source: 'dh_FOF_Data'
+        Taborder: 0
+        Transformation: 'Elements.astype(Forecast)'
+      ]
+    }
+    #child: listActionBarPage963
+    Component DataSetLevel191
+    {
+      #keys: '[414724.0.86151900]'
+      BaseType: 'WebDataSetLevel'
+      Children:
+      [
+        #child: listContextMenu687
+      ]
+      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"}}]'
+        ContextMenu: 'listContextMenu687'
+        FixedFilter: 'object.EndDate().DateTime().Date() >= Date::ActualDate().StartOfMonth() and object.EndDate().DateTime().Date() <= Date::ActualDate().StartOfNextMonth().StartOfNextMonth().StartOfNextMonth().StartOfNextMonth()'
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Taborder: 4
+    Visible: false
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_OnClose.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_OnClose.def
new file mode 100644
index 0000000..9800a96
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_OnClose.def
@@ -0,0 +1,21 @@
+Quintiq file version 2.0
+#parent: #root
+Response OnClose () id:Response_FrmOrderForecast_OnClose
+{
+  #keys: '[414724.0.91684618]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebForm_OnClose'
+  QuillAction
+  {
+    Body:
+    [*
+      // 娓呯┖閫夋嫨椤�
+      SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
+      if( not isnull( SelectItem))
+      {
+        SelectItem.Value("");  
+      }
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_OnCreated.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_OnCreated.def
new file mode 100644
index 0000000..4991801
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_OnCreated.def
@@ -0,0 +1,52 @@
+Quintiq file version 2.0
+#parent: #root
+Response OnCreated () id:Response_FrmOrderForecast_OnCreated
+{
+  #keys: '[414724.0.91471552]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebComponent_OnCreated'
+  QuillAction
+  {
+    Body:
+    [*
+      // 鍒濆鍖栨煡璇㈠弬鏁版湀浠�
+      ds_Month_FOF.Date(Date::ActualDate());
+      // 棰勬祴鏁版嵁2姝ゅ鐞嗭紙绛涢��+瀹㈡埛鍚嶇О鎻愬彇锛�
+      if( MacroPlan.H_Forecast(relget ).Size()>0)
+      {
+        MacroPlan.H_Forecast(relget ).Delete( 0,MacroPlan.H_Forecast(relget ).Size()-1);
+      }
+      //AllData:= selectset( MacroPlan, Product_MP.SalesDemand.astype( Forecast ),object,object.EndDate().DateTime().Date() >= Date::ActualDate().StartOfMonth() 
+      //                     and object.EndDate().DateTime().Date() <= Date::ActualDate().StartOfNextMonth().StartOfNextMonth().StartOfNextMonth().StartOfNextMonth()
+      //                     and object.Quantity()>0 );
+      //
+      //CustomName:="";
+      //DepartMent:="";
+      //idx:=0;
+      //traverse( AllData,Elements,Obj,not isnull(Obj))
+      //{
+      //  idx:=Obj.SalesSegmentName().FindString( "_",0);
+      //  if(idx>0)
+      //  {
+      //    DepartMent:=Obj.SalesSegmentName().SubString( 0,idx+1);
+      //    CustomName := Obj.SalesSegmentName().SubString( idx+1, Obj.SalesSegmentName().Length() - (idx+1));
+      //  }
+      //  else
+      //  {
+      //    CustomName :=Obj.SalesSegmentName();
+      //  }
+      //  
+      //   ArrayData:=Obj.SalesSegmentName().SubString( 0,Obj.SalesSegmentName().FindString( "_",0)+1);
+      //   MacroPlan.H_Forecast(relnew,OrderCode := H_FunctionClass::SM_GenerateID( "OF"),
+      //                          SKU := Obj.ProductID(),
+      //                          CustomCode := CustomName,
+      //                         CustomName := CustomName,
+      //                         Util:=Obj.UnitOfMeasureName(),
+      //                         NeedTime:=Obj.EndDate(),
+      //                         ForecastQty:=[Number]Obj.Quantity().Round( 0),
+      //                         Department:=DepartMent);
+      //}
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel383_btn_Query_FOF_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel383_btn_Query_FOF_OnClick.def
new file mode 100644
index 0000000..41a29a8
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel383_btn_Query_FOF_OnClick.def
@@ -0,0 +1,17 @@
+Quintiq file version 2.0
+#parent: Panel383/btn_Query_FOF
+Response OnClick () id:Response_Panel383_btn_Query_FOF_OnClick
+{
+  #keys: '[414724.0.91472695]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  QuillAction
+  {
+    Body:
+    [*
+      MacroPlan.H_Forecast(relnew, CustomName := "灏忕背",CustomCode := "XM001",ForecastQty := 100,Department := "閿�鍞�1閮�",
+                                         NeedTime := Date::ActualDate(),OrderCode := "00010101",SKU := "ANNDDSSSS",Util := "PCS");
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel647_btn_Add_Material_FOF_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel647_btn_Add_Material_FOF_OnClick.def
new file mode 100644
index 0000000..b54e053
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel647_btn_Add_Material_FOF_OnClick.def
@@ -0,0 +1,20 @@
+Quintiq file version 2.0
+#parent: Panel647/btn_Add_Material_FOF
+Response OnClick () id:Response_Panel647_btn_Add_Material_FOF_OnClick
+{
+  #keys: '[414724.0.86152486]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  Precondition:
+  [*
+    return not isnull( MacroPlan);
+  *]
+  QuillAction
+  {
+    Body:
+    [*
+      Application.OpenForm( "FrmMaterial","popout");
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel647_btn_Add_Order_FOF_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel647_btn_Add_Order_FOF_OnClick.def
new file mode 100644
index 0000000..dae89b3
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel647_btn_Add_Order_FOF_OnClick.def
@@ -0,0 +1,28 @@
+Quintiq file version 2.0
+#parent: Panel647/btn_Add_Order_FOF
+Response OnClick () id:Response_Panel647_btn_Add_Order_FOF_OnClick
+{
+  #keys: '[414724.0.86152095]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  Precondition:
+  [*
+    return not isnull( MacroPlan);
+  *]
+  QuillAction
+  {
+    Body:
+    [*
+      SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
+      if(not isnull( SelectItem) and SelectItem.Value().Length()>0)
+      {
+        Application.OpenForm( "FrmAuthorizeAndCountersign","popout");
+      }
+      else
+      {
+        WebMessageBox::Information( "璇烽�夋嫨涓�椤归娴嬪悗鍐嶇偣鍑绘寜閽紒");  
+      }
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel647_btn_InitialData_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel647_btn_InitialData_OnClick.def
new file mode 100644
index 0000000..1804c2e
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel647_btn_InitialData_OnClick.def
@@ -0,0 +1,39 @@
+Quintiq file version 2.0
+#parent: Panel647/btn_InitialData
+Response OnClick () id:Response_Panel647_btn_InitialData_OnClick
+{
+  #keys: '[414724.0.93657952]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  Precondition:
+  [*
+    return not isnull( MacroPlan);
+  *]
+  QuillAction
+  {
+    Body:
+    [*
+      // 娌℃湁鐢ㄧ殑鎸夐挳鍜屽嚱鏁帮紝鍙负浜嗘祴璇曠敓鎴愬亣鏁版嵁銆�
+      StrCustoms:="XM_2023,灏忕背;HW_2023,鍗庝负;OV_2023,VIVO;OP_2023,OPPO;HX_2023,娴蜂俊;YJ_2023,涓�鍔�;HE_2023,娴峰皵;GL_2023,鏍煎姏;";
+      ArrayCustom := StrCustoms.Tokenize( ";"); //8涓鎴�
+      idx :=0;
+      for( i:=0;i<20;i:=i+1)
+      {
+        idx :=Number::Random( 0,7);
+        arrCustomInfo := ArrayCustom.Element( idx).Tokenize( ",");
+        MacroPlan.H_Forecast(relnew, CustomName := arrCustomInfo.Element( 1),CustomCode := arrCustomInfo.Element( 0),ForecastQty := Number::Random( 100,5000),
+                              Department := "閿�鍞�1閮�",NeedTime := Date::ActualDate(),OrderCode := H_FunctionClass::SM_GenerateID( "OF") ,SKU := "SKU-CP-2023-N"+(Number::Random( 1000,9999)).AsQUILL(),Util := "PCS");  
+        
+      }
+      // 鐢熸垚棰勬祴 瀹炴椂鏁版嵁锛屽弽绛炬暟鎹紝鎺堟潈鏁版嵁锛堝弽绛� 鎺堟潈榛樿涓�0锛屽鑷姩鍒涘缓锛岃繖閲屼笉鍐嶆坊鍔狅級
+       traverse(MacroPlan,H_Forecast ,Obj,not isnull(Obj) )
+      {
+        MacroPlan.H_OrderForecastRealQty(relnew,CustomID := Obj.CustomCode(),CustomName := Obj.CustomName(),ForecatsQty := Obj.ForecastQty(),
+                                          ForecatsRealQty := Obj.ForecastQty(),ID := H_FunctionClass::SM_GenerateID( "OF"),Month := Date::ActualDate(),
+                                          OrderCode := Obj.OrderCode(),SKU := Obj.SKU(),Unit := Obj.Util());
+                                          
+      }
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnDoubleClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnDoubleClick.def
new file mode 100644
index 0000000..0fbfea6
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnDoubleClick.def
@@ -0,0 +1,24 @@
+Quintiq file version 2.0
+#parent: liH_Forecast
+Response OnDoubleClick (
+  H_Forecast selection
+) id:Response_liH_Forecast_OnDoubleClick
+{
+  #keys: '[414724.0.111761136]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebList_OnDoubleClick'
+  QuillAction
+  {
+    Body:
+    [*
+      SelectItem :=  select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
+      if( isnull( SelectItem))
+      {
+         MacroPlan.H_MessagePassing(relnew,FKey :="FrmOrderForecast",ItemKey := "ListSelect",Value := "");
+      }
+      SelectItem.Value(selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName());
+      Application.OpenForm( "FrmMaterial","popout");
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnSelectionChanged.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnSelectionChanged.def
new file mode 100644
index 0000000..7f12e18
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnSelectionChanged.def
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: liH_Forecast
+Response OnSelectionChanged (
+  H_Forecast selection
+) id:Response_liH_Forecast_OnSelectionChanged
+{
+  #keys: '[414724.0.111760968]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebList_OnSelectionChanged'
+  QuillAction
+  {
+    Body:
+    [*
+      SelectItem :=  select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
+      if( isnull( SelectItem))
+      {
+         MacroPlan.H_MessagePassing(relnew,FKey :="FrmOrderForecast",ItemKey := "ListSelect",Value := "");
+      }
+      SelectItem.Value(selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName());
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_list_ForecastView_FOF_OnDoubleClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_list_ForecastView_FOF_OnDoubleClick.def
new file mode 100644
index 0000000..3d85f54
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_list_ForecastView_FOF_OnDoubleClick.def
@@ -0,0 +1,30 @@
+Quintiq file version 2.0
+#parent: list_ForecastView_FOF
+Response OnDoubleClick (
+  Forecast selection
+) id:Response_list_ForecastView_FOF_OnDoubleClick
+{
+  #keys: '[414724.0.92081867]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebList_OnDoubleClick'
+  GroupServerCalls: true
+  Precondition:
+  [*
+    return not isnull( MacroPlan);
+  *]
+  QuillAction
+  {
+    Body:
+    [*
+      SelectItem :=  select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
+      if( isnull( SelectItem))
+      {
+         MacroPlan.H_MessagePassing(relnew,FKey :="FrmOrderForecast",ItemKey := "ListSelect",Value := "");
+      }
+      CustomID := "NO";
+      CustonName :="鏈姄鍙栧埌";
+      SelectItem.Value(selection.ProductID()+";"+selection.UnitOfMeasureName()+";"+CustomID+";"+CustonName);
+      Application.OpenForm( "FrmMaterial","popout");
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_list_ForecastView_FOF_OnSelectionChanged.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_list_ForecastView_FOF_OnSelectionChanged.def
new file mode 100644
index 0000000..582090d
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_list_ForecastView_FOF_OnSelectionChanged.def
@@ -0,0 +1,25 @@
+Quintiq file version 2.0
+#parent: list_ForecastView_FOF
+Response OnSelectionChanged (
+  Forecast selection
+) id:Response_list_ForecastView_FOF_OnSelectionChanged
+{
+  #keys: '[414724.0.91684287]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebList_OnSelectionChanged'
+  QuillAction
+  {
+    Body:
+    [*
+      SelectItem :=  select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
+      if( isnull( SelectItem))
+      {
+         MacroPlan.H_MessagePassing(relnew,FKey :="FrmOrderForecast",ItemKey := "ListSelect",Value := "");
+      }
+      CustomID := "NO";
+      CustonName :="鏈姄鍙栧埌";
+      SelectItem.Value(selection.ProductID()+";"+selection.UnitOfMeasureName()+";"+CustomID+";"+CustonName);
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/_ROOT_Component_FrmOrderForecast.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/_ROOT_Component_FrmOrderForecast.def
new file mode 100644
index 0000000..17a5ad7
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/_ROOT_Component_FrmOrderForecast.def
@@ -0,0 +1,132 @@
+Quintiq file version 2.0
+#root
+#parent: MacroPlannerWebApp
+OrphanComponent FrmOrderForecast
+{
+  #keys: '[414724.0.86131780]'
+  BaseType: 'WebForm'
+  Children:
+  [
+    #child: Panel849
+    #child: list_ForecastView_FOF
+    Component dh_FOF_Data
+    {
+      #keys: '[414724.0.86151860]'
+      BaseType: 'WebDataHolder'
+      Databinding: 'structured[SalesDemandBase]*'
+      Children:
+      [
+        Component de_dh_FOF_Data
+        {
+          #keys: '[414724.0.86151875]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'structured[SalesDemandBase]'
+            Source: 'dh_FOF_ChildrenData'
+            Taborder: 0
+            Transformation: 'Elements'
+          ]
+        }
+        Component DataExtractor819
+        {
+          #keys: '[414724.0.107645127]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'MacroPlan'
+            Source: 'MacroPlan'
+            Taborder: 1
+            Transformation: 'SalesDemand'
+          ]
+        }
+      ]
+      Properties:
+      [
+        Taborder: 3
+      ]
+    }
+    #child: Panel961
+    Component dh_FOF_ChildrenData
+    {
+      #keys: '[414724.0.106541535]'
+      BaseType: 'WebDataHolder'
+      Databinding: 'structured[SalesDemandBase]*'
+      Children:
+      [
+        Component de_FOF_ChildrenData_0
+        {
+          #keys: '[414724.0.106541577]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'structured[Product_MP]'
+            Source: 'ApplicationMacroPlanner.DataHolderProduct'
+            Taborder: 0
+            Transformation: 'Elements.SalesDemand'
+          ]
+        }
+        Component de_FOF_ChildrenData_1
+        {
+          #keys: '[414724.0.106541594]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'structured[StockingPoint_MP]'
+            Source: 'ApplicationMacroPlanner.DataHolderStockingPoint'
+            Taborder: 1
+            Transformation: 'Elements.SalesDemand'
+          ]
+        }
+        Component de_FOF_ChildrenData_2
+        {
+          #keys: '[414724.0.106541611]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'structured[SalesSegment_MP]'
+            Source: 'ApplicationMacroPlanner.DataHolderSalesSegment'
+            Taborder: 2
+            Transformation: 'Elements.SalesDemand'
+          ]
+        }
+      ]
+      Properties:
+      [
+        Taborder: 2
+      ]
+    }
+    Component dh_FOF_H_Forecast
+    {
+      #keys: '[414724.0.109053093]'
+      BaseType: 'WebDataHolder'
+      Databinding: 'structured[H_Forecast]*'
+      Children:
+      [
+        Component de_dh_FOF_H_Foecast
+        {
+          #keys: '[414724.0.106582442]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'MacroPlan'
+            Source: 'MacroPlan'
+            Taborder: 0
+            Transformation: 'H_Forecast'
+          ]
+        }
+      ]
+      Properties:
+      [
+        Taborder: 5
+      ]
+    }
+    #child: liH_Forecast
+  ]
+  Properties:
+  [
+    Description: '璁㈠崟棰勬祴椤甸潰'
+    Image: 'GOLDFISH'
+    Title: '棰勬祴鍒楄〃椤�'
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_List782.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_List782.def
new file mode 100644
index 0000000..8a9e630
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_List782.def
@@ -0,0 +1,41 @@
+Quintiq file version 2.0
+Component List782
+{
+  #keys: '[414724.0.51431908]'
+  BaseType: 'WebList'
+  Children:
+  [
+    Component DataExtractor569
+    {
+      #keys: '[414724.0.51431909]'
+      BaseType: 'WebDataExtractor'
+      Properties:
+      [
+        DataType: 'structured[H_OrderRecord]'
+        Source: 'DataHolder570'
+        Taborder: 0
+        Transformation: 'Elements'
+      ]
+    }
+    #child: listActionBarPage195
+    Component DataSetLevel473
+    {
+      #keys: '[414724.0.51431914]'
+      BaseType: 'WebDataSetLevel'
+      Children:
+      [
+        #child: listContextMenu526
+      ]
+      Properties:
+      [
+        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderCode","title":"OrderCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKU","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderQty","title":"OrderQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ReverseQty","title":"ReverseQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ReverseQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"AuthorizeQty","title":"AuthorizeQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"AuthorizeQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastQty","title":"ForecastQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastHitQty","title":"ForecastHitQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastHitQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastNoHitQty","title":"ForecastNoHitQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastNoHitQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerName","title":"CustomerName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerCode","title":"CustomerCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerCode"}}]'
+        ContextMenu: 'listContextMenu526'
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Taborder: 3
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_Panel445.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_Panel445.def
new file mode 100644
index 0000000..efc9c10
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_Panel445.def
@@ -0,0 +1,49 @@
+Quintiq file version 2.0
+Component Panel445
+{
+  #keys: '[414724.0.51402312]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component ds_Month_FOR
+    {
+      #keys: '[414724.0.50290636]'
+      BaseType: 'WebDateSelector'
+      Properties:
+      [
+        DateFormat: 'YMM'
+        Label: '鏈堜唤'
+        Taborder: 0
+      ]
+    }
+    Component txt_QueryContent_FOR
+    {
+      #keys: '[414724.0.50221115]'
+      BaseType: 'WebEditField'
+      Properties:
+      [
+        NumberOfColumns: 20
+        PlaceHolder: '妯$硦鎼滅储'
+        Taborder: 1
+      ]
+    }
+    Component btn_Query_FOR
+    {
+      #keys: '[414724.0.51431855]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Image: 'VIEW'
+        Label: '鎼滅储'
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Alignment: 'trailing'
+    FixedSize: true
+    Orientation: 'horizontal'
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_Panel576.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_Panel576.def
new file mode 100644
index 0000000..5261db6
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_Panel576.def
@@ -0,0 +1,25 @@
+Quintiq file version 2.0
+Component Panel576
+{
+  #keys: '[414724.0.50290602]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component Label531
+    {
+      #keys: '[414724.0.50290614]'
+      BaseType: 'WebLabel'
+      Properties:
+      [
+        Taborder: 0
+        Text: '璁㈠崟鍐插噺杩囩▼鍙婅鍗曟爣绛惧睍绀�'
+      ]
+    }
+  ]
+  Properties:
+  [
+    Border: true
+    FixedSize: true
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_listActionBarPage195.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_listActionBarPage195.def
new file mode 100644
index 0000000..e66c687
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_listActionBarPage195.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listActionBarPage195
+{
+  #keys: '[414724.0.51431911]'
+  BaseType: 'listActionBarPage'
+  Properties:
+  [
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_listContextMenu526.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_listContextMenu526.def
new file mode 100644
index 0000000..67992d5
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Component_listContextMenu526.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listContextMenu526
+{
+  #keys: '[414724.0.51431916]'
+  BaseType: 'listContextMenu'
+  Properties:
+  [
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Response_OnCreated.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Response_OnCreated.def
new file mode 100644
index 0000000..b632d2a
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Response_OnCreated.def
@@ -0,0 +1,16 @@
+Quintiq file version 2.0
+#parent: #root
+Response OnCreated () id:Response_FrmOrderResult_OnCreated
+{
+  #keys: '[414724.0.51432652]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebComponent_OnCreated'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      ds_Month_FOR.Date(Date::Today());
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Response_Panel445_btn_Query_FOR_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Response_Panel445_btn_Query_FOR_OnClick.def
new file mode 100644
index 0000000..ccc66fa
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/Response_Panel445_btn_Query_FOR_OnClick.def
@@ -0,0 +1,22 @@
+Quintiq file version 2.0
+#parent: Panel445/btn_Query_FOR
+Response OnClick () id:Response_Panel445_btn_Query_FOR_OnClick
+{
+  #keys: '[414724.0.103696532]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      DataExtractor568.FixedFilter( "( object.ID().LikeUserLocale( " + txt_QueryContent_FOR.Text().AsQUILL() + " )" 
+                                                   + " or " + "object.SKU().LikeUserLocale( " + txt_QueryContent_FOR.Text().AsQUILL() + " )"  
+                                                   + " or " + "object.CustomerCode().LikeUserLocale( " + txt_QueryContent_FOR.Text().AsQUILL() + " )" 
+                                                   + " or " + "object.CustomerName().LikeUserLocale( " + txt_QueryContent_FOR.Text().AsQUILL() + " ) )" 
+                                                   + "and" + "( object.OrderDateTime() < " + ds_Month_FOR.Date().StartOfNextMonth().AsQUILL() + 
+                                                   " and " + "object.OrderDateTime() >= " + ds_Month_FOR.Date().StartOfMonth().AsQUILL() + " )"
+                                                   );
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/_ROOT_Component_FrmOrderResult.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/_ROOT_Component_FrmOrderResult.def
new file mode 100644
index 0000000..8dfdddb
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/_ROOT_Component_FrmOrderResult.def
@@ -0,0 +1,44 @@
+Quintiq file version 2.0
+#root
+#parent: MacroPlannerWebApp
+OrphanComponent FrmOrderResult
+{
+  #keys: '[414724.0.51340846]'
+  BaseType: 'WebForm'
+  Children:
+  [
+    #child: Panel576
+    #child: Panel445
+    #child: List782
+    Component DataHolder570
+    {
+      #keys: '[414724.0.50261398]'
+      BaseType: 'WebDataHolder'
+      Databinding: 'structured[H_OrderRecord]*'
+      Children:
+      [
+        Component DataExtractor568
+        {
+          #keys: '[414724.0.50291048]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'MacroPlan'
+            Source: 'MacroPlan'
+            Taborder: 0
+            Transformation: 'H_OrderRecord'
+          ]
+        }
+      ]
+      Properties:
+      [
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Description: '璁㈠崟鍐插噺杩囩▼鍙婅鍗曟爣绛惧睍绀�'
+    Title: '璁㈠崟鍐插噺杩囩▼鍙婅鍗曟爣绛惧睍绀�'
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/_ROOT_Component_FrmRAShow.def b/_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/_ROOT_Component_FrmRAShow.def
new file mode 100644
index 0000000..47bbf7d
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/_ROOT_Component_FrmRAShow.def
@@ -0,0 +1,12 @@
+Quintiq file version 2.0
+#root
+#parent: MacroPlannerWebApp
+OrphanComponent FrmRAShow
+{
+  #keys: '[414724.0.87341476]'
+  BaseType: 'WebForm'
+  Properties:
+  [
+    Description: '鍘熸枡鍙嶇鍜屾巿鏉冨睍绀�'
+  ]
+}
diff --git "a/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_ListData_FT\043710.def" "b/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_ListData_FT\043710.def"
new file mode 100644
index 0000000..a540a2e
--- /dev/null
+++ "b/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_ListData_FT\043710.def"
@@ -0,0 +1,41 @@
+Quintiq file version 2.0
+Component ListData_FT
+{
+  #keys: '[414724.0.58710447]'
+  BaseType: 'WebList'
+  Children:
+  [
+    Component DataExtractor206
+    {
+      #keys: '[414724.0.58710448]'
+      BaseType: 'WebDataExtractor'
+      Properties:
+      [
+        DataType: 'structured[Product_MP]'
+        Source: 'DataHolder623'
+        Taborder: 0
+        Transformation: 'Elements'
+      ]
+    }
+    #child: listActionBarPage748
+    Component DataSetLevel675
+    {
+      #keys: '[414724.0.58710453]'
+      BaseType: 'WebDataSetLevel'
+      Children:
+      [
+        #child: listContextMenu623
+      ]
+      Properties:
+      [
+        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CanBeExported","title":"CanBeExported","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"CanBeExported"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"DisplayIndex","title":"DisplayIndex","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"DisplayIndex"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"HasMaturation","title":"HasMaturation","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"HasMaturation"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"HasConversionFactor","title":"HasConversionFactor","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"HasConversionFactor"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ExpiredInPeriodShelfLifeSupplyQuantityInDefaultUOM","title":"ExpiredInPeriodShelfLifeSupplyQuantityInDefaultUOM","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ExpiredInPeriodShelfLifeSupplyQuantityInDefaultUOM"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"HasParent","title":"HasParent","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"HasParent"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"HasPlanning","title":"HasPlanning","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"HasPlanning"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"HasProductLevel","title":"HasProductLevel","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"HasProductLevel"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"HasRecipe","title":"HasRecipe","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"HasRecipe"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"HasShelfLife","title":"HasShelfLife","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"HasShelfLife"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"HasShelfLifeOrMaturation","title":"HasShelfLifeOrMaturation","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"HasShelfLifeOrMaturation"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"HasValidProductLevel","title":"HasValidProductLevel","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"HasValidProductLevel"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IconName","title":"IconName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IconName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ID","title":"ID","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ImgHasSalesDemand","title":"ImgHasSalesDemand","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ImgHasSalesDemand"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ImgIsActive","title":"ImgIsActive","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ImgIsActive"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IndentationSymbol","title":"IndentationSymbol","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"IndentationSymbol"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsByProduct","title":"IsByProduct","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IsByProduct"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsDerivedByProduct","title":"IsDerivedByProduct","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"IsDerivedByProduct"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsDerivedExcludeFromFulfillmentKPI","title":"IsDerivedExcludeFromFulfillmentKPI","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"IsDerivedExcludeFromFulfillmentKPI"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsExcludedFromFulfillmentKPI","title":"IsExcludedFromFulfillmentKPI","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IsExcludedFromFulfillmentKPI"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsExcludedFromOptimization","title":"IsExcludedFromOptimization","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IsExcludedFromOptimization"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsImbalance","title":"IsImbalance","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"IsImbalance"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsIncludedInBalancing","title":"IsIncludedInBalancing","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"IsIncludedInBalancing"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsLeaf","title":"IsLeaf","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"IsLeaf"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsManuallyConfigured","title":"IsManuallyConfigured","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IsManuallyConfigured"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsPlannedAfterOptimization","title":"IsPlannedAfterOptimization","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IsPlannedAfterOptimization"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsProductCategory","title":"IsProductCategory","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"IsProductCategory"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsSoftDeleted","title":"IsSoftDeleted","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IsSoftDeleted"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsSystem","title":"IsSystem","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"IsSystem"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsUsed","title":"IsUsed","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"IsUsed"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsUsedInProcess","title":"IsUsedInProcess","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"IsUsedInProcess"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"IsValidData","title":"IsValidData","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"IsValidData"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"KPIBalanceViolationMeta","title":"KPIBalanceViolationMeta","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"KPIBalanceViolationMeta"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"KPIMaximumInventory","title":"KPIMaximumInventory","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"KPIMaximumInventory"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"KPIMinimumInventory","title":"KPIMinimumInventory","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"KPIMinimumInventory"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"KPITargetInventory","title":"KPITargetInventory","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"KPITargetInventory"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Level","title":"Level","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"Level"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"MaturationDays","title":"MaturationDays","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"MaturationDays"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"MinSalesDemandQuantity","title":"MinSalesDemandQuantity","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"MinSalesDemandQuantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"MaxSalesDemandQuantity","title":"MaxSalesDemandQuantity","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"MaxSalesDemandQuantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Name","title":"Name","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Name"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Notes","title":"Notes","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Notes"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"NumberOfProductInStockingPoint","title":"NumberOfProductInStockingPoint","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"NumberOfProductInStockingPoint"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"NumberOfShelfLifeViolations","title":"NumberOfShelfLifeViolations","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"NumberOfShelfLifeViolations"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ParentID","title":"ParentID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ParentID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SanityCheckDataMostSevere","title":"SanityCheckDataMostSevere","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"SanityCheckDataMostSevere"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SanityCheckDataMostSevereCount","title":"SanityCheckDataMostSevereCount","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"SanityCheckDataMostSevereCount"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SanityCheckDataTotalViolationCount","title":"SanityCheckDataTotalViolationCount","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"SanityCheckDataTotalViolationCount"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ShelfLife","title":"ShelfLife","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ShelfLife"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"TotalInventoryLevels","title":"TotalInventoryLevels","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"TotalInventoryLevels"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"TotalInventorySupply","title":"TotalInventorySupply","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"TotalInventorySupply"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"TotalSalesDemand","title":"TotalSalesDemand","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"TotalSalesDemand"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Type","title":"Type","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"Type"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"UnitOfMeasureName","title":"UnitOfMeasureName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"UnitOfMeasureName"}}]'
+        ContextMenu: 'listContextMenu623'
+        Taborder: 2
+      ]
+    }
+  ]
+  Properties:
+  [
+    Taborder: 2
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_Panel675.def b/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_Panel675.def
new file mode 100644
index 0000000..a7dc33b
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_Panel675.def
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+Component Panel675
+{
+  #keys: '[414724.0.58893964]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    Component ButtonClear
+    {
+      #keys: '[414724.0.58893989]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Label: 'ClearDtaa'
+        Taborder: 0
+      ]
+    }
+  ]
+  Properties:
+  [
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listActionBarPage748.def b/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listActionBarPage748.def
new file mode 100644
index 0000000..20c42d7
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listActionBarPage748.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listActionBarPage748
+{
+  #keys: '[414724.0.58710450]'
+  BaseType: 'listActionBarPage'
+  Properties:
+  [
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listContextMenu623.def b/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listContextMenu623.def
new file mode 100644
index 0000000..5042401
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listContextMenu623.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component listContextMenu623
+{
+  #keys: '[414724.0.58710455]'
+  BaseType: 'listContextMenu'
+  Properties:
+  [
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Response_Panel675_ButtonClear_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Response_Panel675_ButtonClear_OnClick.def
new file mode 100644
index 0000000..8ea5738
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Response_Panel675_ButtonClear_OnClick.def
@@ -0,0 +1,36 @@
+Quintiq file version 2.0
+#parent: Panel675/ButtonClear
+Response OnClick () id:Response_Panel675_ButtonClear_OnClick
+{
+  #keys: '[414724.0.58894009]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  GroupServerCalls: true
+  Precondition:
+  [*
+    return not isnull( MacroPlan);
+  *]
+  QuillAction
+  {
+    Body:
+    [*
+      try{
+        H_FunctionClass::UpdateAuthorizeRealQty( MacroPlan);
+        /*
+        ExecuteCount :=0;
+        while(not isnull(MacroPlan.H_ReverseRealQty(relget ).First())  and ExecuteCount<20)
+        {
+          MacroPlan.H_ErrorLogs(relnew,EClassName := "1",EDateTime := DateTime::ActualGMTTime(),EFunctionName := ExecuteCount.AsQUILL());
+          ExecuteCount:=ExecuteCount+1;
+          MacroPlan.H_ReverseRealQty(relget ).First().Delete();
+        }
+        */
+      }
+      onerror{
+        MacroPlan.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "UpdateMaterialItems",
+                             DeveloperInformation :=  e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(),
+                             GeneralInformation := e.GeneralInformation());
+      }
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/_ROOT_Component_FrmTEST.def b/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/_ROOT_Component_FrmTEST.def
new file mode 100644
index 0000000..77d883c
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmTEST/_ROOT_Component_FrmTEST.def
@@ -0,0 +1,42 @@
+Quintiq file version 2.0
+#root
+#parent: MacroPlannerWebApp
+OrphanComponent FrmTEST
+{
+  #keys: '[414724.0.57640752]'
+  BaseType: 'WebForm'
+  Children:
+  [
+    #child: ListData_FT
+    Component DataHolder623
+    {
+      #keys: '[414724.0.57601078]'
+      BaseType: 'WebDataHolder'
+      Databinding: 'structured[Product_MP]*'
+      Children:
+      [
+        Component DataExtractor391
+        {
+          #keys: '[414724.0.58771962]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'MacroPlan'
+            Source: 'MacroPlan'
+            Taborder: 0
+            Transformation: 'Product_MP'
+          ]
+        }
+      ]
+      Properties:
+      [
+        Taborder: 1
+      ]
+    }
+    #child: Panel675
+  ]
+  Properties:
+  [
+    Description: '娴嬭瘯绐椾綋锛屾煡鐪嬫暟鎹娇鐢�'
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_SWF_DialogCeateNextStepDefinitionDependency/Component_pnlContent.def b/_Main/UI/MacroPlannerWebApp/Component_SWF_DialogCeateNextStepDefinitionDependency/Component_pnlContent.def
new file mode 100644
index 0000000..2c4828b
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_SWF_DialogCeateNextStepDefinitionDependency/Component_pnlContent.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component pnlContent #extension
+{
+  Children:
+  [
+    Component LabelCurrentStep #extension
+    {
+    }
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_SWF_DialogCeateNextStepDefinitionDependency/_ROOT_Component_SWF_DialogCeateNextStepDefinitionDependency.def b/_Main/UI/MacroPlannerWebApp/Component_SWF_DialogCeateNextStepDefinitionDependency/_ROOT_Component_SWF_DialogCeateNextStepDefinitionDependency.def
new file mode 100644
index 0000000..78fcf7f
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_SWF_DialogCeateNextStepDefinitionDependency/_ROOT_Component_SWF_DialogCeateNextStepDefinitionDependency.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+#root
+#parent: SOPWorkflowWeb
+OrphanComponent SWF_DialogCeateNextStepDefinitionDependency #extension
+{
+  Children:
+  [
+    #child: pnlContent
+  ]
+}

--
Gitblit v1.9.3