student view pdf changes done
This commit is contained in:
parent
f348ac2d39
commit
6ab8cf564a
@ -27,12 +27,12 @@ app.controller('studentViewCtrl', ["$scope","$rootScope", "toaster", "$filter",
|
|||||||
|
|
||||||
if (response.data.status == 200 && response.data.studentStatus== true) {
|
if (response.data.status == 200 && response.data.studentStatus== true) {
|
||||||
$rootScope.studentAllDetails = response.data;
|
$rootScope.studentAllDetails = response.data;
|
||||||
$scope.studentDetails = response.data.studentDetails;
|
$rootScope.studentDetails = response.data.studentDetails;
|
||||||
$scope.courseDetails = response.data.courseDetails;
|
$scope.courseDetails = response.data.courseDetails;
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$scope.studentDetails = "";
|
$rootScope.studentDetails = "";
|
||||||
$scope.courseDetails = "";
|
$scope.courseDetails = "";
|
||||||
$rootScope.studentAllDetails="";
|
$rootScope.studentAllDetails="";
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ app.controller('studentViewCtrl', ["$scope","$rootScope", "toaster", "$filter",
|
|||||||
|
|
||||||
/*modal controller
|
/*modal controller
|
||||||
* */
|
* */
|
||||||
app.controller('FeesModalDemoCtrl', ["$scope", "$modal", "$log", function ($scope, $modal, $log) {
|
app.controller('FeesModalDemoCtrl', ["$scope", "$rootScope", "$modal", "$log", function ($scope, $rootScope, $modal, $log) {
|
||||||
//Tooltip for print button
|
//Tooltip for print button
|
||||||
$scope.dynamicTooltip = 'Click to View Bill Details';
|
$scope.dynamicTooltip = 'Click to View Bill Details';
|
||||||
|
|
||||||
@ -82,10 +82,11 @@ app.controller('FeesModalDemoCtrl', ["$scope", "$modal", "$log", function ($scop
|
|||||||
// $scope.items = ['item1', 'item2', 'item3'];
|
// $scope.items = ['item1', 'item2', 'item3'];
|
||||||
|
|
||||||
$scope.FeesName="" ;
|
$scope.FeesName="" ;
|
||||||
$scope.open = function (values,type) {
|
$rootScope.CUDetails="" ;
|
||||||
|
$scope.open = function (values,type,courseDetails) {
|
||||||
|
|
||||||
$scope.FeesName = values;
|
$scope.FeesName = values;
|
||||||
|
$rootScope.CUDetails=courseDetails ;
|
||||||
var modalInstance = $modal.open({
|
var modalInstance = $modal.open({
|
||||||
templateUrl: 'myModalContent.html',
|
templateUrl: 'myModalContent.html',
|
||||||
controller: 'ModalInstanceCtrl',
|
controller: 'ModalInstanceCtrl',
|
||||||
@ -109,6 +110,18 @@ app.controller('FeesModalDemoCtrl', ["$scope", "$modal", "$log", function ($scop
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
}]);
|
}]);
|
||||||
|
app.directive('visible', function() {
|
||||||
|
|
||||||
|
return {
|
||||||
|
restrict: 'A',
|
||||||
|
|
||||||
|
link: function(scope, element, attributes) {
|
||||||
|
scope.$watch(attributes.visible, function(value){
|
||||||
|
element.css('visibility', value ? 'visible' : 'hidden');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
// Please note that $modalInstance represents a modal window (instance) dependency.
|
// Please note that $modalInstance represents a modal window (instance) dependency.
|
||||||
// It is not the same as the $modal service used above.
|
// It is not the same as the $modal service used above.
|
||||||
@ -129,6 +142,47 @@ app.controller('ModalInstanceCtrl', ["$scope", "$modalInstance", "items","WordsS
|
|||||||
$modalInstance.dismiss('cancel');
|
$modalInstance.dismiss('cancel');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//show hide function for pdf design
|
||||||
|
$scope.billNo="";
|
||||||
|
$scope.sessionName="";
|
||||||
|
$scope.paymentType="";
|
||||||
|
$scope.billDate="";
|
||||||
|
$scope.amountInWords = "";
|
||||||
|
$scope.billAmount = "";
|
||||||
|
$scope.branchName = "";
|
||||||
|
$scope.ReceivedBy = "";
|
||||||
|
$scope.BranchAddr = "";
|
||||||
|
$scope.BranchAddr = "";
|
||||||
|
$scope.BranchLogo = "";
|
||||||
|
$scope.ShowHide = function (pdfValue) {
|
||||||
|
$scope.showButton = true;
|
||||||
|
$scope.billNo = pdfValue.BillNO;
|
||||||
|
$scope.paymentType=pdfValue.ModeOfPayment;
|
||||||
|
$scope.billDate=pdfValue.BillDate;
|
||||||
|
$scope.amountInWords = WordsService.convertNumberToWords(pdfValue.BillAmount);
|
||||||
|
$scope.billAmount = pdfValue.BillAmount;
|
||||||
|
$scope.branchName = pdfValue.BranchName;
|
||||||
|
$scope.ReceivedBy = pdfValue.ReceivedBy;
|
||||||
|
$scope.BranchAddr = pdfValue.Address;
|
||||||
|
$scope.BranchLogo = pdfValue.LogoPath;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.mouseLeave = function(){
|
||||||
|
$scope.showButton = false;
|
||||||
|
$scope.billNo="";
|
||||||
|
$scope.sessionName="";
|
||||||
|
$scope.paymentType="";
|
||||||
|
$scope.billDate="";
|
||||||
|
$scope.amountInWords = "";
|
||||||
|
$scope.billAmount = "";
|
||||||
|
$scope.branchName = "";
|
||||||
|
$scope.ReceivedBy="";
|
||||||
|
$scope.BranchAddr = "";
|
||||||
|
$scope.BranchLogo = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
app.filter('unique', function() {
|
app.filter('unique', function() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user