Merge remote-tracking branch 'origin/master'

This commit is contained in:
gandhimathi 2018-02-22 19:26:11 +05:30
commit 72fbf6a18c
9 changed files with 379 additions and 53 deletions

View File

@ -123,6 +123,7 @@ class StatusUpdation_Controller extends REST_Controller {
'SDate' => $reqData[$i]['SDate'], 'SDate' => $reqData[$i]['SDate'],
'Coursedetail' => $reqData[$i]['Coursedetail'], 'Coursedetail' => $reqData[$i]['Coursedetail'],
'Comments' => $reqData[$i]['Comments'], 'Comments' => $reqData[$i]['Comments'],
'Sem' => $reqData[$i]['Sem'],
'CreatedBy' => $reqDetails['localUserID'], 'CreatedBy' => $reqDetails['localUserID'],
'CreatedOn' => $dateTime, 'CreatedOn' => $dateTime,
); );
@ -165,6 +166,7 @@ class StatusUpdation_Controller extends REST_Controller {
'AnsDate' => $reqData[$i]['SDate'], 'AnsDate' => $reqData[$i]['SDate'],
'Coursedetail' => $reqData[$i]['Coursedetail'], 'Coursedetail' => $reqData[$i]['Coursedetail'],
'Comments' => $reqData[$i]['Comments'], 'Comments' => $reqData[$i]['Comments'],
'Sem' => $reqData[$i]['Sem'],
'CreatedBy' => $reqDetails['localUserID'], 'CreatedBy' => $reqDetails['localUserID'],
'CreatedOn' => $dateTime, 'CreatedOn' => $dateTime,
); );
@ -229,6 +231,7 @@ class StatusUpdation_Controller extends REST_Controller {
'CDate' => $reqData[$i]['SDate'], 'CDate' => $reqData[$i]['SDate'],
'Coursedetail' => $reqData[$i]['Coursedetail'], 'Coursedetail' => $reqData[$i]['Coursedetail'],
'Comments' => $reqData[$i]['Comments'], 'Comments' => $reqData[$i]['Comments'],
'Sem' => $reqData[$i]['Sem'],
'CreatedBy' => $reqDetails['localUserID'], 'CreatedBy' => $reqDetails['localUserID'],
'CreatedOn' => $dateTime, 'CreatedOn' => $dateTime,
// 'CertificationType' => $reqData[$i]['CertificateType'], // 'CertificationType' => $reqData[$i]['CertificateType'],

View File

@ -164,7 +164,7 @@ class StatusUpdation_model extends CI_Model
if( $reqDetailsFor == 'STUDY_MATERIAL') { if( $reqDetailsFor == 'STUDY_MATERIAL') {
$searchFor = 'M001'; $searchFor = 'M001';
$searchTableFor = STUDY_MATERIAL_STATUS; $searchTableFor = STUDY_MATERIAL_STATUS;
$this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year'); $this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year, t2.ProgramType');
$this->db->from(''. $searchTableFor . ' as t1'); $this->db->from(''. $searchTableFor . ' as t1');
$this->db->where('t1.StudentID', $reqDetails['student']); $this->db->where('t1.StudentID', $reqDetails['student']);
$this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT'); $this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT');
@ -207,7 +207,7 @@ class StatusUpdation_model extends CI_Model
} else if ( $reqDetailsFor == 'CERTIFICATION_STATUS' ) { } else if ( $reqDetailsFor == 'CERTIFICATION_STATUS' ) {
$searchFor = 'C001'; $searchFor = 'C001';
$searchTableFor = CERTIFICATION_STATUS; $searchTableFor = CERTIFICATION_STATUS;
$this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year'); $this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year, t2.ProgramType');
$this->db->from(''. $searchTableFor . ' as t1'); $this->db->from(''. $searchTableFor . ' as t1');
$this->db->where('t1.StudentID', $reqDetails['student']); $this->db->where('t1.StudentID', $reqDetails['student']);
$this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT'); $this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT');
@ -229,7 +229,7 @@ class StatusUpdation_model extends CI_Model
} else if ( $reqDetailsFor == 'ANSWERBOOKLET_STATUS' ) { } else if ( $reqDetailsFor == 'ANSWERBOOKLET_STATUS' ) {
$searchFor = 'B001'; $searchFor = 'B001';
$searchTableFor = ANSWER_BOOKLET; $searchTableFor = ANSWER_BOOKLET;
$this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year'); $this->db->select('t1.*, t4.Firstname, t5.ListName, t2.Sem_Year, t2.ProgramType');
$this->db->from(''. $searchTableFor . ' as t1'); $this->db->from(''. $searchTableFor . ' as t1');
$this->db->where('t1.StudentID', $reqDetails['student']); $this->db->where('t1.StudentID', $reqDetails['student']);
$this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT'); $this->db->join('' . COURSE_FEES . ' as t2', 't2.ID = t1.CourseID', 'LEFT');
@ -322,7 +322,7 @@ class StatusUpdation_model extends CI_Model
// get sem/Year for the course // get sem/Year for the course
public function get_semyear_result($reqData, $stuFor) { public function get_semyear_result($reqData, $stuFor) {
// echo $stuFor;exit(); // echo $stuFor;exit();
$subQuery = "SELECT CF.Sem_Year, CF.ID $subQuery = "SELECT CF.Sem_Year, CF.ID , IF(CF.ProgramType = 'Y001', '0', '1') as SEM_YEAR_TYPE
FROM ".COURSE_FEES." as CF LEFT JOIN ".STUDENTS_FEES_STATUS." as SFS ON SFS.FeesType = CF.ID FROM ".COURSE_FEES." as CF LEFT JOIN ".STUDENTS_FEES_STATUS." as SFS ON SFS.FeesType = CF.ID
WHERE WHERE
SFS.CourseID = '$reqData' SFS.CourseID = '$reqData'

View File

@ -73,7 +73,8 @@ app.controller('answerBookletStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
'semYear': '', 'semYear': '',
'staus': '', 'staus': '',
'dateOn': '', 'dateOn': '',
'comment': '' 'comment': '',
'sem': ''
} }
$scope.universityData = ''; $scope.universityData = '';
@ -220,7 +221,8 @@ app.controller('answerBookletStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
'semYear': '', 'semYear': '',
'staus': '', 'staus': '',
'dateOn': '', 'dateOn': '',
'comment': '' 'comment': '',
'sem': ''
} }
} else { } else {
$scope.OpenWindowStatus = false; $scope.OpenWindowStatus = false;
@ -278,6 +280,24 @@ app.controller('answerBookletStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
} }
} }
$scope.showSingleLateralSemType = false;
// sem year show when REGULAR or LATER ENTRY
$scope.getSemYearDropShowMethod = function(type) {
if(JSON.parse(type).SEM_YEAR_TYPE == "0"){
// type is semester mode
$scope.showSingleLateralSemType = false;
} else {
$scope.showSingleLateralSemType = true;
}
}
$scope.semDetails =[{"id": 1, "type": "SEM 1"}, {"id": 2, "type": "SEM 2"},
{"id": 3, "type": "SEM 3"}, {"id": 4, "type": "SEM 4"}, {"id": 5, "type": "SEM 5"},
{"id": 6, "type": "SEM 6"}, {"id": 7, "type": "SEM 7"}, {"id": 8, "type": "SEM 8"}]
$scope.statusUpdate = { $scope.statusUpdate = {
submit: function (form, myStatusModel, localBranchDetails) { submit: function (form, myStatusModel, localBranchDetails) {
var firstError = null; var firstError = null;
@ -311,12 +331,17 @@ app.controller('answerBookletStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
}); });
function getStudentForUpdateDetails(id, bCode) { function getStudentForUpdateDetails(id, bCode) {
this.StudentID = id; this.StudentID = id;
this.CourseID = $scope.myStatusModel.semYear; // alert($scope.myStatusModel.semYear);
var courseID = JSON.parse($scope.myStatusModel.semYear);
var val = courseID.ID;
// alert(val);
this.CourseID = val;
this.BranchCode = bCode; this.BranchCode = bCode;
this.ListCode = $scope.myStatusModel.staus; this.ListCode = $scope.myStatusModel.staus;
this.SDate = $scope.myStatusModel.dateOn; this.SDate = $scope.myStatusModel.dateOn;
this.Coursedetail = id; this.Coursedetail = id;
this.Comments = $scope.myStatusModel.comment; this.Comments = $scope.myStatusModel.comment;
this.Sem = $scope.myStatusModel.sem === '' ? courseID.Sem_Year : $scope.myStatusModel.sem;
} }
var updateStudyMaterial = { var updateStudyMaterial = {
@ -351,7 +376,8 @@ app.controller('answerBookletStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
'semYear': '', 'semYear': '',
'staus': '', 'staus': '',
'dateOn': '', 'dateOn': '',
'comment': '' 'comment': '',
'sem': ''
} }
} }
} }

View File

@ -78,7 +78,8 @@ app.controller('certificationStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
'dateOn': '', 'dateOn': '',
'comment': '', 'comment': '',
'certificatetype': '', 'certificatetype': '',
'certificateNumber': '' 'certificateNumber': '',
'sem':''
} }
// get University List // get University List
@ -254,7 +255,8 @@ app.controller('certificationStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
'dateOn': '', 'dateOn': '',
'comment': '', 'comment': '',
'certificatetype': '', 'certificatetype': '',
'certificateNumber': '' 'certificateNumber': '',
'sem':''
} }
} else { } else {
$scope.OpenWindowStatus = false; $scope.OpenWindowStatus = false;
@ -312,6 +314,24 @@ app.controller('certificationStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
} }
} }
$scope.showSingleLateralSemType = false;
// sem year show when REGULAR or LATER ENTRY
$scope.getSemYearDropShowMethod = function(type) {
if(JSON.parse(type).SEM_YEAR_TYPE == "0"){
// type is semester mode
$scope.showSingleLateralSemType = false;
} else {
$scope.showSingleLateralSemType = true;
}
}
$scope.semDetails =[{"id": 1, "type": "SEM 1"}, {"id": 2, "type": "SEM 2"},
{"id": 3, "type": "SEM 3"}, {"id": 4, "type": "SEM 4"}, {"id": 5, "type": "SEM 5"},
{"id": 6, "type": "SEM 6"}, {"id": 7, "type": "SEM 7"}, {"id": 8, "type": "SEM 8"}]
// Update the status For Certification // Update the status For Certification
$scope.statusUpdate = { $scope.statusUpdate = {
submit: function (form, myStatusModel, localBranchDetails) { submit: function (form, myStatusModel, localBranchDetails) {
@ -346,7 +366,11 @@ app.controller('certificationStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
}); });
function getStudentForUpdateDetails(id, bCode) { function getStudentForUpdateDetails(id, bCode) {
this.StudentID = id; this.StudentID = id;
this.CourseID = $scope.myStatusModel.semYear; // alert($scope.myStatusModel.semYear);
var courseID = JSON.parse($scope.myStatusModel.semYear);
var val = courseID.ID;
// alert(val);
this.CourseID = val;
this.BranchCode = bCode; this.BranchCode = bCode;
this.ListCode = $scope.myStatusModel.staus; this.ListCode = $scope.myStatusModel.staus;
this.SDate = $scope.myStatusModel.dateOn; this.SDate = $scope.myStatusModel.dateOn;
@ -354,6 +378,7 @@ app.controller('certificationStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
this.Comments = $scope.myStatusModel.comment; this.Comments = $scope.myStatusModel.comment;
this.CertificateType = $scope.myStatusModel.certificatetype; this.CertificateType = $scope.myStatusModel.certificatetype;
this.CertificateNumber = $scope.myStatusModel.certificateNumber; this.CertificateNumber = $scope.myStatusModel.certificateNumber;
this.Sem = $scope.myStatusModel.sem === '' ? courseID.Sem_Year : $scope.myStatusModel.sem;
} }
var updateCertificateStatus = { var updateCertificateStatus = {
method: 'POST', method: 'POST',
@ -391,7 +416,8 @@ app.controller('certificationStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
'dateOn': '', 'dateOn': '',
'comment': '', 'comment': '',
'certificatetype': '', 'certificatetype': '',
'certificateNumber': '' 'certificateNumber': '',
'sem':''
} }
} }
} }

View File

@ -2158,6 +2158,161 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
} }
// start : entrollment document upload =============================
$scope.studentDocumentsList = '';
// get Student Document Details
$scope.getStuEntrollDocDetails = function (stuId) {
// $scope.studentDocumentsList = '';
var getStudentDocDetails = {
method: 'POST',
url: apiPoint.url + 'getListofStuDocDetails/',
headers: {
'Content-Type': 'application/json'
},
data: {
exceptId: stuId,
localData: localDetail
}
};
$http(getStudentDocDetails).then(function (response) {
if (response.data.docListStatus == true) {
$scope.docNotFound = false;
$scope.studentDocumentsList = response.data.student_doc_details;
} else {
$scope.docNotFound = true;
$scope.studentDocumentsList.call();
}
});
}
$scope.deleteDocDetails = function (id, stuID) {
SweetAlert.swal({
title: "Warning!",
text: "Want to Delete this file ?",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#007aff",
confirmButtonText: "Yes!"
}, function (res) {
if (res === true) {
// alert(id);
// alert(stuId);
$scope.documentAddDetailsLoading = true;
var deleteDocEntry = {
method: 'POST',
url: apiPoint.url + 'deleteStuDocDetails/',
headers: {
'Content-Type': 'application/json'
},
data: {
exceptId: stuID,
docDetailsID: id,
localData: localDetail
}
};
$http(deleteDocEntry).then(function (response) {
if (response.data.deleteStatus == true) {
// swal("Success!", response.data.message, "success");
$scope.documentAddDetailsLoading = false;
$scope.studentDocumentsList = '';
$scope.getStuEntrollDocDetails(stuID);
} else {
swal(" ", res.data.message, "error");
$scope.documentAddDetailsLoading = false;
}
});
}
});
}
$scope.myModelAddDocuments = {
"documentName": "",
"documentComments": ""
}
//an array of documents selected
$scope.filesDocuments = [];
//listen for the document selected event
$scope.$on("fileSelectedDocument", function (event, args) {
$scope.$apply(function () {
//add the file object to the scope's files collection
$scope.filesDocuments[0] = args.file;
});
});
$scope.documentAddDetailsLoading = false;
$scope.studentEntrollDocFORM = {
submit: function (form, myModelAddDocuments, stuID) {
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 {
if ($scope.filesDocuments[0] == undefined || $scope.filesDocuments[0] == null || $scope.filesDocuments.length === 0) {
swal("Warning!", "Choose the File.", "warning");
} else {
$scope.documentAddDetailsLoading = true;
var formData = new FormData();
var stuDocProof = $scope.filesDocuments[0];
var stuDocProofStatus = $scope.filesDocuments[0] !== undefined ? true : false;
formData.append("data", JSON.stringify(myModelAddDocuments));
formData.append("studentID", stuID);
formData.append("updatedBy", localDetails.localUserID);
formData.append('stuDocProof', stuDocProof);
formData.append('stuDocProof_Status', stuDocProofStatus);
$http.post(apiPoint.url + 'addStudentEntrollDocDetails/', formData, {
transformRequest: angular.identity,
headers: { 'Content-Type': undefined, 'Process-Data': false },
}).success(function (res) {
if (res.stuDocUpdateStatus == true) {
$scope.getStuEntrollDocDetails(stuID);
// swal(" ", "Updated successfully.", "success");
$scope.documentAddDetailsLoading = false;
$scope.filesDocuments[0] = undefined;
form.$setPristine(true);
angular.element("input[type='file']").val(null);
$scope.myModelAddDocuments = {
"documentName": "",
"documentComments": ""
}
// $scope.getStudentList();
// $scope.editId = -1;
// $scope.editSaveButtonDisable = false;
} else {
swal(" ", res.data.message, "error");
$scope.documentAddDetailsLoading = false;
// $scope.editSaveButtonDisable = false;
}
});
}
}
},
reset: function (form) {
$scope.filesDocuments[0] = undefined;
form.$setPristine(true);
angular.element("input[type='file']").val(null);
}
}
// end : entrollment document upload ====================================
$scope.stepsModelEdit = []; $scope.stepsModelEdit = [];
$scope.imageUploadEdit = function (event) { $scope.imageUploadEdit = function (event) {

View File

@ -74,7 +74,8 @@ app.controller('studyMaterialStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
'semYear': '', 'semYear': '',
'staus': '', 'staus': '',
'dateOn': '', 'dateOn': '',
'comment': '' 'comment': '',
'sem': ''
} }
$scope.universityData = ''; $scope.universityData = '';
@ -229,7 +230,8 @@ app.controller('studyMaterialStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
'semYear': '', 'semYear': '',
'staus': '', 'staus': '',
'dateOn': '', 'dateOn': '',
'comment': '' 'comment': '',
'sem': ''
} }
} else { } else {
$scope.OpenWindowStatus = false; $scope.OpenWindowStatus = false;
@ -287,6 +289,22 @@ app.controller('studyMaterialStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
} }
} }
$scope.showSingleLateralSemType = false;
// sem year show when REGULAR or LATER ENTRY
$scope.getSemYearDropShowMethod = function(type) {
if(JSON.parse(type).SEM_YEAR_TYPE == "0"){
// type is semester mode
$scope.showSingleLateralSemType = false;
} else {
$scope.showSingleLateralSemType = true;
}
}
$scope.semDetails =[{"id": 1, "type": "SEM 1"}, {"id": 2, "type": "SEM 2"},
{"id": 3, "type": "SEM 3"}, {"id": 4, "type": "SEM 4"}, {"id": 5, "type": "SEM 5"},
{"id": 6, "type": "SEM 6"}, {"id": 7, "type": "SEM 7"}, {"id": 8, "type": "SEM 8"}]
$scope.statusUpdate = { $scope.statusUpdate = {
submit: function (form, myStatusModel, localBranchDetails) { submit: function (form, myStatusModel, localBranchDetails) {
var firstError = null; var firstError = null;
@ -322,12 +340,17 @@ app.controller('studyMaterialStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
}); });
function getStudentForUpdateDetails(id, bCode) { function getStudentForUpdateDetails(id, bCode) {
this.StudentID = id; this.StudentID = id;
this.CourseID = $scope.myStatusModel.semYear; var courseID = JSON.parse($scope.myStatusModel.semYear);
// eval('var obj='+courseID);
// alert(courseID);
var val = courseID.ID;
this.CourseID = val;
this.BranchCode = bCode; this.BranchCode = bCode;
this.ListCode = $scope.myStatusModel.staus; this.ListCode = $scope.myStatusModel.staus;
this.SDate = $scope.myStatusModel.dateOn; this.SDate = $scope.myStatusModel.dateOn;
this.Coursedetail = id; this.Coursedetail = id;
this.Comments = $scope.myStatusModel.comment; this.Comments = $scope.myStatusModel.comment;
this.Sem = $scope.myStatusModel.sem === '' ? courseID.Sem_Year : $scope.myStatusModel.sem;
} }
var updateStudyMaterial = { var updateStudyMaterial = {
method: 'POST', method: 'POST',
@ -363,7 +386,8 @@ app.controller('studyMaterialStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
'semYear': '', 'semYear': '',
'staus': '', 'staus': '',
'dateOn': '', 'dateOn': '',
'comment': '' 'comment': '',
'sem': ''
} }
} }
} }

View File

@ -179,7 +179,9 @@
<th>Updated By</th> <th>Updated By</th>
</thead> </thead>
<tbody ng-repeat="s in prevStatusListForStudentCourse"> <tbody ng-repeat="s in prevStatusListForStudentCourse">
<th>{{s.Sem_Year}}</th> <th>{{s.Sem_Year}}
<span ng-if="s.ProgramType !== 'Y001'">(<b>{{s.Sem}}</b>)</span>
</th>
<td>{{s.ListName}}</td> <td>{{s.ListName}}</td>
<td>{{s.Comments}}</td> <td>{{s.Comments}}</td>
<td>{{s.AnsDate}}</td> <td>{{s.AnsDate}}</td>
@ -244,12 +246,25 @@
</label> </label>
<select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="semYear" ng-model="myStatusModel.semYear" <select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="semYear" ng-model="myStatusModel.semYear"
required> ng-change="getSemYearDropShowMethod(myStatusModel.semYear)" required>
<option value="" disabled selected>Select Sem/Year</option> <option value="" disabled selected>Select Sem/Year</option>
<option ng-repeat="itemSemY in semYearList" value="{{itemSemY.ID}}">{{itemSemY.Sem_Year}}</option> <option ng-repeat="itemSemY in semYearList" value="{{itemSemY}}">{{itemSemY.Sem_Year}}</option>
</select> </select>
<span class="error text-small block" ng-if="Form.semYear.$dirty && Form.semYear.$error.required">Sem/Year is Required</span> <span class="error text-small block" ng-if="Form.semYear.$dirty && Form.semYear.$error.required">Sem/Year is Required</span>
</div>
<div class="col-md-4 form-group" ng-if="showSingleLateralSemType" ng-class="{'has-error':Form.semYearLateral.$dirty && Form.semYearLateral.$invalid, 'has-success':Form.semYearLateral.$valid}">
<label for="form-field-select-2">
Sem <span class="symbol required"></span>
</label>
<select class="form-control" tabindex="5" class="cs-select cs-skin-elastic" name="semYearLateral" ng-model="myStatusModel.sem"
required>
<option value="" disabled selected>Select Sem</option>
<option ng-repeat="itemSemY in semDetails" value="{{itemSemY.type}}" >{{itemSemY.type}}</option>
</select>
<span class="error text-small block" ng-if="Form.semYearLateral.$dirty && Form.semYearLateral.$error.required">Sem is Required</span>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.status.$dirty && Form.status.$invalid, 'has-success':Form.status.$valid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.status.$dirty && Form.status.$invalid, 'has-success':Form.status.$valid}">
<label for="form-field-select-2"> <label for="form-field-select-2">
@ -348,12 +363,25 @@
</label> </label>
<select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="semYear" ng-model="myStatusModel.semYear" <select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="semYear" ng-model="myStatusModel.semYear"
required> ng-change="getSemYearDropShowMethod(myStatusModel.semYear)" required>
<option value="" disabled selected>Select Sem/Year</option> <option value="" disabled selected>Select Sem/Year</option>
<option ng-repeat="itemSemY in semYearList" value="{{itemSemY.ID}}">{{itemSemY.Sem_Year}}</option> <option ng-repeat="itemSemY in semYearList" value="{{itemSemY}}">{{itemSemY.Sem_Year}}</option>
</select> </select>
<span class="error text-small block" ng-if="Form.semYear.$dirty && Form.semYear.$error.required">Sem/Year is Required</span> <span class="error text-small block" ng-if="Form.semYear.$dirty && Form.semYear.$error.required">Sem/Year is Required</span>
</div>
<div class="col-md-4 form-group" ng-if="showSingleLateralSemType" ng-class="{'has-error':Form.semYearLateral.$dirty && Form.semYearLateral.$invalid, 'has-success':Form.semYearLateral.$valid}">
<label for="form-field-select-2">
Sem <span class="symbol required"></span>
</label>
<select class="form-control" tabindex="5" class="cs-select cs-skin-elastic" name="semYearLateral" ng-model="myStatusModel.sem"
required>
<option value="" disabled selected>Select Sem</option>
<option ng-repeat="itemSemY in semDetails" value="{{itemSemY.type}}" >{{itemSemY.type}}</option>
</select>
<span class="error text-small block" ng-if="Form.semYearLateral.$dirty && Form.semYearLateral.$error.required">Sem is Required</span>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.status.$dirty && Form.status.$invalid, 'has-success':Form.status.$valid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.status.$dirty && Form.status.$invalid, 'has-success':Form.status.$valid}">
<label for="form-field-select-2"> <label for="form-field-select-2">

View File

@ -180,7 +180,9 @@
<th>Updated By</th> <th>Updated By</th>
</thead> </thead>
<tbody ng-repeat="s in prevStatusListForStudentCourse"> <tbody ng-repeat="s in prevStatusListForStudentCourse">
<th>{{s.Sem_Year}}</th> <th>{{s.Sem_Year}}
<span ng-if="s.ProgramType !== 'Y001'">(<b>{{s.Sem}}</b>)</span>
</th>
<td>{{s.ListName}}</td> <td>{{s.ListName}}</td>
<td>{{s.Comments}}</td> <td>{{s.Comments}}</td>
<td>{{s.CertificationType}}</td> <td>{{s.CertificationType}}</td>
@ -255,19 +257,34 @@
</div>--> </div>-->
<div class="col-md-6 form-group" ng-class="{'has-error':Form.semYear.$dirty && Form.semYear.$invalid, 'has-success':Form.semYear.$valid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.semYear.$dirty && Form.semYear.$invalid, 'has-success':Form.semYear.$valid}">
<label for="form-field-select-2"> <label for="form-field-select-2">
Sem/Year <span class="symbol required"></span> Sem/Year <span class="symbol required"></span>
</label> </label>
<select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="semYear" ng-model="myStatusModel.semYear" <select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="semYear" ng-model="myStatusModel.semYear"
required> ng-change="getSemYearDropShowMethod(myStatusModel.semYear)" required>
<option value="" disabled selected>Select Sem/Year</option> <option value="" disabled selected>Select Sem/Year</option>
<option ng-repeat="itemSemY in semYearList" value="{{itemSemY.ID}}">{{itemSemY.Sem_Year}}</option> <option ng-repeat="itemSemY in semYearList" value="{{itemSemY}}" >{{itemSemY.Sem_Year}}</option>
</select> </select>
<!--<pre>{{semYearList}}</pre>
<pre>{{semYearTypeValue}}</pre>-->
<span class="error text-small block" ng-if="Form.semYear.$dirty && Form.semYear.$error.required">Sem/Year is Required</span> <span class="error text-small block" ng-if="Form.semYear.$dirty && Form.semYear.$error.required">Sem/Year is Required</span>
</div> </div>
<div class="col-md-4 form-group" ng-if="showSingleLateralSemType" ng-class="{'has-error':Form.semYearLateral.$dirty && Form.semYearLateral.$invalid, 'has-success':Form.semYearLateral.$valid}">
<label for="form-field-select-2">
Sem <span class="symbol required"></span>
</label>
<select class="form-control" tabindex="5" class="cs-select cs-skin-elastic" name="semYearLateral" ng-model="myStatusModel.sem"
required>
<option value="" disabled selected>Select Sem</option>
<option ng-repeat="itemSemY in semDetails" value="{{itemSemY.type}}" >{{itemSemY.type}}</option>
</select>
<span class="error text-small block" ng-if="Form.semYearLateral.$dirty && Form.semYearLateral.$error.required">Sem is Required</span>
</div>
<div class="col-md-6 form-group" ng-class="{'has-error':Form.certificateNumber.$dirty && Form.certificateNumber.$invalid }"> <div class="col-md-6 form-group" ng-class="{'has-error':Form.certificateNumber.$dirty && Form.certificateNumber.$invalid }">
<label> <label>
Mark Card Number Mark Card Number
@ -385,19 +402,34 @@
</div>--> </div>-->
<div class="col-md-6 form-group" ng-class="{'has-error':Form.semYear.$dirty && Form.semYear.$invalid, 'has-success':Form.semYear.$valid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.semYear.$dirty && Form.semYear.$invalid, 'has-success':Form.semYear.$valid}">
<label for="form-field-select-2"> <label for="form-field-select-2">
Sem/Year <span class="symbol required"></span> Sem/Year <span class="symbol required"></span>
</label> </label>
<select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="semYear" ng-model="myStatusModel.semYear" <select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="semYear" ng-model="myStatusModel.semYear"
required> ng-change="getSemYearDropShowMethod(myStatusModel.semYear)" required>
<option value="" disabled selected>Select Sem/Year</option> <option value="" disabled selected>Select Sem/Year</option>
<option ng-repeat="itemSemY in semYearList" value="{{itemSemY.ID}}">{{itemSemY.Sem_Year}}</option> <option ng-repeat="itemSemY in semYearList" value="{{itemSemY}}" >{{itemSemY.Sem_Year}}</option>
</select> </select>
<!--<pre>{{semYearList}}</pre>
<pre>{{semYearTypeValue}}</pre>-->
<span class="error text-small block" ng-if="Form.semYear.$dirty && Form.semYear.$error.required">Sem/Year is Required</span> <span class="error text-small block" ng-if="Form.semYear.$dirty && Form.semYear.$error.required">Sem/Year is Required</span>
</div> </div>
<div class="col-md-4 form-group" ng-if="showSingleLateralSemType" ng-class="{'has-error':Form.semYearLateral.$dirty && Form.semYearLateral.$invalid, 'has-success':Form.semYearLateral.$valid}">
<label for="form-field-select-2">
Sem <span class="symbol required"></span>
</label>
<select class="form-control" tabindex="5" class="cs-select cs-skin-elastic" name="semYearLateral" ng-model="myStatusModel.sem"
required>
<option value="" disabled selected>Select Sem</option>
<option ng-repeat="itemSemY in semDetails" value="{{itemSemY.type}}" >{{itemSemY.type}}</option>
</select>
<span class="error text-small block" ng-if="Form.semYearLateral.$dirty && Form.semYearLateral.$error.required">Sem is Required</span>
</div>
<div class="col-md-6 form-group" ng-class="{'has-error':Form.certificateNumber.$dirty && Form.certificateNumber.$invalid }"> <div class="col-md-6 form-group" ng-class="{'has-error':Form.certificateNumber.$dirty && Form.certificateNumber.$invalid }">
<label> <label>
Mark Card Number Mark Card Number

View File

@ -181,7 +181,9 @@
<th>Updated By</th> <th>Updated By</th>
</thead> </thead>
<tbody ng-repeat="s in prevStatusListForStudentCourse"> <tbody ng-repeat="s in prevStatusListForStudentCourse">
<th>{{s.Sem_Year}}</th> <th>{{s.Sem_Year}}
<span ng-if="s.ProgramType !== 'Y001'">(<b>{{s.Sem}}</b>)</span>
</th>
<td>{{s.ListName}}</td> <td>{{s.ListName}}</td>
<td>{{s.Comments}}</td> <td>{{s.Comments}}</td>
<td>{{s.SDate}}</td> <td>{{s.SDate}}</td>
@ -256,12 +258,27 @@
</label> </label>
<select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="semYear" ng-model="myStatusModel.semYear" <select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="semYear" ng-model="myStatusModel.semYear"
required> ng-change="getSemYearDropShowMethod(myStatusModel.semYear)" required>
<option value="" disabled selected>Select Sem/Year</option> <option value="" disabled selected>Select Sem/Year</option>
<option ng-repeat="itemSemY in semYearList" value="{{itemSemY.ID}}">{{itemSemY.Sem_Year}}</option> <option ng-repeat="itemSemY in semYearList" value="{{itemSemY}}" >{{itemSemY.Sem_Year}}</option>
</select> </select>
<!--<pre>{{semYearList}}</pre>
<pre>{{semYearTypeValue}}</pre>-->
<span class="error text-small block" ng-if="Form.semYear.$dirty && Form.semYear.$error.required">Sem/Year is Required</span> <span class="error text-small block" ng-if="Form.semYear.$dirty && Form.semYear.$error.required">Sem/Year is Required</span>
</div>
<div class="col-md-4 form-group" ng-if="showSingleLateralSemType" ng-class="{'has-error':Form.semYearLateral.$dirty && Form.semYearLateral.$invalid, 'has-success':Form.semYearLateral.$valid}">
<label for="form-field-select-2">
Sem <span class="symbol required"></span>
</label>
<select class="form-control" tabindex="5" class="cs-select cs-skin-elastic" name="semYearLateral" ng-model="myStatusModel.sem"
required>
<option value="" disabled selected>Select Sem</option>
<option ng-repeat="itemSemY in semDetails" value="{{itemSemY.type}}" >{{itemSemY.type}}</option>
</select>
<span class="error text-small block" ng-if="Form.semYearLateral.$dirty && Form.semYearLateral.$error.required">Sem is Required</span>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.status.$dirty && Form.status.$invalid, 'has-success':Form.status.$valid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.status.$dirty && Form.status.$invalid, 'has-success':Form.status.$valid}">
<label for="form-field-select-2"> <label for="form-field-select-2">
@ -373,12 +390,27 @@
</label> </label>
<select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="semYear" ng-model="myStatusModel.semYear" <select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="semYear" ng-model="myStatusModel.semYear"
required> ng-change="getSemYearDropShowMethod(myStatusModel.semYear)" required>
<option value="" disabled selected>Select Sem/Year</option> <option value="" disabled selected>Select Sem/Year</option>
<option ng-repeat="itemSemY in semYearList" value="{{itemSemY.ID}}">{{itemSemY.Sem_Year}}</option> <option ng-repeat="itemSemY in semYearList" value="{{itemSemY}}" >{{itemSemY.Sem_Year}}</option>
</select> </select>
<!--<pre>{{semYearList}}</pre>
<pre>{{semYearTypeValue}}</pre>-->
<span class="error text-small block" ng-if="Form.semYear.$dirty && Form.semYear.$error.required">Sem/Year is Required</span> <span class="error text-small block" ng-if="Form.semYear.$dirty && Form.semYear.$error.required">Sem/Year is Required</span>
</div>
<div class="col-md-4 form-group" ng-if="showSingleLateralSemType" ng-class="{'has-error':Form.semYearLateral.$dirty && Form.semYearLateral.$invalid, 'has-success':Form.semYearLateral.$valid}">
<label for="form-field-select-2">
Sem <span class="symbol required"></span>
</label>
<select class="form-control" tabindex="5" class="cs-select cs-skin-elastic" name="semYearLateral" ng-model="myStatusModel.sem"
required>
<option value="" disabled selected>Select Sem</option>
<option ng-repeat="itemSemY in semDetails" value="{{itemSemY.type}}" >{{itemSemY.type}}</option>
</select>
<span class="error text-small block" ng-if="Form.semYearLateral.$dirty && Form.semYearLateral.$error.required">Sem is Required</span>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.status.$dirty && Form.status.$invalid, 'has-success':Form.status.$valid}"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.status.$dirty && Form.status.$invalid, 'has-success':Form.status.$valid}">
<label for="form-field-select-2"> <label for="form-field-select-2">