User profile editing and password
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
"use strict";
|
||||
|
||||
window.app.controller('TransactionController',
|
||||
window.app.controller("TransactionController",
|
||||
[
|
||||
"$scope", "$uibModal", "transactionSvc", "inventorySvc", "uiGridConstants",
|
||||
function($scope, $uibModal, transactionSvc, inventorySvc, uiGridConstants) {
|
||||
var vm = this;
|
||||
|
||||
@@ -20,27 +22,27 @@
|
||||
enableSorting: false,
|
||||
columnDefs: [
|
||||
{
|
||||
field: 'name',
|
||||
field: "name",
|
||||
cellTooltip: function(row) {
|
||||
return row.entity.name + "\r" + row.entity.unitsPerCase + " / " + row.entity.containerType;
|
||||
},
|
||||
cellTemplate: '<div class="ui-grid-cell-contents" ' +
|
||||
'title="{{row.entity.name}}' +
|
||||
'\r{{row.entity.unitsPerCase}} / {{row.entity.containerType}}' +
|
||||
'\rExp Date: {{row.entity.expirationDate | date:\'shortDate\'}}' +
|
||||
"\r{{row.entity.unitsPerCase}} / {{row.entity.containerType}}" +
|
||||
"\rExp Date: {{row.entity.expirationDate | date:'shortDate'}}" +
|
||||
'\rAdd Date: {{row.entity.addedDate | date:\'shortDate\'}}">' +
|
||||
'<a href="" ng-click="grid.appScope.editInventory(row.entity.inventoryId)"><i class="fa fa-edit"></i></a> ' +
|
||||
'{{row.entity.name}}</div>',
|
||||
"{{row.entity.name}}</div>",
|
||||
width: "20%"
|
||||
},
|
||||
{ field: 'transactionType', name: 'Type', width: "10%" },
|
||||
{ field: 'destination', cellTooltip: true, width: "10%" },
|
||||
{ field: 'memo', cellTooltip: true, width: "15%" },
|
||||
{ field: 'transactionDate', name: 'Transaction Date', cellFilter: "date:'shortDate'", width: "10%" },
|
||||
{ field: 'previousQuantity', name: 'Prev Qty', width: "10%", enableSorting: false },
|
||||
{ field: 'addedQuantity', name: 'Add Qty', width: "10%", enableSorting: false, cellFilter: "hideZero" },
|
||||
{ field: 'removedQuantity', name: 'Remove Qty', width: "10%", enableSorting: false, cellFilter: "hideZero" },
|
||||
{ field: 'currentQuantity', name: 'Current Qty', width: "10%", enableSorting: false }
|
||||
{ field: "transactionType", name: "Type", width: "10%" },
|
||||
{ field: "destination", cellTooltip: true, width: "10%" },
|
||||
{ field: "memo", cellTooltip: true, width: "15%" },
|
||||
{ field: "transactionDate", name: "Transaction Date", cellFilter: "date:'shortDate'", width: "10%" },
|
||||
{ field: "previousQuantity", name: "Prev Qty", width: "10%", enableSorting: false },
|
||||
{ field: "addedQuantity", name: "Add Qty", width: "10%", enableSorting: false, cellFilter: "hideZero" },
|
||||
{ field: "removedQuantity", name: "Remove Qty", width: "10%", enableSorting: false, cellFilter: "hideZero" },
|
||||
{ field: "currentQuantity", name: "Current Qty", width: "10%", enableSorting: false }
|
||||
],
|
||||
onRegisterApi: function(gridApi) {
|
||||
vm.gridApi = gridApi;
|
||||
@@ -76,6 +78,7 @@
|
||||
updateData();
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
]);
|
||||
})();
|
||||
Reference in New Issue
Block a user