ENDRPrint_12CRelease/.svn/pristine/49/49be144a16b299a1a16acfe0b2305bb28b43a9fb.svn-base

41 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-08-14 10:58:03 +07:00
// create the controller and inject Angular's $scope
//scotchApp.registerCtrl('menuController',
// create a message to display in our view
function msgController($scope ,$modalInstance, errorForm ) {
init();
function init(){
$scope.error = errorForm;
$scope.fFocus = true;
try{
if(isEntry($scope.error.errorFlag)){
$scope.error.errorFlag = 0;
}
}catch(e){
}
}
$scope.ok = function () {
//$location.path("/"+data.menuLink);
$modalInstance.close("OK");
};
$scope.cancel = function () {
//$modalInstance.dismiss('cancel');
$modalInstance.close("CANCEL");
};
$scope.doYes = function () {
//$location.path("/"+data.menuLink);
$modalInstance.close(true);
};
$scope.doNo = function () {
//$modalInstance.dismiss('cancel');
$modalInstance.close(false);
};
//////////////////////////////////////////////////////////////////
};
//changeNameController.$inject('$scope', '$q', '$modal', '$log', '$location' , '$window', 'menuFactory' , 'appSharedService');