-
Notifications
You must be signed in to change notification settings - Fork 316
[Quality Management] [Demo Data] New Contoso Demo Tool module for Quality Management #6083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
attilatoury
wants to merge
15
commits into
main
Choose a base branch
from
private/attilatoury/contoso-demo-data-module-for-quality-mgmt
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,500
−138
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b570c7d
removed obsolete install files
attilatoury 65d2d90
added a new contoso coffee demo dataset app for quality management an…
attilatoury f4a41eb
revert delete internal procedure which is used in the test app
attilatoury 33bf678
to be discussed with UX team
attilatoury c629a77
update extension logo
attilatoury a2a4a7c
added missing copyright section
attilatoury 3dea825
removed comment
attilatoury 67a04bf
action application area
attilatoury a727528
Merge branch 'main' of https://github.com/microsoft/BCApps into priva…
attilatoury d23e8e1
removed obsolete reference to resources folder in app json
attilatoury 32f21cd
Merge branch 'main' of https://github.com/microsoft/BCApps into priva…
attilatoury 6e515f2
removed unused imports
attilatoury 80cf1cd
Merge branch 'main' of https://github.com/microsoft/BCApps into priva…
attilatoury 032c5fb
merge conflict
attilatoury cd1e9fc
unused variable
attilatoury File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file removed
BIN
-58 KB
src/Apps/W1/Quality Management/app/Resources/InstallFiles/ConfigurationPackageExcelData.xlsx
Binary file not shown.
Binary file removed
BIN
-14.9 KB
src/Apps/W1/Quality Management/app/Resources/InstallFiles/PackageQM-EXPRESSDEMO.rapidstart
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ | |
| // ------------------------------------------------------------------------------------------------ | ||
| namespace Microsoft.QualityManagement.Setup.SetupWizard; | ||
|
|
||
| using Microsoft.DemoTool; | ||
| using Microsoft.QualityManagement.Configuration; | ||
| using Microsoft.QualityManagement.Configuration.GenerationRule; | ||
| using Microsoft.QualityManagement.Document; | ||
|
|
@@ -69,25 +70,33 @@ page 20438 "Qlty. Management Setup Wizard" | |
| InstructionalText = 'This wizard will guide you through the initial setup required to perform quality inspections.'; | ||
| } | ||
| } | ||
| group(SettingsFor_StepGettingStarted) | ||
| group(DemoData) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Get this reviewed by the UX team |
||
| { | ||
| Caption = 'Apply Getting Started Data?'; | ||
| Visible = (StepGettingStarted = CurrentStepCounter); | ||
| InstructionalText = 'Would you like to apply getting started data?'; | ||
| Caption = 'Demo data for Quality Management'; | ||
| Visible = (StepDemoData = CurrentStepCounter); | ||
|
|
||
| group(SettingsFor_ApplyConfigurationPackage) | ||
| group(DemoDataIntroduction) | ||
| { | ||
| Caption = 'What Is Getting Started Data?'; | ||
| InstructionalText = 'Getting started data for Quality Management will include basic setup data and also some useful examples or other demonstration data. Getting Started data can help you get running quickly, or help you with evaluating if the application is a fit more quickly. Very basic setup data for common integration scenarios will still be applied if you choose not to apply the getting started data. If you do not want this data, or if you have been previously set up then do not apply this configuration.'; | ||
| Caption = 'Demo data for Quality Management'; | ||
| InstructionalText = 'The Quality Management application includes demo data available as a Contoso Demo Tool module. Here is how to get started with it.'; | ||
| } | ||
|
|
||
| field(ChooseApplyConfigurationPackage; ApplyConfigurationPackage) | ||
| { | ||
| ApplicationArea = Basic, Suite; | ||
| OptionCaption = 'Apply Getting Started Data,Do Not Apply Configuration'; | ||
| Caption = 'Getting Started Data?'; | ||
| ShowCaption = false; | ||
| ToolTip = 'Specifies a configuration package of getting-started data is available to automatically apply.'; | ||
| } | ||
| group(DemoDataInstructions) | ||
| { | ||
| Caption = 'How to?'; | ||
| InstructionalText = 'Navigate to the Contoso Demo Tool page. Then, select the Quality Management module, and click on the Generate action. This will install demo data including sample inspection templates, inspection generation rules, and quality inspections.'; | ||
| } | ||
| field(LinkToContosoDemoToolPage; LinkToContosoDemoToolPageLbl) | ||
| { | ||
| Caption = 'Navigate to Contoso Demo Tool'; | ||
| ShowCaption = false; | ||
| Editable = false; | ||
| ApplicationArea = QualityManagement; | ||
|
|
||
| trigger OnDrillDown() | ||
| begin | ||
| Page.RunModal(Page::"Contoso Demo Tool"); | ||
| end; | ||
| } | ||
| } | ||
| group(SettingsFor_StepWhatAreYouMakingQltyInspectionsFor) | ||
|
|
@@ -499,19 +508,19 @@ page 20438 "Qlty. Management Setup Wizard" | |
| IsPremiumExperienceEnabled: Boolean; | ||
| TopBannerVisible: Boolean; | ||
| StepWelcome: Integer; | ||
| StepGettingStarted: Integer; | ||
| StepDemoData: Integer; | ||
| StepReceivingConfig: Integer; | ||
| StepWhatAreYouMakingQltyInspectionsFor: Integer; | ||
| StepProductionConfig: Integer; | ||
| StepShowInspections: Integer; | ||
| StepDone: Integer; | ||
| MaxStep: Integer; | ||
| ApplyConfigurationPackage: Option "Apply Getting Started Data","Do Not Apply Configuration."; | ||
| ReRunThisWizardWithMorePermissionErr: Label 'It looks like you need more permissions to run this wizard successfully. Please ask your Business Central administrator to grant more permission.'; | ||
| FinishWizardLbl: Label 'Finish wizard.', Locked = true; | ||
| QualityManagementTok: Label 'Quality Management', Locked = true; | ||
| QualityInspectionsLbl: Label 'Quality Inspections', Locked = true; | ||
| QualityInspectionGenerationRulesLbl: Label 'Quality Inspection Generation Rules', Locked = true; | ||
| LinkToContosoDemoToolPageLbl: Label 'Open Contoso Demo Tool', Locked = true; | ||
|
|
||
| trigger OnInit(); | ||
| begin | ||
|
|
@@ -520,7 +529,7 @@ page 20438 "Qlty. Management Setup Wizard" | |
| CopyPreviousSetup(); | ||
|
|
||
| StepWelcome := 1; | ||
| StepGettingStarted := 2; | ||
| StepDemoData := 2; | ||
| StepWhatAreYouMakingQltyInspectionsFor := 3; | ||
| StepProductionConfig := 4; | ||
| StepReceivingConfig := 5; | ||
|
|
@@ -555,8 +564,6 @@ page 20438 "Qlty. Management Setup Wizard" | |
| end; | ||
|
|
||
| local procedure ChangeToStep(Step: Integer); | ||
| var | ||
| GuidedExperience: Codeunit "Guided Experience"; | ||
| begin | ||
| if Step < 1 then | ||
| Step := 1; | ||
|
|
@@ -580,13 +587,6 @@ page 20438 "Qlty. Management Setup Wizard" | |
| Commit(); | ||
|
|
||
| QltyAutoConfigure.EnsureBasicSetupExists(false); | ||
| if GuidedExperience.IsAssistedSetupComplete(ObjectType::Page, Page::"Qlty. Management Setup Wizard") or | ||
| QltyAutoConfigure.GuessDoesAppearToBeSetup() or | ||
| QltyAutoConfigure.GuessDoesAppearToBeUsed() | ||
| then | ||
| ApplyConfigurationPackage := ApplyConfigurationPackage::"Do Not Apply Configuration." | ||
| else | ||
| ApplyConfigurationPackage := ApplyConfigurationPackage::"Apply Getting Started Data"; | ||
| end; | ||
| StepWhatAreYouMakingQltyInspectionsFor: | ||
| begin | ||
|
|
@@ -630,13 +630,9 @@ page 20438 "Qlty. Management Setup Wizard" | |
| case LeavingThisStep of | ||
| StepWelcome: | ||
| Commit(); | ||
| StepGettingStarted: | ||
| StepDemoData: | ||
| begin | ||
| GetLatestSetupRecord(true, true); | ||
| if ApplyConfigurationPackage = ApplyConfigurationPackage::"Apply Getting Started Data" then begin | ||
| QltyAutoConfigure.ApplyGettingStartedData(true); | ||
| Commit(); | ||
| end; | ||
| Commit(); | ||
| GetLatestSetupRecord(false, true); | ||
| end; | ||
|
|
||
47 changes: 47 additions & 0 deletions
47
...agementContosoCoffeeDemoDataset/DemoData/1.Setup Data/CreateQualityInspResult.Codeunit.al
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
| namespace Microsoft.DemoData.QualityManagement; | ||
|
|
||
| using Microsoft.DemoTool.Helpers; | ||
| using Microsoft.QualityManagement.Configuration.Result; | ||
|
|
||
| codeunit 5216 "Create Quality Insp. Result" | ||
| { | ||
| InherentEntitlements = X; | ||
| InherentPermissions = X; | ||
|
|
||
| trigger OnRun() | ||
| var | ||
| ContosoQualityManagement: Codeunit "Contoso Quality Management"; | ||
| begin | ||
| ContosoQualityManagement.InsertQualityInspectionResult(Fail(), FailDescLbl, 1, Enum::"Qlty. Result Copy Behavior"::"Automatically copy the result", Enum::"Qlty. Result Visibility"::"Configuration only", '<>0', '<>""', 'No', Enum::"Qlty. Result Category"::"Not acceptable", Enum::"Qlty. Result Finish Allowed"::"Allow Finish"); | ||
attilatoury marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ContosoQualityManagement.InsertQualityInspectionResult(InProgress(), InProgressDescLbl, 0, Enum::"Qlty. Result Copy Behavior"::"Automatically copy the result", Enum::"Qlty. Result Visibility"::"Configuration only", '', '', '', Enum::"Qlty. Result Category"::Uncategorized, Enum::"Qlty. Result Finish Allowed"::"Allow Finish"); | ||
| ContosoQualityManagement.InsertQualityInspectionResult(Pass(), PassDescLbl, 2, Enum::"Qlty. Result Copy Behavior"::"Automatically copy the result", Enum::"Qlty. Result Visibility"::Promoted, '<>0', '<>""', 'Yes', Enum::"Qlty. Result Category"::Acceptable, Enum::"Qlty. Result Finish Allowed"::"Allow Finish"); | ||
| end; | ||
|
|
||
| procedure Fail(): Code[20] | ||
| begin | ||
| exit(FailTok); | ||
| end; | ||
|
|
||
| procedure InProgress(): Code[20] | ||
| begin | ||
| exit(InProgressTok); | ||
| end; | ||
|
|
||
| procedure Pass(): Code[20] | ||
| begin | ||
| exit(PassTok); | ||
| end; | ||
|
|
||
| var | ||
| FailTok: Label 'FAIL', MaxLength = 20; | ||
| InProgressTok: Label 'INPROGRESS', MaxLength = 20; | ||
| PassTok: Label 'PASS', MaxLength = 20; | ||
|
|
||
| FailDescLbl: Label 'Fail', MaxLength = 100; | ||
| InProgressDescLbl: Label 'In Progress', MaxLength = 100; | ||
| PassDescLbl: Label 'Pass', MaxLength = 100; | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.