Difference between revisions of "OldIdFunctions"

From Catglobe Wiki
Jump to: navigation, search
Line 55: Line 55:
 
<br>
 
<br>
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[changeSampleRuleId|getReportStyleSheetId]]
+
| style="border: 1px solid; width: 239px;" | [[changeSampleRuleId|changeSampleRuleId]]
| style="border: 1px solid; width: 251px;" |
+
| style="border: 1px solid; width: 251px;" | X
 
<br>
 
<br>
 
| style="border: 1px solid; width: 237px;" |
 
| style="border: 1px solid; width: 237px;" |
 
sampleRule has only one kind of Id<br>
 
sampleRule has only one kind of Id<br>
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[createResourceProjectQuestionnaire|createResourceProjectQuestionnaire]]
+
| style="border: 1px solid; width: 239px;" | [[createResourceProjectQuestionnaire|createResourceProjectQuestionnaire(qnaireId)]]<br> [[createResourceProjectQuestionnaire|createResourceProjectQuestionnaire(qnaireId, assignCurrentUser)]]<br> [[createResourceProjectQuestionnaire|createResourceProjectQuestionnaire(qnaireId, assignCurrentUser, useExisting)]]
 
| style="border: 1px solid; width: 251px;" |
 
| style="border: 1px solid; width: 251px;" |
 
<br>
 
<br>
 
| style="border: 1px solid; width: 237px;" |
 
| style="border: 1px solid; width: 237px;" |
already exist: new QAS
+
already exist:<br> new QAS(qnaireRId, -1) <br> new QAS(qnaireRId, 0)<br> QAS_getByUserResourceId
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[getProjectQuestionnaireName|getProjectQuestionnaireName]]
+
| style="border: 1px solid; width: 239px;" | [[getProjectQuestionnaireName|getProjectQuestionnaireName(qnaireId)]] <br> [[getProjectQuestionnaireName|getProjectQuestionnaireName()]]
 
| style="border: 1px solid; width: 251px;" |
 
| style="border: 1px solid; width: 251px;" |
 
<br>
 
<br>
Line 73: Line 73:
 
expected new function name: getQuestionnaireName
 
expected new function name: getQuestionnaireName
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[getReturnToProjectQuestionnaireId|getReturnToProjectQuestionnaireId]]
+
| style="border: 1px solid; width: 239px;" | [[getReturnToProjectQuestionnaireId|getReturnToProjectQuestionnaireId()]] <br> return qnaireId
 
| style="border: 1px solid; width: 251px;" |
 
| style="border: 1px solid; width: 251px;" |
 
<br>
 
<br>
Line 79: Line 79:
 
expected new functions name: getReturnToQuestionnaireId
 
expected new functions name: getReturnToQuestionnaireId
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[getUserProjectQuestionnaireId|getUserProjectQuestionnaireId]]
+
| style="border: 1px solid; width: 239px;" | [[getUserProjectQuestionnaireId|getUserProjectQuestionnaireId()]]
| style="border: 1px solid; width: 251px;" |
+
| style="border: 1px solid; width: 251px;" | X
 
<br>
 
<br>
 
| style="border: 1px solid; width: 237px;" |
 
| style="border: 1px solid; width: 237px;" |
already exist: getRPQId
+
already exist: getRPQId <br>not related to Id, no need new function
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[getUserProjectQuestionnaireUserId|getUserProjectQuestionnaireUserId]]
+
| style="border: 1px solid; width: 239px;" | [[getUserProjectQuestionnaireUserId|getUserProjectQuestionnaireUserId()]] <br> return UserId
 
| style="border: 1px solid; width: 251px;" |
 
| style="border: 1px solid; width: 251px;" |
 
<br>
 
<br>
Line 91: Line 91:
 
already exist: getQASUserId
 
already exist: getQASUserId
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[questionnaireAnswerSheetExists|questionnaireAnswerSheetExists]]
+
| style="border: 1px solid; width: 239px;" | [[questionnaireAnswerSheetExists|questionnaireAnswerSheetExists(qnaireId, userId)]] <br>[[questionnaireAnswerSheetExists|questionnaireAnswerSheetExists(qnaireId)]]
 
| style="border: 1px solid; width: 251px;" |
 
| style="border: 1px solid; width: 251px;" |
<br>
+
| style="border: 1px solid; width: 237px;" |already exist:<br>QAS_exists(qnaireRid, userRId)<br>QAS_exists(qnaieRId)
| style="border: 1px solid; width: 237px;" |
+
 
expected new function name: QASExist
 
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid; width: 239px;" | [[sampleRuleExists|sampleRuleExists]]
 
| style="border: 1px solid; width: 239px;" | [[sampleRuleExists|sampleRuleExists]]
| style="border: 1px solid; width: 251px;" |
+
| style="border: 1px solid; width: 251px;" | X
 
<br>
 
<br>
 
| style="border: 1px solid; width: 237px;" |
 
| style="border: 1px solid; width: 237px;" |
 
sampleRule has only one kind of Id
 
sampleRule has only one kind of Id
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[setUserProjectQuestionnaireId|setUserProjectQuestionnaireId]]
+
| style="border: 1px solid; width: 239px;" | [[setUserProjectQuestionnaireId|setUserProjectQuestionnaireId(QASId)]]
| style="border: 1px solid; width: 251px;" |
+
| style="border: 1px solid; width: 251px;" | X
 
<br>
 
<br>
 
| style="border: 1px solid; width: 237px;" |
 
| style="border: 1px solid; width: 237px;" |
already exist: setRPQId
+
already exist: setRPQId <br> and not related with Id, no need new function
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid; width: 239px;" | [[setUserProjectQuestionnaireUserId|setUserProjectQuestionnaireUserId]]
+
| style="border: 1px solid; width: 239px;" | [[setUserProjectQuestionnaireUserId|setUserProjectQuestionnaireUserId(userId)]]
 
| style="border: 1px solid; width: 251px;" |
 
| style="border: 1px solid; width: 251px;" |
 
<br>
 
<br>

Revision as of 09:59, 8 March 2022

Old function New function Note
setRPQUserId(userId) setQASUserId(userRId)


getRPQUserId()
return userId
getQASUserId()
return userRId


setTimezone(userId, timezoneId)
setTimezone(timezoneId)
setUserTimezone(userRId, timezoneId)
setUserTimezone(timezoneId)
getTimezone(userId)
getTimezone()
getUserTimezone(userRId)
getUserTimezone()


setUserRoleId(userResourceTemplateId) User_setUserRoleId(userResourceTemplateRId)

already exist: setResourceTemplateResourceId

getUserRoleId()
return userResourceTemplateId
User_getUserRoleId()
return userResourceTemplateRId

already exist: getResourceTemplateResourceId

getQuestionnaireTemplateId Questionnaire_getTemplateId


getProjectQuestionnaireId Questionnaire_getProjectId

getQuestionnaireId

getReportStyleSheetIdByName Report_getStyleSheetIdByName


getReportStyleSheetId Report_getStyleSheetId


changeSampleRuleId X


sampleRule has only one kind of Id

createResourceProjectQuestionnaire(qnaireId)
createResourceProjectQuestionnaire(qnaireId, assignCurrentUser)
createResourceProjectQuestionnaire(qnaireId, assignCurrentUser, useExisting)


already exist:
new QAS(qnaireRId, -1)
new QAS(qnaireRId, 0)
QAS_getByUserResourceId

getProjectQuestionnaireName(qnaireId)
getProjectQuestionnaireName()


expected new function name: getQuestionnaireName

getReturnToProjectQuestionnaireId()
return qnaireId


expected new functions name: getReturnToQuestionnaireId

getUserProjectQuestionnaireId() X


already exist: getRPQId
not related to Id, no need new function

getUserProjectQuestionnaireUserId()
return UserId


already exist: getQASUserId

questionnaireAnswerSheetExists(qnaireId, userId)
questionnaireAnswerSheetExists(qnaireId)
already exist:
QAS_exists(qnaireRid, userRId)
QAS_exists(qnaieRId)
sampleRuleExists X


sampleRule has only one kind of Id

setUserProjectQuestionnaireId(QASId) X


already exist: setRPQId
and not related with Id, no need new function

setUserProjectQuestionnaireUserId(userId)


already exist: setQASUserId