Feat(SQL, UI): 1. Calc and Get Many Stored Procedures created for Weather, Lighting Level, Assessment, Distraction Type, Distraction Intensity Level, Distraction, Bribe, Assessment Command Modality Link, Response Quality Metric, Obedience Level, and Assessment Response. \n 2. Assessments and Assessment pages created with data loading and hooked up, but not saving.
This commit is contained in:
@@ -22,6 +22,10 @@ CREATE PROCEDURE parts.p_dog_get_many_distraction (
|
||||
, IN a_get_inactive_intensity_level_emotional BIT
|
||||
, IN a_ids_intensity_level_emotional TEXT
|
||||
, IN a_names_intensity_level_emotional TEXT
|
||||
, IN a_get_all_intensity_level_scent BIT
|
||||
, IN a_get_inactive_intensity_level_scent BIT
|
||||
, IN a_ids_intensity_level_scent TEXT
|
||||
, IN a_names_intensity_level_scent TEXT
|
||||
, IN a_get_all_intensity_level_sight BIT
|
||||
, IN a_get_inactive_intensity_level_sight BIT
|
||||
, IN a_ids_intensity_level_sight TEXT
|
||||
@@ -159,6 +163,10 @@ BEGIN
|
||||
, a_get_inactive_intensity_level_emotional
|
||||
, a_ids_intensity_level_emotional
|
||||
, a_names_intensity_level_emotional
|
||||
, a_get_all_intensity_level_scent
|
||||
, a_get_inactive_intensity_level_scent
|
||||
, a_ids_intensity_level_scent
|
||||
, a_names_intensity_level_scent
|
||||
, a_get_all_intensity_level_sight
|
||||
, a_get_inactive_intensity_level_sight
|
||||
, a_ids_intensity_level_sight
|
||||
@@ -220,6 +228,7 @@ BEGIN
|
||||
, id_assessment INT
|
||||
, id_distraction_type INT
|
||||
, id_intensity_level_emotional INT
|
||||
, id_intensity_level_scent INT
|
||||
, id_intensity_level_sight INT
|
||||
, id_intensity_level_sound INT
|
||||
, id_intensity_level_touch INT
|
||||
@@ -339,6 +348,10 @@ BEGIN
|
||||
, a_get_inactive_intensity_level_emotional
|
||||
, a_ids_intensity_level_emotional
|
||||
, a_names_intensity_level_emotional
|
||||
, a_get_all_intensity_level_scent
|
||||
, a_get_inactive_intensity_level_scent
|
||||
, a_ids_intensity_level_scent
|
||||
, a_names_intensity_level_scent
|
||||
, a_get_all_intensity_level_sight
|
||||
, a_get_inactive_intensity_level_sight
|
||||
, a_ids_intensity_level_sight
|
||||
@@ -403,6 +416,10 @@ BEGIN
|
||||
, a_get_inactive_intensity_level_emotional
|
||||
, a_ids_intensity_level_emotional
|
||||
, a_names_intensity_level_emotional
|
||||
, a_get_all_intensity_level_scent
|
||||
, a_get_inactive_intensity_level_scent
|
||||
, a_ids_intensity_level_scent
|
||||
, a_names_intensity_level_scent
|
||||
, a_get_all_intensity_level_sight
|
||||
, a_get_inactive_intensity_level_sight
|
||||
, a_ids_intensity_level_sight
|
||||
@@ -457,6 +474,7 @@ BEGIN
|
||||
, id_assessment
|
||||
, id_distraction_type
|
||||
, id_intensity_level_emotional
|
||||
, id_intensity_level_scent
|
||||
, id_intensity_level_sight
|
||||
, id_intensity_level_sound
|
||||
, id_intensity_level_touch
|
||||
@@ -472,6 +490,7 @@ BEGIN
|
||||
, DISTRACTION_T.id_assessment
|
||||
, DISTRACTION_T.id_distraction_type
|
||||
, DISTRACTION_T.id_intensity_level_emotional
|
||||
, DISTRACTION_T.id_intensity_level_scent
|
||||
, DISTRACTION_T.id_intensity_level_sight
|
||||
, DISTRACTION_T.id_intensity_level_sound
|
||||
, DISTRACTION_T.id_intensity_level_touch
|
||||
@@ -511,6 +530,8 @@ BEGIN
|
||||
, DISTRACTION_TYPE.name AS name_distraction_type
|
||||
, t_DISTRACTION.id_intensity_level_emotional
|
||||
, INTENSITY_LEVEL_EMOTIONAL.name AS name_intensity_level_emotional
|
||||
, t_DISTRACTION.id_intensity_level_scent
|
||||
, INTENSITY_LEVEL_SCENT.name AS name_intensity_level_scent
|
||||
, t_DISTRACTION.id_intensity_level_sight
|
||||
, INTENSITY_LEVEL_SIGHT.name AS name_intensity_level_sight
|
||||
, t_DISTRACTION.id_intensity_level_sound
|
||||
@@ -527,6 +548,7 @@ BEGIN
|
||||
FROM tmp_Distraction t_DISTRACTION
|
||||
LEFT JOIN parts.DOG_Distraction_Type DISTRACTION_TYPE ON t_DISTRACTION.id_distraction_type = DISTRACTION_TYPE.id_type
|
||||
LEFT JOIN parts.DOG_Distraction_Intensity_Level INTENSITY_LEVEL_EMOTIONAL ON t_DISTRACTION.id_intensity_level_emotional = INTENSITY_LEVEL_EMOTIONAL.id_intensity_level
|
||||
LEFT JOIN parts.DOG_Distraction_Intensity_Level INTENSITY_LEVEL_SCENT ON t_DISTRACTION.id_intensity_level_scent = INTENSITY_LEVEL_SCENT.id_intensity_level
|
||||
LEFT JOIN parts.DOG_Distraction_Intensity_Level INTENSITY_LEVEL_SIGHT ON t_DISTRACTION.id_intensity_level_sight = INTENSITY_LEVEL_SIGHT.id_intensity_level
|
||||
LEFT JOIN parts.DOG_Distraction_Intensity_Level INTENSITY_LEVEL_SOUND ON t_DISTRACTION.id_intensity_level_sound = INTENSITY_LEVEL_SOUND.id_intensity_level
|
||||
LEFT JOIN parts.DOG_Distraction_Intensity_Level INTENSITY_LEVEL_TOUCH ON t_DISTRACTION.id_intensity_level_touch = INTENSITY_LEVEL_TOUCH.id_intensity_level
|
||||
@@ -590,6 +612,11 @@ CALL parts.p_dog_get_many_distraction (
|
||||
, '' -- a_ids_intensity_level_emotional
|
||||
, '' -- a_names_intensity_level_emotional
|
||||
|
||||
, 1 -- a_get_all_intensity_level_scent
|
||||
, 0 -- a_get_inactive_intensity_level_scent
|
||||
, '' -- a_ids_intensity_level_scent
|
||||
, '' -- a_names_intensity_level_scent
|
||||
|
||||
, 1 -- a_get_all_intensity_level_sight
|
||||
, 0 -- a_get_inactive_intensity_level_sight
|
||||
, '' -- a_ids_intensity_level_sight
|
||||
|
||||
Reference in New Issue
Block a user