yanweiyuan3
2023-09-11 7804ec7a70a7ffe3116daec64154c15842f8c513
Add Forecast form

添加预测页面并添加模糊搜索及日期搜索
已添加9个文件
已修改1个文件
407 ■■■■■ 文件已修改
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/Component_ListForecastForHedging.def 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/Component_PanelForecastForHedging.def 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/Component_PanelForecastForHedging961.def 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/Component_listActionBarPageForecastForHedging.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/Component_listContextMenuForecastForHedging.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/Response_PanelForecastForHedging961_ButtonForecastForHedging_OnClick.def 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/Response_PanelForecastForHedging961_DateSelectorForecastForHedging_OnCreated.def 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/_ROOT_Component_FormForecastForHedging.def 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Views/Test_for_hedging.vw 183 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/_ROOT_Project_MacroPlannerWebApp.qp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/Component_ListForecastForHedging.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,41 @@
Quintiq file version 2.0
Component ListForecastForHedging
{
  #keys: '[412960.0.117650662]'
  BaseType: 'WebList'
  Children:
  [
    Component DataExtractorForecastForHedging453
    {
      #keys: '[412960.0.117650663]'
      BaseType: 'WebDataExtractor'
      Properties:
      [
        DataType: 'structured[Forecast]'
        Source: 'DataHolderForecastForHedging'
        Taborder: 0
        Transformation: 'Elements'
      ]
    }
    #child: listActionBarPageForecastForHedging
    Component DataSetLevelForecastForHedging
    {
      #keys: '[412960.0.117650668]'
      BaseType: 'WebDataSetLevel'
      Children:
      [
        #child: listContextMenuForecastForHedging
      ]
      Properties:
      [
        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ID","title":"ID","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"EndDate","title":"EndDate","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"EndDate"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductID","title":"ProductID","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ProductID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Quantity","title":"Quantity","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Quantity"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"UnitOfMeasureName","title":"UnitOfMeasureName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"UnitOfMeasureName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SalesSegmentName","title":"SalesSegmentName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SalesSegmentName"}}]'
        ContextMenu: 'listContextMenuForecastForHedging'
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/Component_PanelForecastForHedging.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,15 @@
Quintiq file version 2.0
Component PanelForecastForHedging
{
  #keys: '[412960.0.117670724]'
  BaseType: 'WebPanel'
  Children:
  [
    #child: ListForecastForHedging
    #child: PanelForecastForHedging961
  ]
  Properties:
  [
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/Component_PanelForecastForHedging961.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,63 @@
Quintiq file version 2.0
Component PanelForecastForHedging961
{
  #keys: '[412960.0.124780919]'
  BaseType: 'WebPanel'
  Children:
  [
    Component DateSelectorForecastForHedging
    {
      #keys: '[412960.0.124781002]'
      BaseType: 'WebDateSelector'
      Properties:
      [
        Date: 2023-01-01
        DateFormat: 'YMM'
        Label: '截止日期'
        MinDate: 2023-01-01
        Taborder: 1
      ]
    }
    Component ButtonForecastForHedging
    {
      #keys: '[412960.0.124781317]'
      BaseType: 'WebButton'
      Properties:
      [
        BadgeTextColor: 'blue'
        ButtonSize: 'compact'
        Label: '  æœç´¢  '
        Taborder: 2
      ]
    }
    Component EditFieldForecastForHedging
    {
      #keys: '[412960.0.124781382]'
      BaseType: 'WebEditField'
      Properties:
      [
        PlaceHolder: '模糊搜索'
        Taborder: 0
      ]
    }
    Component LabelForecastForHedging
    {
      #keys: '[412960.0.124781423]'
      BaseType: 'WebLabel'
      Properties:
      [
        Label: '搜索'
        Taborder: 3
        Text: '搜索'
        Visible: false
      ]
    }
  ]
  Properties:
  [
    FixedSize: true
    Orientation: 'horizontal'
    SizeRatio: 0
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/Component_listActionBarPageForecastForHedging.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
Component listActionBarPageForecastForHedging
{
  #keys: '[412960.0.117650665]'
  BaseType: 'listActionBarPage'
  Properties:
  [
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/Component_listContextMenuForecastForHedging.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
Component listContextMenuForecastForHedging
{
  #keys: '[412960.0.117650670]'
  BaseType: 'listContextMenu'
  Properties:
  [
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/Response_PanelForecastForHedging961_ButtonForecastForHedging_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,24 @@
Quintiq file version 2.0
#parent: PanelForecastForHedging961/ButtonForecastForHedging
Response OnClick () id:Response_PanelForecastForHedging961_ButtonForecastForHedging_OnClick
{
  #keys: '[412960.0.124781470]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      DataExtractorForecastForHedging.FixedFilter(
                                                   "( object.ID().LikeUserLocale( " + EditFieldForecastForHedging.Text().AsQUILL() + " )"
                                                   + " or " + "object.ProductID().LikeUserLocale( " + EditFieldForecastForHedging.Text().AsQUILL() + " )"
      //                                             + " or " + "object.Quantity().AsString().LikeUserLocale( " + EditFieldForecastForHedging.Text().AsQUILL() + " )"
                                                   + " or " + "object.UnitOfMeasureName().LikeUserLocale( " + EditFieldForecastForHedging.Text().AsQUILL() + " )"
                                                   + " or " + "object.SalesSegmentName().LikeUserLocale( " + EditFieldForecastForHedging.Text().AsQUILL() + " ) )"
                                                   + "and" + "( object.EndDate() < " + DateSelectorForecastForHedging.Date().StartOfNextMonth().AsQUILL() +
                                                   " and " + "object.EndDate() >= " + DateSelectorForecastForHedging.Date().StartOfMonth().AsQUILL() + " )"
                                                   );
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/Response_PanelForecastForHedging961_DateSelectorForecastForHedging_OnCreated.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,16 @@
Quintiq file version 2.0
#parent: PanelForecastForHedging961/DateSelectorForecastForHedging
Response OnCreated () id:Response_PanelForecastForHedging961_DateSelectorForecastForHedging_OnCreated
{
  #keys: '[412960.0.124961321]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebComponent_OnCreated'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      this.Date( Date::ActualDate() );
    *]
  }
}
_Main/UI/MacroPlannerWebApp/Component_FormForecastForHedging/_ROOT_Component_FormForecastForHedging.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,43 @@
Quintiq file version 2.0
#root
#parent: MacroPlannerWebApp
OrphanComponent FormForecastForHedging
{
  #keys: '[412960.0.116513237]'
  BaseType: 'WebForm'
  Children:
  [
    #child: PanelForecastForHedging
    Component DataHolderForecastForHedging
    {
      #keys: '[412960.0.117670741]'
      BaseType: 'WebDataHolder'
      Databinding: 'structured[Forecast]*'
      Children:
      [
        Component DataExtractorForecastForHedging
        {
          #keys: '[412960.0.117620894]'
          BaseType: 'WebDataExtractor'
          Properties:
          [
            DataType: 'MacroPlan'
            Source: 'MacroPlan'
            Taborder: 0
            Transformation: 'SalesDemand.astype(Forecast)'
          ]
        }
      ]
      Properties:
      [
        Taborder: 1
      ]
    }
  ]
  Properties:
  [
    Description: '冲减功能下的预测数据界面'
    Image: 'PURCHASE_ORDER'
    Title: '预测列表页'
  ]
}
_Main/UI/MacroPlannerWebApp/Views/Test_for_hedging.vw
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,183 @@
Quintiq file version 2.0
{
  viewcontents
  {
    forms
    {
      form_legacy_1
      {
        title: 'Currencies'
        shown: true
        componentID: 'FormCurrency'
        layout
        {
          mode: 'open'
          rowPosition: 1
          rowSpan: 8
          columnPosition: 1
          columnSpan: 6
        }
        components
        {
          FormCurrency_PanelCurrency
          {
            sizeRatio: 1
          }
          FormCurrency_ListCurrency
          {
          }
          FormCurrency_DataSetLevelCurrency
          {
            groupDepth: -1
            sort: 'DESC:IsBase,Name'
            column_All_constraints
            {
              columnId: 'All constraints'
              dataPath: 'All constraints'
              dataType: 'string'
              title: 'All constraints'
              index: 0
              subtotals: ''
              width: 33
            }
            column_Base
            {
              columnId: 'Base'
              dataPath: 'Base'
              dataType: 'string'
              title: '基础'
              index: 1
              subtotals: ''
              width: 30
            }
            column_InUse
            {
              columnId: 'InUse'
              dataPath: 'InUse'
              dataType: 'string'
              title: 'InUse'
              index: 2
              subtotals: ''
              width: 30
            }
            column_Name
            {
              columnId: 'Name'
              dataPath: 'Name'
              dataType: 'string'
              title: '名称'
              index: 3
              subtotals: ''
              width: 150
            }
            column_Symbol
            {
              columnId: 'Symbol'
              dataPath: 'Symbol'
              dataType: 'string'
              title: '象征'
              index: 4
              subtotals: ''
              width: 150
            }
          }
        }
      }
      form_legacy_2
      {
        title: 'Currency rates'
        shown: true
        componentID: 'FormCurrencyRates'
        layout
        {
          mode: 'open'
          rowPosition: 1
          rowSpan: 8
          columnPosition: 7
          columnSpan: 6
        }
        components
        {
          FormCurrencyRates_ListCurrencyRate
          {
          }
          FormCurrencyRates_DataSetLevelCurrencyRate
          {
            groupDepth: -1
            sort: 'DESC:Start'
            column_All_constraints
            {
              columnId: 'All constraints'
              dataPath: 'All constraints'
              dataType: 'string'
              title: 'All constraints'
              index: 0
              subtotals: ''
              width: 33
            }
            column_Start
            {
              columnId: 'Start'
              dataPath: 'Start'
              dataType: 'date'
              title: '开始'
              index: 1
              subtotals: ''
              width: 150
            }
            column_Rate
            {
              columnId: 'Rate'
              dataPath: 'Rate'
              dataType: 'real'
              title: '速度'
              index: 2
              subtotals: ''
              width: 150
            }
          }
        }
      }
      form_legacy_3
      {
        title: 'Currency rates chart'
        shown: true
        componentID: 'FormCurrencyRatesChart'
        layout
        {
          mode: 'open'
          rowPosition: 9
          rowSpan: 8
          columnPosition: 1
          columnSpan: 12
        }
        components
        {
          FormCurrencyRatesChart_DashboardChartCurrencyRates
          {
            SynchronizationGroup: ''
          }
          FormCurrencyRatesChart_DashboardChartCurrencyRates_legend
          {
            LegendItems:
            [
            ]
          }
        }
      }
    }
    userconfigurableinformation
    {
    }
    page: 'applicationDevelopmentActionBarPageDef'
    group: ''
    index: 0
    image: 'APPLICATION_SERVER_PREFERENCES'
    description: ''
  }
  formatversion: 2
  id: 'Test_for_hedging'
  name: 'Test for hedging'
  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.72'
    Description: 'Quintiq Macro Planner'
    ProjectKind: 'WebClient'
  }