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) {
|
||||
$rootScope.studentAllDetails = response.data;
|
||||
$scope.studentDetails = response.data.studentDetails;
|
||||
$rootScope.studentDetails = response.data.studentDetails;
|
||||
$scope.courseDetails = response.data.courseDetails;
|
||||
|
||||
|
||||
} else {
|
||||
$scope.studentDetails = "";
|
||||
$rootScope.studentDetails = "";
|
||||
$scope.courseDetails = "";
|
||||
$rootScope.studentAllDetails="";
|
||||
|
||||
@ -73,7 +73,7 @@ app.controller('studentViewCtrl', ["$scope","$rootScope", "toaster", "$filter",
|
||||
|
||||
/*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
|
||||
$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.FeesName="" ;
|
||||
$scope.open = function (values,type) {
|
||||
$rootScope.CUDetails="" ;
|
||||
$scope.open = function (values,type,courseDetails) {
|
||||
|
||||
$scope.FeesName = values;
|
||||
|
||||
$rootScope.CUDetails=courseDetails ;
|
||||
var modalInstance = $modal.open({
|
||||
templateUrl: 'myModalContent.html',
|
||||
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.
|
||||
// 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');
|
||||
};
|
||||
|
||||
//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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user