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
invoiceModule.controller('InvoiceManageInfrastructureController', ['$scope', '$log', '$q', '$timeout', 'loginContext',
'$translate', '$location', 'templateGroupService', 'citSessionService', 'vatReportService', '$state',
function ($scope, $log, $q, $timeout, loginContext, $translate, $location, templateGroupService, citSessionService, vatReportService, $state) {
'use strict';
$log.debug('InvoiceManageController.ctor()...');
var loadInvoiceMenu = function () {
$scope.groups = [];
$scope.groups.push({
id: '0',
name: $translate.instant('OutputInvoiceTitle'),
sref: '.main',
isExpand: true,
children: [
{ id: '1', name: $translate.instant('BillingManagement'), sref: '.billingManage' },
{ id: '2', name: $translate.instant('InvoiceSearch'), sref: '.invoiceQuery' }
]
});
$scope.groups.push({
id:'1',
name: $translate.instant('IncomeInvoiceManage'),
sref: '.main',
isExpand: true,
children: [
{ id: '1', name: $translate.instant('NoInvoiceVerify'), sref: '.noInvoiceVerify' },
{ id: '2', name: $translate.instant('PendingReturnInvoice'), sref: '.pendingRefundInvoice' },
{ id: '3', name: $translate.instant('MappingInvoice'), sref: '.mapInvoice' }
]
});
};
var toggleGroup = function (group) {
group.isExpand = !group.isExpand;
};
(function initialize() {
loadInvoiceMenu();
$scope.expend = true;
$scope.toggleGroup = toggleGroup;
})();
}]);