admin
2025-01-15 a8b49e963c749cbbcac029fa228d96e4056d501e
sap接口优化
已添加25个文件
已修改5个文件
721 ■■■■■ 文件已修改
_Main/BL/Type_AOnlineAndMOfflinePlanPIR/StaticMethod_DataPreview.qbl 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_AOnlineAndMOfflinePlanPIR/StaticMethod_GenerateData.qbl 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_InterfaceDataset/Attribute_IsPushSAP_PIR.qbl 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogSAP_PIR_DataPreview_JSON/Component_pnlActions.def 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogSAP_PIR_DataPreview_JSON/Component_pnlContent.def 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogSAP_PIR_DataPreview_JSON/Method_New.def 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogSAP_PIR_DataPreview_JSON/Response_pnlActions_btnApply_OnClick.def 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogSAP_PIR_DataPreview_JSON/Response_pnlActions_btnCancel_OnClick.def 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogSAP_PIR_DataPreview_JSON/Response_pnlActions_btnOk_OnClick.def 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogSAP_PIR_DataPreview_JSON/_ROOT_Component_DialogSAP_PIR_DataPreview_JSON.def 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogZEDPPSPIR/Method_OnOk.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormInterfaceLoginfo/Component_ListInterfaceLoginfo.def 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormInterfaceLoginfo/Component_listContextMenuInterfaceLoginfo.def 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormInterfaceLoginfo/Response_ListInterfaceLoginfo_mDelete_OnClick.def 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSAP_MS64/_ROOT_Component_FormSAP_MS64.def 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_List391.def 59 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_List655.def 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_listActionBarPage234.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_listActionBarPage949.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_listContextMenu300.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_listContextMenu713.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_pContent.def 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_pHeader.def 48 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_pLeft.def 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_pRight.def 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Response_List391_bGeneratePreviewData_OnClick.def 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Response_pHeader_bConfirm_OnClick.def 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Response_pHeader_cIsSAP_PIR_Preview_OnUserChanged.def 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/_ROOT_Component_FormSAP_PIR.def 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Views/Interface_loginfo_view.vw 131 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_AOnlineAndMOfflinePlanPIR/StaticMethod_DataPreview.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,32 @@
Quintiq file version 2.0
#parent: #root
StaticMethod DataPreview (
  InterfaceLoginfo loginfo
) as String
{
  Description: '数据预览'
  TextBody:
  [*
    jsondata           := JSON::Object();
    traverse( loginfo, AOnlineAndMOfflinePlanPIR, pir ){
      jsonarray        := JSON::Array();//.Add( "dto", JSON::Object().Add( "dday", date.Format( "Y-M2-D2" ) ).Add( "fac", "" ) ).Build();
      pirds            := selectsortedset( pir, PIRData, tempPIRD, true, tempPIRD.PlanningDate(), tempPIRD.Product() );
      traverse( pirds, Elements, pirdata ){
        pirjson        := JSON::Object().Add( "product", pirdata.Product() )
                                        .Add( "planningDate", pirdata.PlanningDate().Format( 'YM2D2' ) )//"2024-10-01" )
                                        .Add( "planningQty", pirdata.PlanningQty() )
                                        .Add( "factory", pirdata.Werk() ).Build();/*"2024-10-01 12:00:00" )*/
        jsonarray.Add( pirjson );
      }
      jsondata.Add( 'ZPPPSCode', pir.ZPPPSCode() )
      .Add( 'werk', pir.Werk() )
      .Add( 'VERSB', pir.Version() )
      .Add( 'startDate', pir.StartDate().Format( 'YM2D2' ) )
      .Add( 'endDate', pir.EndDate().Format( 'YM2D2' ) )
      .Add( 'dataList', jsonarray );
    }
    return jsondata.AsPrettyString();
  *]
}
_Main/BL/Type_AOnlineAndMOfflinePlanPIR/StaticMethod_GenerateData.qbl
@@ -8,7 +8,8 @@
  Date startdate,
  Date enddate,
  String executor,
  String feedback
  String feedback,
  Boolean isPush
) as InterfaceLoginfo
{
  TextBody:
@@ -65,7 +66,7 @@
          if( not exists( productids, Elements, e, e = row.ProductID() ) ){
            productids.Add( row.ProductID() );
          }
          pirdata          := selectobject(  pir, PIRData, pirdata, pirdata.Product() = row.ProductID() and pirdata.PlanningDate() = column.StartDate() );
          pirdata          := select( pir, PIRData, pirdata, pirdata.Product() = row.ProductID() and pirdata.PlanningDate() = column.StartDate() );
          if( isnull( pirdata ) ){
            pirdata        := pir.PIRData( relnew, Product := row.ProductID(), PlanningDate := column.StartDate(), PlanningQty := 0, Werk := rowwerk );
          }
@@ -91,7 +92,11 @@
      }
    }
    loginfo.TotalRow( pir.PIRData( relsize ) );
    feedback             := AOnlineAndMOfflinePlanPIR::Publish( owner, loginfo );
    if ( isPush ) {
      feedback             := AOnlineAndMOfflinePlanPIR::Publish( owner, loginfo );
    }
    return loginfo;
  *]
}
_Main/BL/Type_InterfaceDataset/Attribute_IsPushSAP_PIR.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,7 @@
Quintiq file version 2.0
#parent: #root
Attribute IsPushSAP_PIR
{
  #keys: '3[415754.0.904016038][415754.0.904016037][415754.0.904016039]'
  ValueType: Boolean
}
_Main/UI/MacroPlannerWebApp/Component_DialogSAP_PIR_DataPreview_JSON/Component_pnlActions.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,50 @@
Quintiq file version 2.0
Component pnlActions
{
  #keys: '[415754.0.905402656]'
  BaseType: 'WebPanel'
  Children:
  [
    Component btnApply
    {
      #keys: '[415754.0.905402658]'
      BaseType: 'WebButton'
      Properties:
      [
        Label: 'Apply'
        Taborder: 0
      ]
    }
    Component btnOk
    {
      #keys: '[415754.0.905402660]'
      BaseType: 'WebButton'
      Properties:
      [
        Label: 'OK'
        Taborder: 1
      ]
    }
    Component btnCancel
    {
      #keys: '[415754.0.905402662]'
      BaseType: 'WebButton'
      Properties:
      [
        Label: 'Cancel'
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
    Alignment: 'trailing'
    Border: true
    ExcludeFromActiveComponent: true
    FixedSize: true
    Orientation: 'horizontal'
    Padding: 'true'
    Style: 'footer'
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_DialogSAP_PIR_DataPreview_JSON/Component_pnlContent.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,27 @@
Quintiq file version 2.0
Component pnlContent
{
  #keys: '[415754.0.905402654]'
  BaseType: 'WebPanel'
  Children:
  [
    Component efContent
    {
      #keys: '[415754.0.907034219]'
      BaseType: 'WebEditField'
      Properties:
      [
        FixedSize: false
        MaxRows: 30
        Multiline: true
        NumberOfColumns: 100
        Taborder: 0
      ]
    }
  ]
  Properties:
  [
    Padding: 'true'
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_DialogSAP_PIR_DataPreview_JSON/Method_New.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,14 @@
Quintiq file version 2.0
#parent: #root
Method New (
  String dataPreview
) id:Method_DialogSAP_PIR_DataPreview_JSON_New
{
  #keys: '[415754.0.907034527]'
  Body:
  [*
    efContent.Text( dataPreview );
    ApplicationMacroPlanner.ShowFormModal( this );
  *]
}
_Main/UI/MacroPlannerWebApp/Component_DialogSAP_PIR_DataPreview_JSON/Response_pnlActions_btnApply_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,19 @@
Quintiq file version 2.0
#parent: pnlActions/btnApply
Response OnClick () id:Response_pnlActions_btnApply_OnClick
{
  #keys: '[415754.0.905402664]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  Precondition:
  [*
    return Form.HasChanges();
  *]
  QuillAction
  {
    Body:
    [*
      Form.ApplyChanges();
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_DialogSAP_PIR_DataPreview_JSON/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: '[415754.0.905402666]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      Form.Close();
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_DialogSAP_PIR_DataPreview_JSON/Response_pnlActions_btnOk_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,16 @@
Quintiq file version 2.0
#parent: pnlActions/btnOk
Response OnClick () id:Response_pnlActions_btnOk_OnClick
{
  #keys: '[415754.0.905402665]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      Form.ApplyChanges();
      Form.Close();
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_DialogSAP_PIR_DataPreview_JSON/_ROOT_Component_DialogSAP_PIR_DataPreview_JSON.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,23 @@
Quintiq file version 2.0
#root
#parent: MacroPlannerWebApp
OrphanComponent DialogSAP_PIR_DataPreview_JSON
{
  #keys: '[415754.0.905402652]'
  BaseType: 'WebForm'
  Children:
  [
    #child: pnlContent
    #child: pnlActions
  ]
  Properties:
  [
    Alignment: 'trailing'
    EnterButton: 'btnOk'
    EscapeButton: 'btnCancel'
    ExcludeFromActiveComponent: true
    MinimumColumns: 100
    MinimumRows: 30
    Padding: 'false'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_DialogZEDPPSPIR/Method_OnOk.def
@@ -8,7 +8,15 @@
    Form.ApplyChanges();
    if( WebMessageBox::Question( this, '是否确认推送', 'OK|Cancel' ) = 0 ){
      msg          := '';
      loginfo      := AOnlineAndMOfflinePlanPIR::GenerateData( InterfaceDataset, MacroPlan, ddslFactory.Text(), efVersion.Text(), dsStartDate.Date(), dsEndDate.Date(), QuintiqUser::CurrentUser().DisplayName(), msg );
      loginfo      := AOnlineAndMOfflinePlanPIR::GenerateData( InterfaceDataset,
                                                               MacroPlan,
                                                               ddslFactory.Text(),
                                                               efVersion.Text(),
                                                               dsStartDate.Date(),
                                                               dsEndDate.Date(),
                                                               QuintiqUser::CurrentUser().DisplayName(),
                                                               msg,
                                                               InterfaceDataset.IsPushSAP_PIR() );
      sucproduct   := selectuniquevalues( loginfo, SAPResponseLoginfo, e, e.IsSuccess(), e.Msg_v1() );
      if( sucproduct.Size() = loginfo.SAPResponseLoginfo( relsize ) ){
        WebMessageBox::Success( ApplicationMacroPlanner, '推送成功' );
_Main/UI/MacroPlannerWebApp/Component_FormInterfaceLoginfo/Component_ListInterfaceLoginfo.def
@@ -40,4 +40,22 @@
  [
    Taborder: 0
  ]
  ResponseDefinitions:
  [
    DelegatedResponseDefinition OnClick id:Responsedef_ListInterfaceLoginfo_WebMenu_OnClick
    {
      #keys: '[415754.0.905471826]'
      Initiator: 'WebMenu'
      IsInherited: false
      ResponseType: 'OnClick'
      Arguments:
      [
        ResponseDefinitionArgument selection
        {
          #keys: '[1489.0.24000311]'
          Binding: 'this.Selection()'
        }
      ]
    }
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormInterfaceLoginfo/Component_listContextMenuInterfaceLoginfo.def
@@ -3,6 +3,20 @@
{
  #keys: '[415136.0.931545409]'
  BaseType: 'listContextMenu'
  Children:
  [
    Component mDelete
    {
      #keys: '[415754.0.905471756]'
      BaseType: 'WebMenu'
      Properties:
      [
        Image: 'DELETE'
        Taborder: 3
        Title: 'Delete'
      ]
    }
  ]
  Properties:
  [
    Taborder: 0
_Main/UI/MacroPlannerWebApp/Component_FormInterfaceLoginfo/Response_ListInterfaceLoginfo_mDelete_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,18 @@
Quintiq file version 2.0
#parent: ListInterfaceLoginfo
Response OnClick (
  InterfaceLoginfo selection
) id:Response_ListInterfaceLoginfo_mDelete_OnClick
{
  #keys: '[415754.0.905471954]'
  DefinitionID => /ListInterfaceLoginfo/Responsedef_ListInterfaceLoginfo_WebMenu_OnClick
  Initiator: 'mDelete'
  QuillAction
  {
    Body:
    [*
      selection.Delete();
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FormSAP_MS64/_ROOT_Component_FormSAP_MS64.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,12 @@
Quintiq file version 2.0
#root
#parent: MacroPlannerWebApp
OrphanComponent FormSAP_MS64
{
  #keys: '[415754.0.904183512]'
  BaseType: 'WebForm'
  Properties:
  [
    Title: 'SAP_MS64'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_List391.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,59 @@
Quintiq file version 2.0
Component List391
{
  #keys: '[415754.0.906554104]'
  BaseType: 'WebList'
  Children:
  [
    Component DataExtractor655
    {
      #keys: '[415754.0.906554105]'
      BaseType: 'WebDataExtractor'
      Properties:
      [
        DataType: 'InterfaceDataset'
        Source: 'InterfaceDataset'
        Taborder: 0
        Transformation: 'AOnlineAndMOfflinePlanPIR'
      ]
    }
    #child: listActionBarPage234
    Component DataSetLevel650
    {
      #keys: '[415754.0.906554110]'
      BaseType: 'WebDataSetLevel'
      Children:
      [
        #child: listContextMenu300
      ]
      Properties:
      [
        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ZPPPSCode","title":"ZPPPSCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ZPPPSCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Werk","title":"Werk","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Werk"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Version","title":"Version","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Version"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"StartDate","title":"StartDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"StartDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"EndDate","title":"EndDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"EndDate"}}]'
        ContextMenu: 'listContextMenu300'
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
    Taborder: 0
  ]
  ResponseDefinitions:
  [
    DelegatedResponseDefinition OnClick id:Responsedef_List391_WebButton_OnClick
    {
      #keys: '[415754.0.906512353]'
      Initiator: 'WebButton'
      IsInherited: false
      ResponseType: 'OnClick'
      Arguments:
      [
        ResponseDefinitionArgument selection
        {
          #keys: '[1489.0.28151548]'
          Binding: 'this.Selection()'
        }
      ]
    }
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_List655.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,42 @@
Quintiq file version 2.0
Component List655
{
  #keys: '[415754.0.906554201]'
  BaseType: 'WebList'
  Children:
  [
    Component DataExtractor447
    {
      #keys: '[415754.0.906554202]'
      BaseType: 'WebDataExtractor'
      Properties:
      [
        DataType: 'AOnlineAndMOfflinePlanPIR'
        ExtractionMode: 'Selected'
        Source: 'List391'
        Taborder: 0
        Transformation: 'PIRData'
      ]
    }
    #child: listActionBarPage949
    Component DataSetLevel912
    {
      #keys: '[415754.0.906554207]'
      BaseType: 'WebDataSetLevel'
      Children:
      [
        #child: listContextMenu713
      ]
      Properties:
      [
        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PlanningDate","title":"PlanningDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"PlanningDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"PlanningQty","title":"PlanningQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"PlanningQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Product","title":"Product","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Product"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Werk","title":"Werk","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Werk"}}]'
        ContextMenu: 'listContextMenu713'
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_listActionBarPage234.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
Component listActionBarPage234
{
  #keys: '[415754.0.906554107]'
  BaseType: 'listActionBarPage'
  Properties:
  [
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_listActionBarPage949.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
Component listActionBarPage949
{
  #keys: '[415754.0.906554204]'
  BaseType: 'listActionBarPage'
  Properties:
  [
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_listContextMenu300.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
Component listContextMenu300
{
  #keys: '[415754.0.906554112]'
  BaseType: 'listContextMenu'
  Properties:
  [
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_listContextMenu713.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
Component listContextMenu713
{
  #keys: '[415754.0.906554209]'
  BaseType: 'listContextMenu'
  Properties:
  [
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_pContent.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,16 @@
Quintiq file version 2.0
Component pContent
{
  #keys: '[415754.0.904183609]'
  BaseType: 'WebPanel'
  Children:
  [
    #child: pRight
    #child: pLeft
  ]
  Properties:
  [
    Orientation: 'horizontal'
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_pHeader.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,48 @@
Quintiq file version 2.0
Component pHeader
{
  #keys: '[415754.0.904183592]'
  BaseType: 'WebPanel'
  Children:
  [
    Component cIsSAP_PIR_Preview
    {
      #keys: '[415754.0.905412071]'
      BaseType: 'WebCheckbox'
      Properties:
      [
        CheckboxType: 'toggle'
        DataBinding: 'InterfaceDataset.IsPushSAP_PIR'
        Label: '是否推送'
        Taborder: 0
      ]
    }
    Component bConfirm
    {
      #keys: '[415754.0.906728019]'
      BaseType: 'WebButton'
      Properties:
      [
        Label: '确认'
        Taborder: 1
      ]
    }
    Component bGeneratePreviewData
    {
      #keys: '[415754.0.905454331]'
      BaseType: 'WebButton'
      Properties:
      [
        Label: '生成预览JSON数据'
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
    Border: true
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_pLeft.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,14 @@
Quintiq file version 2.0
Component pLeft
{
  #keys: '[415754.0.906553813]'
  BaseType: 'WebPanel'
  Children:
  [
    #child: List391
  ]
  Properties:
  [
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Component_pRight.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,14 @@
Quintiq file version 2.0
Component pRight
{
  #keys: '[415754.0.906553826]'
  BaseType: 'WebPanel'
  Children:
  [
    #child: List655
  ]
  Properties:
  [
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Response_List391_bGeneratePreviewData_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,21 @@
Quintiq file version 2.0
#parent: List391
Response OnClick (
  AOnlineAndMOfflinePlanPIR selection
) id:Response_List391_bGeneratePreviewData_OnClick
{
  #keys: '[415754.0.906512675]'
  CanBindMultiple: false
  DefinitionID => /List391/Responsedef_List391_WebButton_OnClick
  Initiator: 'bGeneratePreviewData'
  QuillAction
  {
    Body:
    [*
      dlg := construct( DialogSAP_PIR_DataPreview_JSON );
      dlg.New( AOnlineAndMOfflinePlanPIR::DataPreview( selection.InterfaceLoginfo() ) );
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Response_pHeader_bConfirm_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,17 @@
Quintiq file version 2.0
#parent: pHeader/bConfirm
Response OnClick () id:Response_pHeader_bConfirm_OnClick
{
  #keys: '[415754.0.905481381]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  QuillAction
  {
    Body:
    [*
      dlg := construct( DialogZEDPPSPIR );
      dlg.New();
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/Response_pHeader_cIsSAP_PIR_Preview_OnUserChanged.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,16 @@
Quintiq file version 2.0
#parent: pHeader/cIsSAP_PIR_Preview
Response OnUserChanged () id:Response_pHeader_cIsSAP_PIR_Preview_OnUserChanged
{
  #keys: '[415754.0.906684729]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCheckbox_OnUserChanged'
  QuillAction
  {
    Body:
    [*
      InterfaceDataset.IsPushSAP_PIR( this.Checked() );
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FormSAP_PIR/_ROOT_Component_FormSAP_PIR.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,17 @@
Quintiq file version 2.0
#root
#parent: MacroPlannerWebApp
OrphanComponent FormSAP_PIR
{
  #keys: '[415754.0.904183421]'
  BaseType: 'WebForm'
  Children:
  [
    #child: pHeader
    #child: pContent
  ]
  Properties:
  [
    Title: 'SAP_PIR'
  ]
}
_Main/UI/MacroPlannerWebApp/Views/Interface_loginfo_view.vw
@@ -215,13 +215,142 @@
          }
        }
      }
      form_FormSAP_PIR
      {
        title: 'QMacroPlanner::FormSAP_PIR'
        shown: true
        componentID: 'QMacroPlanner::FormSAP_PIR'
        layout
        {
          mode: 'open'
          rowPosition: 29
          rowSpan: 14
          columnPosition: 1
          columnSpan: 14
        }
        components
        {
          FormSAP_PIR_pHeader
          {
            sizeRatio: 1
          }
          FormSAP_PIR_pContent
          {
            sizeRatio: 1
          }
          FormSAP_PIR_pLeft
          {
            sizeRatio: 1
          }
          FormSAP_PIR_List391
          {
          }
          FormSAP_PIR_DataSetLevel650
          {
            groupDepth: -1
            column_ZPPPSCode
            {
              columnId: 'ZPPPSCode'
              dataPath: 'ZPPPSCode'
              dataType: 'string'
              index: 0
              subtotals: ''
              width: 150
            }
            column_Werk
            {
              columnId: 'Werk'
              dataPath: 'Werk'
              dataType: 'string'
              index: 1
              subtotals: ''
              width: 150
            }
            column_Version
            {
              columnId: 'Version'
              dataPath: 'Version'
              dataType: 'string'
              index: 2
              subtotals: ''
              width: 150
            }
            column_StartDate
            {
              columnId: 'StartDate'
              dataPath: 'StartDate'
              dataType: 'date'
              index: 3
              subtotals: ''
              width: 150
            }
            column_EndDate
            {
              columnId: 'EndDate'
              dataPath: 'EndDate'
              dataType: 'date'
              index: 4
              subtotals: ''
              width: 150
            }
          }
          FormSAP_PIR_pRight
          {
            sizeRatio: 1
          }
          FormSAP_PIR_List655
          {
          }
          FormSAP_PIR_DataSetLevel912
          {
            groupDepth: -1
            sort: 'PlanningDate,Product'
            column_PlanningDate
            {
              columnId: 'PlanningDate'
              dataPath: 'PlanningDate'
              dataType: 'date'
              index: 0
              subtotals: ''
              width: 150
            }
            column_PlanningQty
            {
              columnId: 'PlanningQty'
              dataPath: 'PlanningQty'
              dataType: 'number'
              index: 1
              subtotals: ''
              width: 150
            }
            column_Product
            {
              columnId: 'Product'
              dataPath: 'Product'
              dataType: 'string'
              index: 2
              subtotals: ''
              width: 150
            }
            column_Werk
            {
              columnId: 'Werk'
              dataPath: 'Werk'
              dataType: 'string'
              index: 3
              subtotals: ''
              width: 150
            }
          }
        }
      }
    }
    userconfigurableinformation
    {
    }
    page: ''
    group: ''
    index: 22
    index: 0
    image: 'DOCUMENT'
    description: ''
  }