MIFOSX-1366 - added work around for ng-data-show

This commit is contained in:
Pramod Nuthakki 2014-06-23 16:59:36 +05:30
parent d17e4cc5a0
commit ad81f8cb5b
18 changed files with 54 additions and 18 deletions

View File

@ -356,6 +356,11 @@
var IncentiveCtrl = function ($scope, $modalInstance, data,chartSlab) {
$scope.data = data;
$scope.chartSlab = chartSlab;
_.each($scope.chartSlab.incentives, function (incentive) {
if(!incentive.attributeValueDesc){
incentive.attributeValueDesc = incentive.attributeValue;
}
});
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
};

View File

@ -406,6 +406,11 @@
var IncentiveCtrl = function ($scope, $modalInstance, data,chartSlab) {
$scope.data = data;
$scope.chartSlab = chartSlab;
_.each($scope.chartSlab.incentives, function (incentive) {
if(!incentive.attributeValueDesc){
incentive.attributeValueDesc = incentive.attributeValue;
}
});
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
};

View File

@ -247,6 +247,11 @@
var IncentiveCtrl = function ($scope, $modalInstance, chartSlab) {
$scope.chartSlab = chartSlab;
_.each($scope.chartSlab.incentives, function (incentive) {
if(!incentive.attributeValueDesc){
incentive.attributeValueDesc = incentive.attributeValue;
}
});
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
};

View File

@ -358,6 +358,11 @@
var IncentiveCtrl = function ($scope, $modalInstance, data,chartSlab) {
$scope.data = data;
$scope.chartSlab = chartSlab;
_.each($scope.chartSlab.incentives, function (incentive) {
if(!incentive.attributeValueDesc){
incentive.attributeValueDesc = incentive.attributeValue;
}
});
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
};

View File

@ -407,6 +407,11 @@
var IncentiveCtrl = function ($scope, $modalInstance, data,chartSlab) {
$scope.data = data;
$scope.chartSlab = chartSlab;
_.each($scope.chartSlab.incentives, function (incentive) {
if(!incentive.attributeValueDesc){
incentive.attributeValueDesc = incentive.attributeValue;
}
});
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
};

View File

@ -281,6 +281,11 @@
var IncentiveCtrl = function ($scope, $modalInstance, chartSlab) {
$scope.chartSlab = chartSlab;
_.each($scope.chartSlab.incentives, function (incentive) {
if(!incentive.attributeValueDesc){
incentive.attributeValueDesc = incentive.attributeValue;
}
});
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
};

View File

@ -42,6 +42,11 @@
var IncentiveCtrl = function ($scope, $modalInstance, chartSlab) {
$scope.chartSlab = chartSlab;
_.each($scope.chartSlab.incentives, function (incentive) {
if(!incentive.attributeValueDesc){
incentive.attributeValueDesc = incentive.attributeValue;
}
});
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
};

View File

@ -30,6 +30,11 @@
var IncentiveCtrl = function ($scope, $modalInstance, chartSlab) {
$scope.chartSlab = chartSlab;
_.each($scope.chartSlab.incentives, function (incentive) {
if(!incentive.attributeValueDesc){
incentive.attributeValueDesc = incentive.attributeValue;
}
});
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
};

View File

@ -30,6 +30,11 @@
var IncentiveCtrl = function ($scope, $modalInstance, chartSlab) {
$scope.chartSlab = chartSlab;
_.each($scope.chartSlab.incentives, function (incentive) {
if(!incentive.attributeValueDesc){
incentive.attributeValueDesc = incentive.attributeValue;
}
});
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
};

View File

@ -311,8 +311,7 @@
<tr ng-repeat="incentiveData in chartSlab.incentives">
<td>{{incentiveData.attributeName.code | translate}}</td>
<td>{{incentiveData.conditionType.code | translate}} </td>
<td data-ng-hide="incentiveData.attributeValueDesc">{{incentiveData.attributeValue}} </td>
<td data-ng-show="incentiveData.attributeValueDesc">{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.incentiveType.code | translate}} </td>
<td>{{incentiveData.amount}}</td>
</tr>

View File

@ -313,8 +313,7 @@
<tr ng-repeat="incentiveData in chartSlab.incentives">
<td>{{incentiveData.attributeName.code | translate}}</td>
<td>{{incentiveData.conditionType.code | translate}} </td>
<td data-ng-hide="incentiveData.attributeValueDesc">{{incentiveData.attributeValue}} </td>
<td data-ng-show="incentiveData.attributeValueDesc">{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.incentiveType.code | translate}} </td>
<td>{{incentiveData.amount}}</td>
</tr>

View File

@ -330,8 +330,7 @@
<tr ng-repeat="incentiveData in chartSlab.incentives">
<td>{{incentiveData.attributeName.code | translate}}</td>
<td>{{incentiveData.conditionType.code | translate}} </td>
<td data-ng-hide="incentiveData.attributeValueDesc">{{incentiveData.attributeValue}} </td>
<td data-ng-show="incentiveData.attributeValueDesc">{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.incentiveType.code | translate}} </td>
<td>{{incentiveData.amount}}</td>
</tr>

View File

@ -349,8 +349,7 @@
<tr ng-repeat="incentiveData in chartSlab.incentives">
<td>{{incentiveData.attributeName.code | translate}}</td>
<td>{{incentiveData.conditionType.code | translate}} </td>
<td data-ng-hide="incentiveData.attributeValueDesc">{{incentiveData.attributeValue}} </td>
<td data-ng-show="incentiveData.attributeValueDesc">{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.incentiveType.code | translate}} </td>
<td>{{incentiveData.amount}}</td>
</tr>

View File

@ -349,8 +349,7 @@
<tr ng-repeat="incentiveData in chartSlab.incentives">
<td>{{incentiveData.attributeName.code | translate}}</td>
<td>{{incentiveData.conditionType.code | translate}} </td>
<td data-ng-hide="incentiveData.attributeValueDesc">{{incentiveData.attributeValue}} </td>
<td data-ng-show="incentiveData.attributeValueDesc">{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.incentiveType.code | translate}} </td>
<td>{{incentiveData.amount}}</td>
</tr>

View File

@ -364,8 +364,7 @@
<tr ng-repeat="incentiveData in chartSlab.incentives">
<td>{{incentiveData.attributeName.code | translate}}</td>
<td>{{incentiveData.conditionType.code | translate}} </td>
<td data-ng-hide="incentiveData.attributeValueDesc">{{incentiveData.attributeValue}} </td>
<td data-ng-show="incentiveData.attributeValueDesc">{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.incentiveType.code | translate}} </td>
<td>{{incentiveData.amount}}</td>
</tr>

View File

@ -65,8 +65,7 @@
<tr ng-repeat="incentiveData in chartSlab.incentives">
<td>{{incentiveData.attributeName.code | translate}}</td>
<td>{{incentiveData.conditionType.code | translate}} </td>
<td data-ng-hide="incentiveData.attributeValueDesc">{{incentiveData.attributeValue}} </td>
<td data-ng-show="incentiveData.attributeValueDesc">{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.incentiveType.code | translate}} </td>
<td>{{incentiveData.amount}}</td>
</tr>

View File

@ -291,8 +291,7 @@
<tr ng-repeat="incentiveData in chartSlab.incentives">
<td>{{incentiveData.attributeName.code | translate}}</td>
<td>{{incentiveData.conditionType.code | translate}} </td>
<td data-ng-hide="incentiveData.attributeValueDesc">{{incentiveData.attributeValue}} </td>
<td data-ng-show="incentiveData.attributeValueDesc">{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.incentiveType.code | translate}} </td>
<td>{{incentiveData.amount}}</td>
</tr>

View File

@ -300,8 +300,7 @@
<tr ng-repeat="incentiveData in chartSlab.incentives">
<td>{{incentiveData.attributeName.code | translate}}</td>
<td>{{incentiveData.conditionType.code | translate}} </td>
<td data-ng-hide="incentiveData.attributeValueDesc">{{incentiveData.attributeValue}} </td>
<td data-ng-show="incentiveData.attributeValueDesc">{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.attributeValueDesc}} </td>
<td>{{incentiveData.incentiveType.code | translate}} </td>
<td>{{incentiveData.amount}}</td>
</tr>