From 9937bc6ade404aeb257bfef05d5047d8b07dd38c Mon Sep 17 00:00:00 2001 From: lazhen <17772815105@139.com> Date: 星期三, 05 六月 2024 16:15:41 +0800 Subject: [PATCH] 换型损失设置前端建dialog --- _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarPageRestraint.def | 15 +++++ _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarPageScenarioSelection.def | 8 ++ _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_applicationFixedPageActionBarPageDef.def | 8 ++ _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupRestraint_ButtonChangeLossSetting_OnClic.def | 16 +++++ _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_applicationDevelopmentActionBarPageDef#1.def | 8 ++ _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/_ROOT_Component_ApplicationMacroPlanner.def | 4 + _Main/UI/MacroPlannerWebApp/Component_DialogCreateEditChangeLossSetting/Component_pnlContent.def | 3 _Main/UI/MacroPlannerWebApp/Component_DialogCreateEditChangeLossSetting/Method_New.def | 2 _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarGroupRestraint.def | 24 ++++++++ _Main/UI/MacroPlannerWebApp/Component_FormChangeLossSetting/Component_ListChangeLossSetting.def | 2 _Main/UI/MacroPlannerWebApp/Views/Change_loss_setting_view.vw | 82 +++++++++++++++++++++++++++ 11 files changed, 168 insertions(+), 4 deletions(-) diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarGroupRestraint.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarGroupRestraint.def new file mode 100644 index 0000000..77a368c --- /dev/null +++ b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarGroupRestraint.def @@ -0,0 +1,24 @@ +Quintiq file version 2.0 +Component ActionBarGroupRestraint +{ + #keys: '[415136.0.747550191]' + BaseType: 'WebActionBarGroup' + Children: + [ + Component ButtonChangeLossSetting + { + #keys: '[415136.0.747550259]' + BaseType: 'WebButton' + Properties: + [ + Image: 'GEAR' + Label: 'Change loss setting' + Taborder: 0 + ] + } + ] + Properties: + [ + Taborder: 0 + ] +} diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarPageRestraint.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarPageRestraint.def new file mode 100644 index 0000000..13df9fa --- /dev/null +++ b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarPageRestraint.def @@ -0,0 +1,15 @@ +Quintiq file version 2.0 +Component ActionBarPageRestraint +{ + #keys: '[415136.0.747550190]' + BaseType: 'WebActionBarPage' + Children: + [ + #child: ActionBarGroupRestraint + ] + Properties: + [ + Taborder: 18 + Title: 'Restraint' + ] +} diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarPageScenarioSelection.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarPageScenarioSelection.def new file mode 100644 index 0000000..e918310 --- /dev/null +++ b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarPageScenarioSelection.def @@ -0,0 +1,8 @@ +Quintiq file version 2.0 +Component ActionBarPageScenarioSelection #extension +{ + Properties: + [ + Taborder: 20 + ] +} diff --git "a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_applicationDevelopmentActionBarPageDef\0431.def" "b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_applicationDevelopmentActionBarPageDef\0431.def" new file mode 100644 index 0000000..365a192 --- /dev/null +++ "b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_applicationDevelopmentActionBarPageDef\0431.def" @@ -0,0 +1,8 @@ +Quintiq file version 2.0 +Component applicationDevelopmentActionBarPageDef id:applicationDevelopmentActionBarPageDef_1 #extension +{ + Properties: + [ + Taborder: 19 + ] +} diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_applicationFixedPageActionBarPageDef.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_applicationFixedPageActionBarPageDef.def new file mode 100644 index 0000000..7c832f3 --- /dev/null +++ b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_applicationFixedPageActionBarPageDef.def @@ -0,0 +1,8 @@ +Quintiq file version 2.0 +Component applicationFixedPageActionBarPageDef #extension +{ + Properties: + [ + Taborder: 21 + ] +} diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupRestraint_ButtonChangeLossSetting_OnClic.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupRestraint_ButtonChangeLossSetting_OnClic.def new file mode 100644 index 0000000..d04f14a --- /dev/null +++ b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupRestraint_ButtonChangeLossSetting_OnClic.def @@ -0,0 +1,16 @@ +Quintiq file version 2.0 +#parent: ActionBarGroupRestraint/ButtonChangeLossSetting +Response OnClick () id:Response_MacroPlanner_ActionBarGroupRestraint_ButtonChangeLossSetting_OnClick +{ + #keys: '[415136.0.748214014]' + CanBindMultiple: false + DefinitionID: 'Responsedef_WebButton_OnClick' + QuillAction + { + Body: + [* + ApplicationScope.ViewManager().ResetUserViewById( "Change_loss_setting_view", true); + *] + GroupServerCalls: false + } +} diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/_ROOT_Component_ApplicationMacroPlanner.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/_ROOT_Component_ApplicationMacroPlanner.def index 3816dc4..db6cb34 100644 --- a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/_ROOT_Component_ApplicationMacroPlanner.def +++ b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/_ROOT_Component_ApplicationMacroPlanner.def @@ -13,6 +13,10 @@ #child: ActionBarPageSales #child: applicationConfigureActionBarPageDef #child: ActionBarPageInventory + #child: ActionBarPageRestraint + #child: ActionBarPageScenarioSelection + #child: applicationFixedPageActionBarPageDef + #child: applicationDevelopmentActionBarPageDef_1 ] } Component dhBinaryDataPR id:dhBinaryDataPR_688 diff --git a/_Main/UI/MacroPlannerWebApp/Component_DialogCreateEditChangeLossSetting/Component_pnlContent.def b/_Main/UI/MacroPlannerWebApp/Component_DialogCreateEditChangeLossSetting/Component_pnlContent.def index 935fb73..fe76392 100644 --- a/_Main/UI/MacroPlannerWebApp/Component_DialogCreateEditChangeLossSetting/Component_pnlContent.def +++ b/_Main/UI/MacroPlannerWebApp/Component_DialogCreateEditChangeLossSetting/Component_pnlContent.def @@ -19,7 +19,6 @@ Properties: [ DataType: 'MacroPlan' - FixedFilter: "object.CapacityType() = 'Time'" Source: 'MacroPlan' Taborder: 0 Transformation: 'Unit' @@ -29,7 +28,7 @@ Properties: [ DataBinding: 'dhDialogData.Data.Unit' - Label: 'Line' + Label: 'Unit' Taborder: 0 ] } diff --git a/_Main/UI/MacroPlannerWebApp/Component_DialogCreateEditChangeLossSetting/Method_New.def b/_Main/UI/MacroPlannerWebApp/Component_DialogCreateEditChangeLossSetting/Method_New.def index ee307d3..8e07d45 100644 --- a/_Main/UI/MacroPlannerWebApp/Component_DialogCreateEditChangeLossSetting/Method_New.def +++ b/_Main/UI/MacroPlannerWebApp/Component_DialogCreateEditChangeLossSetting/Method_New.def @@ -9,7 +9,7 @@ [* // To create a new product owner := LibCal_GlobalState.dhGlobalCalendarRegistry().Data(); - obj := MacroPlan.ChangeLossSetting( relshadow, Line := '', Product1 := '', Product2 := '' ); + obj := MacroPlan.ChangeLossSetting( relshadow ); dhDialogData.Data( &obj ); diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormChangeLossSetting/Component_ListChangeLossSetting.def b/_Main/UI/MacroPlannerWebApp/Component_FormChangeLossSetting/Component_ListChangeLossSetting.def index aa58182..213c5f6 100644 --- a/_Main/UI/MacroPlannerWebApp/Component_FormChangeLossSetting/Component_ListChangeLossSetting.def +++ b/_Main/UI/MacroPlannerWebApp/Component_FormChangeLossSetting/Component_ListChangeLossSetting.def @@ -28,7 +28,7 @@ ] Properties: [ - Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Line","title":"Line","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"Line"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Product1","title":"Product1","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"Product1"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Product2","title":"Product2","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"Product2"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ChangeLossNr","title":"ChangeLossNr","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ChangeLossNr"}}]' + Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Unit.ID","title":"Unit","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"Unit.ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductFirst.ID","title":"Product1","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ProductFirst.ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ProductSecond.ID","title":"Product2","subtotals":"","tooltip":"","width":-1,"display":"shown","attribute":"ProductSecond.ID"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ChangeLossNr","title":"ChangeLossNr","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ChangeLossNr"}}]' ContextMenu: 'listContextMenuChangeLossSetting' Taborder: 2 ] diff --git a/_Main/UI/MacroPlannerWebApp/Views/Change_loss_setting_view.vw b/_Main/UI/MacroPlannerWebApp/Views/Change_loss_setting_view.vw new file mode 100644 index 0000000..cb2cbed --- /dev/null +++ b/_Main/UI/MacroPlannerWebApp/Views/Change_loss_setting_view.vw @@ -0,0 +1,82 @@ +Quintiq file version 2.0 +{ + viewcontents + { + forms + { + form_FormChangeLossSetting + { + title: 'QMacroPlanner::FormChangeLossSetting' + shown: true + componentID: 'QMacroPlanner::FormChangeLossSetting' + layout + { + mode: 'open' + rowPosition: 1 + rowSpan: 15 + columnPosition: 1 + columnSpan: 12 + } + components + { + FormChangeLossSetting_ListChangeLossSetting + { + } + FormChangeLossSetting_DataSetLevelChangeLossSetting + { + groupDepth: -1 + column_Unit_ID + { + columnId: 'Unit.ID' + dataPath: 'Unit.ID' + dataType: 'string' + index: 0 + subtotals: '' + width: 150 + } + column_ProductFirst_ID + { + columnId: 'ProductFirst.ID' + dataPath: 'ProductFirst.ID' + dataType: 'string' + index: 1 + subtotals: '' + width: 150 + } + column_ProductSecond_ID + { + columnId: 'ProductSecond.ID' + dataPath: 'ProductSecond.ID' + dataType: 'string' + index: 2 + subtotals: '' + width: 150 + } + column_ChangeLossNr + { + columnId: 'ChangeLossNr' + dataPath: 'ChangeLossNr' + dataType: 'number' + index: 3 + subtotals: '' + width: 150 + } + } + } + } + } + userconfigurableinformation + { + } + page: '' + group: '' + index: 15 + image: 'GEAR' + description: '' + } + formatversion: 2 + id: 'Change_loss_setting_view' + name: 'Change loss setting view' + isglobal: false + isroot: true +} -- Gitblit v1.9.3