ENDRPrint/.svn/pristine/6c/6cacf42dc5d9a5b9ddfdd7a3ed14b5c439b8d100.svn-base

32 lines
924 B
Plaintext
Raw Permalink Normal View History

2024-08-14 10:33:27 +07:00
// create the controller and inject Angular's $scope
scotchApp.controller('leftMenuController',
// create a message to display in our view
function($scope ,$location ,$route,commonService) {
//alert("leftMenuController");
init();
function init() {
}
$scope.printing = function(url){
alert("printing"+ url+"/"+new Date().getTime() );
commonService.setUrlPath(url+"/"+new Date().getTime());
$location.path(url+"/"+new Date().getTime());
$scope.$apply();
};
$scope.redirectMainPage = function(url){
commonService.setUrlPath(url+"/"+new Date().getTime());
$location.path(url+"/"+new Date().getTime());
$scope.$apply();
};
$scope.doLogout = function () {
commonService.setUrlPath("/logout");
$location.path("/logout");
};
});