Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //AUthor Datpt17@fpt.com.vn-->
- //Template for Morning checklist AD
- //Controller:
- 'use strict';
- app.controller('MorningCheckListMailExchangeCtrl', ['$scope', 'DTOptionsBuilder', 'DTColumnBuilder', '$resource', function ($scope, DTOptionsBuilder, DTColumnBuilder, $resource) {
- //
- $scope.Value = false;
- $scope.TableSystemAD = true;
- var vm = this;
- var link = 'http://api.bsc.ho.fpt.vn/api/Importer/ImporterObjectiveController/GetObjectives?usertoken=ddd3b678-666d-4dbe-87b2-9944ce9e13c8&CompanyId=1f4d9d9c-f79f-4537-9944-d524b04628b2&Year=2014&Period=2';
- vm.dtOptions = DTOptionsBuilder.fromFnPromise(function () {
- return $resource(link).query().$promise;
- }).withPaginationType('full_numbers')
- // Active Responsive plugin
- .withOption('responsive', true)
- .withBootstrap()
- .withBootstrapOptions({
- pagination: {
- classes: {
- ul: 'pagination pagination-sm'
- }
- }
- });
- vm.dtColumns = [
- DTColumnBuilder.newColumn('ObjectiveCode').withTitle('ObjectiveCode'),
- DTColumnBuilder.newColumn('StrategicTheme1').withTitle('ID'),
- DTColumnBuilder.newColumn('StrategicTheme2').withTitle('First name'),
- DTColumnBuilder.newColumn('ObjectivePerspective').withTitle('ObjectivePerspective'),
- DTColumnBuilder.newColumn('ObjectivePersonInCharge').withTitle('ObjectivePersonInCharge'),
- DTColumnBuilder.newColumn('FractalYN').withTitle('FractalYN'),
- // .notVisible() does not work in this case. Use .withClass('none') instead
- DTColumnBuilder.newColumn('ObjectiveId').withTitle('ObjectiveId').withClass('none'),
- DTColumnBuilder.newColumn('ObjectiveName').withTitle('ObjectiveName').withClass('none'),
- DTColumnBuilder.newColumn('StrategyMapId').withTitle('StrategyMapId').withClass('none'),
- DTColumnBuilder.newColumn('ObjectiveDescription').withTitle('ObjectiveDescription').withClass('none'),
- DTColumnBuilder.newColumn('ObjectivePersonInCharge').withTitle('Last name').withClass('none'),
- DTColumnBuilder.newColumn('ActiveYN').withTitle('ActiveYN').withClass('none'),
- DTColumnBuilder.newColumn('Year').withTitle('Year').withClass('none')
- ];
- }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement