course details changes done
This commit is contained in:
parent
3a76de8b56
commit
37832a9eb2
@ -24,6 +24,73 @@ app.controller('courseCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab
|
|||||||
"ListName": "",
|
"ListName": "",
|
||||||
"programListName":""
|
"programListName":""
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
|
* edit course details
|
||||||
|
* created by kms
|
||||||
|
* */
|
||||||
|
$rootScope.updateMoreItems = [];
|
||||||
|
$scope.editId = -1;
|
||||||
|
$rootScope.setEditId = function (pid,p) {
|
||||||
|
// find index for fees type drop down list
|
||||||
|
|
||||||
|
angular.forEach(p.feesStructures, function(value, key){
|
||||||
|
|
||||||
|
if(value.ProgramType=="P001"){
|
||||||
|
|
||||||
|
// single sitting regular course details in model
|
||||||
|
|
||||||
|
$rootScope.myModelRegular1 = {
|
||||||
|
"ID":value.ID,
|
||||||
|
"FeesType":$scope.feesDetails[0].ListCode,
|
||||||
|
"FeesName":$scope.feesDetails[0].ListName,
|
||||||
|
"program":value.ProgramType,
|
||||||
|
"programName":value.Sem_Year,
|
||||||
|
"FeesAmount":value.FeesAmount,
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
else if(value.ProgramType=="P002"){
|
||||||
|
// single sitting lateral course details in model
|
||||||
|
$rootScope.myModelLateral1 = {
|
||||||
|
"ID":value.ID,
|
||||||
|
"FeesType":$scope.feesDetails[0].ListCode,
|
||||||
|
"FeesName":$scope.feesDetails[0].ListName,
|
||||||
|
"program":value.ProgramType,
|
||||||
|
"programName":value.Sem_Year,
|
||||||
|
"FeesAmount":value.FeesAmount,
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
else if(value.ProgramType=="Y001"){
|
||||||
|
|
||||||
|
// Sem_Year course details in model
|
||||||
|
|
||||||
|
$rootScope.updateMoreItems.push({
|
||||||
|
"ID":value.ID,
|
||||||
|
"FeesType":$scope.feesDetails[1].ListCode,
|
||||||
|
"FeesName":$scope.feesDetails[1].ListName,
|
||||||
|
"program":value.ProgramType,
|
||||||
|
"programName":value.Sem_Year,
|
||||||
|
"FeesAmount":value.FeesAmount,
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$scope.editId = pid;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* cancel edit div
|
||||||
|
* created by kms
|
||||||
|
* */
|
||||||
|
$scope.cancel = function () {
|
||||||
|
$rootScope.init();
|
||||||
|
$scope.editId = -1;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -345,73 +412,7 @@ app.controller('courseCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* edit course details
|
|
||||||
* created by kms
|
|
||||||
* */
|
|
||||||
$rootScope.updateMoreItems = [];
|
|
||||||
$scope.editId = -1;
|
|
||||||
$rootScope.setEditId = function (pid,p) {
|
|
||||||
// find index for fees type drop down list
|
|
||||||
|
|
||||||
angular.forEach(p.feesStructures, function(value, key){
|
|
||||||
|
|
||||||
if(value.ProgramType=="P001"){
|
|
||||||
|
|
||||||
// single sitting regular course details in model
|
|
||||||
|
|
||||||
$rootScope.myModelRegular1 = {
|
|
||||||
"ID":value.ID,
|
|
||||||
"FeesType":$scope.feesDetails[0].ListCode,
|
|
||||||
"FeesName":$scope.feesDetails[0].ListName,
|
|
||||||
"program":value.ProgramType,
|
|
||||||
"programName":value.Sem_Year,
|
|
||||||
"FeesAmount":value.FeesAmount,
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
else if(value.ProgramType=="P002"){
|
|
||||||
// single sitting lateral course details in model
|
|
||||||
$rootScope.myModelLateral1 = {
|
|
||||||
"ID":value.ID,
|
|
||||||
"FeesType":$scope.feesDetails[0].ListCode,
|
|
||||||
"FeesName":$scope.feesDetails[0].ListName,
|
|
||||||
"program":value.ProgramType,
|
|
||||||
"programName":value.Sem_Year,
|
|
||||||
"FeesAmount":value.FeesAmount,
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
else if(value.ProgramType=="Y001"){
|
|
||||||
|
|
||||||
// Sem_Year course details in model
|
|
||||||
|
|
||||||
$rootScope.updateMoreItems.push({
|
|
||||||
"ID":value.ID,
|
|
||||||
"FeesType":$scope.feesDetails[1].ListCode,
|
|
||||||
"FeesName":$scope.feesDetails[1].ListName,
|
|
||||||
"program":value.ProgramType,
|
|
||||||
"programName":value.Sem_Year,
|
|
||||||
"FeesAmount":value.FeesAmount,
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.editId = pid;
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
* cancel edit div
|
|
||||||
* created by kms
|
|
||||||
* */
|
|
||||||
$scope.cancel = function () {
|
|
||||||
$rootScope.init();
|
|
||||||
$scope.editId = -1;
|
|
||||||
|
|
||||||
};
|
|
||||||
/*
|
/*
|
||||||
* get update more fees item array
|
* get update more fees item array
|
||||||
* created by kms
|
* created by kms
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user