OWL ITS + 탐지시스템(인터넷 진흥원)
jhjang
2021-10-14 b74776268dd3eb2bc57744928d6f7150ffcd4ec2
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
/**
 * Created by wisestone on 2018-11-06.
 */
'use strict';
 
define(['app'],
    function (app) {
        app.directive('projectProgressWidget', ['$log', '$rootScope', '$uibModal',
            function ($log, $rootScope, $uibModal) {
                return {
                    restrict : 'E',
                    scope : {
                        projectProgressWidget : '=',
                    },
                    replace : true,
                    templateUrl : '../custom_components/widget/project-progress-widget/project-progress-widget.html',
                    controller : function ($scope, $element, $attrs) {
 
                        //  변수 모음
                        $scope.vm = {
                            projectProgressWidget : {}
                        };
 
                        //  함수 모음
                        $scope.fn = {
                            projectMember : projectMember   //  프로젝트 팀원 확인 팝업 호출
                        };
 
                        //  진행 중인 프로젝트 현황 정보가 변경될때 감지한다.
                        $scope.$watch("projectProgressWidget", function (newValue) {
                            if ($rootScope.isDefined(newValue)) {
                                //  진행 중인 프로젝트 현황 정보를 저장한다.
                                $scope.vm.projectProgressWidget = newValue;
                            }
                        });
 
                        //  프로젝트 팀원 확인 팝업 호출
                        function projectMember(id) {
                            $uibModal.open({
                                templateUrl : '../custom_components/widget/project-progress-widget/projectMemberList.html',
                                size : "md",
                                controller : 'projectMemberListController',
                                backdrop : 'static',
                                resolve : {
                                    parameter : function () {
                                        return {
                                            id : id
                                        };
                                    }
                                }
                            });
                        }
                    },
                    link : function (scope, element, attrs) {
 
                    }
                };
            }])
    });