From 28f3edb9519d23560cd3b24d53821e73f04eb608 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 6 Feb 2018 18:16:31 +0530 Subject: [PATCH 01/25] seesion master changes --- Apollo/assets/views/partials/nav.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Apollo/assets/views/partials/nav.html b/Apollo/assets/views/partials/nav.html index 76beae2d..2fc9749d 100755 --- a/Apollo/assets/views/partials/nav.html +++ b/Apollo/assets/views/partials/nav.html @@ -87,6 +87,11 @@ SUBJECT DETAILS +
  • + + SESSION DETAILS + +
  • From 677c53826959bbf060981bdb302cbb1ac85a9af3 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 6 Feb 2018 18:17:31 +0530 Subject: [PATCH 02/25] course details changes done --- Apollo/assets/js/config.router.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Apollo/assets/js/config.router.js b/Apollo/assets/js/config.router.js index d2b101bc..f26c76fd 100755 --- a/Apollo/assets/js/config.router.js +++ b/Apollo/assets/js/config.router.js @@ -220,10 +220,15 @@ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$com ncyBreadcrumb: { label: 'Subject Master' }, - }) - - - .state('app.student', { + }).state('app.master.sessionMaster', { + url: '/subject master', + templateUrl: "assets/views/sessionMaster.html", + resolve: loadSequence('sessionMasterCtrl','ngTable', 'ladda', 'angular-ladda'), + title: 'Subject Master', + ncyBreadcrumb: { + label: 'Subject Master' + }, + }).state('app.student', { url: '/student', template: '
    STUDENT DETAILS
    ', title: 'Student', From bce4b610d15b8863ef67ea22aca72912ac1f60a3 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 6 Feb 2018 18:17:40 +0530 Subject: [PATCH 03/25] course details changes done --- Apollo/assets/js/config.constant.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Apollo/assets/js/config.constant.js b/Apollo/assets/js/config.constant.js index 9aca019e..6c991692 100755 --- a/Apollo/assets/js/config.constant.js +++ b/Apollo/assets/js/config.constant.js @@ -165,6 +165,7 @@ app.constant('JS_REQUIRES', { 'centerCtrl':'assets/js/controllers/centerCtrl.js', //SUBJECT MASTER 'subjectCtrl':'assets/js/controllers/subjectCtrl.js', + 'sessionMasterCtrl':'assets/js/controllers/sessionMasterCtrl.js', //*** Filters From fc943e3a787ac894bb339739fe570a3d1b7cea9a Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Wed, 7 Feb 2018 10:27:36 +0530 Subject: [PATCH 04/25] course details changes done --- Apollo/assets/js/config.router.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Apollo/assets/js/config.router.js b/Apollo/assets/js/config.router.js index f26c76fd..1f5dfed0 100755 --- a/Apollo/assets/js/config.router.js +++ b/Apollo/assets/js/config.router.js @@ -221,12 +221,12 @@ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$com label: 'Subject Master' }, }).state('app.master.sessionMaster', { - url: '/subject master', + url: '/session master', templateUrl: "assets/views/sessionMaster.html", resolve: loadSequence('sessionMasterCtrl','ngTable', 'ladda', 'angular-ladda'), - title: 'Subject Master', + title: 'Session Master', ncyBreadcrumb: { - label: 'Subject Master' + label: 'Session Master' }, }).state('app.student', { url: '/student', From ab806c4a0b1bf06b6555d2195c9f7c177e1c162e Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Wed, 7 Feb 2018 10:28:51 +0530 Subject: [PATCH 05/25] course details changes done --- Apollo/assets/i18n/en.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Apollo/assets/i18n/en.json b/Apollo/assets/i18n/en.json index 8dcb611b..bb9a7af0 100755 --- a/Apollo/assets/i18n/en.json +++ b/Apollo/assets/i18n/en.json @@ -71,7 +71,8 @@ "CERTIFICATETYPE": "CERTIFICATE TYPE", "DAYBOOKMASTER":"INCOME/EXPENSE HEADS", "CENTERMASTER": "CENTER DETAILS", - "SUBJECTMASTER":"SUBJECT MASTER" + "SUBJECTMASTER":"SUBJECT MASTER", + "SESSIONMASTER":"SESSION DETAILS" }, "student": { "MAIN": "STUDENTS", From 116159f1b8a2a38102c806b3d99fa0b6faa266c4 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Wed, 7 Feb 2018 10:36:03 +0530 Subject: [PATCH 06/25] session master changes done routes --- Apollo/api/application/config/routes.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Apollo/api/application/config/routes.php b/Apollo/api/application/config/routes.php index a885665b..73a68d60 100755 --- a/Apollo/api/application/config/routes.php +++ b/Apollo/api/application/config/routes.php @@ -231,5 +231,9 @@ $route['getUniversity'] = 'Subject_Controller/getUniversity'; $route['getCourseBatch'] = 'Subject_Controller/getCorsBatch'; $route['addSubjectDetails'] = 'Subject_Controller/addSubjectDetails'; +// session mater +$route['addSessionMaterDetails'] = 'SessionMater_Controller/addSessionMaterDetails'; +$route['getSessionMaterDetails'] = 'SessionMater_Controller/getSessionMaterDetails'; +$route['updateSessionMaterDetails'] = 'SessionMater_Controller/updateSessionMaterDetails'; From 3178ed9285bb483afed97a5ee101d45f633ab17e Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Wed, 7 Feb 2018 13:16:34 +0530 Subject: [PATCH 07/25] course details changes done --- Apollo/assets/js/config.router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Apollo/assets/js/config.router.js b/Apollo/assets/js/config.router.js index 1f5dfed0..f954df60 100755 --- a/Apollo/assets/js/config.router.js +++ b/Apollo/assets/js/config.router.js @@ -223,7 +223,7 @@ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$com }).state('app.master.sessionMaster', { url: '/session master', templateUrl: "assets/views/sessionMaster.html", - resolve: loadSequence('sessionMasterCtrl','ngTable', 'ladda', 'angular-ladda'), + resolve: loadSequence('ui.select','sessionMasterCtrl','ngTable', 'ladda', 'angular-ladda'), title: 'Session Master', ncyBreadcrumb: { label: 'Session Master' From 9e35fbf220ff9f81ad90945b7117cd3f27dbbc77 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Wed, 7 Feb 2018 14:34:07 +0530 Subject: [PATCH 08/25] course details changes done --- Apollo/api/application/config/constants.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Apollo/api/application/config/constants.php b/Apollo/api/application/config/constants.php index 9c545f67..dc2b43b8 100755 --- a/Apollo/api/application/config/constants.php +++ b/Apollo/api/application/config/constants.php @@ -129,6 +129,7 @@ defined('DAYBOOKMASTER') OR define('DAYBOOKMASTER','T_DayBookMaster'); defined('INCOMEOUTCOMEMASTER') OR define('INCOMEOUTCOMEMASTER','T_Income_Outcome_Master'); defined('FEES_INSTALLMENT') OR define('FEES_INSTALLMENT','T_Fees_Installments'); defined('CENTER') OR define('CENTER','T_CenterMaster'); +defined('SESSIONMASTER') OR define('SESSIONMASTER','T_Session_Master'); From 119fb7483c3a00914d15b9263d55e00d2cb97b6b Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Wed, 7 Feb 2018 17:23:00 +0530 Subject: [PATCH 09/25] course details changes done --- Apollo/api/application/config/constants.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Apollo/api/application/config/constants.php b/Apollo/api/application/config/constants.php index dc2b43b8..7b41f07e 100755 --- a/Apollo/api/application/config/constants.php +++ b/Apollo/api/application/config/constants.php @@ -130,6 +130,7 @@ defined('INCOMEOUTCOMEMASTER') OR define('INCOMEOUTCOMEMASTER','T_Income_Outcome defined('FEES_INSTALLMENT') OR define('FEES_INSTALLMENT','T_Fees_Installments'); defined('CENTER') OR define('CENTER','T_CenterMaster'); defined('SESSIONMASTER') OR define('SESSIONMASTER','T_Session_Master'); +defined('SESSIONDETAILS') OR define('SESSIONDETAILS','T_Session_Details'); From 323bdc1479435f02837ec59d75be323b2d3689cf Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Wed, 7 Feb 2018 17:23:46 +0530 Subject: [PATCH 10/25] course details changes done --- Apollo/api/application/config/constants.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Apollo/api/application/config/constants.php b/Apollo/api/application/config/constants.php index 7b41f07e..1cb26b57 100755 --- a/Apollo/api/application/config/constants.php +++ b/Apollo/api/application/config/constants.php @@ -130,7 +130,7 @@ defined('INCOMEOUTCOMEMASTER') OR define('INCOMEOUTCOMEMASTER','T_Income_Outcome defined('FEES_INSTALLMENT') OR define('FEES_INSTALLMENT','T_Fees_Installments'); defined('CENTER') OR define('CENTER','T_CenterMaster'); defined('SESSIONMASTER') OR define('SESSIONMASTER','T_Session_Master'); -defined('SESSIONDETAILS') OR define('SESSIONDETAILS','T_Session_Details'); +defined('SESSIONDETAILS') OR define('SESSIONDETAILS','T_SessionDetails'); From 003a3c9927af49cc0d54a73dab55e485379921c6 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Wed, 7 Feb 2018 19:01:16 +0530 Subject: [PATCH 11/25] session master done --- Apollo/assets/views/sessionMaster.html | 210 +++++++++++++++++++++++++ 1 file changed, 210 insertions(+) create mode 100644 Apollo/assets/views/sessionMaster.html diff --git a/Apollo/assets/views/sessionMaster.html b/Apollo/assets/views/sessionMaster.html new file mode 100644 index 00000000..65acc65c --- /dev/null +++ b/Apollo/assets/views/sessionMaster.html @@ -0,0 +1,210 @@ + + +
    +
    +
    +

    + + Add/View Session Details. + +
    +
    +
    +
    + + +
    +
    + + +
    +
    +
    + +
    Please Wait...
    +
    +
    + +
    +

    oops! No + records found...

    +
    +
    +
    + +
    + +

    +
    + + +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Session Name + + Status Action
    {{p.SessionName}} Active In-Active + + + + +
    + + +
    +
    + +
    +
    +
    + + +
    + + + +
    +
    +
    + +
    +
    + + Add New Session Details + + +
    + + +
    + + + + Session name is required + Invalid session name + + +
    + +
    + + + + + + + {{$item.UniversityName}} + + + {{d.UniversityName}} + + + + + University is required. + + + +
    + + + +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + From 47903de6769a9df5db3f0f50ee924f7de8326eab Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Wed, 7 Feb 2018 19:01:29 +0530 Subject: [PATCH 12/25] course details changes done --- .../js/controllers/sessionMasterCtrl.js | 228 ++++++++++++++++++ 1 file changed, 228 insertions(+) create mode 100644 Apollo/assets/js/controllers/sessionMasterCtrl.js diff --git a/Apollo/assets/js/controllers/sessionMasterCtrl.js b/Apollo/assets/js/controllers/sessionMasterCtrl.js new file mode 100644 index 00000000..a1167e08 --- /dev/null +++ b/Apollo/assets/js/controllers/sessionMasterCtrl.js @@ -0,0 +1,228 @@ +'use strict'; +/** + * controllers for ng-table + * Simple table with sorting and filtering on AngularJS + */ + +app.controller('sessionMasterCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableParams", "API_POINTS", "$localStorage", "$http", "$state", function ($scope,$rootScope,toaster, $filter, ngTableParams, apiPoint, $localStorage, $http, $state) { + $scope.myModel = { + "sessionName": "", + "switchsetting": true + }; + + + /* + * edit session details + * created by kms + * */ + $scope.editId = -1; + $scope.setEditId = function (p) { + + $scope.editId = p.SessionID; + $scope.viewId = -1; + $scope.splitUnivertyToArray = p.UniversityID.split(','); + + $scope.editUniverSity = []; + angular.forEach($scope.splitUnivertyToArray, function (values, keys) { + + $scope.editUniverSity.push(values); + }) + $scope.viewUniversity = { + list: $scope.editUniverSity, + } + + + }; + + /* + * cancel edit div + * created by kms + * */ + $scope.cancel = function () { + $scope.init(); + $scope.editId = -1; + + }; + + // sorting function for table params + $scope.sort = function(keyname){ + $scope.sortKey = keyname; //set the sortKey to the param passed + $scope.reverse = !$scope.reverse; //if true make it false and vice versa + } + + /* + * Submit,update and reset session details + * @params myModel + * created by kms + * */ + $scope.sessionForm = { + + submit: function (form, myModel,loading) { + var firstError = null; + if (form.$invalid) { + var field = null, firstError = null; + for (field in form) { + if (field[0] != '$') { + if (firstError === null && !form[field].$valid) { + firstError = form[field].$name; + } + if (form[field].$pristine) { + form[field].$dirty = true; + } + } + } + angular.element('.ng-invalid[name=' + firstError + ']').focus(); + // swal("The form cannot be submitted because it contains validation errors!", "Errors are marked with a red, dashed border!", "error"); + } else { + + $scope.ldloading1 = {}; + + $scope.ldloading1[loading.replace('-', '_')] = true; + + + var addSession = { + method: 'POST', + url: apiPoint.url + 'addSessionMaterDetails/', + headers: { + 'Content-Type': 'application/json' + }, + data: { + sessionName: myModel.sessionName, + universityName: myModel.universityName, + status: myModel.switchsetting, + createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID + } + }; + $http(addSession).then(function (response) { + if (response.data.status==200 && response.data.sessionStatus) { + $scope.ldloading1[loading.replace('-', '_')] = false; + swal("", response.data.message, "success"); + $state.go($state.current, {}, {reload: true}); + } else { + $scope.ldloading1[loading.replace('-', '_')] = false; + swal("", response.data.message, "error"); + } + }); + + + } + }, + reset: function (form) { + + $scope.myModel = { + "sessionName": "", + "switchsetting": true + }; + form.$setPristine(true); + } + }; + /* + * update the session details + * created by kms + * */ + $scope.updateSession = function (myModel,university, form, loading) { + var firstError = null; + if (form.$invalid) { + var field = null, firstError = null; + for (field in form) { + if (field[0] != '$') { + if (firstError === null && !form[field].$valid) { + firstError = form[field].$stop_name; + } + + if (form[field].$pristine) { + form[field].$dirty = true; + } + } + } + angular.element('.ng-invalid[name=' + firstError + ']').focus(); + } else { + $scope.ldloading = {}; + + $scope.ldloading[loading.replace('-', '_')] = true; + + + var update = { + method: 'POST', + url: apiPoint.url + 'updateSessionMaterDetails/', + headers: { + 'Content-Type': 'application/json' + }, + data: { + sessionID: myModel.SessionID, + sessionName: myModel.SessionName, + status: myModel.IsActive, + university: university.list, + updatedBy: JSON.parse(localStorage.getItem('localObj')).localUserID + } + }; + $http(update).then(function (response) { + if (response.data.status==200 && response.data.sessionStatus) { + $scope.ldloading[loading.replace('-', '_')] = false; + $scope.editId = -1; + $scope.init(); + swal("", response.data.message, "success"); + + + } else { + $scope.ldloading[loading.replace('-', '_')] = false; + swal("", response.data.message, "error"); + } + }); + } + }; + /* + *get session details when page loading + * + * created by kms + * */ + $scope.loader=''; + + $scope.emptyData=''; + + $rootScope.init = function () { + $scope.universityList = []; + var getSession = { + method: 'POST', + url: apiPoint.url + 'getSessionMaterDetails/', + headers: { + 'Content-Type': 'application/json' + }, + data: { + requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID + } + }; + + $http(getSession).then(function (response) { + if (response.data.status==200 && response.data.sessionStatus) { + + $scope.emptyData=true; + $scope.loader=true; + + $scope.data = response.data.details; + + // $scope.university=response.data.universityDetails; + + + + + } else { + $scope.emptyData=false; + $scope.loader=true; + // $scope.university=response.data.universityDetails; + + } + angular.forEach(response.data.universityDetails, function (values, keys) { + $scope.arrayData = { + UniversityName: values.UniversityName, + UniversityID: values.UniversityID + }; + $scope.universityList.push($scope.arrayData); + }) + }); + }; + + + + +}]); From 04c4e661c01da5eb278fe37d75553b60618bb97f Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Wed, 7 Feb 2018 19:01:41 +0530 Subject: [PATCH 13/25] course details changes done --- Apollo/assets/js/config.router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Apollo/assets/js/config.router.js b/Apollo/assets/js/config.router.js index f954df60..9662985f 100755 --- a/Apollo/assets/js/config.router.js +++ b/Apollo/assets/js/config.router.js @@ -223,7 +223,7 @@ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$com }).state('app.master.sessionMaster', { url: '/session master', templateUrl: "assets/views/sessionMaster.html", - resolve: loadSequence('ui.select','sessionMasterCtrl','ngTable', 'ladda', 'angular-ladda'), + resolve: loadSequence('ui.select','sessionMasterCtrl','ngTable', 'ladda', 'angular-ladda','spin'), title: 'Session Master', ncyBreadcrumb: { label: 'Session Master' From b06beaac38ef8941c4d7047e761dca4fce5c4d5d Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Wed, 7 Feb 2018 19:01:53 +0530 Subject: [PATCH 14/25] course details changes done --- .../controllers/SessionMater_Controller.php | 118 ++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 Apollo/api/application/controllers/SessionMater_Controller.php diff --git a/Apollo/api/application/controllers/SessionMater_Controller.php b/Apollo/api/application/controllers/SessionMater_Controller.php new file mode 100644 index 00000000..b8f00721 --- /dev/null +++ b/Apollo/api/application/controllers/SessionMater_Controller.php @@ -0,0 +1,118 @@ +methods['addSessionMaterDetails_post']['limit'] = 100; // 50 requests per hour per user/key + $this->methods['getSessionMaterDetails_post']['limit'] = 500; // 50 requests per hour per user/key + $this->methods['updateSessionMaterDetails_post']['limit'] = 500;// 500 requests per hour per user/key + // load the model + $this->load->model('SeesionMaster_model', 'sessionM_model'); + + } + + /* + * This method used to add session master details + * created by kms + * */ + + public function addSessionMaterDetails_post() + { + $now = new DateTime(); + $now->setTimezone(new DateTimezone('Asia/Kolkata')); + $details['SessionName'] = $this->post('sessionName'); + $details['UniversityID'] = $this->post('universityName'); + $details['CreatedBy'] = $this->post('createdBy'); + $details['IsActive'] = $this->post('status'); + $details['CreatedOn'] = $now->format('Y-m-d H:i:s'); + + $sessionDetails = $this->sessionM_model->addSession($details);// Check if the users data store contains users (in case the database result returns NULL) + if ($sessionDetails) + { + $sessionDetails['status'] = REST_Controller::HTTP_OK; + // Set the response and exit + $this->response($sessionDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code + } + else + { + // Set the response and exit + $this->response([ + 'message' => 'Something went wrong.please try again!', + 'status' => REST_Controller::HTTP_NOT_FOUND + ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code + } + + + } + /* + * get session master details + * created by kms + * */ + public function getSessionMaterDetails_post() + { + $requestedBy = $this->post('requestedBy'); + $getSession = $this->sessionM_model->getSession($requestedBy); + if ($getSession) + { + $getSession['status'] = REST_Controller::HTTP_OK; + // Set the response and exit + $this->response($getSession, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code + } + else + { + // Set the response and exit + $this->response([ + 'message' => 'No records found!', + 'status' => REST_Controller::HTTP_NOT_FOUND + ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code + } + + + } + /* + * update the session master details + * created by kms + * */ + public function updateSessionMaterDetails_post() + { + $now = new DateTime(); + $now->setTimezone(new DateTimezone('Asia/Kolkata')); + $details['SessionID'] = $this->post('sessionID'); + $details['SessionName'] = $this->post('sessionName'); + $details['IsActive'] = $this->post('status'); + $universityDetails['University'] = $this->post('university'); + $details['UpdatedBy'] = $this->post('updatedBy'); + $details['UpdatedOn'] = $now->format("Y-m-d H:i:s"); + $updateDetails = $this->sessionM_model->updateSession($details,$universityDetails);// Check if the users data store contains users (in case the database result returns NULL) + + if ($updateDetails) + { + $updateDetails['status'] = REST_Controller::HTTP_OK; + // Set the response and exit + $this->response($updateDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code + } + else + { + // Set the response and exit + $this->response([ + 'message' => 'Something went wrong.please try again!', + 'status' => REST_Controller::HTTP_NOT_FOUND + ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code + } + + + } + + +} \ No newline at end of file From 6322501fc29a3b63c3d9114b648f24dc37e1549d Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Wed, 7 Feb 2018 19:02:08 +0530 Subject: [PATCH 15/25] course details changes done --- .../models/SeesionMaster_model.php | 188 ++++++++++++++++++ 1 file changed, 188 insertions(+) create mode 100644 Apollo/api/application/models/SeesionMaster_model.php diff --git a/Apollo/api/application/models/SeesionMaster_model.php b/Apollo/api/application/models/SeesionMaster_model.php new file mode 100644 index 00000000..384eca95 --- /dev/null +++ b/Apollo/api/application/models/SeesionMaster_model.php @@ -0,0 +1,188 @@ +db->select('SessionName'); + $this->db->where('SessionName', $arrayDetails['SessionName']); + if($this->db->get(SESSIONMASTER)->first_row()){ + $result['sessionStatus'] = false; + $result['message'] ="This sessions is already exist."; + } + else{ + $insertMaster['SessionName']=$arrayDetails['SessionName']; + $insertMaster['CreatedBy']=$arrayDetails['CreatedBy']; + $insertMaster['IsActive']=$arrayDetails['IsActive']; + $insertMaster['CreatedOn']=$arrayDetails['CreatedOn']; + + $this->db->insert(SESSIONMASTER, $insertMaster); + + if ($this->db->affected_rows() == '1') { + $insertDetails['SessionID']=$this->db->insert_id(); + foreach ($arrayDetails['UniversityID'] as $row1){ + $insertDetails['UniversityID']=$row1['UniversityID']; + $insertDetails['CreatedBy']=$arrayDetails['CreatedBy']; + $insertDetails['IsActive']=$arrayDetails['IsActive']; + $insertDetails['CreatedOn']=$arrayDetails['CreatedOn']; + $this->db->insert(SESSIONDETAILS, $insertDetails); + + } + + $result['sessionStatus'] = true; + $result['message'] = "Sessions added successfully"; + } else { + $result['sessionStatus'] = false; + $result['message'] = "Something went wrong.please try again"; + } + + } + + + + + return $result; + + } + + + /* + * Get session master details + * created by kms + * */ + + public function getSession() + { + $this->db->select('SM.SessionID,SM.SessionName,GROUP_CONCAT(SD.UniversityID) as UniversityID,GROUP_CONCAT(SM.SessionID) as GrpID,SM.IsActive,GROUP_CONCAT(US.UniversityName) as UniversityName'); + $this->db->from(SESSIONMASTER.' as SM'); + $this->db->join(SESSIONDETAILS.' as SD', 'SM.SessionID = SD.SessionID'); + $this->db->join(UNIVERSITY.' as US', 'US.UniversityID = SD.UniversityID'); + $this->db->where('SD.IsActive','1'); + $this->db->order_by('SM.CreatedOn','DESC'); + $this->db->group_by('SM.SessionName','DESC'); + $sessionDetails = $this->db->get(); + if($sessionDetails->result()){ + + $result['sessionStatus'] = true; + $result['details'] = $sessionDetails->result(); + } + else { + $result['sessionStatus'] = false; + $result['message'] = "No records found!"; + } + // load batch model for get university details + $this->load->model('Batch_model', 'batch'); + $result['universityDetails'] = $this->batch->getUniversityDetails(); + + + return $result; + + } + + /* + * update session master details + * created by kms + * */ + public function updateSession($arrayDetails=null,$universityDetails=null) + { + $this->db->select('SessionName'); + $this->db->where('SessionName', $arrayDetails['SessionName']); + $this->db->where('SessionID !=', $arrayDetails['SessionID']); + if($this->db->get(SESSIONMASTER)->first_row()){ + $result['sessionStatus'] = false; + $result['message'] ="This sessions is already exist."; + } + else{ + $this->db->where('SessionID', $arrayDetails['SessionID']); + $upateStatus=$this->db->update(SESSIONMASTER, $arrayDetails); + + if($upateStatus){ + $deactiveStatus['IsActive']=false; + $deactiveStatus['UpdatedBy']=$arrayDetails['UpdatedBy']; + $deactiveStatus['UpdatedOn']=$arrayDetails['UpdatedOn']; + $this->db->where('SessionID ',$arrayDetails['SessionID']); + $updateActivityStatusDeactive = $this->db->update(SESSIONDETAILS, $deactiveStatus); + + if($updateActivityStatusDeactive){ + + if($universityDetails['University']){ + + foreach ($universityDetails['University'] as $urow){ + $this->db->select('ID'); + $this->db->where('SessionID',$arrayDetails['SessionID']); + $this->db->where('UniversityID',$urow); + if($this->db->get(SESSIONDETAILS)->first_row()){ + $existStatusUpdate['IsActive']=true; + $existStatusUpdate['UpdatedBy']=$arrayDetails['UpdatedBy']; + $existStatusUpdate['UpdatedOn']=$arrayDetails['UpdatedOn']; + $this->db->where('SessionID',$arrayDetails['SessionID']); + $this->db->where('UniversityID',$urow); + $this->db->update(SESSIONDETAILS, $existStatusUpdate); + } + else{ + $update_array["UniversityID"]=$urow; + $update_array["SessionID"]=$arrayDetails['SessionID']; + $update_array["IsActive"]=true; + $update_array["CreatedBy"]=$arrayDetails['UpdatedBy']; + $update_array["CreatedOn"]=$arrayDetails['UpdatedOn']; + $this->db->insert(SESSIONDETAILS, $update_array); + + } + + } + } + else{ + $activateStatus['IsActive']=true; + $this->db->where('SessionID ',$arrayDetails['SessionID']); + $this->db->update(SESSIONMASTER, $activateStatus); + + } + + + + $result['sessionStatus'] = true; + $result['message'] = "Sessions updated successfully"; + } + + + } else { + $result['sessionStatus'] = false; + $result['message'] = "Something went wrong.please try again"; + } + + } + + return $result; + + } + /* + * Get university details + * created by kms + * */ + public function getUniversityDetails()//doubt + { + $this->db->select('UniversityID,UniversityName'); + $this->db->order_by('UniversityID','ASC'); + $this->db->where('IsActive','1'); + // $this->db->where_not_in('ID', $id); + $universityDetails = $this->db->get(UNIVERSITY); + return $universityDetails->result(); + } + + + +} \ No newline at end of file From 588d527524bd8c4b99ed5e0ef35d495d25e97359 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Wed, 7 Feb 2018 19:02:19 +0530 Subject: [PATCH 16/25] course details changes done --- Apollo/assets/views/editSessionMaster.html | 92 ++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 Apollo/assets/views/editSessionMaster.html diff --git a/Apollo/assets/views/editSessionMaster.html b/Apollo/assets/views/editSessionMaster.html new file mode 100644 index 00000000..b5818eb9 --- /dev/null +++ b/Apollo/assets/views/editSessionMaster.html @@ -0,0 +1,92 @@ +
    +
    +
    +
    +
    + + Update Session Details + + + +
    +
    + + + + Session name is required + Invalid session name + + +
    +
    + + + + + + {{$item.UniversityName}} + + + {{d.UniversityName}} + + + + + + University is required. + + + +
    + +
    + +
    + + + +
    +
    + + +
    + +
    + +
    + +
    +
    +
    +
    + + + + + +
    +
    +
    + +
    +
    +
    + \ No newline at end of file From ac9333eb35cd858daf7a9f38c7da1eb7d0a14302 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 8 Feb 2018 10:03:36 +0530 Subject: [PATCH 17/25] course details changes done --- Apollo/assets/views/editSessionMaster.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Apollo/assets/views/editSessionMaster.html b/Apollo/assets/views/editSessionMaster.html index b5818eb9..8c7e4f7c 100644 --- a/Apollo/assets/views/editSessionMaster.html +++ b/Apollo/assets/views/editSessionMaster.html @@ -75,7 +75,7 @@
    - From e9e7b7c0895897a125e340b82fa3e169c47752a8 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 8 Feb 2018 10:03:56 +0530 Subject: [PATCH 18/25] course details changes done --- Apollo/assets/views/sessionMaster.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Apollo/assets/views/sessionMaster.html b/Apollo/assets/views/sessionMaster.html index 65acc65c..a68b6e05 100644 --- a/Apollo/assets/views/sessionMaster.html +++ b/Apollo/assets/views/sessionMaster.html @@ -183,7 +183,7 @@
    - From 5ecee942350c2bef53de92fec8e83f39ac570c53 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 8 Feb 2018 10:10:08 +0530 Subject: [PATCH 19/25] course details changes done --- Apollo/assets/views/editSessionMaster.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Apollo/assets/views/editSessionMaster.html b/Apollo/assets/views/editSessionMaster.html index 8c7e4f7c..ddcd280e 100644 --- a/Apollo/assets/views/editSessionMaster.html +++ b/Apollo/assets/views/editSessionMaster.html @@ -26,7 +26,7 @@
    + ng-class="{'has-error':Form.university.$dirty && Form.university.$invalid && viewUniversity.list.length==0, 'has-success':Form.university.$valid}"> @@ -42,12 +42,12 @@ - University is required. + ng-if="Form.university.$dirty && Form.university.$error.required && viewUniversity.list.length==0">University is required. @@ -75,7 +75,7 @@
    - From 0507c2706ea35a8b6d9d54301e486e22e9504dda Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 8 Feb 2018 10:11:06 +0530 Subject: [PATCH 20/25] course details changes done --- Apollo/assets/views/sessionMaster.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Apollo/assets/views/sessionMaster.html b/Apollo/assets/views/sessionMaster.html index a68b6e05..1344a21b 100644 --- a/Apollo/assets/views/sessionMaster.html +++ b/Apollo/assets/views/sessionMaster.html @@ -144,7 +144,7 @@
    + ng-class="{'has-error':Form.university.$dirty && Form.university.$invalid && myModel.universityName.length==0, 'has-success':Form.university.$valid}"> @@ -168,11 +168,11 @@ - University is required. + ng-if="Form.university.$dirty && Form.university.$error.required && myModel.universityName.length==0">University is required. @@ -183,7 +183,7 @@
    - From a1488d50711ca88e3e1a22dc140bfaa8bb7e3aca Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 8 Feb 2018 10:12:58 +0530 Subject: [PATCH 21/25] course details changes done --- Apollo/assets/views/partials/nav.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Apollo/assets/views/partials/nav.html b/Apollo/assets/views/partials/nav.html index 2fc9749d..77d6999e 100755 --- a/Apollo/assets/views/partials/nav.html +++ b/Apollo/assets/views/partials/nav.html @@ -377,6 +377,11 @@ DAY BOOK DETAILS +
  • + + SESSION DETAILS + +
  • From e15b1127243c31fa1a24d2ef40f962f157d7d269 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 8 Feb 2018 10:49:21 +0530 Subject: [PATCH 22/25] subject and center alter --- Apollo/api/application/config/routes.php | 2 - .../controllers/Center_Controller.php | 5 +- .../controllers/Subject_Controller.php | 88 +--- .../api/application/models/Center_model.php | 23 +- .../api/application/models/Subject_model.php | 284 ++++------- Apollo/assets/js/controllers/centerCtrl.js | 15 +- Apollo/assets/js/controllers/subjectCtrl.js | 446 ++---------------- Apollo/assets/views/centerMaster.html | 8 +- Apollo/assets/views/editCenterDetails.html | 2 +- Apollo/assets/views/editSubjectDetails.html | 214 +-------- Apollo/assets/views/subjectMaster.html | 356 ++++---------- 11 files changed, 294 insertions(+), 1149 deletions(-) diff --git a/Apollo/api/application/config/routes.php b/Apollo/api/application/config/routes.php index 73a68d60..81b07c79 100755 --- a/Apollo/api/application/config/routes.php +++ b/Apollo/api/application/config/routes.php @@ -227,8 +227,6 @@ $route['getCenterDetails'] = 'Center_Controller/getCenterDetails'; //subject $route['getSubjectDetails'] = 'Subject_Controller/getSubjectDetails'; $route['updateSubjectDetails'] = 'Subject_Controller/updateSubjectDetails'; -$route['getUniversity'] = 'Subject_Controller/getUniversity'; -$route['getCourseBatch'] = 'Subject_Controller/getCorsBatch'; $route['addSubjectDetails'] = 'Subject_Controller/addSubjectDetails'; // session mater diff --git a/Apollo/api/application/controllers/Center_Controller.php b/Apollo/api/application/controllers/Center_Controller.php index b1c30181..8b000cd8 100644 --- a/Apollo/api/application/controllers/Center_Controller.php +++ b/Apollo/api/application/controllers/Center_Controller.php @@ -99,13 +99,14 @@ class Center_Controller extends REST_Controller { $details['CenterCode'] = $this->post('CenterCode'); $details['CenterName'] = $this->post('CenterName'); $details['CenterAddress'] = $this->post('Address'); - $details['Comments'] = $this->post('Comments'); + $details['Comments'] = $this->post('Comments'); + $CenterID=$this->post('CenterID'); $details['IsActive'] = $this->post('status'); $details['UpdateBy'] = $this->post('updateBy'); $details['UpdateOn'] = $now->format("Y-m-d H:i:s"); - $updateDetails = $this->center_model->updateCenter($details);// Check if the users data store contains users (in case the database result returns NULL) + $updateDetails = $this->center_model->updateCenter($details,$CenterID);// Check if the users data store contains users (in case the database result returns NULL) if ($updateDetails) { diff --git a/Apollo/api/application/controllers/Subject_Controller.php b/Apollo/api/application/controllers/Subject_Controller.php index 7c48ea35..0ed22917 100644 --- a/Apollo/api/application/controllers/Subject_Controller.php +++ b/Apollo/api/application/controllers/Subject_Controller.php @@ -32,24 +32,15 @@ class Subject_Controller extends REST_Controller { public function addSubjectDetails_post() { - $now = new DateTime(); - $save['UniversityName'] = $this->post('university'); - $save['Course'] = $this->post('course'); - - $save['Batch'] = $this->post('batch'); - $save['Comments'] = $this->post('Comment'); - $save['IsActive'] = 1; + $now = new DateTime(); + $now->setTimezone(new DateTimezone('Asia/Kolkata')); + $details['SubjectCode'] = $this->post('SubjectCode'); + $details['SubjectName'] = $this->post('SubjectName'); + $details['IsActive'] = $this->post('Status'); + $details['CreatedBy'] = $this->post('createdBy'); + $details['CreatedOn'] = $now->format('Y-m-d H:i:s'); - $now->setTimezone(new DateTimezone('Asia/Kolkata')); - - $save['CreatedBy'] = $this->post('createdBy'); - $save['CreatedOn'] = $now->format('Y-m-d H:i:s'); - //$details['IsActive'] = $this->post('status'); - - - $jsonSemFeesData=$this->post('semFeesAmounts'); - - $subjectDetails = $this->subject_model->addSubject($save,$jsonSemFeesData);// Check if the users data store contains users (in case the database result returns NULL) + $subjectDetails = $this->subject_model->addSubject($details);// Check if the users data store contains users (in case the database result returns NULL) if ($subjectDetails) { @@ -98,24 +89,25 @@ class Subject_Controller extends REST_Controller { } /* - * update the Subject details + * update Subject details * * */ public function updateSubjectDetails_post() { $now = new DateTime(); $now->setTimezone(new DateTimezone('Asia/Kolkata')); - $updateID = $this->post('updateID'); - $save['Comments'] = $this->post('Comments'); - $save['IsActive'] = 1; - $save['UpdatedBy'] = $this->post('updatedBy'); - $save['UpdatedOn'] = $now->format('Y-m-d H:i:s'); - //$details['IsActive'] = $this->post('status'); - $jsonSemFeesData=$this->post('semFeesAmounts'); + $details['SubjectCode'] = $this->post('SubjectCode'); + $details['SubjectName'] = $this->post('SubjectName'); + $SubjectID = $this->post('SubjectID'); + $details['IsActive'] = $this->post('Status'); + $details['UpdatedBy'] = $this->post('updatedBy'); + $details['UpdatedOn'] = $now->format('Y-m-d H:i:s'); + + // print_r($SubjectID);die(); - $updateDetails = $this->subject_model->updateSubject($save,$jsonSemFeesData,$updateID);// Check if the users data store contains users (in case the database result returns NULL) - + $updateDetails = $this->subject_model->updateSubject($details,$SubjectID);// Check if the users data store contains users (in case the database result returns NULL) + // print_r($details,$SubjectID);die(); if ($updateDetails) { @@ -134,48 +126,8 @@ class Subject_Controller extends REST_Controller { } - //get university dropdown - public function getUniversity_post() { - $reqData = $this->post('data'); - $getUniversityListDetails = $this->subject_model->get_university_list(); - if ($getUniversityListDetails) - { - $getUniversityListDetails['status'] = REST_Controller::HTTP_OK; - // Set the response and exit - $this->response($getUniversityListDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code - } - else - { - // Set the response and exit - $this->response([ - 'message' => 'No list were found', - 'status' => REST_Controller::HTTP_NOT_FOUND - ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code - } - } - - - //get course & Batch dropdown - public function getCorsBatch_post() { - $data = $this->post('data'); - $getCourseBatchListDetails = $this->subject_model->get_courseBatch_list($data);// Check if the employee exist - if ($getCourseBatchListDetails) - { - $getCourseBatchListDetails['status'] = REST_Controller::HTTP_OK; - // Set the response and exit - $this->response($getCourseBatchListDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code - } - else - { - // Set the response and exit - $this->response([ - 'message' => 'No list were found', - 'status' => REST_Controller::HTTP_NOT_FOUND - ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code - } - } - + diff --git a/Apollo/api/application/models/Center_model.php b/Apollo/api/application/models/Center_model.php index 884218cf..02d085de 100644 --- a/Apollo/api/application/models/Center_model.php +++ b/Apollo/api/application/models/Center_model.php @@ -11,7 +11,7 @@ class Center_model extends CI_Model { /* - * Add batch details + * Add center details * created by subaramkumar */ @@ -40,7 +40,7 @@ class Center_model extends CI_Model { /* - * Get batch details + * Get center details * created by srk */ @@ -69,13 +69,23 @@ class Center_model extends CI_Model { } /* - * update batch details + * update Center details * created by Srk */ - public function updateCenter($arrayDetails=null) + public function updateCenter($arrayDetails=null,$CenterID=null) { + + $this->db->select('CenterCode'); $this->db->where('CenterCode',$arrayDetails['CenterCode']); - $updateStatus=$this->db->update(CENTER, $arrayDetails); + //$this->db->where('SubjectCode !=', $arrayDetails['SubjectCode']); + $this->db->where('CenterCode !=',$arrayDetails['CenterCode']); + if($this->db->get(CENTER)->first_row()){ + $result['centerStatus']=false; + $result['message']= " This Center code already exist"; + } + else{ + $this->db->where('CenterID',$CenterID); + $updateStatus=$this->db->update(CENTER, $arrayDetails); if($updateStatus){ $result['centerStatus'] = true; @@ -87,11 +97,14 @@ class Center_model extends CI_Model { $result['message'] = "Something went wrong.please try again"; } + } return $result; } + + } \ No newline at end of file diff --git a/Apollo/api/application/models/Subject_model.php b/Apollo/api/application/models/Subject_model.php index 27d73a01..37f3d269 100644 --- a/Apollo/api/application/models/Subject_model.php +++ b/Apollo/api/application/models/Subject_model.php @@ -1,6 +1,6 @@ db->insert('T_SubjectMaster', $save); - $subject_id = $this->db->insert_id(); - if($this->db->affected_rows() == '1'){ - - if($jsonSemFeesData){ - foreach($jsonSemFeesData as $row) - { + + $this->db->select('SubjectCode'); + $this->db->where('SubjectCode',$arrayDetails['SubjectCode']); + if($this->db->get('T_SubjectMaster')->first_row()){ + $result['SubjectStatus']=false; + $result['message']="This subject code already exists"; + }else{ - - $insertFeesArray['Subject_ID'] =$subject_id; - $insertFeesArray['Semester'] =$row['Semester']; - $insertFeesArray['SubjectCode'] =$row['SubjectCode']; - $insertFeesArray['SubjectName'] =$row['SubjectName']; - $insertFeesArray['CreatedOn'] =$save['CreatedOn']; - $insertFeesArray['CreatedBy'] =$save['CreatedBy']; + $this->db->insert('T_SubjectMaster',$arrayDetails); + if ($this->db->affected_rows() == '1') { + $result['SubjectStatus']=true; + $result['message']="Successfully Subject Code is added"; - $this->db->insert('T_SubjectDetails', $insertFeesArray); - - } - - $result['SubjectStatus'] = true; - $result['message'] = "Successfully Subject details added"; - - - - } else { - $result['SubjectStatus'] = false; - $result['message'] = "Something went wrong.please try again"; - } - - return $result; - -} - -} -//update subject - -public function updateSubject($save=null,$jsonSemFeesData=null,$updateID=null) -{ - $this->db->where('ID',$updateID); - $upateStatus=$this->db->update('T_SubjectMaster', $save); - - - if($upateStatus) { - - if ($jsonSemFeesData) { - foreach ($jsonSemFeesData as $row) - { - $subID = $row['ID']; - - $updateFeesArray['Subject_ID'] =$updateID; - $updateFeesArray['Semester'] =$row['Semester']; - $updateFeesArray['SubjectCode'] =$row['SubjectCode']; - $updateFeesArray['SubjectName'] =$row['SubjectName']; - $updateFeesArray['UpdatedOn'] = $save['UpdatedOn']; - $updateFeesArray['UpdatedBy'] = $save['UpdatedBy']; - - if($subID!='' OR $subID!=null){ - $this->db->where('ID', $subID); - $this->db->update('T_SubjectDetails', $updateFeesArray); - } - else{ - $this->db->insert('T_SubjectDetails', $updateFeesArray); - } - - } - $result['SubjectStatus'] = true; - $result['message'] = "Successfully subject details updated"; - } - - } - - else { - $result['SubjectStatus'] = false; - $result['message'] = "Something went wrong.please try again"; - - } - - - return $result; - + }else{ + $result['SubjectStatus'] = false; + $result['message'] = "Something went wrong.please try again"; } + } + return $result; +} + + + /* + * Update Subject details + * created by srk + */ + +public function updateSubject($arrayDetails=null,$SubjectID=null) +{ + $this->db->select('SubjectCode'); + $this->db->where('SubjectCode',$arrayDetails['SubjectCode']); + $this->db->where('SubjectCode !=', $arrayDetails['SubjectCode']); + if($this->db->get('T_SubjectMaster')->first_row()){ + $result['SubjectStatus']=false; + $result['message']="This subject code is already exists"; + }else{ + $this->db->where('SubjectID',$SubjectID); + $upateStatus=$this->db->update('T_SubjectMaster', $arrayDetails); + + + + if($upateStatus){ + + $result['SubjectStatus'] = true; + $result['message'] = "Successfully Subject details updated"; + } + + else { + + $result['SubjectStatus'] = false; + $result['message'] = "Something went wrong.please try again"; + + } + } + + return $result; + + } + /* + * Get subject details + * created by srk + */ + + + + public function getSubject() + { + $this->db->select('*'); + $this->db->order_by('CreatedOn','DESC'); + $subjectDetails = $this->db->get('T_SubjectMaster'); + + + if($subjectDetails->result()){ + + $result['SubjectStatus'] = true; + $result['details'] = $subjectDetails->result(); + } + else { + $result['SubjectStatus'] = false; + $result['message'] = "No records found!"; + } + + return $result; + + } + - //get subject details - public function getSubject() - { - $this->db->select('BS.BatchName,CU.ID,CS.CourseName,CU.Comments ,CU.IsActive,US.UniversityName'); - $this->db->from('T_SubjectMaster'.' as CU'); - $this->db->join(UNIVERSITY.' as US', 'US.UniversityID = CU.UniversityName'); - $this->db->join(COURSE.' as CS', 'CS.CourseID = CU.Course'); - $this->db->join(BATCH.' as BS', 'BS.BatchCode = CU.Batch'); - - - $this->db->order_by('CU.CreatedOn','DESC'); - $subjectDetails = $this->db->get(); - - if($subjectDetails->result()){ - - $result['SubjectStatus'] = true; - - foreach ($subjectDetails->result() as $row){ - $fetchData['ID']=$row->ID; - $fetchData['CourseName']=$row->CourseName; - $fetchData['BatchName']=$row->BatchName; - - $fetchData['Comments']=$row->Comments; - - $fetchData['IsActive']=$row->IsActive; - - $fetchData['UniversityName']=$row->UniversityName; - $fetchData['feesStructures'] = $this->getSubjectDetails($row->ID); - - $storeSubjectArray[]=$fetchData; - } - $result['details'] = $storeSubjectArray; - } - else { - $result['SubjectStatus'] = false; - $result['message'] = "No records found!"; - } - - - return $result; - } + - - // public function getUniversityDetails() - // { - // $this->db->select('UniversityID,UniversityName'); - // $this->db->order_by('UniversityID','ASC'); - // $this->db->where('IsActive','1'); - // $universityDetails = $this->db->get(UNIVERSITY); - // return $universityDetails->result(); - // } - - - - public function getSubjectDetails($ID=null) - { - - $this->db->select('ID,Subject_ID,Semester,SubjectCode,SubjectName'); - $this->db->order_by('ID','ASC'); - $this->db->where('Subject_ID',$ID); - $this->db->from('T_SubjectDetails'); - $subjectDetails = $this->db->get(); - return $subjectDetails->result(); - } - + - /*** get university list******/ - public function get_university_list() { - $this->db->select('*'); - $this->db->order_by('CreatedOn', 'DESC'); - $this->db->from(UNIVERSITY); - $this->db->where('IsActive',1); - $univDetails = $this->db->get(); - $universityDetails = $univDetails->result(); - if (count($universityDetails) > 0) { - $results['univList'] = true; - $results['university_details'] = $universityDetails; - } else { - $results['univList'] = false; - $results['message'] = 'No record found'; - } - return $results; - } - - + - /**********get course&Batch for university********/ - - public function get_courseBatch_list($univId) { - $this->db->select('C.CourseID, C.CourseName'); - $this->db->from(COURSE.' as C'); - $this->db->where('UniversityID',$univId); - $this->db->where('IsActive',1); - $courseDetails = $this->db->get(); - if($courseDetails->result()){ - $this->db->select('B.BatchCode, B.BatchName'); - $this->db->from(BATCH.' as B'); - $this->db->where('UniversityID',$univId); - $this->db->where('IsActive',1); - $batchDetails = $this->db->get(); - if( $batchDetails->result()) { - $result['courseStatus'] = true; - $result['course_details'] = $courseDetails->result(); - $result['batch_details'] = $batchDetails->result(); - } else { - $result['courseStatus'] = false; - $result['message'] = "No records found!"; - } - } - else { - $result['courseStatus'] = false; - $result['message'] = "No records found!"; - } - - return $result; - } + } \ No newline at end of file diff --git a/Apollo/assets/js/controllers/centerCtrl.js b/Apollo/assets/js/controllers/centerCtrl.js index ccafd714..50616c38 100644 --- a/Apollo/assets/js/controllers/centerCtrl.js +++ b/Apollo/assets/js/controllers/centerCtrl.js @@ -16,7 +16,7 @@ app.controller('centerCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab /* * edit batch details - * created by subaram + * * */ $scope.editId = -1; $scope.setEditId = function (pid) { @@ -27,7 +27,7 @@ app.controller('centerCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab /* * cancel edit div - * created by subaram + * * */ $scope.cancel = function () { $scope.init(); @@ -44,7 +44,7 @@ app.controller('centerCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab /* * Submit,update and reset center details * @params myModel - * created by subaram + * * */ $scope.centerForm = { @@ -104,7 +104,7 @@ app.controller('centerCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab reset: function (form) { - // $scope.myModel = angular.copy($scope.master); + $scope.myModel = angular.copy($scope.master); form.$setPristine(true); $scope.myModel = { "centerCode": "", @@ -122,7 +122,7 @@ app.controller('centerCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab /* * update the center details - * created by subaram + * * */ $scope.updateCenter = function (myModel, form, loading) { @@ -156,9 +156,10 @@ app.controller('centerCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab data: { CenterCode: myModel.CenterCode, CenterName: myModel.CenterName, - Address: myModel.CenterAddress, - Comments:myModel.Comments, + Address: myModel.CenterAddress, + Comments:myModel.Comments, status: myModel.IsActive, + CenterID:myModel.CenterID, updateBy: JSON.parse(localStorage.getItem('localObj')).localUserID } }; diff --git a/Apollo/assets/js/controllers/subjectCtrl.js b/Apollo/assets/js/controllers/subjectCtrl.js index 0b5b16b3..0b8b93d9 100644 --- a/Apollo/assets/js/controllers/subjectCtrl.js +++ b/Apollo/assets/js/controllers/subjectCtrl.js @@ -7,53 +7,27 @@ app.controller('subjectCtrl', ["$scope", "$rootScope","toaster", "$filter", "ngTableParams", "API_POINTS", "$localStorage", "$http", "$state",'ipCookie', function ($scope,$rootScope,toaster, $filter, ngTableParams, apiPoint, $localStorage, $http, $state,ipCookie) { $scope.myModel = { - "university": "", - "course": "", - "batch": "", - "comments":"", + "SubjectCode": "", + "SubjectNme": "", "switchsetting": true, }; - $rootScope.updateMoreItems = []; + /* + * edit batch details + * created by subaram + * */ $scope.editId = -1; - $rootScope.setEditId = function (pid,p) { - - - $rootScope.updateMoreItems=[]; - // find index for fees type drop down list - - angular.forEach(p.feesStructures, function(value, key){ - $rootScope.updateMoreItems.push({ - "ID":value.ID, - "Semester":value.Semester, - "SubjectCode":value.SubjectCode, - "SubjectName": value. SubjectName, - - - }); - - }); + $scope.setEditId = function (pid) { $scope.editId = pid; + $scope.viewId = -1; }; - - $scope.viewId=-1; - $scope.setEditI = function (pid,p) { - $scope.editId=-1; - $scope.init(); - $scope.viewId=p.ID; - $scope.editId = pid; - } - - - - /* * cancel edit div - * + * created by subaram * */ $scope.cancel = function () { $scope.init(); @@ -67,13 +41,14 @@ app.controller('subjectCtrl', ["$scope", "$rootScope","toaster", "$filter", "ngT $scope.reverse = !$scope.reverse; //if true make it false and vice versa } + /* * Submit,update and reset Subject details * @params myModel * * */ $scope.subjectFORM = { - submit: function (form, myModel,semYearModel,loading,addMoreItems) { + submit: function (form, myModel,loading) { var firstError = null; if (form.$invalid) { var field = null, firstError = null; @@ -91,17 +66,10 @@ app.controller('subjectCtrl', ["$scope", "$rootScope","toaster", "$filter", "ngT // swal("The form cannot be submitted because it contains validation errors!", "Errors are marked with a red, dashed border!", "error"); } else { - // $scope.ldloading1 = {}; + $scope.ldloading1 = {}; - //$scope.ldloading1[loading.replace('-', '_')] = true; - $rootScope.addMoreItems.push({ - - - Semester: semYearModel. Semester, - SubjectCode:semYearModel.SubjectCode, - SubjectName:semYearModel.SubjectName - }); - + $scope.ldloading1[loading.replace('-', '_')] = true; + var addSubject = { method: 'POST', @@ -110,11 +78,9 @@ app.controller('subjectCtrl', ["$scope", "$rootScope","toaster", "$filter", "ngT 'Content-Type': 'application/json' }, data: { - university:myModel.university, - course:myModel.course, - batch:myModel.batch, - semFeesAmounts:$rootScope.addMoreItems, - Comment:myModel.Comment, + SubjectCode:myModel.SubjectCode, + SubjectName:myModel.SubjectName, + Status: myModel.switchsetting, createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID } }; @@ -122,13 +88,12 @@ app.controller('subjectCtrl', ["$scope", "$rootScope","toaster", "$filter", "ngT $http(addSubject).then(function (response) { if (response.data.status==200 && response.data.SubjectStatus) { - // $scope.ldloading1[loading.replace('-', '_')] = false; + $scope.ldloading1[loading.replace('-', '_')] = false; swal("Success!", response.data.message, "success"); $state.go($state.current, {}, {reload: true}); } else { - $rootScope.addMoreItems.splice($rootScope.addMoreItems.length-1); - // $scope.ldloading1[loading.replace('-', '_')] = false; + $scope.ldloading1[loading.replace('-', '_')] = false; swal("Failed!", response.data.message, "error"); } }); @@ -136,222 +101,28 @@ app.controller('subjectCtrl', ["$scope", "$rootScope","toaster", "$filter", "ngT } }, - reset: function (form) { - $rootScope.addMoreItems = []; - - $scope.myModel = angular.copy($scope.master); - form.$setPristine(true); - $scope.myModel = { - - "university": "", - "course": "", - "batch": "", - "comments":"", - "switchsetting": true, + reset: function (form) { - }; - $scope.myModelSemYear = { - "Semester":"", - "SubjectCode":"", - "SubjectName":"", - }; - - - $rootScope.myModelSemYear1 = { - "Semester":"", - "SubjectCode":"", - "SubjectName":"", - }; - } + $scope.myModel = { + "SubjectCode": "", + "SubjectName": "", + "switchsetting": true + }; + form.$setPristine(true); + } }; - - $rootScope.addMoreItems = []; - - - $scope.myModelSemYear = { - "Semester":"", - "SubjectCode":"", - "SubjectName":"", - }; + + - $rootScope.addMoreFeesItems = function (model,form) { - - var firstError = null; - if (form.$invalid) { - var field = null, firstError = null; - for (field in form) { - if (field[0] != '$') { - if (firstError === null && !form[field].$valid) { - firstError = form[field].$stop_name; - } - - if (form[field].$pristine) { - form[field].$dirty = true; - } - } - } - - angular.element('.ng-invalid[name=' + firstError + ']').focus(); - } - - - - - else { - $rootScope.addMoreItems.push({ - - Semester: model.Semester, - SubjectCode:model.SubjectCode, - SubjectName:model.SubjectName - }); - - - $scope.myModelSemYear.Semester=""; - $scope.myModelSemYear.SubjectCode=""; - $scope.myModelSemYear.SubjectName=""; - - - } - } - - - // //alert('Duplicate Semester: ' + checkDuplicateInObject('Semester', $rootScope.addMoreItems)); - // alert('Duplicate SubjectCode: ' + checkDuplicateInObject('SubjectCode', $rootScope.addMoreItems)); - // //alert('DuplicateSubjectName: ' + checkDuplicateInObject('SubjectName', $rootScope.addMoreItems)); - - - // // - - - // if(checkDuplicateInObject('SubjectCode', $rootScope.addMoreItems) === false) { - // $scope.myModelSemYear.SubjectCode=""; - - // }else{ - // $rootScope.addMoreItems.push({ - - // Semester: model.Semester, - // SubjectCode:model.SubjectCode, - // SubjectName:model.SubjectName - // }); - - // } - - // $scope.myModelSemYear.SubjectCode=""; - // $scope.myModelSemYear.Semester=""; - // $scope.myModelSemYear.SubjectName=""; - - // function checkDuplicateInObject(propertyName, inputArray) { - // var seenDuplicate = true, - // testObject = {}; - - // inputArray.map(function(item) { - // var itemPropertyName = item[propertyName]; - // if (itemPropertyName in testObject) { - // testObject[itemPropertyName].duplicate = true; - // item.duplicate = true; - // seenDuplicate = false; - // } - // else { - // testObject[itemPropertyName] = item; - // delete item.duplicate; - // } - // }); - - // return seenDuplicate; - // } - - - // function checkDuplicateInObject(propertyName, inputArray) { - // // alert(JSON.stringify(inputArray)); - // var seenDuplicate = false; - // $rootScope.testObject = {}; - - // // alert(propertyName); - // // if(inputArray.length === 0) { - // // return $rootScope.seenDuplicate = true; - - // // } else{ - // inputArray.map(function(item) { - // alert(JSON.stringify(item)); - // $rootScope.itemPropertyName = item[propertyName]; - // if ($rootScope.itemPropertyName in $rootScope.testObject) { - // $rootScope.testObject[$rootScope.itemPropertyName].duplicate = true; - // item.duplicate = true; - // seenDuplicate = true; - // alert('kd'); - // } - // else { - // $rootScope.testObject[$rootScope.itemPropertyName] = item; - // delete item.duplicate; - // } - // // alert(JSON.stringify($rootScope.testObject)); - // }); - // // } - - - // return seenDuplicate; - // } - - - - ///***updateupdateMoreItems */ - $rootScope.updateMoreItems = []; - - $rootScope.myModelSemYear1 = { - "Semester":"", - "SubjectCode":"", - "SubjectName":"", - }; - $rootScope.updateMoreFeesItems = function (model,form) { - - - var firstError = null; - if (form.$invalid) { - var field = null, firstError = null; - for (field in form) { - if (field[0] != '$') { - if (firstError === null && !form[field].$valid) { - firstError = form[field].$stop_name; - } + /*update subject details + * * @params myModel*/ - if (form[field].$pristine) { - form[field].$dirty = true; - } - } - } - - angular.element('.ng-invalid[name=' + firstError + ']').focus(); - } - - - - - else { - - $rootScope.updateMoreItems.push({ - - ID:"", - Semester: model.Semester, - SubjectCode:model.SubjectCode, - SubjectName:model.SubjectName - - }); - - - } - $scope.myModelSemYear1.ID=""; - $scope.myModelSemYear1.Semester=""; - $scope.myModelSemYear1.SubjectCode=""; - $scope.myModelSemYear1.SubjectName=""; - } - - ////*****update subject details */ - $scope.updateSubject = function (myModel, form,semYear, loading) { + $scope.updateSubject = function (myModel, form, loading) { var firstError = null; if (form.$invalid) { var field = null, firstError = null; @@ -368,16 +139,7 @@ app.controller('subjectCtrl', ["$scope", "$rootScope","toaster", "$filter", "ngT } angular.element('.ng-invalid[name=' + firstError + ']').focus(); } else { - if(semYear. Semester!="" || semYear.SubjectCode!=""|| semYear. SubjectName!=""){ - $rootScope.updateMoreItems.push({ - ID:"", - Semester:semYear. Semester, - SubjectCode:semYear.SubjectCode, - SubjectName: semYear. SubjectName, - - - }); - } + $scope.ldloading = {}; @@ -393,113 +155,35 @@ app.controller('subjectCtrl', ["$scope", "$rootScope","toaster", "$filter", "ngT data: { - semFeesAmounts:$rootScope.updateMoreItems, - Comments:myModel.Comments, - updateID: myModel.ID, + SubjectCode:myModel.SubjectCode, + SubjectName:myModel.SubjectName, + Status:myModel.IsActive, + SubjectID: myModel. SubjectID, //auto id updatedBy: JSON.parse(localStorage.getItem('localObj')).localUserID } }; $http(update).then(function (response) { if (response.data.status==200 && response.data.SubjectStatus) { - $scope.ldloading[loading.replace('-', '_')] = false; - $rootScope.updateMoreItems=[]; - $rootScope.myModelSemYear1.ID=""; - $rootScope.myModelSemYear1.Semester=""; - $rootScope.myModelSemYear1.SubjectCode=""; - $rootScope.myModelSemYear1.SubjectName=""; - - - - $scope.init(); - $rootScope.updateMoreItems.splice( $rootScope.updateMoreItems.length-1); + $scope.ldloading[loading.replace('-', '_')] = false; + $scope.init(); swal("Success!", response.data.message, "success"); - $scope.editId = -1; - - } else { $scope.ldloading[loading.replace('-', '_')] = false; $scope.init(); swal("Failed!", response.data.message, "error"); - $rootScope.updateMoreItems.splice( $rootScope.updateMoreItems.length-1); - // $rootScope.addMoreItems.splice($rootScope.addMoreItems.length-1); + } }); } }; - - - - - -/////**********/// */ - var localDetail = JSON.parse(localStorage.getItem('localObj')); - var localDetails = ipCookie('cookiechk'); - - $scope.init = function () { - $scope.getUniversityList(); - } - //GET UNIVERSITY dETAILS - - $scope.universityData = ''; - $scope.getUniversityList = function () { - var empListreq = { - method: 'POST', - url: apiPoint.url + 'getUniversity/', - headers: { - 'Content-Type': 'application/json' - }, - data: { - data: localDetails - } - }; - $http(empListreq).then(function (response) { - if (response.data.univList) { - $scope.universityData = response.data.university_details; - } else { - } - }); - } - - - $scope.getUniversityList(); - - - - -//GET COURSE&BATCH - - $scope.courseLoading = false; - $scope.onSlecetUnivAdd = function () { - $scope.courseDataAdd = ''; - $scope.batchDataAdd = ''; - $scope.myModel.course = ''; - $scope.myModel.batch = ''; - $scope.courseLoading = true; - var univListreq = { - method: 'POST', - url: apiPoint.url + 'getCourseBatch/', - headers: { - 'Content-Type': 'application/json' - }, - data: { - data: $scope.myModel.university - } - }; - $http(univListreq).then(function (response) { - if (response.data.courseStatus) { - $scope.courseLoading = false; - $scope.courseDataAdd = response.data.course_details; - $scope.batchDataAdd = response.data.batch_details; - } else { - $scope.courseLoading = false; - } - }); - } - - + /* + *get Subject details when page loading called from view file + * + * created by Srk + * */ $scope.loader=''; @@ -525,47 +209,9 @@ app.controller('subjectCtrl', ["$scope", "$rootScope","toaster", "$filter", "ngT if (response.data.status==200 && response.data.SubjectStatus) { $scope.emptyData=true; - $scope.loader=true; - + $scope.loader=true; $scope.data = response.data.details; -//alert(JSON.stringify( $scope.data )); - /// -// $scope.setModel = { -// "feesType": $scope.data[0], - - -// }; -// //alert(JSON.stringify( $scope.data[0] )); -// // $scope.setTotalAmount=$scope.data[0].PayableFees; - -// $rootScope.updateMoreItems=[]; - -// if($scope.data[0].feesStructures != '') -// // alert(JSON.stringify($scope.data[0].feesStructures)) - -// { -// $scope.myModelSemYear1.ID=$scope.data[0].feesStructures[$scope.data[0].feesStructures.length-1].ID; -// //alert(JSON.stringify( $scope.myModelSemYear1.ID )); -// $rootScope.myModelSemYear1.Semester=$scope.data[0].feesStructures[$scope.data[0].feesStructures.length-1].Semester; -// //alert(JSON.stringify( $scope.myModelSemYear1.Semester )); -// $rootScope.myModelSemYear1.SubjectCode=$scope.data[0].feesStructures[$scope.data[0].feesStructures.length-1].SubjectCode; -// //alert(JSON.stringify( $scope.myModelSemYear1.SubjectCode )); -// $rootScope.myModelSemYear1.SubjectName=$scope.data[0].feesStructures[$scope.data[0].feesStructures.length-1].SubjectName; -// //alert(JSON.stringify( $scope.myModelSemYear1.SubjectName )); - -// for(var i=0; i < $scope.data[0].feesStructures.length-1; i++){ -// $rootScope.updateMoreItems.push($scope.data[0].feesStructures[i]); -// } -// } -// // alert(JSON.stringify( $scope.data[0].feesStructures[i] )); - - //////////// - - - - - } else { $scope.emptyData=false; $scope.loader=true; diff --git a/Apollo/assets/views/centerMaster.html b/Apollo/assets/views/centerMaster.html index 4d657ebf..d3bd11be 100644 --- a/Apollo/assets/views/centerMaster.html +++ b/Apollo/assets/views/centerMaster.html @@ -71,7 +71,7 @@ Center Address - Comments + Status Action @@ -83,18 +83,18 @@ {{p.CenterCode}} {{p.CenterName}} {{p.CenterAddress}} - {{p.Comments}} + Active De-Active - + - + diff --git a/Apollo/assets/views/editCenterDetails.html b/Apollo/assets/views/editCenterDetails.html index 75adc124..24ac7c53 100644 --- a/Apollo/assets/views/editCenterDetails.html +++ b/Apollo/assets/views/editCenterDetails.html @@ -16,7 +16,7 @@ + ng-model="p.CenterCode" ng-pattern="/^[a-zA-Z0-9\s]*$/" required/> Center Code is required - - - - - - +
    - - - - University name is required - Invalid University name - - -
    - -
    - - - - Course name is required - Invalid course name - - -
    - -
    - - - - Course id is required - Invalid course id - -
    - -
    - - - Comments is required -
    - - - - - - - - -
    - - -
    -
    - Subject Add - -
    - - - -
    - - -
    - - - - Sem/Year is required - Invalid Sem/Year name -
    - - - - - - -
    -
    - - -
    -
    - - -
    -
    -
    - - - -
    - - - - Enter a valid name -
    -
    - - - - Enter a valid amount - -
    -
    - - - - Enter a subject valid name -
    - - -
    -
    -
    -
    - -
    -
    - - - -
    - -
    - diff --git a/Apollo/assets/views/subjectMaster.html b/Apollo/assets/views/subjectMaster.html index 6c51cacd..892bd0f8 100644 --- a/Apollo/assets/views/subjectMaster.html +++ b/Apollo/assets/views/subjectMaster.html @@ -4,8 +4,8 @@ border-radius: 60px; box-shadow: 0px 0px 2px #007AFF; padding: 0.5em 0.6em; - - + + } @@ -33,87 +33,81 @@
    Please Wait...
    - +

    oops! No records found...

    -
    +
    - +


    - - + +
    - +
    - + - - - + + - + - - - - - + + + + - - - - - - + + - + - +
    UniversityName - + Subject Code + Course Name + Subject Name Batch - - Status
    {{p.UniversityName}}{{p.CourseName}}{{p.BatchName}}{{p.SubjectCode}}{{p.SubjectName}} Active De-Active - + - +
    - - + +
    - - + + @@ -123,265 +117,101 @@ $('#batch').focus(); }); - + -
    +
    - Subject + Subject
    -
    - - - - University is Required -
    +
    + + + - - -
    - fetching... -
    -
    - -
    - Course is required - -
    - -
    - - -
    - fetching... -
    -
    - -
    - Batch is required - -
    -
    -
    -
    - - - Comments is required -
    - -
    - -
    - -
    -
    - Subject Add + ng-if="Form.SubjectCode.$dirty && Form.SubjectCode.$error.required">Subject Code is required + Enter a valid SubjectCode -
    - - - -
    - - - - - - -
    - - - - Semester is required - Invalid Semester name -
    - - - - - - -
    +
    +
    - + SubjectCode is required + ng-if="Form.SubjectName.$dirty && Form.SubjectName.$error.required"> Subject Name is required Enter a valid SubjectCode - + ng-if="Form.SubjectName.$dirty && Form.SubjectName.$error.pattern">Invalid SubjectName name
    -
    +
    +
    +
    + + +
    +
    + + +
    + + +
    + + +
    +
    - - Sem/Year is required - Invalid SubjectName name
    - - - - -
    -
    - - -
    -
    -
    - - - -
    - - - - Enter a valid name -
    -
    - - - - Enter a valid amount - -
    -
    - - - - Enter a subject valid name -
    - - -
    -
    -
    -
    - -
    + +
    -
    -
    - +
    +
    + - - -
    -
    -
    -
    + + +
    +
    +
    + +
    -
    - -
    - + +
    + - - - - - - \ No newline at end of file From 7c3ac30314d358e815109749e4f209ff751d0191 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 8 Feb 2018 11:28:26 +0530 Subject: [PATCH 23/25] course details changes done --- Apollo/api/application/models/Course_model.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Apollo/api/application/models/Course_model.php b/Apollo/api/application/models/Course_model.php index 46a4cdc6..89bd4b12 100755 --- a/Apollo/api/application/models/Course_model.php +++ b/Apollo/api/application/models/Course_model.php @@ -114,6 +114,7 @@ class Course_model extends CI_Model { public function getCourseUnivFeesTypes() { $result['universityDetails'] = $this->getUniversityDetails(); $result['feesDetails'] = $this->getFeesDetails(); + $result['subjectetails'] = $this->getSubjectDetails(); $result['courseStatus'] = true; return $result; } @@ -255,6 +256,18 @@ class Course_model extends CI_Model { return $feesDetails->result(); } + /* + * get subject details + * created by kms + * */ + public function getSubjectDetails(){ + $this->db->select('UniversityID,UniversityName'); + $this->db->order_by('UniversityID','ASC'); + $this->db->where('IsActive','1'); + $universityDetails = $this->db->get(SUBJE); + return $universityDetails->result(); + } + From df866ceca085f7a68cedf78e1fc52ba2c18013f0 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 8 Feb 2018 11:28:48 +0530 Subject: [PATCH 24/25] course details changes done --- Apollo/api/application/config/constants.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Apollo/api/application/config/constants.php b/Apollo/api/application/config/constants.php index 1cb26b57..727d80a3 100755 --- a/Apollo/api/application/config/constants.php +++ b/Apollo/api/application/config/constants.php @@ -129,6 +129,7 @@ defined('DAYBOOKMASTER') OR define('DAYBOOKMASTER','T_DayBookMaster'); defined('INCOMEOUTCOMEMASTER') OR define('INCOMEOUTCOMEMASTER','T_Income_Outcome_Master'); defined('FEES_INSTALLMENT') OR define('FEES_INSTALLMENT','T_Fees_Installments'); defined('CENTER') OR define('CENTER','T_CenterMaster'); +defined('SUBJECTMASTER') OR define('SUBJECTMASTER','T_SubjectMaster'); defined('SESSIONMASTER') OR define('SESSIONMASTER','T_Session_Master'); defined('SESSIONDETAILS') OR define('SESSIONDETAILS','T_SessionDetails'); From 87abfd6ebb2c9f028822d72037af856df74821b0 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 8 Feb 2018 12:37:09 +0530 Subject: [PATCH 25/25] course details changes done --- Apollo/api/application/config/constants.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Apollo/api/application/config/constants.php b/Apollo/api/application/config/constants.php index 727d80a3..7c64fd6e 100755 --- a/Apollo/api/application/config/constants.php +++ b/Apollo/api/application/config/constants.php @@ -132,6 +132,7 @@ defined('CENTER') OR define('CENTER','T_CenterMaster'); defined('SUBJECTMASTER') OR define('SUBJECTMASTER','T_SubjectMaster'); defined('SESSIONMASTER') OR define('SESSIONMASTER','T_Session_Master'); defined('SESSIONDETAILS') OR define('SESSIONDETAILS','T_SessionDetails'); +defined('COURSESUBJECT') OR define('COURSESUBJECT','T_CourseSubject_Details');