-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cdd2939
commit 8ce32d2
Showing
14 changed files
with
440 additions
and
172 deletions.
There are no files selected for viewing
287 changes: 160 additions & 127 deletions
287
CAPS/CustomWorkflowActivities/SetChildCareCapacityReporting.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
2 changes: 1 addition & 1 deletion
2
...ponentFramework/AFGProjectsEditGridPCF_v2/AFGProjectsEditGridV2/ControlManifest.Input.xml
This file contains 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 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 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
2 changes: 1 addition & 1 deletion
2
...AppComponentFramework/CCAFGProjectsGridPCF/CCAFGProjectsGridPCF/ControlManifest.Input.xml
This file contains 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 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 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
59 changes: 59 additions & 0 deletions
59
CAPS/WebResources/Scripts/FormHandler/caps_ChildCareQuarterlyReport.Form.js
This file contains 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,59 @@ | ||
"use strict"; | ||
|
||
var CAPS = CAPS || {}; | ||
CAPS.ChildCareQuarterlyReport = CAPS.ChildCareQuarterlyReport || { | ||
|
||
}; | ||
|
||
CAPS.ChildCareQuarterlyReport.onLoad = function (executionContext) { | ||
|
||
var formContext = executionContext.getFormContext(); | ||
CAPS.ChildCareQuarterlyReport.ShowHideFields(executionContext); | ||
formContext.getAttribute("caps_notdirectlyoperatingsecuredauthorizedoperator").addOnChange(CAPS.ChildCareQuarterlyReport.ShowHideFields); | ||
formContext.getAttribute("caps_whattypeofauthorizedoperator").addOnChange(CAPS.ChildCareQuarterlyReport.ShowHideFields); | ||
formContext.getAttribute("caps_receivedfundingfromadditionalsources").addOnChange(CAPS.ChildCareQuarterlyReport.ShowHideFields); | ||
}; | ||
|
||
CAPS.ChildCareQuarterlyReport.ShowHideFields = function (executionContext) { | ||
|
||
var formContext = executionContext.getFormContext(); | ||
if (formContext.getAttribute("caps_selfoperated").getValue() === true) { | ||
formContext.getControl("caps_notdirectlyoperatingsecuredauthorizedoperator").setVisible(false); | ||
} | ||
else { | ||
formContext.getControl("caps_notdirectlyoperatingsecuredauthorizedoperator").setVisible(true); | ||
} | ||
//If no Or Information Previously Provided Or Self Operated is Yes | ||
if (formContext.getAttribute("caps_notdirectlyoperatingsecuredauthorizedoperator").getValue() === 746660001 || | ||
formContext.getAttribute("caps_notdirectlyoperatingsecuredauthorizedoperator").getValue() === 746660002 || | ||
formContext.getAttribute("caps_notdirectlyoperatingsecuredauthorizedoperator").getValue() === null || | ||
formContext.getAttribute("caps_selfoperated").getValue() === true) { | ||
formContext.getControl("caps_whattypeofauthorizedoperator").setVisible(false); | ||
formContext.getControl("caps_forprofitoperatorjustification").setVisible(false); | ||
formContext.getAttribute("caps_whattypeofauthorizedoperator").setValue(null); | ||
formContext.getAttribute("caps_forprofitoperatorjustification").setValue(null); | ||
} | ||
else { | ||
formContext.getControl("caps_whattypeofauthorizedoperator").setVisible(true); | ||
//If what type of authorized operator is Public/Not-For-Profit | ||
if (formContext.getAttribute("caps_whattypeofauthorizedoperator").getValue() === 746660000 || | ||
formContext.getAttribute("caps_whattypeofauthorizedoperator").getValue() === null) { | ||
formContext.getControl("caps_forprofitoperatorjustification").setVisible(false); | ||
formContext.getAttribute("caps_forprofitoperatorjustification").setValue(null); | ||
} | ||
else { | ||
formContext.getControl("caps_forprofitoperatorjustification").setVisible(true); | ||
} | ||
} | ||
//If Received funding from additional sources is No or Information Previously Provided | ||
if (formContext.getAttribute("caps_receivedfundingfromadditionalsources").getValue() === 746660001 || | ||
formContext.getAttribute("caps_receivedfundingfromadditionalsources").getValue() === 746660002 || | ||
formContext.getAttribute("caps_receivedfundingfromadditionalsources").getValue() === null) { | ||
formContext.getControl("caps_amountreceivedandfromwhom").setVisible(false); | ||
formContext.getAttribute("caps_amountreceivedandfromwhom").setValue(null); | ||
} | ||
else { | ||
formContext.getControl("caps_amountreceivedandfromwhom").setVisible(true); | ||
} | ||
|
||
} |
This file contains 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
Oops, something went wrong.