Various changes

This commit is contained in:
Dobie Wollert
2013-06-17 04:08:57 -04:00
parent a5f054cbbf
commit b92068b6b2
12 changed files with 179 additions and 13 deletions

View File

@ -5,7 +5,7 @@ angular.module('biomed', ['biomed.filters', 'biomed.services', 'biomed.directive
$rootScope.TECH_GROUPS = {
all: 'All',
biomed: 'Biomed',
ice: 'Ice',
ice: 'ICE',
sales: 'Sales',
other: 'Others'
};

View File

@ -300,16 +300,24 @@ biomed.WorkorderAddCtrl = function($scope, $location, Workorders, Schedule, Clie
var search = $location.search();
if (search.clientId) {
if (search.workorderType == 'pm') {
$scope.model.client = search.clientId;
}
$scope.model.reason = "Preventive Maintenance";
$scope.model.maintenanceType = search.type;
if (search.reason) {
$scope.model.reason = search.reason;
}
$scope.workorderType = 'pm';
} else {
if (search.clientId) {
$scope.model.client = search.clientId;
}
if (search.remarks) {
$scope.model.remarks = search.remarks;
if (search.reason) {
$scope.model.reason = search.reason;
}
if (search.remarks) {
$scope.model.remarks = search.remarks;
}
}
updateAllUsers();