(contentId, data, addTask = false)
| 3068 | return _staticData; |
| 3069 | } |
| 3070 | export async function renderFormInDialog(contentId, data, addTask = false) { |
| 3071 | const moduleName = ModuleNameEnum.SERVICES; |
| 3072 | const pkForJobService = { |
| 3073 | jpos_jobid: data.jobId, |
| 3074 | jpos_posno: data.posNo, |
| 3075 | jpos_headertype: 1, |
| 3076 | jpos_subposno: 1 |
| 3077 | }; |
| 3078 | _setParentModuleSettings(ModuleNameEnum.JOB); |
| 3079 | _isFormInDialog = true; |
| 3080 | _isFormInDialogSelector = contentId; |
| 3081 | _isFormInDialogJobPK = pkForJobService; |
| 3082 | _parentTableDataId = { |
| 3083 | jobid: data.jobId |
| 3084 | }; |
| 3085 | _formIdName = moduleName + "_form"; |
| 3086 | _staticData = await servicesData.getGeneralData("job"); |
| 3087 | checkIsNonemptyObject(_staticData, "staticData in " + moduleName); |
| 3088 | const settings = await servicesData.getActionInfo( |
| 3089 | getPKfromModule(), |
| 3090 | _getModuleType() |
| 3091 | ); |
| 3092 | _positionSettings.settings[SETTINGS.CREATABLE] = settings.canBeCreated; |
| 3093 | _positionSettings.settings[SETTINGS.DELETABLE] = settings.canBeDeleted; |
| 3094 | const emailOfCurrentUser = await employeeData.getEmplList(); |
| 3095 | _generalDataEmplLists = { |
| 3096 | listEmpls: emailOfCurrentUser |
| 3097 | }; |
| 3098 | if (addTask) { |
| 3099 | |
| 3100 | _showFormButtons(buttons.STATE.initialize); |
| 3101 | $("#newPosition button").trigger("click"); |
| 3102 | } else { |
| 3103 | await _showForm(buttons.STATE.show, pkForJobService, contentId); |
| 3104 | } |
| 3105 | } |
nothing calls this directly
no test coverage detected