OWL ITS + 탐지시스템(인터넷 진흥원)
wyu
2021-11-15 d5d5e59e429a1246c4cbc6e62993cd69d6ad359f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<div class="formModal">
    <div class="modal-header faded smaller">
        <div class="modal-title">
            <strong translate="issue.modifyIssues">이슈 수정</strong>
        </div>
        <button aria-label="Close" class="close" type="button" ng-click="fn.cancel()">
            <span aria-hidden="true"> &times;</span>
        </button>
    </div>
 
    <div class="modal-body">
        <form role="form" name="issueModifyForm">
            <div class="form-group mb10">
                <label for="issueModifyForm1" class="issue-label"><span translate="issue.issueTitle">이슈 제목</span> <code
                        class="highlighter-rouge">*</code></label>
                <input id="issueModifyForm1"
                       class="form-control input-sm"
                       ng-model="vm.form.title"
                       name="title"
                       required
                       kr-input
                       maxlength="300"
                       autocomplete="off"
                       autofocus
                       owl-auto-focus>
                <small class="help-block form-text text-danger" ng-if="issueModifyForm.title.$touched && issueModifyForm.title.$error.required" translate="issue.requireIssueTitle">이슈 제목을 입력하세요.</small>
            </div>
 
            <div class="row">
                <div class="col-lg-4">
                    <div class="form-group mgb5">
                        <label class="issue-label"> <span translate="common.project">프로젝트</span> <code
                                class="highlighter-rouge">*</code></label>
                        <js-autocomplete-single data-input-name="project"
                                                selected-model="vm.form.projects"
                                                search="vm.projectName"
                                                source="fn.getProjectList(vm.projectName, vm.form.projects, vm.autoCompletePage.project.page, fn.getProjectListCallBack)"
                                                page="vm.autoCompletePage.project.page"
                                                total-page="vm.autoCompletePage.project.totalPage"
                                                input-disabled="false"
                                                translation-texts="{ empty : 'common.emptyProject' }"
                                                extra-settings="{ displayProp : 'name' , idProp : 'id', imageable : false, imagePathProp : '',
                                                type : '', maxlength : 200, autoResize : false, stopRemoveBodyEvent : true }"></js-autocomplete-single>
                        <small translate="issue.initializedAssigneeCustomField">프로젝트를 변경하면 담당자, 사용자 정의 필드 값이 초기화 됩니다.</small>
                    </div>
                </div>
 
                <div class="col-lg-8 bdl1">
                    <div class="row">
                        <div class="col-md-4">
                            <div class="form-group mgb5">
                                <label for="issueModifyForm4" class="issue-label"> <span translate="issue.issueType">이슈 타입</span>
                                    <code
                                            class="highlighter-rouge">*</code></label>
                                <select id="issueModifyForm4"
                                        name="issueType"
                                        class="form-control input-sm"
                                        ng-model="vm.form.issueTypeId"
                                        ng-change="fn.getIssueTypeCustomFields()"
                                        ng-style="{ 'color' : fn.getOptionColor(vm.issueTypes, vm.form.issueTypeId) }"
                                        required>
                                    <option value="" translate="common.selectTarget" ng-style="{ 'color' : '#353535' }">
                                        <span translate="common.selectTarget">대상 선택</span>
                                    </option>
                                    <option ng-repeat="issueType in vm.issueTypes"
                                            ng-style="{ 'color' : issueType.color, 'font-weight': 600 }"
                                            value="{{issueType.id}}">●&nbsp;{{issueType.name}}
                                    </option>
                                </select>
                                <small translate="issue.initializedIssueStatus">이슈 타입을 변경할 경우 사용자 정의 필드, 이슈 상태가 초기화
                                    됩니다.
                                </small>
                            </div>
                        </div>
 
                        <div class="col-md-4">
                            <div class="form-group mb10">
                                <label for="issueModifyForm2" class="issue-label">
                                    <span translate="common.priority">우선 순위</span>
                                    <code class="highlighter-rouge">*</code>
                                </label>
                                <select id="issueModifyForm2"
                                        name="priority"
                                        class="form-control input-sm issue-select-label"
                                        ng-model="vm.form.priorityId"
                                        ng-style="{ 'color' : fn.getOptionColor(vm.priorities, vm.form.priorityId) }"
                                        required>
                                    <option value="" translate="common.selectTarget" ng-style="{ color : '#353535' }">
                                        <span translate="common.selectTarget">대상 선택</span>
                                    </option>
                                    <option ng-repeat="priority in vm.priorities"
                                            ng-style="{ 'color' : priority.color, 'font-weight': 600 }"
                                            value="{{priority.id}}"
                                            translate="{{priority.name}}">
                                    </option>
                                </select>
                            </div>
                        </div>
 
                        <div class="col-md-4">
                            <div class="form-group mb10">
                                <label for="issueModifyForm3" class="issue-label"> <span translate="common.importance">중요도</span>
                                    <code class="highlighter-rouge">*</code></label>
                                <select id="issueModifyForm3"
                                        name="severity"
                                        class="form-control input-sm issue-select-label"
                                        ng-model="vm.form.severityId"
                                        ng-style="{ 'color' : fn.getOptionColor(vm.severities, vm.form.severityId)}"
                                        required>
                                    <option value="" translate="common.selectTarget" ng-style="{ color : '#353535' }">
                                        <span translate="common.selectTarget">대상 선택</span>
                                    </option>
                                    <option ng-repeat="severity in vm.severities"
                                            ng-style="{ color : severity.color, 'font-weight': 600 }"
                                            value="{{severity.id}}"
                                            translate="{{severity.name}}">
                                    </option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
 
            <div class="form-group mb10">
                <label class="issue-label"><span translate="common.content">내용</span></label>
                <summernote
                        class="summernote"
                        lang="ko-KR"
                        summer-note-auto-focus
                        ng-model="vm.form.description"
                        data-editor="vm.summerNote.editor"
                        data-editable="vm.summerNote.editable"
                        on-image-upload="fn.imageUpload(files)"
                        target=".note-editable"></summernote>
            </div>
 
            <div class="row">
                <div class="col-lg-4">
                    <div class="form-group mgb5">
                        <label class="issue-label"> <span translate="common.assigneeTeam">담당부서</span> </label>
                        <js-input-autocomplete data-input-name="users"
                                               selected-model="vm.form.users"
                                               search="vm.userName"
                                               page="vm.autoCompletePage.user.page"
                                               total-page="vm.autoCompletePage.user.totalPage"
                                               source="fn.getUserList(vm.userName, vm.form.users, vm.autoCompletePage.user.page, fn.getUserListCallBack)"
                                               translation-texts="{ empty : 'common.emptyUser'}"
                                               input-disabled="vm.form.projects.length == 0"
                                               extra-settings="{ displayProp : 'byName' , idProp : 'id', imageable : true, imagePathProp : 'profile',
                                               type : 'user', maxlength : 100, autoResize : true, stopRemoveBodyEvent : true }"></js-input-autocomplete>
 
                        <small translate="common.setParticipatingInProject">프로젝트에 참여하는 사용자를 설정합니다.</small>
                        <div class="select3-selection__choicediv">
                            <span class="select3-selection__choice" ng-repeat="user in vm.form.users">
                                <span class="avatar-w"><img ng-src="{{user.profile}}"></span>
                                <span>{{user.name}}({{user.account}})</span>
                                <span class="select3-selection__choice__remove"
                                      ng-click="fn.removeManager($index)">×</span>
                            </span>
                        </div>
                    </div>
 
                    <div class="form-group mgb5">
                        <label for="issueModifyForm5" class="issue-label"> <span translate="common.period">기간</span>
                        </label>
                        <input id="issueModifyForm5"
                               type="text"
                               readonly
                               class="form-control cursor"
                               placeholder="{{'issue.clickToSelectDate' | translate}}"
                               ng-model="vm.form.startCompleteDateRange"
                               modal-form-auto-scroll
                               date-format="YYYY-MM-DD"
                               parent-el="'#createdWidget'"
                               date-range-picker>
                        <div class="row">
                            <div class="col-xs-12">
                                <div id="createdWidget" class="bootstrap-datepicker"></div>
                            </div>
                        </div>
                    </div>
 
                    <div class="form-group mgb5">
                        <label class="issue-label"><span translate="common.attachFiles">파일 첨부</span></label>
                        <div class="filebox input-group">
                            <input class="upload-name form-control"
                                   placeholder="{{'users.pleaseSelectFile' | translate}}"
                                   tabindex="-1"
                                   disabled="disabled">
                            <label for="uploadFileField"><span translate="common.selectFile">파일선택</span></label>
                            <input id="uploadFileField"
                                   tabindex="-1"
                                   type="file"
                                   class="form-control"
                                   multiple
                                   ng-file-select="fn.onFileSelect($files)">
                        </div>
                        <small translate="issue.attachOnlyFiles">hwp, jpg, png, txt, pptx, ppt, pdf, xlsx, xls,
                            docx, zip, gif, jpeg, doc, tif, bmp, wmv, avi, mp4, mkv, mov 파일만 첨부할 수 있습니다.
                        </small>
 
                        <div class="select2-selection__choicediv">
                            <div class="select2-selection__choice2" ng-repeat="file in vm.form.files">
                                <div class="select2-selection__choice2__remove"
                                     ng-click="fn.removeUploadFile($index)">
                                    ×
                                </div>
                                <div class="ssg-items ssg-items-blocks">
                                    <div class="ssg-item">
                                        <div class="item-icon">
                                            <!--    문서  -->
                                            <i class="os-icon os-icon-file-text" ng-if="file.fileType == 'DOC'"></i>
                                            <!--    미디어  -->
                                            <i class="os-icon os-icon-film" ng-if="file.fileType == 'MEDIA'"></i>
                                            <!--    이미지(업로드 전)  -->
                                            <i class="os-icon os-icon-documents-07"
                                               ng-if="file.fileType == 'IMAGE' && !$root.isDefined(file.path)"></i>
                                            <!--    이미지(업로드 후)  -->
                                            <span class="attached-media-w"
                                                  ng-if="file.fileType == 'IMAGE' && $root.isDefined(file.path)">
                                                <img ng-src="{{file.path}}">
                                            </span>
                                            <!--    기타  -->
                                            <i class="os-icon os-icon-ui-51" ng-if="file.fileType == 'ETC'"></i>
                                        </div>
                                        <div class="item-name">
                                            <small>{{file.name}}</small>
                                        </div>
                                        <div class="item-amount">
                                            ({{file.size/1024/1024 | number:2}} MB)
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
 
                <div class="col-lg-8 bdl1">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group mgb5" ng-show="vm.form.issueCustomFields.length < 1">
                                <label class="issue-label" translate="issue.notIssueTypeCustomFields">이슈 타입에 연결된 사용자 정의 필드가 없습니다.</label>
                            </div>
                        </div>
 
                        <div class="col-md-6" ng-repeat="issueCustomField in vm.form.issueCustomFields">
                            <div class="form-group mgb5">
                                <label class="issue-label">{{issueCustomField.customFieldVo.name}}</label>
 
                                <div ng-switch on="issueCustomField.customFieldVo.customFieldType">
                                    <!-- 기본 입력 -->
                                    <div ng-switch-when="INPUT">
                                        <input type="text" class="form-control input-sm"
                                               ng-model="issueCustomField.useValues"
                                               maxlength="100"
                                               autocomplete="off"
                                               kr-input
                                               ng-required="issueCustomField.fieldOption == '01'">
                                    </div>
 
                                    <!-- 단일 셀렉트 -->
                                    <div ng-switch-when="SINGLE_SELECT">
                                        <select class="form-control input-sm"
                                                ng-required="issueCustomField.fieldOption == '01'"
                                                ng-model="issueCustomField.useValues">
                                            <option value="">선택하세요.</option>
                                            <option ng-repeat="customFieldValueVo in issueCustomField.customFieldVo.customFieldValueVos"
                                                    value="{{customFieldValueVo.value}}"
                                                    ng-selected="$root.selectOption(issueCustomField.useValues, customFieldValueVo.value)">
                                                {{customFieldValueVo.value}}
                                            </option>
                                        </select>
                                    </div>
 
                                    <!-- 멀티 셀렉트 -->
                                    <div ng-switch-when="MULTI_SELECT">
                                        <ng-dropdown-multiselect class="multiSelect cursor"
                                                                 data-input-name=""
                                                                 selected-model="issueCustomField.useValues"
                                                                 extra-settings="{ 'idProp' : 'value', 'externalIdProp' : 'value', 'displayProp' : 'value', 'stringTypeOption' : 'true', stopRemoveBodyEvent : true }"
                                                                 options="issueCustomField.customFieldVo.customFieldValueVos"></ng-dropdown-multiselect>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
 
    <div class="modal-footer buttons-on-right">
        <button type="button" class="btn btn-md btn-grey" ng-click="fn.cancel()" tabindex="-1"><span
                translate="common.cancel">취소</span></button>
        <button type="button" class="btn btn-md btn-primary bold"
                js-short-cut
                js-short-cut-action="(fn.formCheck(issueModifyForm.$invalid) || $root.spinner) ? null : fn.formSubmit()"
                ng-disabled="fn.formCheck(issueModifyForm.$invalid)"
                ng-click="fn.formSubmit()"><span translate="common.save">저장</span>
        </button>
    </div>
</div>