hongji.li
2023-10-30 955a1efd53d69b029f370140afba72bf6df992a7
Merge branch 'dev' of http://47.101.211.7:10101/r/TIANMA_JITUAN into dev_lhj
已添加156个文件
已修改14个文件
3424 ■■■■■ 文件已修改
_Main/BL/Relations/Relation_GlobalParameters_GlobalOTDTable_GlobalOTDTable_GlobalParameters.qbl 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Relations/Relation_S_DT_CustomOrder_Child_S_DT_CustomOrder_Parent.qbl 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Relations/Relation_S_DT_CustomOrder_MacroPlan_MacroPlan_S_DT_CustomOrder.qbl 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Relations/Relation_S_DT_OrderSpliteRow_MacroPlan_MacroPlan_S_DT_OrderSpliteRow.qbl 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Relations/Relation_S_DT_OrderSpliteRow_S_DT_CustomOrder_S_DT_CustomOrder_S_DT_OrderSpl.qbl 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Relations/Relation_S_DT_SpliteStruct_MacroPlan_MacroPlan_S_DT_SpliteStruct.qbl 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Relations/Relation_S_FunctionClass_MacroPlan_MacroPlan_S_FunctionClass.qbl 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_GlobalDTOTable/Method_SynchronizeDataToMacroPlan#127.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_GlobalParameters/Attribute_Address.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_GlobalParameters/Attribute_AttributeName.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_GlobalParameters/Attribute_AttributeValue.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_GlobalParameters/Attribute_Port.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_GlobalParameters/Attribute_PostRequestBody.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_GlobalParameters/StaticMethod_TestForApiRequest.qbl 172 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_GlobalParameters/_ROOT_Type_GlobalParameters.qbl 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_Global_MAPISPIPCategory/Attribute_Critical.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_Global_MAPISPIPCategory/Function_CalcCritical.qbl 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_Global_MappingCurrencyRate_MP/StaticMethod_CreateByAPI.qbl 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_Global_MappingCurrency_MP/StaticMethod_CreateByAPI.qbl 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_Global_MappingLane/StaticMethod_CreateByAPI.qbl 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_Global_MappingLaneLeg/StaticMethod_CreateByAPI.qbl 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_Global_MappingProduct_MP/Attribute_Critical.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_Global_MappingProduct_MP/Attribute_KeyProduct.qbl 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_Global_MappingProduct_MP/Function_CalcCritical.qbl 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_Global_MappingStockingPoint_MP/StaticMethod_CreateByAPI.qbl 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_MacroPlan/Method_DoASyncMappingActualPISPIPData.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_MacroPlan/Method_DoASyncMappingOperationBOMDataRouting.qbl 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_MacroPlan/StaticMethod_DoASync#253.qbl 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_BusinessType.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_CurrencyID.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_CustomerID.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_CustomerName.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_CustomerPolicy.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_DefaultUOMConversionFactor#413.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_DemandUncertaintyPercentage.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_DerivedPriorityName.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_EndDate.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_ExpectedQuantity.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_FulfilledQuantity.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_HasPostponedSalesDemand.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_HasValidConversionFactor.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_ID.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_ID_SpliteStruct.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsAvailable.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsEligibleForNetting.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsExcludedFromFulfillmentKPI.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsExcludedFromFulfillmentKPIUser.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsFirmed.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsLeaf.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsLocked.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsManuallyConfigured.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsPostponed.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsSoftDeleted.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsValidData.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_LastModify.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_LastModifyTime.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_OrderID.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_OrderLineID.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_OrderTag.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_OrderTime.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_OrderType.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_OutsideOfPlanningHorizonQuantity.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_PISPConversionFactor.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_ParentID.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_Price.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_PriceUoM.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_PriorityName.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_ProductGrade.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_ProductID.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_Quantity.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_QuantityInDefaultUoM.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_QuantityPerDay.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_SalesDemandConversionFactor.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_SalesSegmentName.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_SanityCheckDataMostSevere.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_SanityCheckDataMostSevereCount.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_SanityCheckDataTotalViolationCount.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_SegmentPriority.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_SheetProfitability.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_SplitCount.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_SpliteReason.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_SpliteRenmain.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_StartDate.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_Status_Splite.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_StockingPointID.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_UnitOfMeasureName.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/Attribute_Variance.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/DeclarativeTypeIndexRelation_CalcChild.qbl 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_BusinessType.qbl 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_CustomerPolicy.qbl 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_LastModify.qbl 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_OrderTag.qbl 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_OrderType.qbl 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_ProductGrade.qbl 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_SegmentPriority.qbl 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_SheetProfitability.qbl 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/TypeIndex_PrimaryKey_ID.qbl 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_CustomOrder/_ROOT_Type_S_DT_CustomOrder.qbl 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_OrderSpliteRow/Attribute_NewAttribute.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_OrderSpliteRow/_ROOT_Type_S_DT_OrderSpliteRow.qbl 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_SpliteStruct/Attribute_ForecastDate.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_SpliteStruct/Attribute_ID.qbl 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_SpliteStruct/Attribute_ID_S_DT_CustomOrder.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_SpliteStruct/Attribute_OrderID.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_SpliteStruct/Attribute_Qty.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_SpliteStruct/Attribute_SpliteReason.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_SpliteStruct/Attribute_Status.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_SpliteStruct/DefaultValue_Status.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_DT_SpliteStruct/_ROOT_Type_S_DT_SpliteStruct.qbl 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_FunctionClass/StaticMethod_SM_OrderToSpliteOrder.qbl 207 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_S_FunctionClass/_ROOT_Type_S_FunctionClass.qbl 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Component_pnlActions.def 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Component_pnlContent.def 83 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Method_ClickBtnOk.def 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Method_Edit.def 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Method_New.def 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Response_pnlActions_btnCancel_OnClick.def 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Response_pnlActions_btnOk_OnClick.def 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Response_pnlContent_IsApi_OnChanged.def 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/_ROOT_Component_DialogGlobalParameters.def 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_Form367/Response_ListBusinessType_MenuNew_OnClick.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormCustomerOrders/Component_ListSDIP.def 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormCustomerOrders/Component_PanelSDIP.def 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormCustomerOrders/Component_PanelSalesDemands.def 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormCustomerOrders/Component_listContextMenuSD.def 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormCustomerOrders/Response_TIANMA_JITUAN_ListSalesDemands_MenuSpliteOrder_OnClick.def 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Component_ListGlobalParameters.def 59 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Component_PanelGlobalParameters.def 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Component_listActionBarPageGlobalParameters.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Component_listContextMenuGlobalParameters.def 57 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Response_ListGlobalParameters_MenuDelete_OnClick.def 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Response_ListGlobalParameters_MenuEdit_OnClick.def 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Response_ListGlobalParameters_MenuNew_OnClick.def 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Response_listContextMenuGlobalParameters_MenuInitial_OnClick.def 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/_ROOT_Component_FormGlobalParameters.def 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_Panel700.def 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_listActionBarPage229#1.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_listContextMenu950#1.def 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_list_SpliteDetails#136.def 61 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_pl_OperateBtns_FCOS.def 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_pl_function_FCOS.def 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_pl_spliteDetails.def 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_pl_splite_info.def 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Response_Panel700_btn_Cancel_FCOS_OnClick.def 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Response_Panel700_btn_OK_FCOS_OnClick.def 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Response_dh_Paramer_FCOS_OnDataChanged.def 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Response_dh_Paramer_SCustomOrder_FCOS_OnDataChanged.def 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Response_list_SpliteDetails_136_m_delete_list_SD_OnClick.def 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Response_pl_function_FCOS_btn_add_FCOS_OnClick.def 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Response_pl_splite_info_btn_splite_add_OnClick.def 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/_ROOT_Component_FrmCustomOrderSpliteRow.def 102 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_Panel651.def 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_Panel713.def 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_lisplitedetails#450.def 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_listActionBarPage243#1.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_listActionBarPage978#1.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_listContextMenu199#1.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_listContextMenu655#1.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_listOrders#635.def 54 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_pl_DataView.def 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_pl_Function_FCOV.def 114 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Response_Panel651_btn_delete_FCOV_OnClick.def 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Response_listOrders_635_OnSelectionChanged.def 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Response_pl_Function_FCOV_btn_deleteOrder_FCOV_OnClick.def 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Response_pl_Function_FCOV_btn_huanyuan_FCOV_OnClick.def 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Response_pl_Function_FCOV_btn_sendERP_FCOV_OnClick.def 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Response_pl_Function_FCOV_btn_splitRow_FCOV_OnClick.def 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/_ROOT_Component_FrmCustomOrderView.def 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Views/全局参数.vw 351 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/_ROOT_Project_MacroPlannerWebApp.qp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Relations/Relation_GlobalParameters_GlobalOTDTable_GlobalOTDTable_GlobalParameters.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,23 @@
Quintiq file version 2.0
#parent: #root
Relation GlobalParameters_GlobalOTDTable_GlobalOTDTable_GlobalParameters
{
  #keys: '1[412960.0.369930029]'
  DefaultRelationStrategy
  {
  }
  RelationSide.LeftSide GlobalOTDTable
  {
    #keys: '3[412960.0.369930031][412960.0.369930030][412960.0.369930032]'
    Cardinality: '0to1'
    ObjectDefinition: GlobalParameters
    OwningSide: 'Reference'
  }
  RelationSide.RightSide GlobalParameters
  {
    #keys: '3[412960.0.369930034][412960.0.369930033][412960.0.369930035]'
    Cardinality: '1toN'
    ObjectDefinition: GlobalOTDTable
    OwningSide: 'Owned'
  }
}
_Main/BL/Relations/Relation_S_DT_CustomOrder_Child_S_DT_CustomOrder_Parent.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,23 @@
Quintiq file version 2.0
#parent: #root
Relation S_DT_CustomOrder_Child_S_DT_CustomOrder_Parent
{
  #keys: '1[414724.0.301487674]'
  DefaultRelationStrategy
  {
  }
  RelationSide.LeftSide Child
  {
    #keys: '3[414724.0.301487676][414724.0.301487675][414724.0.301487677]'
    Cardinality: '0to1'
    ObjectDefinition: S_DT_CustomOrder
    OwningSide: 'Reference'
  }
  RelationSide.RightSide Parent
  {
    #keys: '3[414724.0.301487679][414724.0.301487678][414724.0.301487680]'
    Cardinality: '1toN'
    ObjectDefinition: S_DT_CustomOrder
    OwningSide: 'Reference'
  }
}
_Main/BL/Relations/Relation_S_DT_CustomOrder_MacroPlan_MacroPlan_S_DT_CustomOrder.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,23 @@
Quintiq file version 2.0
#parent: #root
Relation S_DT_CustomOrder_MacroPlan_MacroPlan_S_DT_CustomOrder
{
  #keys: '1[414724.0.292616032]'
  DefaultRelationStrategy
  {
  }
  RelationSide.LeftSide MacroPlan
  {
    #keys: '3[414724.0.292616034][414724.0.292616033][414724.0.292616035]'
    Cardinality: '0to1'
    ObjectDefinition: S_DT_CustomOrder
    OwningSide: 'Reference'
  }
  RelationSide.RightSide S_DT_CustomOrder
  {
    #keys: '3[414724.0.292616037][414724.0.292616036][414724.0.292616038]'
    Cardinality: '1toN'
    ObjectDefinition: MacroPlan
    OwningSide: 'Owned'
  }
}
_Main/BL/Relations/Relation_S_DT_OrderSpliteRow_MacroPlan_MacroPlan_S_DT_OrderSpliteRow.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,23 @@
Quintiq file version 2.0
#parent: #root
Relation S_DT_OrderSpliteRow_MacroPlan_MacroPlan_S_DT_OrderSpliteRow
{
  #keys: '1[414724.0.289871273]'
  DefaultRelationStrategy
  {
  }
  RelationSide.LeftSide MacroPlan
  {
    #keys: '3[414724.0.289871275][414724.0.289871274][414724.0.289871276]'
    Cardinality: '0to1'
    ObjectDefinition: S_DT_OrderSpliteRow
    OwningSide: 'Reference'
  }
  RelationSide.RightSide S_DT_OrderSpliteRow
  {
    #keys: '3[414724.0.289871278][414724.0.289871277][414724.0.289871279]'
    Cardinality: '1toN'
    ObjectDefinition: MacroPlan
    OwningSide: 'Owned'
  }
}
_Main/BL/Relations/Relation_S_DT_OrderSpliteRow_S_DT_CustomOrder_S_DT_CustomOrder_S_DT_OrderSpl.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,23 @@
Quintiq file version 2.0
#parent: #root
Relation S_DT_OrderSpliteRow_S_DT_CustomOrder_S_DT_CustomOrder_S_DT_OrderSpliteRow
{
  #keys: '1[414724.0.292600485]'
  DefaultRelationStrategy
  {
  }
  RelationSide.LeftSide S_DT_CustomOrder
  {
    #keys: '3[414724.0.292600487][414724.0.292600486][414724.0.292600488]'
    Cardinality: '0to1'
    ObjectDefinition: S_DT_OrderSpliteRow
    OwningSide: 'Reference'
  }
  RelationSide.RightSide S_DT_OrderSpliteRow
  {
    #keys: '3[414724.0.292600490][414724.0.292600489][414724.0.292600491]'
    Cardinality: '1toN'
    ObjectDefinition: S_DT_CustomOrder
    OwningSide: 'Reference'
  }
}
_Main/BL/Relations/Relation_S_DT_SpliteStruct_MacroPlan_MacroPlan_S_DT_SpliteStruct.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,23 @@
Quintiq file version 2.0
#parent: #root
Relation S_DT_SpliteStruct_MacroPlan_MacroPlan_S_DT_SpliteStruct
{
  #keys: '1[414724.0.291485612]'
  DefaultRelationStrategy
  {
  }
  RelationSide.LeftSide MacroPlan
  {
    #keys: '3[414724.0.291485614][414724.0.291485613][414724.0.291485615]'
    Cardinality: '0to1'
    ObjectDefinition: S_DT_SpliteStruct
    OwningSide: 'Reference'
  }
  RelationSide.RightSide S_DT_SpliteStruct
  {
    #keys: '3[414724.0.291485617][414724.0.291485616][414724.0.291485618]'
    Cardinality: '1toN'
    ObjectDefinition: MacroPlan
    OwningSide: 'Owned'
  }
}
_Main/BL/Relations/Relation_S_FunctionClass_MacroPlan_MacroPlan_S_FunctionClass.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,23 @@
Quintiq file version 2.0
#parent: #root
Relation S_FunctionClass_MacroPlan_MacroPlan_S_FunctionClass
{
  #keys: '1[414724.0.288796777]'
  DefaultRelationStrategy
  {
  }
  RelationSide.LeftSide MacroPlan
  {
    #keys: '3[414724.0.288796779][414724.0.288796778][414724.0.288796780]'
    Cardinality: '0to1'
    ObjectDefinition: S_FunctionClass
    OwningSide: 'Reference'
  }
  RelationSide.RightSide S_FunctionClass
  {
    #keys: '3[414724.0.288796782][414724.0.288796781][414724.0.288796783]'
    Cardinality: '1toN'
    ObjectDefinition: MacroPlan
    OwningSide: 'Owned'
  }
}
_Main/BL/Type_GlobalDTOTable/Method_SynchronizeDataToMacroPlan#127.qbl
@@ -101,14 +101,6 @@
      Global_MappingOperationCost::SynchronizeMacroPlanData( this, macroPlan, executionUser, businessTypes, organcodelist );
    }
    
    //if ( isDOI_DSI ) {
    //  Global_MappingDOI_DSI::SynchronizeInterfaceData( this, executionUser, "GlobalOTDTable_DOI_DSI" );
    //}
    //
    //if ( isCustomerGrade ) {
    //  Global_MappingCustomerGrade::SynchronizeInterfaceData( this, executionUser, "GlobalOTDTable_CustomerGrade" );
    //}
    if ( isStockingPoint_MP ) {
      Global_MappingStockingPoint_MP::SynchronizeMacroPlanData( this, macroPlan, executionUser );
    }
_Main/BL/Type_GlobalParameters/Attribute_Address.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute Address
{
  #keys: '3[412960.0.369930086][412960.0.369930085][412960.0.369930087]'
  Description: 'Api使用的地址'
  ValueType: String
}
_Main/BL/Type_GlobalParameters/Attribute_AttributeName.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute AttributeName
{
  #keys: '3[412960.0.369930046][412960.0.369930045][412960.0.369930047]'
  Description: '变量名称'
  ValueType: String
}
_Main/BL/Type_GlobalParameters/Attribute_AttributeValue.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute AttributeValue
{
  #keys: '3[412960.0.369930056][412960.0.369930055][412960.0.369930057]'
  Description: '变量值'
  ValueType: String
}
_Main/BL/Type_GlobalParameters/Attribute_Port.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute Port
{
  #keys: '3[412960.0.369930066][412960.0.369930065][412960.0.369930067]'
  Description: 'Api使用的端口'
  ValueType: String
}
_Main/BL/Type_GlobalParameters/Attribute_PostRequestBody.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute PostRequestBody
{
  #keys: '3[412960.0.369930076][412960.0.369930075][412960.0.369930077]'
  Description: 'Api使用的post body'
  ValueType: String
}
_Main/BL/Type_GlobalParameters/StaticMethod_TestForApiRequest.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,172 @@
Quintiq file version 2.0
#parent: #root
StaticMethod TestForApiRequest (
  GlobalOTDTable owner
)
{
  TextBody:
  [*
    // Administrator Oct-26-2023 (created)
    //info( "Sales Segment Finished, Start Get StockingPoint From Api" )
    //bodynumber := "2";
    //postrequestbody := JSON::Object()
    //                    .Add( "serviceInterfaceCode", "ESBOTDH000" + bodynumber )
    //                    .Add( "fromSystemCode", "OTDH000" + bodynumber )
    //                    .Add( "toInterfaceCode", "QIDH000" + bodynumber )
    //                    .Add( "ouZone", "OU_TMSH" )
    //                    .Add( "uuid", "1617355496bb588e353e80147eea5f45" )
    //                    .Add( "requestTime", DateTime::Now().Format( "Y-M2-D2 H:m:s" ) )
    //                    .Add( "dataType", "JSON" )
    //                    .Add( "data", JSON::Object()
    //                                  .Add( "pageIndex", "1" ) ).Build();
    //
    //info( DateTime::Now().Format( "Y-M2-D2 H:m:s" ) );
    //postrequestbodystring := postrequestbody.AsString();
    //info( postrequestbodystring );
    //
    //parameter := select( owner, GlobalParameters, param, param.AttributeName() = "test" );
    //body := parameter.PostRequestBody();
    //address := parameter.Address();
    //url := parameter.AttributeValue();
    //port := [Number]parameter.Port();
    //
    //// for HTTPS requests:
    //i := HTTPInterface::Create( address, port);
    ////i := HTTPInterface::Create( address ,443);
    //info( address, url, port, body );
    //
    //i.URL(url);
    //i.SSL(false);
    ////i.SSL(true);
    ////i.SSLKeystore('MyKeystore'); // created in the Config Utility
    //
    //i.PostMethod(true); //it's a POST method
    //
    //i.Call(body); // Call's argument is for POST method's content.
    //htmlresult := i.Result();
    //info( htmlresult );
    //
    //htmlresponse := JSON::Parse( htmlresult );
    //info( htmlresponse );
    info( "Init StockingPoint For Api" )
    existparameter := select( owner, GlobalParameters, param, param.AttributeName() = "StockingPoint" );
    if( not isnull( existparameter ) ){
      existparameter.Delete();
      }
    spparameter := owner.GlobalParameters( relnew );
    spparameter.AttributeName( "StockingPoint" );
    spparameter.AttributeValue( "/otdService/https/GetStockingPointsInfo" );
    spparameter.Address( "api-uat-sgc.tianma.cn" );
    spparameter.Port( "443" );
    bodynumber := "2";
    postrequestbody := JSON::Object()
                        .Add( "serviceInterfaceCode", "ESBOTDH000" + bodynumber )
                        .Add( "fromSystemCode", "OTDH000" + bodynumber )
                        .Add( "toInterfaceCode", "QIDH000" + bodynumber )
                        .Add( "ouZone", "OU_TMSH" )
                        .Add( "uuid", "1617355496bb588e353e80147eea5f45" )
                        .Add( "requestTime", DateTime::Now().Format( "Y-M2-D2 H:m:s" ) )
                        .Add( "dataType", "JSON" )
                        .Add( "data", JSON::Object()
                                      .Add( "pageIndex", "1" ) ).Build();
    postrequestbodystring := postrequestbody.AsString();
    spparameter.PostRequestBody( postrequestbodystring );
    info( "Init CurrencyInfo For Api" )
    existparameter := select( owner, GlobalParameters, param, param.AttributeName() = "CurrencyInfo" );
    if( not isnull( existparameter ) ){
      existparameter.Delete();
      }
    ciparameter := owner.GlobalParameters( relnew );
    ciparameter.AttributeName( "CurrencyInfo" );
    ciparameter.AttributeValue( "/otdService/https/GetCurrenciesInfo" );
    ciparameter.Address( "api-uat-sgc.tianma.cn" );
    ciparameter.Port( "443" );
    bodynumber := "1";
    postrequestbody := JSON::Object()
                        .Add( "serviceInterfaceCode", "ESBOTDH000" + bodynumber )
                        .Add( "fromSystemCode", "OTDH000" + bodynumber )
                        .Add( "toInterfaceCode", "QIDH000" + bodynumber )
                        .Add( "ouZone", "OU_TMSH" )
                        .Add( "uuid", "1617355496bb588e353e80147eea5f45" )
                        .Add( "requestTime", DateTime::Now().Format( "Y-M2-D2 H:m:s" ) )
                        .Add( "dataType", "JSON" )
                        .Add( "data", JSON::Object()
                                      .Add( "pageIndex", "1" ) ).Build();
    postrequestbodystring := postrequestbody.AsString();
    ciparameter.PostRequestBody( postrequestbodystring );
    info( "Init CurrencyRates For Api" )
    existparameter := select( owner, GlobalParameters, param, param.AttributeName() = "CurrencyRates" );
    if( not isnull( existparameter ) ){
      existparameter.Delete();
      }
    crparameter := owner.GlobalParameters( relnew );
    crparameter.AttributeName( "CurrencyRates" );
    crparameter.AttributeValue( "/otdService/https/GetCurrencyRatesInfo" );
    crparameter.Address( "api-uat-sgc.tianma.cn" );
    crparameter.Port( "443" );
    bodynumber := "5";
    postrequestbody := JSON::Object()
                        .Add( "serviceInterfaceCode", "ESBOTDH000" + bodynumber )
                        .Add( "fromSystemCode", "OTDH000" + bodynumber )
                        .Add( "toInterfaceCode", "QIDH000" + bodynumber )
                        .Add( "ouZone", "OU_TMSH" )
                        .Add( "uuid", "1617355496bb588e353e80147eea5f45" )
                        .Add( "requestTime", DateTime::Now().Format( "Y-M2-D2 H:m:s" ) )
                        .Add( "dataType", "JSON" )
                        .Add( "data", JSON::Object()
                                      .Add( "pageIndex", "1" ) ).Build();
    postrequestbodystring := postrequestbody.AsString();
    crparameter.PostRequestBody( postrequestbodystring );
    info( "Init Lanes For Api" )
    existparameter := select( owner, GlobalParameters, param, param.AttributeName() = "Lanes" );
    if( not isnull( existparameter ) ){
      existparameter.Delete();
      }
    lparameter := owner.GlobalParameters( relnew );
    lparameter.AttributeName( "Lanes" );
    lparameter.AttributeValue( "/otdService/https/GetLanesInfo" );
    lparameter.Address( "api-uat-sgc.tianma.cn" );
    lparameter.Port( "443" );
    bodynumber := "3";
    postrequestbody := JSON::Object()
                        .Add( "serviceInterfaceCode", "ESBOTDH000" + bodynumber )
                        .Add( "fromSystemCode", "OTDH000" + bodynumber )
                        .Add( "toInterfaceCode", "QIDH000" + bodynumber )
                        .Add( "ouZone", "OU_TMSH" )
                        .Add( "uuid", "1617355496bb588e353e80147eea5f45" )
                        .Add( "requestTime", DateTime::Now().Format( "Y-M2-D2 H:m:s" ) )
                        .Add( "dataType", "JSON" )
                        .Add( "data", JSON::Object()
                                      .Add( "pageIndex", "1" ) ).Build();
    postrequestbodystring := postrequestbody.AsString();
    lparameter.PostRequestBody( postrequestbodystring );
    info( "Init LaneLegs For Api" )
    existparameter := select( owner, GlobalParameters, param, param.AttributeName() = "LaneLegs" );
    if( not isnull( existparameter ) ){
      existparameter.Delete();
      }
    llparameter := owner.GlobalParameters( relnew );
    llparameter.AttributeName( "LaneLegs" );
    llparameter.AttributeValue( "/otdService/https/GetLaneLegsInfo" );
    llparameter.Address( "api-uat-sgc.tianma.cn" );
    llparameter.Port( "443" );
    bodynumber := "4";
    postrequestbody := JSON::Object()
                        .Add( "serviceInterfaceCode", "ESBOTDH000" + bodynumber )
                        .Add( "fromSystemCode", "OTDH000" + bodynumber )
                        .Add( "toInterfaceCode", "QIDH000" + bodynumber )
                        .Add( "ouZone", "OU_TMSH" )
                        .Add( "uuid", "1617355496bb588e353e80147eea5f45" )
                        .Add( "requestTime", DateTime::Now().Format( "Y-M2-D2 H:m:s" ) )
                        .Add( "dataType", "JSON" )
                        .Add( "data", JSON::Object()
                                      .Add( "pageIndex", "1" ) ).Build();
    postrequestbodystring := postrequestbody.AsString();
    llparameter.PostRequestBody( postrequestbodystring );
  *]
}
_Main/BL/Type_GlobalParameters/_ROOT_Type_GlobalParameters.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
#root
#parent: #DomainModel
Type GlobalParameters
{
  #keys: '5[412960.0.369930026][412960.0.369930024][0.0.0][412960.0.369930025][412960.0.369930027]'
  BaseType: Object
  Description: '全局参数'
  StructuredName: 'GlobalParameterss'
}
_Main/BL/Type_Global_MAPISPIPCategory/Attribute_Critical.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute Critical
{
  #keys: '3[414882.0.72610025][414882.0.72610024][414882.0.72610026]'
  Description: '关键物料'
  ValueType: Boolean
}
_Main/BL/Type_Global_MAPISPIPCategory/Function_CalcCritical.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,13 @@
Quintiq file version 2.0
#parent: #root
Function CalcCritical
{
  TextBody:
  [*
    // hongjli Oct-24-2023 (created)
    value := guard( select( this, Global_MappingProduct_MP, tempGMPMP, true ).Critical(), false );
    this.Critical(value);
  *]
}
_Main/BL/Type_Global_MappingCurrencyRate_MP/StaticMethod_CreateByAPI.qbl
@@ -8,11 +8,11 @@
  [*
    globalOTDTable.Global_MappingCurrencyRate_MP( relflush );
    
    bodynumber := "5";
    postrequestbody := globalOTDTable.ApiBuildPostRequestBody( bodynumber );
    address := "api-uat-sgc.tianma.cn";
    url := "/otdService/https/GetCurrencyRatesInfo";
    port := 443;
    parameter := select( globalOTDTable, GlobalParameters, param, param.AttributeName() = "CurrencyRates" );
    postrequestbody := parameter.PostRequestBody();
    address := parameter.Address();
    url := parameter.AttributeValue();
    port := [Number]parameter.Port();
    i := HTTPInterface::Create( address, port);
    i.URL( url );
    i.SSL( true );
_Main/BL/Type_Global_MappingCurrency_MP/StaticMethod_CreateByAPI.qbl
@@ -8,11 +8,11 @@
  [*
    globalOTDTable.Global_MappingCurrency_MP( relflush );
    
    bodynumber := "1";
    postrequestbody := globalOTDTable.ApiBuildPostRequestBody( bodynumber );
    address := "api-uat-sgc.tianma.cn";
    url := "/otdService/https/GetCurrenciesInfo";
    port := 443;
    parameter := select( globalOTDTable, GlobalParameters, param, param.AttributeName() = "CurrencyInfo" );
    postrequestbody := parameter.PostRequestBody();
    address := parameter.Address();
    url := parameter.AttributeValue();
    port := [Number]parameter.Port();
    i := HTTPInterface::Create( address, port);
    i.URL( url );
    i.SSL( true );
_Main/BL/Type_Global_MappingLane/StaticMethod_CreateByAPI.qbl
@@ -8,11 +8,11 @@
  [*
    globalOTDTable.Global_MappingLane( relflush );
    
    bodynumber := "3";
    postrequestbody := globalOTDTable.ApiBuildPostRequestBody( bodynumber );
    address := "api-uat-sgc.tianma.cn";
    url := "/otdService/https/GetLanesInfo";
    port := 443;
    parameter := select( globalOTDTable, GlobalParameters, param, param.AttributeName() = "Lanes" );
    postrequestbody := parameter.PostRequestBody();
    address := parameter.Address();
    url := parameter.AttributeValue();
    port := [Number]parameter.Port();
    i := HTTPInterface::Create( address, port);
    i.URL( url );
    i.SSL( true );
_Main/BL/Type_Global_MappingLaneLeg/StaticMethod_CreateByAPI.qbl
@@ -8,11 +8,11 @@
  [*
    globalOTDTable.Global_MappingLaneLeg( relflush );
    
    bodynumber := "4";
    postrequestbody := globalOTDTable.ApiBuildPostRequestBody( bodynumber );
    address := "api-uat-sgc.tianma.cn";
    url := "/otdService/https/GetLaneLegsInfo";
    port := 443;
    parameter := select( globalOTDTable, GlobalParameters, param, param.AttributeName() = "LaneLegs" );
    postrequestbody := parameter.PostRequestBody();
    address := parameter.Address();
    url := parameter.AttributeValue();
    port := [Number]parameter.Port();
    i := HTTPInterface::Create( address, port);
    i.URL( url );
    i.SSL( true );
_Main/BL/Type_Global_MappingProduct_MP/Attribute_Critical.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute Critical
{
  #keys: '3[414882.0.72574612][414882.0.72574611][414882.0.72574613]'
  Description: '关键物料'
  ValueType: Boolean
}
_Main/BL/Type_Global_MappingProduct_MP/Attribute_KeyProduct.qbl
@@ -3,5 +3,10 @@
Attribute KeyProduct
{
  #keys: '3[414702.0.247711010][414702.0.247711009][414702.0.247711011]'
  Description:
  [*
    å·²å¼ƒç”¨
    å…³é”®ç‰©æ–™æ²¡æœ‰æ•°æ®æ¥æºï¼Œä»¥åŽä»Žå…¶ä»–属性计算得到,改为Critical
  *]
  ValueType: Boolean
}
_Main/BL/Type_Global_MappingProduct_MP/Function_CalcCritical.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,12 @@
Quintiq file version 2.0
#parent: #root
Function CalcCritical
{
  TextBody:
  [*
    // renhao Oct-30-2023 (created)
    value := this.ProductMajorType()="成品" or this.ProductMajorType()="半成品";
    this.Critical(value);
  *]
}
_Main/BL/Type_Global_MappingStockingPoint_MP/StaticMethod_CreateByAPI.qbl
@@ -8,11 +8,11 @@
  [*
    globalOTDTable.Global_MappingStockingPoint_MP( relflush );
    
    bodynumber := "2";
    postrequestbody := globalOTDTable.ApiBuildPostRequestBody( bodynumber );
    address := "api-uat-sgc.tianma.cn";
    url := "/otdService/https/GetStockingPointsInfo";
    port := 443;
    parameter := select( globalOTDTable, GlobalParameters, param, param.AttributeName() = "StockingPoint" );
    postrequestbody := parameter.PostRequestBody();
    address := parameter.Address();
    url := parameter.AttributeValue();
    port := [Number]parameter.Port();
    i := HTTPInterface::Create( address, port);
    i.URL( url );
    i.SSL( true );
_Main/BL/Type_MacroPlan/Method_DoASyncMappingActualPISPIPData.qbl
@@ -36,10 +36,11 @@
        info( "Now is dealing with the " + count.AsQUILL() + "ActualPISPIP " + "( " + count.AsQUILL() + "/" + totalcount.AsQUILL() + " ) " + (count/totalcount*100).Round( 1 ).AsQUILL() + "%" );
        }
      //product := select( globalOTDTable,Global_MappingProduct_MP,product,product.ID() = actual.ProductID() and product.KeyProduct() = nuclear,true);
      if( /*not isnull( product*/ guard( actual.Global_MAPISPIPCategory().KeyProduct() = nuclear, false ) ){
      //if( guard( actual.Global_MAPISPIPCategory().KeyProduct() = nuclear, false ) ){
      if( not nuclear or (nuclear and actual.Global_MAPISPIPCategory().Critical() = nuclear) ){
      if( not isnull(businessTypes)){
      
        for( i :=0 ;i < businessTypes.Size();i++ ){
          //businessType := businessTypes.Element( i );
          if( /*product.BusinessType() = businessType and not product.IsCommon()*/ not actual.Global_MAPISPIPCategory().IsCommon() ){
            ActualProductInStockingPointInPeriod::CreateOrUpdate( this,
@@ -49,7 +50,7 @@
                                                                  actual.ActualInventoryLevelEnd(),
                                                                  actual.ManufacturedDate());
          }
        }
        
      }else{
        ActualProductInStockingPointInPeriod::CreateOrUpdate( this,
_Main/BL/Type_MacroPlan/Method_DoASyncMappingOperationBOMDataRouting.qbl
@@ -65,8 +65,11 @@
                                                        true, trash );
                    mainBOM.Quantity( firstAlterRow.UnitUsageOfComponents() / firstAlterRow.ComponentOutputRate() );
                    mainBOM.MaxQuantityInGroup( firstAlterRow.UnitUsageOfComponents() / firstAlterRow.ComponentOutputRate() );
                    mainBOM.MinQuantityInGroup(0);
                    mainQty := mainBOM.Quantity();
                    Transaction::Transaction().Propagate();
                    altersize := alterRows.Size();
                    // æ·»åŠ è¾…æ–™
                    traverse( alterRows, Elements, alterRow ) {
                        alterProd := Product_MP::FindById( this, alterRow.AlternativeMaterialCode() );
@@ -84,14 +87,23 @@
                          trash := construct( OperationBOMs );
                          if( not isnull( mainInput ) ) {
                              alterBom := mainInput.Operation().LinkPISP( pispAlter, true, mainInput.OperationLinkGroupID(), trash );
                              alterBom.Quantity( mainBOM.MaxQuantityInGroup() * alterRow.AlternativeRate() );
                              //alterBom.Quantity( mainBOM.MaxQuantityInGroup() * alterRow.AlternativeRate() );
                              //alterBom.MaxQuantityInGroup( mainBOM.MaxQuantityInGroup() );
                              alterBom.Quantity( mainBOM.MaxQuantityInGroup() / altersize );
                              alterBom.MaxQuantityInGroup( mainBOM.MaxQuantityInGroup() );
                              alterBom.MinQuantityInGroup(0);
    //                          info( "Quantity" + [String]alterBom.Quantity() )
    //                          info( "MaxQuantityInGroup" + [String]alterBom.MaxQuantityInGroup() )
                              mainQty := mainQty - alterBom.Quantity();
                          }
                      }
                      mainBOM.Quantity( mainQty );
                      Transaction::Transaction().Propagate( relation( OperationBOM, OperationInputGroup));
                      if( not isnull( mainBOM.OperationInputGroup())){
                        mainBOM.OperationInputGroup().InputGroupQuantity(mainBOM.MaxQuantityInGroup());
                        mainBOM.Quantity( mainBOM.MaxQuantityInGroup() / altersize );
                      }
                   }
                }
              }
_Main/BL/Type_MacroPlan/StaticMethod_DoASync#253.qbl
@@ -45,31 +45,31 @@
    
    // åº“存点-3
    info( "Sales Segment Finished, Start Get StockingPoint From Api" )
    bodynumber := "2";
    postrequestbody := macroPlan.ApiBuildPostRequestBody( bodynumber );
    address := "api-uat-sgc.tianma.cn";
    url := "/otdService/https/GetStockingPointsInfo";
    port := 443;
    parameter := select( globalOTDTable, GlobalParameters, param, param.AttributeName() = "StockingPoint" );
    postrequestbody := parameter.PostRequestBody();
    address := parameter.Address();
    url := parameter.AttributeValue();
    port := [Number]parameter.Port();
    data := macroPlan.ApiResponesCheck( address, url, port, postrequestbody );
    macroPlan.ApiStockingPointData( data );
    
    // è´§å¸ä¿¡æ¯-4
    info( "Get StockingPoint From Api Finished, Start Get CurrencyInfo From Api" )
    bodynumber := "1";
    postrequestbody := macroPlan.ApiBuildPostRequestBody( bodynumber );
    address := "api-uat-sgc.tianma.cn";
    url := "/otdService/https/GetCurrenciesInfo";
    port := 443;
    parameter := select( globalOTDTable, GlobalParameters, param, param.AttributeName() = "CurrencyInfo" );
    postrequestbody := parameter.PostRequestBody();
    address := parameter.Address();
    url := parameter.AttributeValue();
    port := [Number]parameter.Port();
    data := macroPlan.ApiResponesCheck( address, url, port, postrequestbody );
    macroPlan.ApiCurenciesData( data );
    
    //货币汇率信息-5
    info( "Get CurrencyInfo From Api Finished, Start Get CurrencyRates From Api" )
    bodynumber := "5";
    postrequestbody := macroPlan.ApiBuildPostRequestBody( bodynumber );
    address := "api-uat-sgc.tianma.cn";
    url := "/otdService/https/GetCurrencyRatesInfo";
    port := 443;
    parameter := select( globalOTDTable, GlobalParameters, param, param.AttributeName() = "CurrencyRates" );
    postrequestbody := parameter.PostRequestBody();
    address := parameter.Address();
    url := parameter.AttributeValue();
    port := [Number]parameter.Port();
    data := macroPlan.ApiResponesCheck( address, url, port, postrequestbody );
    macroPlan.ApiCurencyRatesData( data );
    
@@ -93,21 +93,21 @@
    
    //车道信息-10
    info( "BOM Finished, Start Get Lanes From Api" );
    bodynumber := "3";
    postrequestbody := macroPlan.ApiBuildPostRequestBody( bodynumber );
    address := "api-uat-sgc.tianma.cn";
    url := "/otdService/https/GetLanesInfo";
    port := 443;
    parameter := select( globalOTDTable, GlobalParameters, param, param.AttributeName() = "Lanes" );
    postrequestbody := parameter.PostRequestBody();
    address := parameter.Address();
    url := parameter.AttributeValue();
    port := [Number]parameter.Port();
    data := macroPlan.ApiResponesCheck( address, url, port, postrequestbody );
    macroPlan.ApiLanesData( data );
    
    //车道运输段-11
    info( "Get Lanes From Api Finished, Start Get LaneLegs From Api" );
    bodynumber := "4";
    postrequestbody := macroPlan.ApiBuildPostRequestBody( bodynumber );
    address := "api-uat-sgc.tianma.cn";
    url := "/otdService/https/GetLaneLegsInfo";
    port := 443;
    parameter := select( globalOTDTable, GlobalParameters, param, param.AttributeName() = "LaneLegs" );
    postrequestbody := parameter.PostRequestBody();
    address := parameter.Address();
    url := parameter.AttributeValue();
    port := [Number]parameter.Port();
    data := macroPlan.ApiResponesCheck( address, url, port, postrequestbody );
    macroPlan.ApiLaneLegsData( data );
    
@@ -115,7 +115,7 @@
    //info( "Get Lanelegs From Api Finished, Start ProductInLane Data Broker" );
    //macroPlan.Broker_OTD_ProductInLane().Execute();
    info( "ProductInLane Data Broker Finished, Start ProductInLane Mapping" );
    macroPlan.DoASyncMappingProductInLaneData(globalOTDTable,businessTypeName);
    macroPlan.DoASyncMappingProductInLaneData( globalOTDTable,businessTypeName );
    
    // åœ¨åº“库存数据-13
    //info( "ProductInLane Finished, Start ActualPISPIP Data Broker" );
@@ -130,7 +130,7 @@
    macroPlan.DoASyncMappingExternalSupplyData( businessTypeName, isKeyProduct ,globalOTDTable, organcodelist );
    
    // åº“存成本-15
    InventoryValueAndCost::DoASync( macroPlan,globalOTDTable, businessTypeName );
    InventoryValueAndCost::DoASync( macroPlan,globalOTDTable,businessTypeName );
    
    // todo åˆ¶é€ æˆæœ¬-16
    info( "InventoryCost Finished, Start OperationCost Mapping" );
_Main/BL/Type_S_DT_CustomOrder/Attribute_BusinessType.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute BusinessType
{
  #keys: '3[414724.0.292616049][414724.0.292616048][414724.0.292616050]'
  Description: '事业部'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_CurrencyID.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute CurrencyID
{
  #keys: '3[414724.0.292600064][414724.0.292600063][414724.0.292600065]'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_CustomerID.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute CustomerID
{
  #keys: '3[414724.0.292600051][414724.0.292600050][414724.0.292600052]'
  Description: 'CustomerID'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_CustomerName.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute CustomerName
{
  #keys: '3[414724.0.292600074][414724.0.292600073][414724.0.292600075]'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_CustomerPolicy.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute CustomerPolicy
{
  #keys: '3[414724.0.292600039][414724.0.292600038][414724.0.292600040]'
  Description: '客户策略'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_DefaultUOMConversionFactor#413.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute DefaultUOMConversionFactor
{
  #keys: '3[414724.0.292600084][414724.0.292600083][414724.0.292600085]'
  ValueType: Real
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_DemandUncertaintyPercentage.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute DemandUncertaintyPercentage
{
  #keys: '3[414724.0.292600099][414724.0.292600098][414724.0.292600100]'
  ValueType: Real
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_DerivedPriorityName.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute DerivedPriorityName
{
  #keys: '3[414724.0.292600109][414724.0.292600108][414724.0.292600110]'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_EndDate.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute EndDate
{
  #keys: '3[414724.0.292600119][414724.0.292600118][414724.0.292600120]'
  ValueType: Date
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_ExpectedQuantity.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute ExpectedQuantity
{
  #keys: '3[414724.0.292600129][414724.0.292600128][414724.0.292600130]'
  ValueType: Real
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_FulfilledQuantity.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute FulfilledQuantity
{
  #keys: '3[414724.0.292600139][414724.0.292600138][414724.0.292600140]'
  ValueType: Real
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_HasPostponedSalesDemand.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute HasPostponedSalesDemand
{
  #keys: '3[414724.0.292600152][414724.0.292600151][414724.0.292600153]'
  ValueType: Boolean
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_HasValidConversionFactor.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute HasValidConversionFactor
{
  #keys: '3[414724.0.292600162][414724.0.292600161][414724.0.292600163]'
  ValueType: Boolean
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_ID.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute ID
{
  #keys: '3[414724.0.292600172][414724.0.292600171][414724.0.292600173]'
  IsReadOnly: true
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_ID_SpliteStruct.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute ID_SpliteStruct
{
  #keys: '3[414724.0.314769076][414724.0.314769075][414724.0.314769077]'
  Description: 'S_DT_SpliteStruct表ID'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsAvailable.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute IsAvailable
{
  #keys: '3[414724.0.292600045][414724.0.292600044][414724.0.292600046]'
  Description: '订单是否参与计划'
  ValueType: Boolean
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsEligibleForNetting.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute IsEligibleForNetting
{
  #keys: '3[414724.0.292600182][414724.0.292600181][414724.0.292600183]'
  ValueType: Boolean
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsExcludedFromFulfillmentKPI.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute IsExcludedFromFulfillmentKPI
{
  #keys: '3[414724.0.292600192][414724.0.292600191][414724.0.292600193]'
  ValueType: Boolean
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsExcludedFromFulfillmentKPIUser.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute IsExcludedFromFulfillmentKPIUser
{
  #keys: '3[414724.0.292600202][414724.0.292600201][414724.0.292600203]'
  ValueType: Boolean
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsFirmed.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute IsFirmed
{
  #keys: '3[414724.0.292600212][414724.0.292600211][414724.0.292600213]'
  ValueType: Boolean
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsLeaf.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute IsLeaf
{
  #keys: '3[414724.0.292600222][414724.0.292600221][414724.0.292600223]'
  ValueType: Boolean
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsLocked.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute IsLocked
{
  #keys: '3[414724.0.292600232][414724.0.292600231][414724.0.292600233]'
  ValueType: Boolean
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsManuallyConfigured.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute IsManuallyConfigured
{
  #keys: '3[414724.0.292600242][414724.0.292600241][414724.0.292600243]'
  ValueType: Boolean
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsPostponed.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute IsPostponed
{
  #keys: '3[414724.0.292600252][414724.0.292600251][414724.0.292600253]'
  ValueType: Boolean
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsSoftDeleted.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute IsSoftDeleted
{
  #keys: '3[414724.0.292600262][414724.0.292600261][414724.0.292600263]'
  ValueType: Boolean
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_IsValidData.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute IsValidData
{
  #keys: '3[414724.0.292600272][414724.0.292600271][414724.0.292600273]'
  ValueType: Boolean
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_LastModify.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute LastModify
{
  #keys: '3[414724.0.292600033][414724.0.292600032][414724.0.292600034]'
  Description: '最后修改人'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_LastModifyTime.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute LastModifyTime
{
  #keys: '3[414724.0.292600021][414724.0.292600020][414724.0.292600022]'
  Description: '最后操作时间'
  ValueType: DateTime
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_OrderID.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute OrderID
{
  #keys: '3[414724.0.292600282][414724.0.292600281][414724.0.292600283]'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_OrderLineID.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute OrderLineID
{
  #keys: '3[414724.0.292600292][414724.0.292600291][414724.0.292600293]'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_OrderTag.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute OrderTag
{
  #keys: '3[414724.0.292600042][414724.0.292600041][414724.0.292600043]'
  Description: '订单状态,冲减后赋值,纯预测,有预测,无预测,反签,授权'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_OrderTime.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute OrderTime
{
  #keys: '3[414724.0.292600024][414724.0.292600023][414724.0.292600025]'
  Description: '订单下单时间'
  ValueType: Date
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_OrderType.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute OrderType
{
  #keys: '3[414724.0.292600018][414724.0.292600017][414724.0.292600019]'
  Description: '订单类型'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_OutsideOfPlanningHorizonQuantity.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute OutsideOfPlanningHorizonQuantity
{
  #keys: '3[414724.0.292600302][414724.0.292600301][414724.0.292600303]'
  ValueType: Real
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_PISPConversionFactor.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute PISPConversionFactor
{
  #keys: '3[414724.0.292600312][414724.0.292600311][414724.0.292600313]'
  ValueType: Real
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_ParentID.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute ParentID
{
  #keys: '3[414724.0.301487657][414724.0.301487656][414724.0.301487658]'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_Price.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute Price
{
  #keys: '3[414724.0.292600322][414724.0.292600321][414724.0.292600323]'
  ValueType: Real
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_PriceUoM.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute PriceUoM
{
  #keys: '3[414724.0.292600332][414724.0.292600331][414724.0.292600333]'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_PriorityName.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute PriorityName
{
  #keys: '3[414724.0.292600342][414724.0.292600341][414724.0.292600343]'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_ProductGrade.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute ProductGrade
{
  #keys: '3[414724.0.292600036][414724.0.292600035][414724.0.292600037]'
  Description: '产品等级'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_ProductID.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute ProductID
{
  #keys: '3[414724.0.292600352][414724.0.292600351][414724.0.292600353]'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_Quantity.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute Quantity
{
  #keys: '3[414724.0.292600368][414724.0.292600367][414724.0.292600369]'
  ValueType: Real
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_QuantityInDefaultUoM.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute QuantityInDefaultUoM
{
  #keys: '3[414724.0.292600378][414724.0.292600377][414724.0.292600379]'
  ValueType: Real
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_QuantityPerDay.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute QuantityPerDay
{
  #keys: '3[414724.0.292600388][414724.0.292600387][414724.0.292600389]'
  ValueType: Real
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_SalesDemandConversionFactor.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute SalesDemandConversionFactor
{
  #keys: '3[414724.0.292600398][414724.0.292600397][414724.0.292600399]'
  ValueType: Real
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_SalesSegmentName.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute SalesSegmentName
{
  #keys: '3[414724.0.292600408][414724.0.292600407][414724.0.292600409]'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_SanityCheckDataMostSevere.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute SanityCheckDataMostSevere
{
  #keys: '3[414724.0.292600416][414724.0.292600415][414724.0.292600417]'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_SanityCheckDataMostSevereCount.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute SanityCheckDataMostSevereCount
{
  #keys: '3[414724.0.292600426][414724.0.292600425][414724.0.292600427]'
  ValueType: Number
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_SanityCheckDataTotalViolationCount.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute SanityCheckDataTotalViolationCount
{
  #keys: '3[414724.0.292600436][414724.0.292600435][414724.0.292600437]'
  ValueType: Number
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_SegmentPriority.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute SegmentPriority
{
  #keys: '3[414724.0.292600030][414724.0.292600029][414724.0.292600031]'
  Description: '细分市场优先级'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_SheetProfitability.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute SheetProfitability
{
  #keys: '3[414724.0.292600027][414724.0.292600026][414724.0.292600028]'
  Description: '大张盈利水平'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_SplitCount.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute SplitCount
{
  #keys: '3[414724.0.297907220][414724.0.297907219][414724.0.297907221]'
  Description: '拆行行数'
  ValueType: Number
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_SpliteReason.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute SpliteReason
{
  #keys: '3[414724.0.297907210][414724.0.297907209][414724.0.297907211]'
  Description: '拆行原因'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_SpliteRenmain.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute SpliteRenmain
{
  #keys: '3[414724.0.297907230][414724.0.297907229][414724.0.297907231]'
  Description: '拆行剩余量'
  ValueType: Real
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_StartDate.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute StartDate
{
  #keys: '3[414724.0.292600446][414724.0.292600445][414724.0.292600447]'
  ValueType: Date
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_Status_Splite.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute Status_Splite
{
  #keys: '3[414724.0.297907200][414724.0.297907199][414724.0.297907201]'
  Description: '拆行状态:未拆行,已拆行'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_StockingPointID.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute StockingPointID
{
  #keys: '3[414724.0.292600456][414724.0.292600455][414724.0.292600457]'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_UnitOfMeasureName.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute UnitOfMeasureName
{
  #keys: '3[414724.0.292600466][414724.0.292600465][414724.0.292600467]'
  ValueType: String
}
_Main/BL/Type_S_DT_CustomOrder/Attribute_Variance.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute Variance
{
  #keys: '3[414724.0.292600476][414724.0.292600475][414724.0.292600477]'
  ValueType: Real
}
_Main/BL/Type_S_DT_CustomOrder/DeclarativeTypeIndexRelation_CalcChild.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,16 @@
Quintiq file version 2.0
#parent: #root
DeclarativeTypeIndexRelation CalcChild
{
  #keys: '1[414724.0.314769003]'
  Relation: Child
  TypeIndex: PrimaryKey_ID
  TypeIndexExpressions:
  [
    DeclarativeRelationTypeIndexExpression
    {
      #keys: '1[414724.0.314769004]'
      TypeIndexExpression: 'this.ParentID()'
    }
  ]
}
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_BusinessType.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,6 @@
Quintiq file version 2.0
#parent: #root
DefaultValue
{
  TargetAttribute: BusinessType
}
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_CustomerPolicy.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,6 @@
Quintiq file version 2.0
#parent: #root
DefaultValue
{
  TargetAttribute: CustomerPolicy
}
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_LastModify.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,6 @@
Quintiq file version 2.0
#parent: #root
DefaultValue
{
  TargetAttribute: LastModify
}
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_OrderTag.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,6 @@
Quintiq file version 2.0
#parent: #root
DefaultValue
{
  TargetAttribute: OrderTag
}
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_OrderType.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,6 @@
Quintiq file version 2.0
#parent: #root
DefaultValue
{
  TargetAttribute: OrderType
}
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_ProductGrade.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,6 @@
Quintiq file version 2.0
#parent: #root
DefaultValue
{
  TargetAttribute: ProductGrade
}
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_SegmentPriority.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,6 @@
Quintiq file version 2.0
#parent: #root
DefaultValue
{
  TargetAttribute: SegmentPriority
}
_Main/BL/Type_S_DT_CustomOrder/DefaultValue_SheetProfitability.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,6 @@
Quintiq file version 2.0
#parent: #root
DefaultValue
{
  TargetAttribute: SheetProfitability
}
_Main/BL/Type_S_DT_CustomOrder/TypeIndex_PrimaryKey_ID.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,12 @@
Quintiq file version 2.0
#parent: #root
TypeIndex PrimaryKey_ID
{
  Attributes:
  [
    TypeIndexAttribute
    {
      ModelElement: ID
    }
  ]
}
_Main/BL/Type_S_DT_CustomOrder/_ROOT_Type_S_DT_CustomOrder.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
#root
#parent: #DomainModel
Type S_DT_CustomOrder
{
  #keys: '5[414724.0.292616028][414724.0.292616026][0.0.0][414724.0.292616027][414724.0.292616029]'
  BaseType: Object
  Description: '预拆行订单'
  StructuredName: 'S_DT_CustomOrders'
}
_Main/BL/Type_S_DT_OrderSpliteRow/Attribute_NewAttribute.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute NewAttribute
{
  #keys: '3[414724.0.289871335][414724.0.289871334][414724.0.289871336]'
  ValueType: BinaryValue
}
_Main/BL/Type_S_DT_OrderSpliteRow/_ROOT_Type_S_DT_OrderSpliteRow.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
#root
#parent: #DomainModel
Type S_DT_OrderSpliteRow
{
  #keys: '5[414724.0.289871270][414724.0.289871268][0.0.0][414724.0.289871269][414724.0.289871271]'
  BaseType: Object
  Description: '预拆行订单'
  StructuredName: 'S_DT_OrderSpliteRows'
}
_Main/BL/Type_S_DT_SpliteStruct/Attribute_ForecastDate.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute ForecastDate
{
  #keys: '3[414724.0.291485648][414724.0.291485647][414724.0.291485649]'
  Description: '需求日期'
  ValueType: Date
}
_Main/BL/Type_S_DT_SpliteStruct/Attribute_ID.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,9 @@
Quintiq file version 2.0
#parent: #root
Attribute ID
{
  #keys: '3[414724.0.291485698][414724.0.291485697][414724.0.291485699]'
  Description: '主键ID'
  IsReadOnly: true
  ValueType: String
}
_Main/BL/Type_S_DT_SpliteStruct/Attribute_ID_S_DT_CustomOrder.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute ID_S_DT_CustomOrder
{
  #keys: '3[414724.0.320004537][414724.0.320004536][414724.0.320004538]'
  Description: 'S_DT_CustomOrder表ID,外键关联(OrderID在订单表不唯一,无法使用)'
  ValueType: String
}
_Main/BL/Type_S_DT_SpliteStruct/Attribute_OrderID.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute OrderID
{
  #keys: '3[414724.0.291485665][414724.0.291485664][414724.0.291485666]'
  Description: '订单ID'
  ValueType: String
}
_Main/BL/Type_S_DT_SpliteStruct/Attribute_Qty.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute Qty
{
  #keys: '3[414724.0.291485658][414724.0.291485657][414724.0.291485659]'
  Description: '数量'
  ValueType: Number
}
_Main/BL/Type_S_DT_SpliteStruct/Attribute_SpliteReason.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute SpliteReason
{
  #keys: '3[414724.0.320004525][414724.0.320004524][414724.0.320004526]'
  Description: '拆分原因'
  ValueType: String
}
_Main/BL/Type_S_DT_SpliteStruct/Attribute_Status.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute Status
{
  #keys: '3[414724.0.291485678][414724.0.291485677][414724.0.291485679]'
  Description: '状态:null/1 æœ‰æ•ˆï¼Œ0删除'
  ValueType: Number
}
_Main/BL/Type_S_DT_SpliteStruct/DefaultValue_Status.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
DefaultValue
{
  ISOValue: '1'
  TargetAttribute: Status
}
_Main/BL/Type_S_DT_SpliteStruct/_ROOT_Type_S_DT_SpliteStruct.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
#root
#parent: #DomainModel
Type S_DT_SpliteStruct
{
  #keys: '5[414724.0.291485609][414724.0.291485607][0.0.0][414724.0.291485608][414724.0.291485610]'
  BaseType: Object
  Description: '拆分结构'
  StructuredName: 'S_DT_SpliteStructs'
}
_Main/BL/Type_S_FunctionClass/StaticMethod_SM_OrderToSpliteOrder.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,207 @@
Quintiq file version 2.0
#parent: #root
StaticMethod SM_OrderToSpliteOrder (
  MacroPlan Owner,
  CustomerOrder OrderInfo,
  String SpliteReason
) as owning JSON
{
  Description: '订单转为预拆分订单函数'
  TextBody:
  [*
    /************************************订单转换为预拆分订单******************************
    *函数名:SM_OrderToSpliteOrder
    *创建人:yunying
    *创建时间:2023-10-26
    *描述:订单拆行,将传入的订单存入预拆分表,并在订单表中将该订单移除。
          åŒæ—¶ç”Ÿæˆå­è®¢å•(若S_DT_SpliteStruct存在相同订单号)
    *-----------------------------
    *参数:Owner      MacroPlan
    *     OrderInfo  è¦è½¬ä¸ºé¢„拆分的订单
    *     SpliteReason æ‹†åˆ†åŽŸå› 
    *****************************************************************************/
    // åˆå§‹åŒ–结果
    bStatus := false;
    strMsg :="";
    // èŽ·å–ç‰ˆæœ¬å·,这里是否需要和版本号功能对接
    VCode :=H_FunctionClass::SM_GenerateID("VC");
    try{
      if( not isnull( Owner))
      {
        // æ‹†åˆ†è¡Œæ•°
        SplitCount := selectset( Owner,S_DT_SpliteStruct,obj,obj.ID_S_DT_CustomOrder()=OrderInfo.ID() and obj.Status()=1).Size();
        // æ‹†åˆ†æ•°é‡
        SpliteQty:= sum( Owner,S_DT_SpliteStruct,obj,obj.ID_S_DT_CustomOrder()=OrderInfo.ID() and obj.Status()=1,obj.Qty());
        // å‰©ä½™æ•°é‡
        UnSpliteQty:= OrderInfo.Quantity() - SpliteQty;
        // ä¿æŒæ‹†åˆ†ä¿¡æ¯
        SCustomOrder:=select( Owner,S_DT_CustomOrder,obj,obj.ID()=OrderInfo.ID());
        if( isnull( SCustomOrder))
        {
          Owner.S_DT_CustomOrder(relnew,BusinessType:=OrderInfo.BusinessType()
                                        ,CurrencyID:=OrderInfo.CurrencyID()
                                        ,CustomerID:=OrderInfo.CustomerID()
                                        ,CustomerName:=OrderInfo.CustomerName()
                                        ,CustomerPolicy:=OrderInfo.CustomerPolicy()
                                        ,DefaultUOMConversionFactor:=OrderInfo.DefaultUOMConversionFactor()
                                        ,DemandUncertaintyPercentage:=OrderInfo.DemandUncertaintyPercentage()
                                        ,DerivedPriorityName:=OrderInfo.DerivedPriorityName()
                                        ,EndDate:=OrderInfo.EndDate()
                                        ,ExpectedQuantity:=OrderInfo.ExpectedQuantity()
                                        ,FulfilledQuantity:=OrderInfo.FulfilledQuantity()
                                        ,HasPostponedSalesDemand:=OrderInfo.HasPostponedSalesDemand()
                                        ,HasValidConversionFactor:=OrderInfo.HasValidConversionFactor()
                                        ,ID:=OrderInfo.ID()
                                        ,IsEligibleForNetting:=OrderInfo.IsEligibleForNetting()
                                        ,IsExcludedFromFulfillmentKPI:=OrderInfo.IsExcludedFromFulfillmentKPI()
                                        ,IsExcludedFromFulfillmentKPIUser:=OrderInfo.IsExcludedFromFulfillmentKPIUser()
                                        ,IsFirmed:=OrderInfo.IsFirmed()
                                        ,IsLeaf := OrderInfo.IsLeaf()
                                        ,IsLocked:=OrderInfo.IsLocked()
                                        ,IsAvailable := OrderInfo.IsAvailable()
                                        ,IsManuallyConfigured:=OrderInfo.IsManuallyConfigured()
                                        ,IsPostponed:=OrderInfo.IsPostponed()
                                        ,IsSoftDeleted:=OrderInfo.IsSoftDeleted()
                                        ,IsValidData:=OrderInfo.IsValidData()
                                        ,LastModify:=OrderInfo.LastModify()
                                        ,LastModifyTime:=OrderInfo.LastModifyTime()
                                        ,OrderID:=OrderInfo.OrderID()
                                        ,OrderLineID:=OrderInfo.OrderLineID()
                                        ,OrderTag:=OrderInfo.OrderTag()
                                        ,OrderTime:=OrderInfo.OrderTime()
                                        ,OrderType:=OrderInfo.OrderType()
                                        ,OutsideOfPlanningHorizonQuantity:=OrderInfo.OutsideOfPlanningHorizonQuantity()
                                        ,PISPConversionFactor:=OrderInfo.PISPConversionFactor()
                                        ,Price:=OrderInfo.Price()
                                        ,PriceUoM:=OrderInfo.PriceUoM()
                                        ,PriorityName:=OrderInfo.PriorityName()
                                        ,ProductGrade:=OrderInfo.ProductGrade()
                                        ,ProductID:=OrderInfo.ProductID()
                                        ,Quantity:=OrderInfo.Quantity()
                                        ,QuantityInDefaultUoM:=OrderInfo.QuantityInDefaultUoM()
                                        ,QuantityPerDay:=OrderInfo.QuantityPerDay()
                                        ,SalesDemandConversionFactor:=OrderInfo.SalesDemandConversionFactor()
                                        ,SalesSegmentName:=OrderInfo.SalesSegmentName()
                                        ,SanityCheckDataMostSevere:=OrderInfo.SanityCheckDataMostSevere()
                                        ,SanityCheckDataMostSevereCount:=OrderInfo.SanityCheckDataMostSevereCount()
                                        ,SanityCheckDataTotalViolationCount:=OrderInfo.SanityCheckDataTotalViolationCount()
                                        ,SegmentPriority:=OrderInfo.SegmentPriority()
                                        ,SheetProfitability:=OrderInfo.SheetProfitability()
                                        ,StartDate:=OrderInfo.StartDate()
                                        ,StockingPointID:=OrderInfo.StockingPointID()
                                        ,UnitOfMeasureName:=OrderInfo.UnitOfMeasureName()
                                        ,SplitCount := SplitCount
                                        ,SpliteRenmain := UnSpliteQty);
        }
        else
        {
          SCustomOrder.SplitCount(SplitCount);
          SCustomOrder.SpliteRenmain(UnSpliteQty);
        }
        OId:=0;
        NewID:="";
        SpliteOrderInfo :=null( S_DT_CustomOrder,constcontent );
        // ç”Ÿæˆå­è®¢å•
        traverse( Owner,S_DT_SpliteStruct,obj,obj.ID_S_DT_CustomOrder()=OrderInfo.ID())
        {
          OId:=OId+1;
          // å¾—到对应的已拆分订单
          SpliteOrderInfo := select( Owner,S_DT_CustomOrder,objSO,objSO.ID_SpliteStruct()=obj.ID());
          // æ‹†åˆ†è¢«åˆ é™¤ï¼Œå°†å·²ç»ä¿æŒçš„æ‹†åˆ†è®¢å•跟随删除
          if(obj.Status()=0)
          {
            if(not isnull( SpliteOrderInfo))
            {
              SpliteOrderInfo.Delete();
            }
            obj.Delete();
          }
          else
          {
            // ä¿å­˜æ–°å¢žçš„æ‹†åˆ†
            if(isnull( SpliteOrderInfo))
            {
              NewID:=OrderInfo.ID()+"_"+OId.AsQUILL()+"_"+DateTime::ActualGMTTime().Format( "hms");
              Owner.S_DT_CustomOrder(relnew,BusinessType:=OrderInfo.BusinessType()
                                          ,CurrencyID:=OrderInfo.CurrencyID()
                                          ,CustomerID:=OrderInfo.CustomerID()
                                          ,CustomerName:=OrderInfo.CustomerName()
                                          ,CustomerPolicy:=OrderInfo.CustomerPolicy()
                                          ,DefaultUOMConversionFactor:=OrderInfo.DefaultUOMConversionFactor()
                                          ,DemandUncertaintyPercentage:=OrderInfo.DemandUncertaintyPercentage()
                                          ,DerivedPriorityName:=OrderInfo.DerivedPriorityName()
                                          ,EndDate:=obj.ForecastDate()
                                          ,ExpectedQuantity:=OrderInfo.ExpectedQuantity()
                                          ,FulfilledQuantity:=OrderInfo.FulfilledQuantity()
                                          ,HasPostponedSalesDemand:=OrderInfo.HasPostponedSalesDemand()
                                          ,HasValidConversionFactor:=OrderInfo.HasValidConversionFactor()
                                          ,ID:=NewID
                                          ,IsEligibleForNetting:=OrderInfo.IsEligibleForNetting()
                                          ,IsExcludedFromFulfillmentKPI:=OrderInfo.IsExcludedFromFulfillmentKPI()
                                          ,IsExcludedFromFulfillmentKPIUser:=OrderInfo.IsExcludedFromFulfillmentKPIUser()
                                          ,IsFirmed:=OrderInfo.IsFirmed()
                                          ,IsLeaf := OrderInfo.IsLeaf()
                                          ,IsLocked:=OrderInfo.IsLocked()
                                          ,IsAvailable := OrderInfo.IsAvailable()
                                          ,IsManuallyConfigured:=OrderInfo.IsManuallyConfigured()
                                          ,IsPostponed:=OrderInfo.IsPostponed()
                                          ,IsSoftDeleted:=OrderInfo.IsSoftDeleted()
                                          ,IsValidData:=OrderInfo.IsValidData()
                                          ,LastModify:=OrderInfo.LastModify()
                                          ,LastModifyTime:=OrderInfo.LastModifyTime()
                                          ,OrderID:=OrderInfo.OrderID()
                                          ,OrderLineID:=OrderInfo.OrderLineID()
                                          ,OrderTag:=OrderInfo.OrderTag()
                                          ,OrderTime:=OrderInfo.OrderTime()
                                          ,OrderType:=OrderInfo.OrderType()
                                          ,OutsideOfPlanningHorizonQuantity:=OrderInfo.OutsideOfPlanningHorizonQuantity()
                                          ,PISPConversionFactor:=OrderInfo.PISPConversionFactor()
                                          ,Price:=OrderInfo.Price()
                                          ,PriceUoM:=OrderInfo.PriceUoM()
                                          ,PriorityName:=OrderInfo.PriorityName()
                                          ,ProductGrade:=OrderInfo.ProductGrade()
                                          ,ProductID:=OrderInfo.ProductID()
                                          ,Quantity:=obj.Qty()
                                          ,QuantityInDefaultUoM:=OrderInfo.QuantityInDefaultUoM()
                                          ,QuantityPerDay:=OrderInfo.QuantityPerDay()
                                          ,SalesDemandConversionFactor:=OrderInfo.SalesDemandConversionFactor()
                                          ,SalesSegmentName:=OrderInfo.SalesSegmentName()
                                          ,SanityCheckDataMostSevere:=OrderInfo.SanityCheckDataMostSevere()
                                          ,SanityCheckDataMostSevereCount:=OrderInfo.SanityCheckDataMostSevereCount()
                                          ,SanityCheckDataTotalViolationCount:=OrderInfo.SanityCheckDataTotalViolationCount()
                                          ,SegmentPriority:=OrderInfo.SegmentPriority()
                                          ,SheetProfitability:=OrderInfo.SheetProfitability()
                                          ,StartDate:=OrderInfo.StartDate()
                                          ,StockingPointID:=OrderInfo.StockingPointID()
                                          ,UnitOfMeasureName:=OrderInfo.UnitOfMeasureName()
                                          ,ParentID := OrderInfo.ID()
                                          ,SpliteReason := obj.SpliteReason()
                                          ,ID_SpliteStruct := obj.ID());
            }
          }
        }
        // åˆ é™¤è®¢å•
        //Order:=select( Owner,SalesDemand.astype( CustomerOrder ),obj,obj.ID()=OrderInfo.ID());
        //OrderInfo.Delete();
        bStatus:=true;
        strMsg:="订单:"+OrderInfo.OrderID()+"已转入预拆分记录,可使用还原功能恢复!";
      }
      else
      {
        strMsg:="场景初始化失败,请选择场景后使用该功能。";
      }
    }
    onerror
    {
      strMsg :="设置为预拆分行失败,请联系系统管理员!";
      // è®°å½•错误日志
      Owner.H_ErrorLogs(relnew,EClassName := "S_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "SM_OrderToSpliteOrder",
                         DeveloperInformation :=  e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(),
                         GeneralInformation := e.GeneralInformation());
    }
    return JSON::Object().Add( "Status",bStatus)
                         .Add( "VersionCode",VCode)
                         .Add( "Msg",strMsg).Build();
  *]
}
_Main/BL/Type_S_FunctionClass/_ROOT_Type_S_FunctionClass.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
#root
#parent: #DomainModel
Type S_FunctionClass
{
  #keys: '5[414724.0.288796771][414724.0.288796769][0.0.0][414724.0.288796770][414724.0.288796772]'
  BaseType: Object
  Description: '订单拆行操作类'
  StructuredName: 'S_FunctionClasss'
}
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Component_pnlActions.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,40 @@
Quintiq file version 2.0
Component pnlActions
{
  #keys: '[412960.0.370310585]'
  BaseType: 'WebPanel'
  Children:
  [
    Component btnOk
    {
      #keys: '[412960.0.370310589]'
      BaseType: 'WebButton'
      Properties:
      [
        Label: 'OK'
        Taborder: 0
      ]
    }
    Component btnCancel
    {
      #keys: '[412960.0.370310591]'
      BaseType: 'WebButton'
      Properties:
      [
        Label: 'Cancel'
        Taborder: 1
      ]
    }
  ]
  Properties:
  [
    Alignment: 'trailing'
    Border: true
    ExcludeFromActiveComponent: true
    FixedSize: true
    Orientation: 'horizontal'
    Padding: 'true'
    Style: 'footer'
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Component_pnlContent.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,83 @@
Quintiq file version 2.0
Component pnlContent
{
  #keys: '[412960.0.370310583]'
  BaseType: 'WebPanel'
  Children:
  [
    Component editAttributeName
    {
      #keys: '[412960.0.370311392]'
      BaseType: 'WebEditField'
      Properties:
      [
        DataBinding: 'DataHolderGlobalParameters.Data.AttributeName'
        Label: '参数名称'
        Taborder: 1
      ]
    }
    Component editAttributeValue
    {
      #keys: '[412960.0.370311429]'
      BaseType: 'WebEditField'
      Properties:
      [
        DataBinding: 'DataHolderGlobalParameters.Data.AttributeValue'
        Label: '参数值'
        Taborder: 2
      ]
    }
    Component editAddress
    {
      #keys: '[412960.0.370311489]'
      BaseType: 'WebEditField'
      Properties:
      [
        DataBinding: 'DataHolderGlobalParameters.Data.Address'
        Label: 'Api地址'
        Taborder: 3
        Visible: false
      ]
    }
    Component editPort
    {
      #keys: '[412960.0.370311527]'
      BaseType: 'WebEditField'
      Properties:
      [
        DataBinding: 'DataHolderGlobalParameters.Data.Port'
        Label: 'Api端口号'
        Taborder: 4
        Visible: false
      ]
    }
    Component editPostRequestBody
    {
      #keys: '[412960.0.370311577]'
      BaseType: 'WebEditField'
      Properties:
      [
        DataBinding: 'DataHolderGlobalParameters.Data.PostRequestBody'
        Label: 'Api请求主体'
        Taborder: 5
        Visible: false
      ]
    }
    Component IsApi
    {
      #keys: '[412960.0.370311617]'
      BaseType: 'WebCheckbox'
      Properties:
      [
        Description: '是否为API相关参数'
        Label: 'API配置'
        Taborder: 0
      ]
    }
  ]
  Properties:
  [
    Padding: 'true'
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Method_ClickBtnOk.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,19 @@
Quintiq file version 2.0
#parent: #root
Method ClickBtnOk () id:Method_DialogGlobalParameters_ClickBtnOk
{
  #keys: '[412960.0.370310978]'
  Body:
  [*
    // Disabled button to prevent the possibility of multiple firing
    btnOk.Enabled(false,'');
    // OnOk
    this.ApplyChanges();
    DataHolderGlobalParameters.Data().Commit();
    this.Close();
  *]
}
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Method_Edit.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,17 @@
Quintiq file version 2.0
#parent: #root
Method Edit (
  GlobalParameters selection
) id:Method_DialogGlobalParameters_Edit
{
  #keys: '[412960.0.370310979]'
  Body:
  [*
    // Edits assumption
    data := shadow( selection );
    DataHolderGlobalParameters.Data( &data );
    ApplicationMacroPlanner.ShowFormModal( this );
  *]
}
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Method_New.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,15 @@
Quintiq file version 2.0
#parent: #root
Method New (
  GlobalOTDTable owner
) id:Method_DialogGlobalParameters_New
{
  #keys: '[412960.0.370310981]'
  Body:
  [*
    data := owner.GlobalParameters(relshadow);
    DataHolderGlobalParameters.Data( &data);
    ApplicationMacroPlanner.ShowFormModal( this );
  *]
}
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Response_pnlActions_btnCancel_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,15 @@
Quintiq file version 2.0
#parent: pnlActions/btnCancel
Response OnClick () id:Response_pnlActions_btnCancel_OnClick
{
  #keys: '[412960.0.370310595]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      Form.Close();
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Response_pnlActions_btnOk_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,15 @@
Quintiq file version 2.0
#parent: pnlActions/btnOk
Response OnClick () id:Response_pnlActions_btnOk_OnClick
{
  #keys: '[412960.0.370310594]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      Form.ClickBtnOk()
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/Response_pnlContent_IsApi_OnChanged.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,18 @@
Quintiq file version 2.0
#parent: pnlContent/IsApi
Response OnChanged () id:Response_pnlContent_IsApi_OnChanged
{
  #keys: '[412960.0.370311653]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCheckbox_OnChanged'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      editAddress.Visible( this.Checked() );
      editPort.Visible( this.Checked() );
      editPostRequestBody.Visible( this.Checked() );
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_DialogGlobalParameters/_ROOT_Component_DialogGlobalParameters.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,31 @@
Quintiq file version 2.0
#root
#parent: MacroPlannerWebApp
OrphanComponent DialogGlobalParameters
{
  #keys: '[412960.0.370310581]'
  BaseType: 'WebForm'
  Children:
  [
    #child: pnlContent
    #child: pnlActions
    Component DataHolderGlobalParameters
    {
      #keys: '[412960.0.370311111]'
      BaseType: 'WebDataHolder'
      Databinding: 'shadow[GlobalParameters]*'
      Properties:
      [
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
    Alignment: 'trailing'
    EnterButton: 'btnOk'
    EscapeButton: 'btnCancel'
    ExcludeFromActiveComponent: true
    Padding: 'false'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_Form367/Response_ListBusinessType_MenuNew_OnClick.def
@@ -2,7 +2,7 @@
#parent: ListBusinessType
Response OnClick () id:Response_ListBusinessType_MenuNew_OnClick
{
  #keys: '[414382.0.377975353]'
  #keys: '[412960.0.373110863]'
  CanBindMultiple: false
  DefinitionID => /ListBusinessType/Responsedef_ListBusinessType_WebMenu_OnClick
  GroupServerCalls: true
_Main/UI/MacroPlannerWebApp/Component_FormCustomerOrders/Component_ListSDIP.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,14 @@
Quintiq file version 2.0
Component ListSDIP #extension
{
  Children:
  [
    Component DataExtractorSDIP #extension
    {
      Properties:
      [
        FixedFilter: 'object.ProductInStockingPoint_MP().Product_MP().IsLeaf()and isnull( object.OriginalSalesDemand() )'
      ]
    }
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormCustomerOrders/Component_PanelSDIP.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
Component PanelSDIP #extension
{
  Children:
  [
    #child: ListSDIP
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormCustomerOrders/Component_PanelSalesDemands.def
@@ -4,5 +4,6 @@
  Children:
  [
    #child: PanelAllSalesDemands
    #child: PanelSDIP
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormCustomerOrders/Component_listContextMenuSD.def
@@ -23,5 +23,27 @@
        Title: '修改客户订单优先级因子信息'
      ]
    }
    Component MenuSpliteOrder
    {
      #keys: '[414724.0.284248096]'
      BaseType: 'WebMenu'
      Properties:
      [
        Description: '订单拆行'
        Image: 'ARROW_FORK'
        Taborder: 13
        Title: '拆行'
      ]
    }
    Component Menu189
    {
      #keys: '[414724.0.314997570]'
      BaseType: 'WebMenu'
      Properties:
      [
        Separator: true
        Taborder: 12
      ]
    }
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormCustomerOrders/Response_TIANMA_JITUAN_ListSalesDemands_MenuSpliteOrder_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,22 @@
Quintiq file version 2.0
#parent: ListSalesDemands
Response OnClick (
  SalesDemandBase selection
) id:Response_ListSalesDemands_MenuSpliteOrder_OnClick
{
  #keys: '[414724.0.284211940]'
  CanBindMultiple: false
  DefinitionID => //FormSalesDemands/ListSalesDemands/Responsedef_ListSalesDemands_WebMenu_OnClick
  Initiator: 'MenuSpliteOrder'
  QuillAction
  {
    Body:
    [*
      data := selection.astype( CustomerOrder );
      frmOrderSplite := construct( FrmCustomOrderSpliteRow );
      frmOrderSplite.dh_Paramer_FCOS().Data( data);
      frmOrderSplite.ShowModal();
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Component_ListGlobalParameters.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,59 @@
Quintiq file version 2.0
Component ListGlobalParameters
{
  #keys: '[412960.0.370311764]'
  BaseType: 'WebList'
  Children:
  [
    Component DataExtractorGlobalParameters
    {
      #keys: '[412960.0.370311765]'
      BaseType: 'WebDataExtractor'
      Properties:
      [
        DataType: 'GlobalOTDTable'
        Source: 'GlobalOTDTable'
        Taborder: 0
        Transformation: 'GlobalParameters'
      ]
    }
    #child: listActionBarPageGlobalParameters
    Component DataSetLevelGlobalParameters
    {
      #keys: '[412960.0.370311770]'
      BaseType: 'WebDataSetLevel'
      Children:
      [
        #child: listContextMenuGlobalParameters
      ]
      Properties:
      [
        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"AttributeName","title":"AttributeName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"AttributeName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"AttributeValue","title":"AttributeValue","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"AttributeValue"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Address","title":"Address","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Address"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Port","title":"Port","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Port"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PostRequestBody","title":"PostRequestBody","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"PostRequestBody"}}]'
        ContextMenu: 'listContextMenuGlobalParameters'
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
    Taborder: 0
  ]
  ResponseDefinitions:
  [
    DelegatedResponseDefinition OnClick id:Responsedef_ListGlobalParameters_WebMenu_OnClick
    {
      #keys: '[412960.0.373111120]'
      Initiator: 'WebMenu'
      IsInherited: false
      ResponseType: 'OnClick'
      Arguments:
      [
        ResponseDefinitionArgument selection
        {
          #keys: '[693.0.13162755]'
          Binding: 'this.Selection()'
        }
      ]
    }
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Component_PanelGlobalParameters.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,14 @@
Quintiq file version 2.0
Component PanelGlobalParameters
{
  #keys: '[412960.0.370311750]'
  BaseType: 'WebPanel'
  Children:
  [
    #child: ListGlobalParameters
  ]
  Properties:
  [
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Component_listActionBarPageGlobalParameters.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
Component listActionBarPageGlobalParameters
{
  #keys: '[412960.0.370311767]'
  BaseType: 'listActionBarPage'
  Properties:
  [
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Component_listContextMenuGlobalParameters.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,57 @@
Quintiq file version 2.0
Component listContextMenuGlobalParameters
{
  #keys: '[412960.0.370311772]'
  BaseType: 'listContextMenu'
  Children:
  [
    Component MenuNew id:MenuNew_21
    {
      #keys: '[412960.0.370312224]'
      BaseType: 'WebMenu'
      Properties:
      [
        Image: 'ADD2'
        Taborder: 3
        Title: 'New'
      ]
    }
    Component MenuEdit id:MenuEdit_368
    {
      #keys: '[412960.0.370312277]'
      BaseType: 'WebMenu'
      Properties:
      [
        Image: 'PENCIL'
        Taborder: 4
        Title: 'Edit'
      ]
    }
    Component MenuDelete id:MenuDelete_832
    {
      #keys: '[412960.0.370312355]'
      BaseType: 'WebMenu'
      Properties:
      [
        Image: 'DELETE'
        Taborder: 5
        Title: 'Delete'
      ]
    }
    Component MenuInitial
    {
      #keys: '[412960.0.376011203]'
      BaseType: 'WebMenu'
      Properties:
      [
        Image: 'ARROW_LOOP3'
        Taborder: 6
        Title: 'Init Api'
      ]
    }
  ]
  Properties:
  [
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Response_ListGlobalParameters_MenuDelete_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,19 @@
Quintiq file version 2.0
#parent: ListGlobalParameters
Response OnClick (
  GlobalParameters selection
) id:Response_ListGlobalParameters_MenuDelete_OnClick
{
  #keys: '[412960.0.373113087]'
  CanBindMultiple: false
  DefinitionID => /ListGlobalParameters/Responsedef_ListGlobalParameters_WebMenu_OnClick
  GroupServerCalls: true
  Initiator: 'MenuDelete'
  QuillAction
  {
    Body:
    [*
      selection.Delete();
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Response_ListGlobalParameters_MenuEdit_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,20 @@
Quintiq file version 2.0
#parent: ListGlobalParameters
Response OnClick (
  GlobalParameters selection
) id:Response_ListGlobalParameters_MenuEdit_OnClick
{
  #keys: '[412960.0.373112994]'
  CanBindMultiple: false
  DefinitionID => /ListGlobalParameters/Responsedef_ListGlobalParameters_WebMenu_OnClick
  GroupServerCalls: true
  Initiator: 'MenuEdit'
  QuillAction
  {
    Body:
    [*
      dlg := construct( DialogGlobalParameters );
      dlg.Edit( selection );
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Response_ListGlobalParameters_MenuNew_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,18 @@
Quintiq file version 2.0
#parent: ListGlobalParameters
Response OnClick () id:Response_ListGlobalParameters_MenuNew_OnClick
{
  #keys: '[412960.0.373111139]'
  CanBindMultiple: false
  DefinitionID => /ListGlobalParameters/Responsedef_ListGlobalParameters_WebMenu_OnClick
  GroupServerCalls: true
  Initiator: 'MenuNew'
  QuillAction
  {
    Body:
    [*
      dlg := construct( DialogGlobalParameters );
      dlg.New( GlobalOTDTable );
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/Response_listContextMenuGlobalParameters_MenuInitial_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,16 @@
Quintiq file version 2.0
#parent: listContextMenuGlobalParameters/MenuInitial
Response OnClick () id:Response_listContextMenuGlobalParameters_MenuInitial_OnClick
{
  #keys: '[412960.0.376011242]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebMenu_OnClick'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      GlobalParameters::TestForApiRequest( GlobalOTDTable );
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_FormGlobalParameters/_ROOT_Component_FormGlobalParameters.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,18 @@
Quintiq file version 2.0
#root
#parent: MacroPlannerWebApp
OrphanComponent FormGlobalParameters
{
  #keys: '[412960.0.367611841]'
  BaseType: 'WebForm'
  Children:
  [
    #child: PanelGlobalParameters
  ]
  Properties:
  [
    Description: '存放各类全局参数,目前仅包含API相关'
    Image: 'EARTH2'
    Title: 'Global Parameters'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_Panel700.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,39 @@
Quintiq file version 2.0
Component Panel700
{
  #keys: '[414724.0.286088539]'
  BaseType: 'WebPanel'
  Children:
  [
    Component btn_OK_FCOS
    {
      #keys: '[414724.0.286088604]'
      BaseType: 'WebButton'
      Properties:
      [
        ButtonSize: 'compact'
        Image: 'CHECKS'
        Label: '确定'
        Taborder: 0
      ]
    }
    Component btn_Cancel_FCOS
    {
      #keys: '[414724.0.286088615]'
      BaseType: 'WebButton'
      Properties:
      [
        ButtonSize: 'compact'
        Image: 'NAVIGATE_CROSS_ORANGE'
        Label: '取消'
        Taborder: 1
      ]
    }
  ]
  Properties:
  [
    Alignment: 'trailing'
    Orientation: 'horizontal'
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_listActionBarPage229#1.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
Component listActionBarPage229 id:listActionBarPage229_1
{
  #keys: '[414724.0.290316538]'
  BaseType: 'listActionBarPage'
  Properties:
  [
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_listContextMenu950#1.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,25 @@
Quintiq file version 2.0
Component listContextMenu950 id:listContextMenu950_1
{
  #keys: '[414724.0.290316540]'
  BaseType: 'listContextMenu'
  Children:
  [
    Component m_delete_list_SD
    {
      #keys: '[414724.0.312760935]'
      BaseType: 'WebMenu'
      Properties:
      [
        Description: '删除-拆分明细表'
        Image: 'GARBAGE'
        Taborder: 3
        Title: '删除'
      ]
    }
  ]
  Properties:
  [
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_list_SpliteDetails#136.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,61 @@
Quintiq file version 2.0
Component list_SpliteDetails id:list_SpliteDetails_136
{
  #keys: '[414724.0.290316536]'
  BaseType: 'WebList'
  Children:
  [
    Component de_splisteDetailsFCOS
    {
      #keys: '[414724.0.290316537]'
      BaseType: 'WebDataExtractor'
      Properties:
      [
        DataType: 'MacroPlan'
        Source: 'MacroPlan'
        Taborder: 0
        Transformation: 'S_DT_SpliteStruct'
      ]
    }
    #child: listActionBarPage229_1
    Component DataSetLevel583
    {
      #keys: '[414724.0.290316539]'
      BaseType: 'WebDataSetLevel'
      Children:
      [
        #child: listContextMenu950_1
      ]
      Properties:
      [
        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastDate","title":"需求日期","subtotals":"","tooltip":"","width":10,"display":"shown","editable":false,"attribute":"ForecastDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Qty","title":"数量","subtotals":"","tooltip":"","width":8,"display":"shown","editable":true,"attribute":"Qty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SpliteReason","title":"拆分原因","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SpliteReason"}}]'
        ContextMenu: 'listContextMenu950'
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
    Description: '拆分明细'
    MinimumRows: 6
    Taborder: 1
  ]
  ResponseDefinitions:
  [
    DelegatedResponseDefinition OnClick id:Responsedef_list_SpliteDetails_136_WebMenu_OnClick
    {
      #keys: '[414724.0.312731020]'
      Initiator: 'WebMenu'
      IsInherited: false
      ResponseType: 'OnClick'
      Arguments:
      [
        ResponseDefinitionArgument selection
        {
          #keys: '[593.0.13413230]'
          Binding: 'list_SpliteDetails.Selection()'
        }
      ]
    }
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_pl_OperateBtns_FCOS.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,16 @@
Quintiq file version 2.0
Component pl_OperateBtns_FCOS
{
  #keys: '[414724.0.286058675]'
  BaseType: 'WebPanel'
  Children:
  [
    #child: Panel700
  ]
  Properties:
  [
    Border: true
    FixedSize: true
    Taborder: 6
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_pl_function_FCOS.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,41 @@
Quintiq file version 2.0
Component pl_function_FCOS
{
  #keys: '[414724.0.285282557]'
  BaseType: 'WebPanel'
  Children:
  [
    Component btn_add_FCOS
    {
      #keys: '[414724.0.290316633]'
      BaseType: 'WebButton'
      Properties:
      [
        ButtonSize: 'compact'
        Image: 'LINK_ADD'
        Label: '预拆行'
        Taborder: 1
        Visible: false
      ]
    }
    Component lb_OrderID_FCOS id:lb_OrderID_FCOS_652
    {
      #keys: '[414724.0.290316653]'
      BaseType: 'WebLabel'
      Properties:
      [
        Description: '订单ID'
        Label: '订单号:'
        Taborder: 0
        Text: '2021564445'
      ]
    }
  ]
  Properties:
  [
    Border: true
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_pl_spliteDetails.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,26 @@
Quintiq file version 2.0
Component pl_spliteDetails
{
  #keys: '[414724.0.294615998]'
  BaseType: 'WebPanel'
  Children:
  [
    #child: list_SpliteDetails_136
    Component Label130
    {
      #keys: '[414724.0.290316544]'
      BaseType: 'WebLabel'
      Properties:
      [
        Label: '拆行明细:'
        NumberOfColumns: 0
        Taborder: 0
      ]
    }
  ]
  Properties:
  [
    Orientation: 'horizontal'
    Taborder: 5
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Component_pl_splite_info.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,50 @@
Quintiq file version 2.0
Component pl_splite_info
{
  #keys: '[414724.0.289968198]'
  BaseType: 'WebPanel'
  Children:
  [
    Component ds_ForcastDate_FCOS id:ds_ForcastDate_FCOS_675
    {
      #keys: '[414724.0.289968265]'
      BaseType: 'WebDateSelector'
      Properties:
      [
        Label: '需求时间:'
        Taborder: 0
      ]
    }
    Component np_Qty_FCOS id:np_Qty_FCOS_656
    {
      #keys: '[414724.0.289968285]'
      BaseType: 'WebNumberPicker'
      Properties:
      [
        Label: '数量:'
        Min: '0'
        PlaceHolder: '数量不大于订单重量'
        Step: 200
        Taborder: 1
      ]
    }
    Component btn_splite_add
    {
      #keys: '[414724.0.289968313]'
      BaseType: 'WebButton'
      Properties:
      [
        ButtonSize: 'compact'
        Image: 'DOWN_PLUS'
        Label: '拆'
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 4
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Response_Panel700_btn_Cancel_FCOS_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,41 @@
Quintiq file version 2.0
#parent: Panel700/btn_Cancel_FCOS
Response OnClick () id:Response_Panel700_btn_Cancel_FCOS_OnClick
{
  #keys: '[414724.0.294294721]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  QuillAction
  {
    Body:
    [*
      // æ“ä½œæ¢å¤ï¼šåˆ é™¤æ–°å¢žçš„æ‹†åˆ†æ“ä½œï¼Œè¿˜åŽŸåˆ é™¤çš„æ‹†åˆ†æ“ä½œ
      OrderInfo:=dh_Paramer_FCOS.Data();
      if( not isnull( OrderInfo))
      {
        SOrder:=null( S_DT_CustomOrder,constcontent );
        // å¾—到所有拆分操作记录
        traverse( MacroPlan,S_DT_SpliteStruct,obj,obj.ID_S_DT_CustomOrder() = OrderInfo.ID())
        {
          SOrder:=select( MacroPlan,S_DT_CustomOrder,objSO,objSO.ID_SpliteStruct() = obj.ID());
          // æ— å¯¹åº”的拆分订单,视为新增的操作,进行移除
          if( isnull( SOrder))
          {
              obj.Delete();
          }
          else
          {
            // å¦‚果状态为删除状态,则恢复删除
            if( obj.Status()=0)
            {
              obj.Status(1);
            }
          }
        }
      }
      FrmCustomOrderSpliteRow.Close();
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Response_Panel700_btn_OK_FCOS_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,38 @@
Quintiq file version 2.0
#parent: Panel700/btn_OK_FCOS
Response OnClick () id:Response_Panel700_btn_OK_FCOS_OnClick
{
  #keys: '[414724.0.294747709]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  QuillAction
  {
    Body:
    [*
      // ä»Žè®¢å•进入拆行
      if( not isnull( dh_Paramer_FCOS.Data()))
      {
        // å°†è®¢å•移除并添加到预拆行订单中
        JResult := S_FunctionClass::SM_OrderToSpliteOrder( MacroPlan,dh_Paramer_FCOS.Data(),ef_SpliteReason_FCOS.Text());
        if( JResult.Get( "Status").GetBoolean())
        {
          // ç”Ÿæˆæ‹†è¡Œè®¢å•
          FrmCustomOrderSpliteRow.Close();
          if( JResult.Get( "Msg").GetString().Length()>0)
          {
            WebMessageBox::Information(JResult.Get( "Msg").GetString());
          }
        }
        else
        {
          WebMessageBox::Warning(JResult.Get( "Msg").GetString());
        }
      }
      else
      {
        // ç”Ÿæˆæ‹†è¡Œè®¢å•
      }
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Response_dh_Paramer_FCOS_OnDataChanged.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,23 @@
Quintiq file version 2.0
#parent: dh_Paramer_FCOS
Response OnDataChanged () id:Response_FrmCustomOrderSpliteRow_dh_Paramer_FCOS_OnDataChanged
{
  #keys: '[414724.0.285614685]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebComponent_OnDataChanged'
  QuillAction
  {
    Body:
    [*
      Form.lb_OrderID_FCOS().Text(this.Data().OrderID());
      Form.lb_CustomName_FCOS().Text(this.Data().CustomerName());
      Form.lb_OrderRowNum_FCOS().Text(this.Data().OrderLineID());
      Form.ds_ForcastDate_FCOS().Date(this.Data().EndDate());
      Form.de_splisteDetailsFCOS().FixedFilter( "object.ID_S_DT_CustomOrder() = " + this.Data().ID().AsQUILL() + "and object.Status()=1");
      HQty:=sum( MacroPlan,S_DT_SpliteStruct,Obj,Obj.ID_S_DT_CustomOrder()=this.Data().ID() and Obj.Status()=1,Obj.Qty());
      Form.np_Qty_FCOS().Max(this.Data().Quantity()-HQty);
      Form.np_Qty_FCOS().Number(this.Data().Quantity()-HQty);
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Response_dh_Paramer_SCustomOrder_FCOS_OnDataChanged.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,25 @@
Quintiq file version 2.0
#parent: dh_Paramer_SCustomOrder_FCOS
Response OnDataChanged () id:Response_FrmCustomOrderSpliteRow_dh_Paramer_SCustomOrder_FCOS_OnDataChanged
{
  #keys: '[414724.0.303295647]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebComponent_OnDataChanged'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      Form.lb_OrderID_FCOS().Text(this.Data().OrderID());
      Form.lb_CustomName_FCOS().Text(this.Data().CustomerName());
      Form.lb_OrderRowNum_FCOS().Text(this.Data().OrderLineID());
      //Form.np_Qty_FCOS().Max(this.Data().Quantity());
      //Form.np_Qty_FCOS().Number(this.Data().Quantity());
      Form.ds_ForcastDate_FCOS().Date(this.Data().EndDate());
      Form.de_splisteDetailsFCOS().FixedFilter( "object.OrderID() = " + this.Data().OrderID().AsQUILL());
      HQty:=sum( MacroPlan,S_DT_SpliteStruct,Obj,Obj.OrderID()=this.Data().OrderID(),Obj.Qty());
      Form.np_Qty_FCOS().Max(this.Data().Quantity()-HQty);
      Form.np_Qty_FCOS().Number(this.Data().Quantity()-HQty);
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Response_list_SpliteDetails_136_m_delete_list_SD_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,37 @@
Quintiq file version 2.0
#parent: list_SpliteDetails_136
Response OnClick (
  S_DT_SpliteStruct selection
) id:Response_list_SpliteDetails_136_m_delete_list_SD_OnClick
{
  #keys: '[414724.0.314884983]'
  CanBindMultiple: false
  DefinitionID => /list_SpliteDetails_136/Responsedef_list_SpliteDetails_136_WebMenu_OnClick
  Initiator: 'm_delete_list_SD'
  Precondition:
  [*
    return not isnull( selection);
  *]
  QuillAction
  {
    Body:
    [*
      OrderInfo:=dh_Paramer_FCOS.Data();
      if( isnull( OrderInfo))
      {
        WebMessageBox::Warning( "操作失败,请重新选择订单进行拆行!");
      }
      else
      {
        selection.Status(0);
        Qty_Rows:=sum( MacroPlan,S_DT_SpliteStruct,obj,obj.ID_S_DT_CustomOrder()=OrderInfo.ID() and obj.Status()=1,obj.Qty());
        Qty_Max:=0.0;
        Qty_Max:= OrderInfo.Quantity()-Qty_Rows;
        np_Qty_FCOS.Max(Qty_Max);
        np_Qty_FCOS.Number(Qty_Max);
      }
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Response_pl_function_FCOS_btn_add_FCOS_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,32 @@
Quintiq file version 2.0
#parent: pl_function_FCOS/btn_add_FCOS
Response OnClick () id:Response_FrmCustomOrderSpliteRow_btn_add_FCOS_OnClick
{
  #keys: '[414724.0.290316632]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    return not isnull( dh_Paramer_FCOS.Data());
  *]
  QuillAction
  {
    Body:
    [*
      JResult := S_FunctionClass::SM_OrderToSpliteOrder( MacroPlan,dh_Paramer_FCOS.Data(),ef_SpliteReason_FCOS.Text());
      if( JResult.Get( "Status").GetBoolean())
      {
        FrmCustomOrderSpliteRow.Close();
        if( JResult.Get( "Msg").GetString().Length()>0)
        {
         WebMessageBox::Information(JResult.Get( "Msg").GetString());
        }
      }
      else
      {
        WebMessageBox::Warning(JResult.Get( "Msg").GetString());
      }
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/Response_pl_splite_info_btn_splite_add_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,51 @@
Quintiq file version 2.0
#parent: pl_splite_info/btn_splite_add
Response OnClick () id:Response_pl_splite_info_btn_splite_add_OnClick
{
  #keys: '[414724.0.292801656]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    return not isnull( dh_Paramer_FCOS.Data());
  *]
  QuillAction
  {
    Body:
    [*
      // æ‹†åˆ†ä¸€ä¸ªè®¢å•
      SQty:=[Number]np_Qty_FCOS.Number().Round( 0);
      if(SQty>0)
      {
        OrderInfo :=dh_Paramer_FCOS.Data();
        MacroPlan.S_DT_SpliteStruct(relnew,ID := H_FunctionClass::SM_GenerateID( "OSR")
                                            ,OrderID := OrderInfo.OrderID()
                                            ,ID_S_DT_CustomOrder := OrderInfo.ID()
                                            ,SpliteReason := ef_SpliteReason_FCOS.Text()
                                            ,Qty :=SQty
                                            ,Status := 1
                                            ,ForecastDate:= ds_ForcastDate_FCOS.Date());
        // è®¡ç®—剩余拆分
        LQty:= OrderInfo.Quantity()-sum(MacroPlan,S_DT_SpliteStruct,obj,obj.ID_S_DT_CustomOrder()=OrderInfo.ID() and obj.Status()=1,obj.Qty()) ;
        np_Qty_FCOS.Max(LQty);
        np_Qty_FCOS.Number(LQty);
        if( np_Qty_FCOS.Max()=0)
        {
         WebMessageBox::Information( "订单已经全部拆完!");
        }
      }
      else
      {
        if( np_Qty_FCOS.Max()=0)
        {
         WebMessageBox::Information( "订单已经全部拆完!");
        }
        else
        {
          WebMessageBox::Information( "请调整 è®¢å•数量");
        }
      }
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderSpliteRow/_ROOT_Component_FrmCustomOrderSpliteRow.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,102 @@
Quintiq file version 2.0
#root
#parent: MacroPlannerWebApp
OrphanComponent FrmCustomOrderSpliteRow
{
  #keys: '[414724.0.285177352]'
  Accessibility: 'Extensible'
  BaseType: 'WebForm'
  Children:
  [
    #child: pl_function_FCOS
    Component lb_OrderRowNum_FCOS
    {
      #keys: '[414724.0.285570507]'
      BaseType: 'WebLabel'
      Properties:
      [
        Label: '订单行号:'
        Taborder: 1
        Text: '1.1'
      ]
    }
    Component lb_CustomName_FCOS
    {
      #keys: '[414724.0.284201013]'
      BaseType: 'WebLabel'
      Properties:
      [
        Label: '客户名称:'
        Taborder: 2
        Text: '--小米'
      ]
    }
    Component ef_SpliteReason_FCOS
    {
      #keys: '[414724.0.285687770]'
      BaseType: 'WebEditField'
      Properties:
      [
        Label: '拆行原因:'
        MaxRows: 3
        Multiline: true
        PlaceHolder: '请录入'
        Taborder: 3
      ]
    }
    Component dh_Paramer_FCOS
    {
      #keys: '[414724.0.285920379]'
      BaseType: 'WebDataHolder'
      Databinding: 'CustomerOrder'
      Properties:
      [
        Taborder: 8
      ]
    }
    #child: pl_OperateBtns_FCOS
    #child: pl_splite_info
    Component dh_splitestruct
    {
      #keys: '[414724.0.294099522]'
      BaseType: 'WebDataHolder'
      Databinding: 'structured[S_DT_SpliteStruct]*'
      Children:
      [
        Component DataExtractor645
        {
          #keys: '[414724.0.293956350]'
          BaseType: 'WebDataExtractor'
          Properties:
          [
            DataType: 'MacroPlan'
            Source: 'MacroPlan'
            Taborder: 0
            Transformation: 'S_DT_SpliteStruct'
          ]
        }
      ]
      Properties:
      [
        Taborder: 7
      ]
    }
    #child: pl_spliteDetails
    Component dh_Paramer_SCustomOrder_FCOS
    {
      #keys: '[414724.0.303602526]'
      BaseType: 'WebDataHolder'
      Databinding: 'S_DT_CustomOrder'
      Properties:
      [
        Taborder: 9
      ]
    }
  ]
  Properties:
  [
    Description: '订单拆行表单'
    Image: 'ARROW_FORK'
    Title: '订单拆行'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_Panel651.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,44 @@
Quintiq file version 2.0
Component Panel651
{
  #keys: '[414724.0.302810875]'
  BaseType: 'WebPanel'
  Children:
  [
    Component btn_delete_FCOV id:btn_delete_FCOV_902
    {
      #keys: '[414724.0.302810937]'
      BaseType: 'WebButton'
      Properties:
      [
        Image: 'GARBAGE'
        Label: '删除'
        Taborder: 0
      ]
      ResponseDefinitions:
      [
        ResponseDefinition OnClick id:Responsedef_Panel651_btn_delete_FCOV_902_OnClick
        {
          #keys: '[414724.0.303035901]'
          IsInherited: false
          ResponseType: 'OnClick'
          Arguments:
          [
            ResponseDefinitionArgument selection
            {
              #keys: '[575.0.41049375]'
              Binding: 'lisplitedetails.Selection()'
            }
          ]
        }
      ]
    }
  ]
  Properties:
  [
    Alignment: 'trailing'
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_Panel713.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,26 @@
Quintiq file version 2.0
Component Panel713
{
  #keys: '[414724.0.302735923]'
  BaseType: 'WebPanel'
  Children:
  [
    #child: lisplitedetails_450
    #child: Panel651
    Component Label963
    {
      #keys: '[414724.0.302811066]'
      BaseType: 'WebLabel'
      Properties:
      [
        Label: '拆行明细:'
        Taborder: 0
      ]
    }
  ]
  Properties:
  [
    Taborder: 1
    Visible: false
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_lisplitedetails#450.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,42 @@
Quintiq file version 2.0
Component lisplitedetails id:lisplitedetails_450
{
  #keys: '[414724.0.302735971]'
  BaseType: 'WebList'
  Children:
  [
    Component de_liSpliteDetails
    {
      #keys: '[414724.0.302735972]'
      BaseType: 'WebDataExtractor'
      Properties:
      [
        DataType: 'MacroPlan'
        Source: 'MacroPlan'
        Taborder: 0
        Transformation: 'S_DT_SpliteStruct'
      ]
    }
    #child: listActionBarPage243_1
    Component DataSetLevel404
    {
      #keys: '[414724.0.302735974]'
      BaseType: 'WebDataSetLevel'
      Children:
      [
        #child: listContextMenu199_1
      ]
      Properties:
      [
        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderID","title":"原订单ID","subtotals":"","tooltip":"","width":10,"display":"shown","editable":false,"attribute":"OrderID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastDate","title":"需求日期","subtotals":"","tooltip":"","width":8,"display":"shown","editable":false,"attribute":"ForecastDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Qty","title":"数量","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Qty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Status","title":"状态","subtotals":"","tooltip":"","width":6,"display":"shown","editable":false,"attribute":"Status"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SDateTime","title":"发送至ERP时间","subtotals":"","tooltip":"","width":8,"display":"shown","editable":false,"attribute":"SDateTime"}}]'
        ContextMenu: 'listContextMenu199'
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
    MinimumColumns: 5
    Taborder: 2
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_listActionBarPage243#1.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
Component listActionBarPage243 id:listActionBarPage243_1
{
  #keys: '[414724.0.302735973]'
  BaseType: 'listActionBarPage'
  Properties:
  [
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_listActionBarPage978#1.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
Component listActionBarPage978 id:listActionBarPage978_1
{
  #keys: '[414724.0.300320629]'
  BaseType: 'listActionBarPage'
  Properties:
  [
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_listContextMenu199#1.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
Component listContextMenu199 id:listContextMenu199_1
{
  #keys: '[414724.0.302735975]'
  BaseType: 'listContextMenu'
  Properties:
  [
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_listContextMenu655#1.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
Component listContextMenu655 id:listContextMenu655_1
{
  #keys: '[414724.0.300320631]'
  BaseType: 'listContextMenu'
  Properties:
  [
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_listOrders#635.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,54 @@
Quintiq file version 2.0
Component listOrders id:listOrders_635
{
  #keys: '[414724.0.300320627]'
  BaseType: 'WebList'
  Children:
  [
    Component DataExtractor726
    {
      #keys: '[414724.0.300320628]'
      BaseType: 'WebDataExtractor'
      Properties:
      [
        DataType: 'MacroPlan'
        FixedFilter: 'object.ParentID()=""'
        Source: 'MacroPlan'
        Taborder: 0
        Transformation: 'S_DT_CustomOrder'
      ]
    }
    #child: listActionBarPage978_1
    Component DataSetLevel439
    {
      #keys: '[414724.0.300320630]'
      BaseType: 'WebDataSetLevel'
      Children:
      [
        #child: listContextMenu655_1
        Component DataSetLevel422
        {
          #keys: '[414724.0.315209998]'
          BaseType: 'WebDataSetLevel'
          Properties:
          [
            Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeAllConstraint","columnid":"All constraints","title":"All constraints","subtotals":"","tooltip":"","width":-1,"display":"shown"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SalesSegmentName","title":"销售部门","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SalesSegmentName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StockingPointID","title":"库存点","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StockingPointID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"产品","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"EndDate","title":"需求日期","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"EndDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerID","title":"CustomerID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderID","title":"OrderID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderLineID","title":"OrderLineID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderLineID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Quantity","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Quantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"UnitOfMeasureName","title":"单位","subtotals":"","tooltip":"","width":2,"display":"shown","editable":false,"attribute":"UnitOfMeasureName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SplitCount","title":"已拆行数","subtotals":"","tooltip":"","width":3,"display":"shown","editable":false,"attribute":"SplitCount"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SpliteRenmain","title":"剩余数量","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SpliteRenmain"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SpliteReason","title":"拆行原因","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SpliteReason"}}]'
            RelationFromParent: 'Parent'
            RelationRepeating: 'Parent'
            Taborder: 1
          ]
        }
      ]
      Properties:
      [
        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeAllConstraint","columnid":"All constraints","title":"All constraints","subtotals":"","tooltip":"","width":-1,"display":"shown"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SalesSegmentName","title":"销售部门","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SalesSegmentName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StockingPointID","title":"库存点","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StockingPointID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"产品","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"EndDate","title":"需求日期","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"EndDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerID","title":"CustomerID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderID","title":"OrderID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderLineID","title":"OrderLineID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderLineID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Quantity","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Quantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"UnitOfMeasureName","title":"单位","subtotals":"","tooltip":"","width":2,"display":"shown","editable":false,"attribute":"UnitOfMeasureName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SplitCount","title":"已拆行数","subtotals":"","tooltip":"","width":3,"display":"shown","editable":false,"attribute":"SplitCount"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SpliteRenmain","title":"剩余数量","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SpliteRenmain"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SpliteReason","title":"拆行原因","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SpliteReason"}}]'
        ContextMenu: 'listContextMenu655'
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_pl_DataView.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,16 @@
Quintiq file version 2.0
Component pl_DataView
{
  #keys: '[414724.0.300320579]'
  BaseType: 'WebPanel'
  Children:
  [
    #child: listOrders_635
    #child: Panel713
  ]
  Properties:
  [
    Orientation: 'horizontal'
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Component_pl_Function_FCOV.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,114 @@
Quintiq file version 2.0
Component pl_Function_FCOV
{
  #keys: '[414724.0.295131518]'
  BaseType: 'WebPanel'
  Children:
  [
    Component btn_sendERP_FCOV
    {
      #keys: '[414724.0.295131536]'
      BaseType: 'WebButton'
      Properties:
      [
        Image: 'EXPORT1'
        Label: '发送至ERP'
        Taborder: 0
      ]
    }
    Component btn_huanyuan_FCOV
    {
      #keys: '[414724.0.295131559]'
      BaseType: 'WebButton'
      Properties:
      [
        Image: 'ARROW_INTO'
        Label: '还原'
        Taborder: 1
      ]
      ResponseDefinitions:
      [
        ResponseDefinition OnClick id:Responsedef_pl_Function_FCOV_btn_huanyuan_FCOV_OnClick
        {
          #keys: '[414724.0.303365423]'
          IsInherited: false
          ResponseType: 'OnClick'
          Arguments:
          [
            ResponseDefinitionArgument selection
            {
              #keys: '[575.0.65737681]'
              Binding: 'listOrders.Selection()'
            }
          ]
        }
      ]
    }
    Component btn_splitRow_FCOV
    {
      #keys: '[414724.0.295131572]'
      BaseType: 'WebButton'
      Properties:
      [
        Image: 'GRAPH_FORK'
        Label: '拆行'
        Taborder: 2
      ]
      ResponseDefinitions:
      [
        ResponseDefinition OnClick id:Responsedef_pl_Function_FCOV_btn_splitRow_FCOV_OnClick
        {
          #keys: '[414724.0.303295769]'
          IsInherited: false
          ResponseType: 'OnClick'
          Arguments:
          [
            ResponseDefinitionArgument selection
            {
              #keys: '[575.0.74590107]'
              Binding: 'listOrders.Selection()'
            }
          ]
        }
      ]
    }
    Component btn_deleteOrder_FCOV
    {
      #keys: '[414724.0.323807222]'
      BaseType: 'WebButton'
      Properties:
      [
        ButtonSize: 'compact'
        Description: '删除子订单按钮'
        Image: 'GARBAGE'
        Label: '删除'
        Taborder: 3
      ]
      ResponseDefinitions:
      [
        ResponseDefinition OnClick id:Responsedef_pl_Function_FCOV_btn_deleteOrder_FCOV_OnClick
        {
          #keys: '[414724.0.323889224]'
          IsInherited: false
          ResponseType: 'OnClick'
          Arguments:
          [
            ResponseDefinitionArgument selection
            {
              #keys: '[607.0.62176891]'
              Binding: 'listOrders.Selection()'
            }
          ]
        }
      ]
    }
  ]
  Properties:
  [
    Alignment: 'trailing'
    Border: true
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Response_Panel651_btn_delete_FCOV_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,22 @@
Quintiq file version 2.0
#parent: Panel651/btn_delete_FCOV_902
Response OnClick (
  S_DT_SpliteStruct selection
) id:Response_Panel651_btn_delete_FCOV_OnClick
{
  #keys: '[414724.0.302931548]'
  CanBindMultiple: false
  DefinitionID => /Panel651/Responsedef_Panel651_btn_delete_FCOV_902_OnClick
  Precondition:
  [*
    return not isnull( selection);
  *]
  QuillAction
  {
    Body:
    [*
      selection.Delete();
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Response_listOrders_635_OnSelectionChanged.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,18 @@
Quintiq file version 2.0
#parent: listOrders_635
Response OnSelectionChanged (
  S_DT_CustomOrder selection
) id:Response_listOrders_635_OnSelectionChanged
{
  #keys: '[414724.0.302697813]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebList_OnSelectionChanged'
  QuillAction
  {
    Body:
    [*
      Form.de_liSpliteDetails().FixedFilter( "object.OrderID() = " + selection.OrderID().AsQUILL());
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Response_pl_Function_FCOV_btn_deleteOrder_FCOV_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,36 @@
Quintiq file version 2.0
#parent: pl_Function_FCOV/btn_deleteOrder_FCOV
Response OnClick (
  S_DT_CustomOrder selection
) id:Response_pl_Function_FCOV_btn_deleteOrder_FCOV_OnClick
{
  #keys: '[414724.0.321284302]'
  CanBindMultiple: false
  DefinitionID => /pl_Function_FCOV/Responsedef_pl_Function_FCOV_btn_deleteOrder_FCOV_OnClick
  Precondition:
  [*
    return not isnull( selection) and selection.ParentID()<>"";
  *]
  QuillAction
  {
    Body:
    [*
      Num:=WebMessageBox::Question("确认删除?",true);
      if( Num=0)
      {
        OrderInfo:=select( MacroPlan,SalesDemand.astype( CustomerOrder ),obj,obj.ID()=selection.ParentID());
        SSI := select(MacroPlan,S_DT_SpliteStruct,obj,obj.ID() = selection.ID_SpliteStruct());
        if( not isnull( SSI))
        {
          SSI.Status(0);
        }
        S_FunctionClass::SM_OrderToSpliteOrder( MacroPlan,OrderInfo,"");
        if( not isnull( selection))
        {
          selection.Delete();
        }
      }
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Response_pl_Function_FCOV_btn_huanyuan_FCOV_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,40 @@
Quintiq file version 2.0
#parent: pl_Function_FCOV/btn_huanyuan_FCOV
Response OnClick (
  S_DT_CustomOrder selection
) id:Response_pl_Function_FCOV_btn_huanyuan_FCOV_OnClick
{
  #keys: '[414724.0.303365693]'
  CanBindMultiple: false
  DefinitionID => /pl_Function_FCOV/Responsedef_pl_Function_FCOV_btn_huanyuan_FCOV_OnClick
  Precondition:
  [*
    return not isnull( selection) and selection.ParentID()="";
  *]
  QuillAction
  {
    Body:
    [*
      Num:=WebMessageBox::Question(  "确认要还原拆分订单吗?
                                     æ³¨æ„ï¼šè¿˜åŽŸåŽå·²æ‹†åˆ†ç»“æžœå°†è¢«æ¸…ç©º",true);
      if(Num=0)
      {
        // æ¸…理拆分记录表
        traverse( MacroPlan,S_DT_SpliteStruct,obj,obj.ID_S_DT_CustomOrder()=selection.ID())
        {
          obj.Delete();
        }
        // æ¸…理拆分订单
        traverse( MacroPlan,S_DT_CustomOrder,obj,obj.ParentID()=selection.ID())
        {
            obj.Delete();
        }
        // æ¸…理订单
        selection.Delete();
        WebMessageBox::Information( "订单已经还原");
      }
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Response_pl_Function_FCOV_btn_sendERP_FCOV_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,16 @@
Quintiq file version 2.0
#parent: pl_Function_FCOV/btn_sendERP_FCOV
Response OnClick () id:Response_pl_Function_FCOV_btn_sendERP_FCOV_OnClick
{
  #keys: '[414724.0.295170066]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  QuillAction
  {
    Body:
    [*
      WebMessageBox::Information( "功能尚未实现,事件执行成功!");
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/Response_pl_Function_FCOV_btn_splitRow_FCOV_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,25 @@
Quintiq file version 2.0
#parent: pl_Function_FCOV/btn_splitRow_FCOV
Response OnClick (
  S_DT_CustomOrder selection
) id:Response_pl_Function_FCOV_btn_splitRow_FCOV_OnClick
{
  #keys: '[414724.0.303198250]'
  CanBindMultiple: false
  DefinitionID => /pl_Function_FCOV/Responsedef_pl_Function_FCOV_btn_splitRow_FCOV_OnClick
  Precondition:
  [*
    return not isnull( selection) and selection.ParentID()="";
  *]
  QuillAction
  {
    Body:
    [*
      frmOrderSplite := construct( FrmCustomOrderSpliteRow );
      orderInfo:= select( MacroPlan,SalesDemand.astype(CustomerOrder ),obj,obj.ID()=selection.ID());
      frmOrderSplite.dh_Paramer_FCOS().Data(orderInfo);
      frmOrderSplite.ShowModal();
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmCustomOrderView/_ROOT_Component_FrmCustomOrderView.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,19 @@
Quintiq file version 2.0
#root
#parent: MacroPlannerWebApp
OrphanComponent FrmCustomOrderView
{
  #keys: '[414724.0.294851286]'
  BaseType: 'WebForm'
  Children:
  [
    #child: pl_Function_FCOV
    #child: pl_DataView
  ]
  Properties:
  [
    Description: '预拆行窗体'
    Image: 'ARROW_FORK'
    Title: '拆行订单'
  ]
}
_Main/UI/MacroPlannerWebApp/Views/È«¾Ö²ÎÊý.vw
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,351 @@
Quintiq file version 2.0
{
  viewcontents
  {
    forms
    {
      form_legacy_1
      {
        title: 'Scenario manager'
        shown: true
        componentID: 'FormScenarioManager'
        layout
        {
          mode: 'open'
          rowPosition: 1
          rowSpan: 8
          columnPosition: 1
          columnSpan: 5
        }
        components
        {
          FormScenarioManager_ListScenario
          {
          }
          FormScenarioManager_DataSetLevelScenario
          {
            groupDepth: -1
            column_All_constraints
            {
              columnId: 'All constraints'
              dataPath: 'All constraints'
              dataType: 'string'
              title: 'All constraints'
              index: 0
              subtotals: ''
              width: 90
            }
            column_Name
            {
              columnId: 'Name'
              dataPath: 'Name'
              dataType: 'string'
              title: '名称'
              index: 1
              subtotals: ''
              width: 277
            }
            column_ChangedBy
            {
              columnId: 'ChangedBy'
              dataPath: 'ChangedBy'
              dataType: 'string'
              title: 'Changed by'
              index: 2
              subtotals: ''
              width: 106
            }
            column_ChangedOn
            {
              columnId: 'ChangedOn'
              dataPath: 'ChangedOn'
              dataType: 'datetime'
              title: 'Changed on'
              index: 3
              subtotals: ''
              width: 99
            }
            column_StorageMode
            {
              columnId: 'StorageMode'
              dataPath: 'StorageMode'
              dataType: 'string'
              title: 'StorageMode'
              index: 4
              subtotals: ''
              width: 40
            }
          }
        }
      }
      form_legacy_2
      {
        title: 'Assumptions'
        shown: true
        componentID: 'FormAssumptions'
        layout
        {
          mode: 'open'
          rowPosition: 9
          rowSpan: 8
          columnPosition: 1
          columnSpan: 5
        }
        components
        {
          FormAssumptions_ListAssumptions
          {
          }
          FormAssumptions_DataSetLevelAssumptions
          {
            groupDepth: -1
            column_All_constraints
            {
              columnId: 'All constraints'
              dataPath: 'All constraints'
              dataType: 'string'
              title: 'All constraints'
              index: 0
              subtotals: ''
              width: 32
            }
            column_Category
            {
              columnId: 'Category'
              dataPath: 'Category'
              dataType: 'string'
              title: '类别'
              index: 1
              subtotals: ''
              width: 108
            }
            column_Importance
            {
              columnId: 'Importance'
              dataPath: 'Importance'
              dataType: 'string'
              title: '重要性'
              index: 2
              subtotals: ''
              width: 110
            }
            column_Title
            {
              columnId: 'Title'
              dataPath: 'Title'
              dataType: 'string'
              title: '标题'
              index: 3
              subtotals: ''
              width: 150
            }
            column_ChangedBy
            {
              columnId: 'ChangedBy'
              dataPath: 'ChangedBy'
              dataType: 'string'
              title: 'Changed by'
              index: 4
              subtotals: ''
              width: 150
            }
            column_CreatedOn
            {
              columnId: 'CreatedOn'
              dataPath: 'CreatedOn'
              dataType: 'datetime'
              title: 'Created on'
              index: 5
              subtotals: ''
              width: 150
            }
          }
        }
      }
      form_FormScenariosKPIsComparison
      {
        title: 'QLibMacroPlannerWebUI::FormScenariosKPIsComparison'
        shown: true
        componentID: 'QLibMacroPlannerWebUI::FormScenariosKPIsComparison'
        layout
        {
          mode: 'open'
          rowPosition: 1
          rowSpan: 16
          columnPosition: 6
          columnSpan: 7
        }
        components
        {
          FormScenariosKPIsComparison_MatrixEditorFinancialKPIs
          {
            gridColor: '#c4c4c4'
            totalHeaderWidth: 200
            attributeHeaderWidthRatio: 0.6
            nameHeaderWidthRatio: 0.4
            columnWidth: 100
            horizontalGrid: true
            verticalGrid: true
            backendState
            {
              componentId: 'QLibMacroPlannerWebUI::FormScenariosKPIsComparison.MatrixEditorFinancialKPIs'
              state
              {
                cells
                {
                  attributes
                  {
                    attribute_DisplayValue
                    {
                      type: 'MatrixEditorWebApiCellDataModelInterest'
                      index: 0
                      rowsubtotal: ''
                      columnsubtotal: ''
                      attribute: 'DisplayValue'
                    }
                  }
                }
                columns
                {
                  sorting
                  {
                    criteria: ''
                  }
                }
                rows
                {
                  sorting
                  {
                    criteria: "datamember:'KPISetting.DisplayIndex'"
                  }
                }
              }
            }
          }
        }
      }
      form_FormOptimizerPuzzles
      {
        title: 'Optimizer Puzzles'
        shown: false
        componentID: 'FormOptimizerPuzzles'
        layout
        {
          mode: 'dockright'
          index: 0
        }
        components
        {
          FormOptimizerPuzzles_ListOptimizerPuzzles
          {
          }
          FormOptimizerPuzzles_DataSetLevelOptimizerPuzzles
          {
            groupDepth: -1
            column_All_constraints
            {
              columnId: 'All constraints'
              dataPath: 'All constraints'
              dataType: 'string'
              title: 'All constraints'
              index: 0
              subtotals: ''
              width: 32
            }
            column_Name
            {
              columnId: 'Name'
              dataPath: 'Name'
              dataType: 'string'
              title: '名称'
              index: 1
              subtotals: ''
              width: 109
            }
            column_Description
            {
              columnId: 'Description'
              dataPath: 'Description'
              dataType: 'string'
              title: '描述'
              index: 2
              subtotals: ''
              width: 207
            }
          }
        }
      }
      form_FormKPI
      {
        title: 'KPI Dashboard'
        shown: true
        componentID: 'FormKPI'
        layout
        {
          mode: 'dockright'
          index: 1
        }
        components
        {
          FormKPI_PanelKPI
          {
            sizeRatio: 1
            activeChild: 'PanelKPISelection'
          }
          FormKPI_PanelKPIDashboard
          {
            sizeRatio: 1
          }
          FormKPI_PanelKPISelection
          {
            sizeRatio: 1
          }
          FormKPI_ListKPISelection
          {
            QuillViewData
            {
              Food_KPISetting: 'Cost of sales;Fulfillment;Fulfillment target;Inventory holding cost;Labor cost;Margin;Safety stock;Sales;Sourcing cost;Total CO2 emission;Transportation cost;Volume'
            }
          }
          FormKPI_DataSetLevelKPISelection
          {
            groupDepth: -1
            column_All_constraints
            {
              columnId: 'All constraints'
              dataPath: 'All constraints'
              dataType: 'string'
              title: 'All constraints'
              index: 0
              subtotals: ''
              width: 32
            }
            column_Name
            {
              columnId: 'Name'
              dataPath: 'Name'
              dataType: 'string'
              title: '名称'
              index: 1
              subtotals: ''
              width: 200
            }
          }
        }
      }
    }
    userconfigurableinformation
    {
    }
    page: 'applicationDevelopmentActionBarPageDef'
    group: ''
    index: 4
    image: 'EARTH2'
    description: ''
  }
  formatversion: 2
  id: '全局参数'
  name: '全局参数'
  isglobal: false
  isroot: true
}
_Main/UI/MacroPlannerWebApp/_ROOT_Project_MacroPlannerWebApp.qp
@@ -5,7 +5,7 @@
  ProjectProperties
  {
    ApplicationComponentName: 'ApplicationMacroPlanner'
    BuildVersion: '2022.3.0.32'
    BuildVersion: '2022.3.0.33'
    Description: 'Quintiq Macro Planner'
    ProjectKind: 'WebClient'
  }