-
Notifications
You must be signed in to change notification settings - Fork 0
20 Scoring Sheets
fubits edited this page Jul 6, 2020
·
4 revisions
Last Updated: 2020-07-03
For best practice, add
DC fileID
tojson/JSON_companies.js/<company>
before castingSC
. This way SC will immediately be connected to DC.
Module Purpose: single Company Scoring Collection Spreadsheets (Company Scoring Sheets)
- main Module Caller:
00_mainController.js::mainScoringSheets()
- main Module Caller:
00_mainController.js::createSpreadsheetOutput(Company)
-
for each company of
companies[]
/companies[].slice()
- create a single Spreadsheet
<Index> - <Company> - <Mode: Output>
- for each
Indicator
inIndicators[]
- for each
Step
inresearchSteps[]
- create column header
- for each
Indicator
inIndicators[]
- create header row for
Indicator
and company services - for each
Component
inStep
- import label and results from input sheet
- add scoring row
- create header row for
- for each
- apply formating
- create a single Spreadsheet
-
Output files are located in
Config.rootFolderID/Config.outputFolderName
ofdata@rdr
's Drive. -
The
fileID
of new spreadsheet should then be added as value of<company>.urlCurrentCompanyScoringSheet
in the respectiveJSON_companies.[<company>]
Object.
TBD
- Config[]
- Companies[]
- Research Steps[]
- Indicators[]
- useStepsSubset
- Target Folder
-
20_scoringMain.js
: Main scoring process caller00_mainController
-
21_scoringInterface.js
: Scoring Interface; iterating overresearchSteps[]
and calls helper functions from lower-level submodules
21_scoringInterface.js
is also called from30_aggregationMain.js
& can be integrated into10_inputInterface.js
-
22_scoringSingleStepProcess.js
: imports results for all indicators of a single step -
23_scoringSubcomponents.js
: helper functions called in22_scoringSingleStepProcess.js
-
-
21_scoringInterface.js::addSetOfScoringSteps
- for each
Step
inresearchSteps[]
- call
22_scoringSingleStep::scoringSingleStep
to import results and format column
- call
- freeze first column
- for each
-
22_scoringSingleStep::scoringSingleStep
- call
23_scoringSubcomponents.js::setScoringSheetHeader
to create header forStep
- for each
IndicatorCategory
inIndicatorCategories[]
- for each
Indicator
inIndicators[]
- call
23_scoringSubcomponents.js::setScoringCompanyHeader
to create header forIndicator
andServices[]
- for each
StepComponent
inStepComponents[]
- call
23_scoringSubcomponents.js::importElementBlock
or23_scoringSubcomponents.js::importElementRow
to import results fromInputSheet
- call
- add scoring
- apply formating
- for each
- call
-
23_scoringSubcomponents.js::setScoringSheetHeader
- if
block
== 1- create header for
Company
- apply formating
- create header for
- create header for
Step
- if
-
23_scoringSubcomponents.js::setScoringCompanyHeader
- if
block
== 1- create header for
Indicator
- apply formating
- create header for
- for each
Service
inServices[]
- add subheader
- apply formating
- if