Commit 7985afa7 authored by sherlock's avatar sherlock

basicData module test and correct

parent f11ade1e
...@@ -258,6 +258,7 @@ var app = angular.module('adminApp', ['ui.tree', 'ui.bootstrap', 'ui.bootstrap.t ...@@ -258,6 +258,7 @@ var app = angular.module('adminApp', ['ui.tree', 'ui.bootstrap', 'ui.bootstrap.t
// part names for modules // part names for modules
// AppPart is for the translation of application level, not for a module for a business logic. // AppPart is for the translation of application level, not for a module for a business logic.
appPart: 'app', appPart: 'app',
vat:'vat',
// other parts for business logic // other parts for business logic
//worklist: 'worklist', //worklist: 'worklist',
//registration: 'registration', //registration: 'registration',
......
<nav class="navbar-custom-top" role="navigation" style="margin-bottom: 0;border-radius:0"> <nav class="navbar-custom-top" role="navigation" style="margin-bottom: 0;border-radius:0">
<div class="nav-container" style="min-width:1435px"> <div class="nav-container" style="min-width:1435px">
<div class="nav-element-left" style="width:250px;text-align:left;font-size:17px;"> <div class="nav-element-left" style="width:250px;text-align:left;font-size:17px;">
<i class="fa fa-bullseye" style="color:red;font-size:22px;margin-right:10px"></i> <i class="fa fa-bullseye" style="color:red;font-size:22px;margin-right:10px"></i>
<span style="font-weight:bold;">TAX PLATFORM</span> <span style="font-weight:bold;">TAX PLATFORM</span>
</div> </div>
<div class="nav-element-left"> <!--<div class="nav-element-left">
<a ui-sref="summary"> <a ui-sref="summary">
<span id="overview" class="nav-icon-color">{{'MenuOverview' | translate}}</span> <span id="overview" class="nav-icon-color">{{'MenuOverview' | translate}}</span>
</a> </a>
</div> </div>
<!--<div class="nav-element-left">--> <div class="nav-element-left">-->
<!--&lt;!&ndash; ng-if="hasQuerySummaryDashboardCode" &ndash;&gt;--> <!--&lt;!&ndash; ng-if="hasQuerySummaryDashboardCode" &ndash;&gt;-->
<!--<a href="app/df/knowlegeBasedSystem/code/pages/taxInforListNew.html" target="_blank">--> <!--<a href="app/df/knowlegeBasedSystem/code/pages/taxInforListNew.html" target="_blank">-->
<!--<span class="nav-icon-color">{{'MenuTaxPolicyManagement' | translate}}</span>--> <!--<span class="nav-icon-color">{{'MenuTaxPolicyManagement' | translate}}</span>-->
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<!--</div>--> <!--</div>-->
<div class="nav-element-left"> <div class="nav-element-left">
<a ui-sref="overviewVat" hover-show="first"> <a ui-sref="overviewVat" hover-show="first">
<span class="nav-icon-color">{{'MenuTaxOperationManagement' | translate}}</span> <span class="nav-icon-color">{{'MenuVAT' | translate}}</span>
</a> </a>
</div> </div>
<!--<div class="nav-element-left">--> <!--<div class="nav-element-left">-->
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<div class="nav-element-right"> <div class="nav-element-right">
<div class="user-info" ng-click="toggleUserMenu($event)"> <div class="user-info" ng-click="toggleUserMenu($event)">
<i class="fa fa-user"></i> <i class="fa fa-user"></i>
<span style="margin-left: 0 2px; font-size: 15px;cursor:pointer;">{{loginUserName | limitString:10}}</span> <span style="margin-left: 02px; font-size: 15px;cursor:pointer;">{{loginUserName | limitString:10}}</span>
<i class="fa fa-sort-down"></i> <i class="fa fa-sort-down"></i>
</div> </div>
<div class="user-menu"> <div class="user-menu">
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<div class="nav-sub-container first"> <!--<div class="nav-sub-container first">-->
<!--<div class="element-left">--> <!--<div class="element-left">-->
<!--<a ui-sref-active="active" ui-sref="invoiceManagement.main" ng-if="specialUser!=='simon'">--> <!--<a ui-sref-active="active" ui-sref="invoiceManagement.main" ng-if="specialUser!=='simon'">-->
<!--<span class="nav-sub-icon-color">{{'MenuInvoiceManagement' | translate}}</span>--> <!--<span class="nav-sub-icon-color">{{'MenuInvoiceManagement' | translate}}</span>-->
...@@ -95,14 +95,14 @@ ...@@ -95,14 +95,14 @@
<!--<span class="nav-sub-icon-color">{{'OutMenuInvoiceManagement' | translate}}</span>--> <!--<span class="nav-sub-icon-color">{{'OutMenuInvoiceManagement' | translate}}</span>-->
<!--</a>--> <!--</a>-->
<!--</div>--> <!--</div>-->
<div class="element-left"> <!--<div class="element-left">-->
<a ui-sref-active="active" ui-sref="overviewVat" ng-if="specialUser!=='simon'"> <!--<a ui-sref-active="active" ui-sref="overviewVat" ng-if="specialUser!=='simon'">-->
<span class="nav-sub-icon-color">{{'MenuVAT' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuVAT' | translate}}</span>-->
</a> <!--</a>-->
<a ng-if="specialUser==='simon'"> <!--<a ng-if="specialUser==='simon'">-->
<span class="nav-sub-icon-color">{{'MenuVAT' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuVAT' | translate}}</span>-->
</a> <!--</a>-->
</div> <!--</div>-->
<!--<div class="element-left">--> <!--<div class="element-left">-->
<!--<a ui-sref-active="active" ui-sref="overviewAssetsManage">--> <!--<a ui-sref-active="active" ui-sref="overviewAssetsManage">-->
<!--<span class="nav-sub-icon-color">{{'MenuAMVAT' | translate}}</span>--> <!--<span class="nav-sub-icon-color">{{'MenuAMVAT' | translate}}</span>-->
...@@ -147,33 +147,30 @@ ...@@ -147,33 +147,30 @@
<!--</a>--> <!--</a>-->
<!--<a ng-if="specialUser==='simon'">--> <!--<a ng-if="specialUser==='simon'">-->
<!--<span class="nav-sub-icon-color">{{'TpRpt' | translate}}</span>--> <!--<span class="nav-sub-icon-color">{{'TpRpt' | translate}}</span>-->
<!--</a>-->
<!--</div>--> <!--</div>-->
</div> <!--</div>-->
<div class="nav-sub-container second"> <!--<div class="nav-sub-container second">-->
<div class="element-left"> <!--<div class="element-left">-->
<a ui-sref-active="active" ui-sref="summaryDashboard" ng-if="specialUser!=='simon'"> <!--<a ui-sref-active="active" ui-sref="summaryDashboard" ng-if="specialUser!=='simon'">-->
<span class="nav-sub-icon-color">{{'MenuIndexAnalytics' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuIndexAnalytics' | translate}}</span>-->
</a> <!--</a>-->
<a ng-if="specialUser==='simon'"> <!--<a ng-if="specialUser==='simon'">-->
<span class="nav-sub-icon-color">{{'MenuIndexAnalytics' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuIndexAnalytics' | translate}}</span>-->
</a> <!--</a>-->
</div> <!--</div>-->
<div class="element-left"> <!--<div class="element-left">-->
<a ui-sref-active="active" ui-sref="RiskPanel"> <!--<a ui-sref-active="active" ui-sref="RiskPanel">-->
<span class="nav-sub-icon-color">{{'MenuRiskAlert' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuRiskAlert' | translate}}</span>-->
</a> <!--</a>-->
</div> <!--</div>-->
<div class="element-left"> <!--<div class="element-left">-->
<!-- ng-if="hasQuerySummaryDashboardCode" --> <!--&lt;!&ndash; ng-if="hasQuerySummaryDashboardCode" &ndash;&gt;-->
<a ui-sref-active="active" ui-sref="DataSummary" ng-if="specialUser!=='simon'"> <!--</a>-->
<span class="nav-sub-icon-color">{{'MenuStatistics' | translate}}</span> <!--<a ng-if="specialUser==='simon'">-->
</a> <!--<span class="nav-sub-icon-color">{{'MenuStatistics' | translate}}</span>-->
<a ng-if="specialUser==='simon'"> <!--</a>-->
<span class="nav-sub-icon-color">{{'MenuStatistics' | translate}}</span> <!--</div>-->
</a> <!--</div>-->
</div>
</div>
</nav> </nav>
\ No newline at end of file
...@@ -1039,9 +1039,9 @@ ...@@ -1039,9 +1039,9 @@
$scope.dateFormat = $translate.instant('dateFormat4Year'); $scope.dateFormat = $translate.instant('dateFormat4Year');
} }
if ($scope.serviceTypeId === enums.serviceType.VAT) { if ($scope.serviceTypeId === enums.serviceType.VAT) {
$scope.systemTitle = $translate.instant('VATTitle'); $scope.systemTitle = $translate.instant('增值税申报');
$scope.viewMode = 1; $scope.viewMode = 1;
$scope.dateFormat = $translate.instant('dateFormat4YearMonth'); $scope.dateFormat = $translate.instant(' yyyy 年 mm 月');
} }
if ($scope.serviceTypeId === enums.serviceType.AssetsManage) { if ($scope.serviceTypeId === enums.serviceType.AssetsManage) {
$scope.systemTitle = $translate.instant('AssetTitle'); $scope.systemTitle = $translate.instant('AssetTitle');
......
...@@ -141,7 +141,7 @@ var frameworkModule = angular.module('app.framework', ['app.webservices', 'app.c ...@@ -141,7 +141,7 @@ var frameworkModule = angular.module('app.framework', ['app.webservices', 'app.c
// this is required to add controller/directive/filter/service after angular bootstrap // this is required to add controller/directive/filter/service after angular bootstrap
bindModule(frameworkModule, $controllerProvider, $compileProvider, $filterProvider, $provide); bindModule(frameworkModule, $controllerProvider, $compileProvider, $filterProvider, $provide);
$stateProvider.state({ $stateProvider.state({
name: 'overview', name: 'overview',
url: '/overview', url: '/overview',
views: { views: {
...@@ -180,63 +180,64 @@ var frameworkModule = angular.module('app.framework', ['app.webservices', 'app.c ...@@ -180,63 +180,64 @@ var frameworkModule = angular.module('app.framework', ['app.webservices', 'app.c
'@': { '@': {
controller: ['$scope', '$stateParams', 'appTranslation', controller: ['$scope', '$stateParams', 'appTranslation',
function ($scope, $stateParams, appTranslation) { function ($scope, $stateParams, appTranslation) {
appTranslation.load([appTranslation.appPart]); appTranslation.load([appTranslation.vat,appTranslation.appPart]);
}], }],
template: '<app-overview servicetypeid="2"></app-overview>', template: '<app-overview servicetypeid="2"></app-overview>',
} }
}, },
deepStateRedirect: true, resolve: scriptDependencyProvider.createDependenciesMap(scriptDependencyProvider.vat),
sticky: true deepStateRedirect: true,
}); sticky: true
});
$stateProvider.state({
name: 'overviewAssetsManage', /*$stateProvider.state({
url: '/overview/assetsManage', name: 'overviewAssetsManage',
views: { url: '/overview/assetsManage',
'@': { views: {
controller: ['$scope', '$stateParams', 'appTranslation', '@': {
function ($scope, $stateParams, appTranslation) { controller: ['$scope', '$stateParams', 'appTranslation',
appTranslation.load([appTranslation.appPart]); function ($scope, $stateParams, appTranslation) {
}], appTranslation.load([appTranslation.appPart]);
template: '<app-overview servicetypeid="12"></app-overview>', }],
} template: '<app-overview servicetypeid="12"></app-overview>',
}, }
deepStateRedirect: true, },
sticky: true deepStateRedirect: true,
}); sticky: true
});
$stateProvider.state({
name: 'overviewCit', $stateProvider.state({
url: '/overview/cit', name: 'overviewCit',
views: { url: '/overview/cit',
'@': { views: {
controller: ['$scope', '$stateParams', 'appTranslation', '@': {
function ($scope, $stateParams, appTranslation) { controller: ['$scope', '$stateParams', 'appTranslation',
appTranslation.load([appTranslation.appPart]); function ($scope, $stateParams, appTranslation) {
}], appTranslation.load([appTranslation.appPart]);
template: '<app-overview servicetypeid="6"></app-overview>', }],
} template: '<app-overview servicetypeid="6"></app-overview>',
}, }
deepStateRedirect: true, },
sticky: true deepStateRedirect: true,
}); sticky: true
});
$stateProvider.state({
name: 'summary', $stateProvider.state({
url: '/summary', name: 'summary',
views: { url: '/summary',
'@': { views: {
controller: ['$scope', '$stateParams', 'appTranslation', '@': {
function ($scope, $stateParams, appTranslation) { controller: ['$scope', '$stateParams', 'appTranslation',
appTranslation.load([appTranslation.appPart]); function ($scope, $stateParams, appTranslation) {
}], appTranslation.load([appTranslation.appPart]);
template: '<app-summary></app-summary>', }],
} template: '<app-summary></app-summary>',
}, }
resolve: scriptDependencyProvider.createDependenciesMap(scriptDependencyProvider.summary), },
deepStateRedirect: true, resolve: scriptDependencyProvider.createDependenciesMap(scriptDependencyProvider.summary),
sticky: true deepStateRedirect: true,
}); sticky: true
});*/
} }
]); ]);
......
...@@ -258,6 +258,7 @@ var app = angular.module('adminApp', ['ui.tree', 'ui.bootstrap', 'ui.bootstrap.t ...@@ -258,6 +258,7 @@ var app = angular.module('adminApp', ['ui.tree', 'ui.bootstrap', 'ui.bootstrap.t
// part names for modules // part names for modules
// AppPart is for the translation of application level, not for a module for a business logic. // AppPart is for the translation of application level, not for a module for a business logic.
appPart: 'app', appPart: 'app',
vat:'vat',
// other parts for business logic // other parts for business logic
//worklist: 'worklist', //worklist: 'worklist',
//registration: 'registration', //registration: 'registration',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment