hongjli
2023-09-13 a3503a8a1304bc6f2fac3d68e8546244f9afd87c
面板拉料
已修改2个文件
已添加10个文件
174 ■■■■■ 文件已修改
_Main/BL/ConfigTemplates.properties 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperReponse#1.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperRequest.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/MessageEnhancerProcessor_MessageHeaderEnhancerProcessor.qbl 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/QuintiqEndpoint_QuintiqEndpoint.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/RestEndpoint_PanelMaterialRestEndpoint.qbl 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/_ROOT_IntegratorConfig_PanelMaterialRestServer.qbl 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_GlobalDTOTable/StaticMethod_ReceivingPanelMaterials.qbl 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_PanelMaterial/StaticMethod_Send.qbl 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormPanelPullPlanReport/Component_PanelFunctionButtons.def 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormPanelPullPlanReport/Response_PanelFunctionButtons_ButtonSend_OnClick.def 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/ConfigTemplates.properties
@@ -115,7 +115,11 @@
domainmodel.historicaltransactioncontrol=template:domainmodel.historicaltransactioncontrol
domainmodel.httphandlergroupdefinition.quantus=template:domainmodel.httphandlergroupdefinition
domainmodel.integratorconfig.dsendpoint.q3dspace_3dsendpoint=template:domainmodel.integratorconfig.dsendpoint
domainmodel.integratorconfig.quintiqendpoint.jtmbrestserver_quintiqendpoint=template:domainmodel.integratorconfig.quintiqendpoint
domainmodel.integratorconfig.quintiqendpoint.panelmaterialrestserver_quintiqendpoint=template:domainmodel.integratorconfig.quintiqendpoint
domainmodel.integratorconfig.quintiqendpoint.q3dspace_quintiqendpoint=template:domainmodel.integratorconfig.quintiqendpoint
domainmodel.integratorconfig.restendpoint.jtmbrestserver_restserver=template:domainmodel.integratorconfig.restendpoint
domainmodel.integratorconfig.restendpoint.panelmaterialrestserver_panelmaterialrestendpoint=template:domainmodel.integratorconfig.restendpoint
domainmodel.mdsstoragedefinitionmanager=template:domainmodel.mdsstoragedefinitionmanager
domainmodel.soapclientinterfacedefinition.interface.libdef_soapclients=template:domainmodel.soapclientinterfacedefinition
domainmodel.soapclientinterfacedefinition.interface.sopdsscclientinterfaces=template:domainmodel.soapclientinterfacedefinition
_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperReponse#1.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
ContentMapperProcessor ContentMapperReponse
{
  PosX: 305
  PosY: 450
  ReplyChannelOutputs: QuintiqEndpoint
}
_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/ContentMapperProcessor_ContentMapperRequest.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
ContentMapperProcessor ContentMapperRequest
{
  PosX: 405
  PosY: 200
  RequestChannelInputs: QuintiqEndpoint
}
_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/MessageEnhancerProcessor_MessageHeaderEnhancerProcessor.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,25 @@
Quintiq file version 2.0
#parent: #root
MessageEnhancerProcessor MessageHeaderEnhancerProcessor
{
  PosX: 205
  PosY: 200
  RequestChannelInputs: ContentMapperRequest
  MessageEnhancerSet
  {
    Property: '_QI.IsRequest'
    Type: 'String'
  }
  MessageEnhancerSet
  {
    Property: '_QI.Method'
    Type: 'String'
    Value: 'ReceivingPanelMaterials'
  }
  MessageEnhancerSet
  {
    Property: '_QI.Type'
    Type: 'String'
    Value: 'GlobalOTDTable'
  }
}
_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/QuintiqEndpoint_QuintiqEndpoint.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
QuintiqEndpoint QuintiqEndpoint
{
  PosX: 555
  PosY: 300
  SettingsEngineLink: 'domainmodel.integratorconfig.quintiqendpoint.panelmaterialrestserver_quintiqendpoint'
}
_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/RestEndpoint_PanelMaterialRestEndpoint.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
#parent: #root
RestEndpoint PanelMaterialRestEndpoint
{
  PosX: 55
  PosY: 300
  ReplyChannelOutputs: ContentMapperReponse
  RequestChannelInputs: MessageHeaderEnhancerProcessor
  SettingsEngineLink: 'domainmodel.integratorconfig.restendpoint.panelmaterialrestserver_panelmaterialrestendpoint'
}
_Main/BL/IntegratorConfigs/IntegratorConfig_PanelMaterialRestServer/_ROOT_IntegratorConfig_PanelMaterialRestServer.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,6 @@
Quintiq file version 2.0
#root
#parent: #root
IntegratorConfig PanelMaterialRestServer
{
}
_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,21 @@
Quintiq file version 2.0
#parent: #root
Method ReceivingPanelMaterials (
  NamedValueTree requestnvt
) as stream[NamedValueTree]
{
  TextBody:
  [*
    info( requestnvt.ToString() );
    logfile( "--------------------------------------1------------------------------------------------" );
    body := LibInt_MessageAccessor::GetBodyValueAsString( requestnvt );
    rep := LibInt_MessageAccessor::CreateEmptyMessage();
    LibInt_MessageAccessor::SetBodyValueAsString( rep, body );
    logfile( "--------------------------------------2------------------------------------------------" );
    info( rep.ToString() );
    return emit( rep );
  *]
}
_Main/BL/Type_GlobalDTOTable/StaticMethod_ReceivingPanelMaterials.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,13 @@
Quintiq file version 2.0
#parent: #root
StaticMethod ReceivingPanelMaterials (
  NamedValueTree requestnvt
) as stream[NamedValueTree]
{
  TextBody:
  [*
    MDSGlobalOTDTable::Find( DatasetFindOptions::Construct("GlobalOTDTable")) -> ( c ) {
      return c.ReceivingPanelMaterials( requestnvt );
    }
  *]
}
_Main/BL/Type_PanelMaterial/StaticMethod_Send.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,36 @@
Quintiq file version 2.0
#parent: #root
StaticMethod Send (
  MacroPlan macroPlan,
  Scenario scenario,
  String businessType
)
{
  TextBody:
  [*
    info( "版本号:", scenario.Name(), "    äº‹ä¸šéƒ¨ï¼š", businessType );
    jsonBuilder := JSON::Object();
    jsonBuilder.Add( "releaseDate", Date::ActualDate().Format( "Y-M2-D2" ) );
    jsonBuilder.Add( "businessType", businessType );
    jsonBuilder.Add( "scenarioName", scenario.Name() );
    jsonBuilderPanelMaterials := JSON::Array();
    traverse ( macroPlan, PanelMaterial, pm, true ) {
      jsonBuilderPanelMaterial := JSON::Object();
      jsonBuilderPanelMaterial.Add( "productID", pm.PanelModel() );
      jsonBuilderPanelMaterial.Add( "productDescription", pm.MaterialDescription() );
      jsonBuilderPanelMaterial.Add( "startDate", pm.StartDate().Format( "Y-M2-D2" ) );
      jsonBuilderPanelMaterial.Add( "quantity", pm.DemandQuantity() );
      jsonBuilderPanelMaterials.Add( jsonBuilderPanelMaterial );
    }
    jsonBuilder.Add( "panelMaterials", jsonBuilderPanelMaterials );
    json := jsonBuilder.Build();
    info( json.AsPrettyString() );
  *]
}
_Main/UI/MacroPlannerWebApp/Component_FormPanelPullPlanReport/Component_PanelFunctionButtons.def
@@ -27,6 +27,17 @@
        Taborder: 1
      ]
    }
    Component DropDownStringListBusinessType
    {
      #keys: '[414702.0.170431848]'
      BaseType: 'WebDropDownStringList'
      Properties:
      [
        Label: '事业部选择'
        Strings: '天华;专显;IT;车载;TM17;TM18;运动健康;汽车电子'
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
_Main/UI/MacroPlannerWebApp/Component_FormPanelPullPlanReport/Response_PanelFunctionButtons_ButtonSend_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,24 @@
Quintiq file version 2.0
#parent: PanelFunctionButtons/ButtonSend
Response OnClick () id:Response_PanelFunctionButtons_ButtonSend_OnClick
{
  #keys: '[414702.0.168500044]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    return not isnull( MacroPlan ) and not isnull( DataHolderActiveScenario.Data() );
  *]
  QuillAction
  {
    Body:
    [*
      scenario := DataHolderActiveScenario.Data();
      PanelMaterial::Send( MacroPlan, scenario, DropDownStringListBusinessType.Text() );
      WebMessageBox::Success( "发送成功!", true );
    *]
    GroupServerCalls: false
  }
}