data correction screen
This commit is contained in:
parent
f7bac6cfe1
commit
cc726d115f
@ -187,6 +187,11 @@ $route['IncomeExpenseDetails'] = 'DayBook_Controller/getIncomeExpenseDetails';
|
||||
$route['ViewFullIncomeDetails'] = 'DayBook_Controller/ViewFullIncomeDetails';
|
||||
$route['GetSubTypes'] = 'DayBook_Controller/GetSubTypes';
|
||||
|
||||
|
||||
$route['getAllDayBookDetails'] = 'DayBook_Controller/getAllDayBookDetails';
|
||||
|
||||
$route['update_DayBookDetails'] = 'DayBook_Controller/update_DayBookDetailsData';
|
||||
|
||||
/* Add New Contact Group */
|
||||
$route['addNewGroup'] = 'Broadcast_Controller/addNewGroup';
|
||||
$route['getGroups'] = 'Broadcast_Controller/getGroups';
|
||||
|
||||
@ -449,5 +449,53 @@ class DayBook_Controller extends REST_Controller {
|
||||
], REST_Controller::HTTP_NOT_FOUND);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public function getAllDayBookDetails_post()
|
||||
{
|
||||
|
||||
$search['Firstname'] = $this->post('studentName');
|
||||
$search['MobileNumber'] = $this->post('mobileNumber');
|
||||
$search['receipt'] = $this->post('receipt');
|
||||
|
||||
$allfinace = $this->daybook_model->GetAllDaybook($search);
|
||||
|
||||
//print_r($allfinace);
|
||||
|
||||
if($allfinace)
|
||||
{
|
||||
$allfinace['status'] = REST_Controller::HTTP_OK;
|
||||
// Set the response and exit
|
||||
$this->response($allfinace, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response([
|
||||
'message' => 'No records found!',
|
||||
'status' => REST_Controller::HTTP_NOT_FOUND
|
||||
], REST_Controller::HTTP_NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function update_DayBookDetailsData_post()
|
||||
{
|
||||
$now = new DateTime();
|
||||
$now->setTimezone(new DateTimezone('Asia/Kolkata'));
|
||||
$up_details['ID']= $this->post('ID');
|
||||
//$up_details['Date'] =$this->post('Date');
|
||||
$up_details['Amount'] = $this->post('Amount');
|
||||
$up_details['Reason'] = $this->post('Reason');
|
||||
$up_details['IsActive'] = $this->post('IsActive');
|
||||
$up_details['FeesPaymentID'] = $this->post('FID');
|
||||
$up_details['requestedtBy'] = $this->post('requestedtBy');
|
||||
$up_details['branchId'] = $this->post('branchId');
|
||||
|
||||
$updatevalue = $this->daybook_model->UpdateDayFee($up_details);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -158,7 +158,8 @@ class Reregister_Controller extends REST_Controller {
|
||||
}
|
||||
public function getSubject_post(){
|
||||
|
||||
$SemesterID = $this->post('SemNum');
|
||||
$Sem = $this->post('SemNum');
|
||||
$SemesterID = ucfirst($Sem);
|
||||
$branchId = $this->post('branchId');
|
||||
$course = $this->post('Course');
|
||||
$sem = '';
|
||||
|
||||
@ -753,4 +753,103 @@ $query = $this->db->query($subQuery,array('%d-%m-%Y',$fromd,'%d-%m-%Y',$tod,'Can
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function GetAllDaybook($search=null)
|
||||
{
|
||||
//if($search['MobileNumber']!='' && $search['Firstname']!='' && $search['receipt']!='')
|
||||
//{
|
||||
$this->db->select('T_DayBookMaster.ID,Name,Type,Amount,Date,T_DayBookMaster.Description,VoucherNumber,PaidTo,T_DayBookMaster.ModeOfPayment,FeePaymentDetails,Firstname,ListName,T_DayBookMaster.ReceiptNo,T_Students_Fees_PaidDetails.IsActive as IsActive,T_Students_Fees_PaidDetails.ID as FID,T_DayBookMaster.Reason as Reason');
|
||||
$this->db->from('T_DayBookMaster');
|
||||
$this->db->join('T_StudentDetails','T_StudentDetails.StudentID=T_DayBookMaster.StudentID','left');
|
||||
$this->db->join('T_PickListDetails','T_PickListDetails.ListCode=T_DayBookMaster.Name','left');
|
||||
$this->db->join('T_Students_Fees_PaidDetails','T_Students_Fees_PaidDetails.ID = T_DayBookMaster.FeesPaymentID');
|
||||
|
||||
if($search['MobileNumber']!='')
|
||||
{
|
||||
$this->db->where('T_StudentDetails.MobileNumber',$search['MobileNumber']);
|
||||
}
|
||||
if($search['Firstname']!='')
|
||||
{
|
||||
// $this->db->like('ST.Firstname','%'.$search['Firstname'].'%');
|
||||
$this->db->like('T_StudentDetails.Firstname',$search['Firstname'],'both');
|
||||
}
|
||||
if($search['receipt']!='')
|
||||
{
|
||||
$this->db->where('T_DayBookMaster.VoucherNumber',$search['receipt']);
|
||||
$this->db->or_where('T_DayBookMaster.ReceiptNo',$search['receipt']);
|
||||
}
|
||||
|
||||
$searchDetails = $this->db->get();
|
||||
|
||||
if($searchDetails->result())
|
||||
{
|
||||
|
||||
//print_r($searchDetails->result());
|
||||
$result_array['studentStatus'] = true;
|
||||
$result_array['details'] = $searchDetails->result();
|
||||
}
|
||||
else
|
||||
{
|
||||
$result_array['studentStatus'] = false;
|
||||
$result_array['details'] = "No records found!";
|
||||
}
|
||||
|
||||
|
||||
return $result_array;
|
||||
|
||||
//}
|
||||
|
||||
// else{
|
||||
// $result_array['studentStatus'] = false;
|
||||
// $result_array['details'] = "No records found!";
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
public function UpdateDayFee($up_details)
|
||||
{
|
||||
//echo $up_details['ID'];
|
||||
//UpdatedOn
|
||||
|
||||
$time = date('Y-m-d H:i:s');
|
||||
$dateTime = $time;
|
||||
|
||||
// echo $dateTime;
|
||||
// die();
|
||||
|
||||
$daybookarr['ID'] = $up_details['ID'];
|
||||
// $daybookarr['IsActive'] = $up_details['IsActive'];
|
||||
$daybookarr['Reason'] = $up_details['Reason'];
|
||||
$daybookarr['UpdatedOn'] = $dateTime;
|
||||
$daybookarr['UpdatedBy'] =$up_details['requestedtBy'];
|
||||
|
||||
|
||||
if($up_details['IsActive'] == 0)
|
||||
{
|
||||
$daybookarr['Status'] = 'Cancel';
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$daybookarr['Status'] = 'Approved';
|
||||
}
|
||||
|
||||
|
||||
|
||||
$this->db->where('ID', $daybookarr['ID']);
|
||||
$this->db->update('T_DayBookMaster', $daybookarr);
|
||||
|
||||
|
||||
$feearr['ID'] = $up_details['FeesPaymentID'];
|
||||
$feearr['IsActive'] = $up_details['IsActive'];
|
||||
$feearr['UpdatedOn'] = $dateTime;
|
||||
$feearr['UpdatedBy'] = $up_details['branchId'];
|
||||
|
||||
$this->db->where('ID', $feearr['ID']);
|
||||
$this->db->update('T_Students_Fees_PaidDetails', $feearr);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
@ -139,7 +139,8 @@
|
||||
"APPROVAL": "APPROVE EXPENSE",
|
||||
"DAYBOOKDETAILS": "DAYBOOK DETAILS",
|
||||
"DAYBOOKAPPROVAL": "DAYBOOK APPROVAL",
|
||||
"INCOMEEXPENSEREPORT" : "PROFIT-LOSS STATEMENT"
|
||||
"INCOMEEXPENSEREPORT" : "PROFIT-LOSS STATEMENT",
|
||||
"DATACORRECTION" : "DATA CORRECTION"
|
||||
},
|
||||
"mydetails": {
|
||||
"MAIN": "MY DETAILS"
|
||||
|
||||
@ -133,7 +133,10 @@ app.constant('JS_REQUIRES', {
|
||||
'income_reportCtrl': 'assets/js/controllers/income_reportCtrl.js',
|
||||
/*
|
||||
|
||||
|
||||
|
||||
* */
|
||||
'datacorrectionCtrl': 'assets/js/controllers/datacorrectionCtrl.js',
|
||||
/*
|
||||
|
||||
|
||||
|
||||
@ -153,11 +156,11 @@ app.constant('JS_REQUIRES', {
|
||||
/*
|
||||
* student Certification status updation
|
||||
* */
|
||||
'markcardStatusCtrl': 'assets/js/controllers/markcardStatusCtrl.js',
|
||||
'certificationStatusCtrl': 'assets/js/controllers/certificationStatusCtrl.js',
|
||||
/*
|
||||
* student Certification status updation
|
||||
* */
|
||||
'certificateStatusCtrl': 'assets/js/controllers/certificateStatusCtrl.js',
|
||||
'applicationStatusCtrl': 'assets/js/controllers/applicationStatusCtrl.js',
|
||||
/*
|
||||
* Certificate Type
|
||||
* */
|
||||
|
||||
@ -178,6 +178,14 @@ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$com
|
||||
ncyBreadcrumb: {
|
||||
label: 'income_expense'
|
||||
},
|
||||
}).state('app.daybooksuperadmin.datacorrection', {
|
||||
url: '/datacorrection',
|
||||
templateUrl: "assets/views/data_correction.html",
|
||||
resolve: loadSequence('datacorrectionCtrl','ngTable', 'ladda', 'angular-ladda'),
|
||||
title: 'datacorrection',
|
||||
ncyBreadcrumb: {
|
||||
label: 'datacorrection'
|
||||
},
|
||||
}).state('app.master.studentStatusUpdate', {
|
||||
url: '/default activity',
|
||||
templateUrl: "assets/views/studentStatusUpdate.html",
|
||||
@ -307,22 +315,22 @@ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$com
|
||||
label: 'Answer Booklet'
|
||||
},
|
||||
// resolve: loadSequence('wizardCtrl')
|
||||
}).state('app.student.status.markcardstatus', {
|
||||
url: '/markcardstatus',
|
||||
templateUrl: "assets/views/status-update/markcard_status.html",
|
||||
}).state('app.student.status.certificationstatus', {
|
||||
url: '/certificationstatus',
|
||||
templateUrl: "assets/views/status-update/certification_status.html",
|
||||
title: 'Mark Card',
|
||||
resolve: loadSequence('ui.select','spin', 'ui.mask', 'spin', 'ladda', 'angular-ladda', 'ngTable', 'markcardStatusCtrl'),
|
||||
resolve: loadSequence('ui.select','spin', 'ui.mask', 'spin', 'ladda', 'angular-ladda', 'ngTable', 'certificationStatusCtrl'),
|
||||
ncyBreadcrumb: {
|
||||
label: 'Mark Card'
|
||||
},
|
||||
// resolve: loadSequence('wizardCtrl')
|
||||
}).state('app.student.status.certificatestatus', {
|
||||
url: '/certificatestatus',
|
||||
templateUrl: "assets/views/status-update/certificate_status.html",
|
||||
title: 'Certificate Status',
|
||||
resolve: loadSequence('ui.select','spin', 'ui.mask', 'spin', 'ladda', 'angular-ladda', 'ngTable', 'certificateStatusCtrl'),
|
||||
}).state('app.student.status.applicationstatus', {
|
||||
url: '/applicationstatus',
|
||||
templateUrl: "assets/views/status-update/application_status.html",
|
||||
title: 'Documents Status',
|
||||
resolve: loadSequence('ui.select','spin', 'ui.mask', 'spin', 'ladda', 'angular-ladda', 'ngTable', 'applicationStatusCtrl'),
|
||||
ncyBreadcrumb: {
|
||||
label: 'Certificate Status'
|
||||
label: 'Documents Status'
|
||||
},
|
||||
// resolve: loadSequence('wizardCtrl')
|
||||
}).state('app.status.application', {
|
||||
|
||||
233
Apollo/assets/js/controllers/datacorrectionCtrl.js
Normal file
233
Apollo/assets/js/controllers/datacorrectionCtrl.js
Normal file
@ -0,0 +1,233 @@
|
||||
'use strict';
|
||||
/*** controller***/
|
||||
app.controller('datacorrectionCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableParams", "API_POINTS", "$localStorage", "$http", "$state","$modal","$log",
|
||||
function ($scope,$rootScope,toaster, $filter, ngTableParams, apiPoint, $localStorage, $http, $state,$modal,$log){
|
||||
|
||||
//function ($scope, apiPoint, $http, SweetAlert, $state,$modal, md5, ipCookie, $window, dateListDescService) {
|
||||
|
||||
// DataTables configurable options
|
||||
|
||||
|
||||
$scope.filters = {
|
||||
|
||||
"Date": "",
|
||||
//"to_date": "",
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
// $scope.initHead = function() {
|
||||
|
||||
var logcheck = JSON.parse(localStorage.getItem('localObj'));
|
||||
|
||||
const LOCALTYPE = logcheck.localType;
|
||||
if (logcheck != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
|
||||
console.log("if");
|
||||
}else {
|
||||
if(logcheck != null && LOCALTYPE !='R001') {
|
||||
console.log("else if");
|
||||
$state.go('app.dashboard');
|
||||
} else {
|
||||
|
||||
console.log("else else");
|
||||
//ipCookie.remove('cookiechk');
|
||||
window.localStorage.clear();
|
||||
$state.go('login.signin');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$scope.init = function(){
|
||||
|
||||
console.log('gf');
|
||||
}
|
||||
|
||||
|
||||
|
||||
// $scope.click = function (form,myModel)
|
||||
// {
|
||||
|
||||
|
||||
// alert()
|
||||
// };
|
||||
|
||||
|
||||
|
||||
|
||||
$scope.studentInfo="";
|
||||
$scope.getStudentDetails = function (form,myModel) {
|
||||
|
||||
// console.log(form.$invalid)
|
||||
// alert()
|
||||
|
||||
var mobileNumber = myModel.mobileNumber;
|
||||
//console.log(mobileNumber);
|
||||
var studentName = myModel.studentName;
|
||||
//console.log(studentName);
|
||||
var receipt = myModel.receipt;
|
||||
//console.log(receipt);
|
||||
|
||||
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.isLoaderShow= false
|
||||
var getStudent = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'getAllDayBookDetails/',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
data: {
|
||||
studentName: myModel.studentName,
|
||||
mobileNumber: myModel.mobileNumber,
|
||||
receipt: myModel.receipt,
|
||||
// course:myModel.courseName,
|
||||
requestedtBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
|
||||
branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID,
|
||||
requestedDept: JSON.parse(localStorage.getItem('localObj')).localType,
|
||||
}
|
||||
};
|
||||
$http(getStudent).then(function (response) {
|
||||
if (response.data.status==200 && response.data.studentStatus) {
|
||||
$scope.studentInfo=response.data.details;
|
||||
console.log($scope.studentInfo);
|
||||
|
||||
} else {
|
||||
$scope.studentInfo="";
|
||||
|
||||
$scope.isLoaderShow = true;
|
||||
$scope.load = "No Records Found";
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// $scope.setDate = function(p)
|
||||
// {
|
||||
// alert()
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
$scope.updatestatus = function (myModel, form, loading)
|
||||
{
|
||||
//alert(myModel.ID)
|
||||
|
||||
//alert(myModel.Reason);
|
||||
|
||||
var d = new Date(myModel.Date);
|
||||
// console.log(d.getUTCDate()); // Hours
|
||||
// console.log(d.getUTCMonth());
|
||||
// console.log(d.getUTCFullYear());
|
||||
|
||||
var mdate = d.getUTCDate() + 1;
|
||||
var mmonth = d.getUTCMonth() + 1;
|
||||
var myear = d.getUTCFullYear();
|
||||
|
||||
var CDate = mdate+"-"+mmonth+"-"+myear;
|
||||
//console.log(CDate)
|
||||
|
||||
|
||||
var IsActive = '';
|
||||
|
||||
if(myModel.IsActive == true)
|
||||
{
|
||||
IsActive =1;
|
||||
}
|
||||
|
||||
else if(myModel.IsActive == false)
|
||||
{
|
||||
IsActive =0;
|
||||
}
|
||||
|
||||
var updatedaybook = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'update_DayBookDetails/',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
data: {
|
||||
studentName: myModel.studentName,
|
||||
mobileNumber: myModel.mobileNumber,
|
||||
receipt: myModel.receipt,
|
||||
ID : myModel.ID,
|
||||
FID : myModel.FID,
|
||||
Date :myModel.Date,
|
||||
Amount :myModel.Amount,
|
||||
Reason : myModel.Reason,
|
||||
IsActive : IsActive,
|
||||
// course:myModel.courseName,
|
||||
requestedtBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
|
||||
branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID,
|
||||
requestedDept: JSON.parse(localStorage.getItem('localObj')).localType,
|
||||
}
|
||||
};
|
||||
|
||||
$http(updatedaybook).then(function (response) {
|
||||
swal('Change Saved Successfully', response.data.message, "success");
|
||||
$scope.close();
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$scope.OpenWindowStatus = false;
|
||||
$scope.editId = -1;
|
||||
$scope.setEditId = function (P)
|
||||
{ //alert(P);
|
||||
$scope.editId = P;
|
||||
}
|
||||
|
||||
$scope.close = function ()
|
||||
{
|
||||
$scope.editId = -1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}]);
|
||||
|
||||
|
||||
|
||||
|
||||
171
Apollo/assets/views/data_correction.html
Normal file
171
Apollo/assets/views/data_correction.html
Normal file
@ -0,0 +1,171 @@
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
.pad {
|
||||
background-color: #eee;
|
||||
padding: 4px;
|
||||
}
|
||||
.fif {
|
||||
/* background-color: #ddd;*/
|
||||
display: inline-block;
|
||||
margin: 0 175px 0 0;
|
||||
padding: 8px 8px;
|
||||
text-align: left;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
|
||||
.right {
|
||||
/* background-color: #ddd;*/
|
||||
display: inline-block;
|
||||
/*margin: 0 25px 0 0;*/
|
||||
padding: 1px 1px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
||||
.rightac {
|
||||
/* background-color: #ddd;*/
|
||||
display: inline-block;
|
||||
margin: 0 175px 0 0;
|
||||
padding: 8px 8px;
|
||||
text-align: left;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.a {
|
||||
word-spacing: 9cm;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<section id="page-title">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<h1 class="mainTitle">DATA CORRECTION</h1>
|
||||
</div>
|
||||
<!-- <div ncy-breadcrumb></div> -->
|
||||
</div>
|
||||
</section>
|
||||
<style>
|
||||
/* .sort-icon {
|
||||
font-size: 9px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
th {
|
||||
cursor: pointer;
|
||||
} */
|
||||
</style>
|
||||
<script type="text/javascript" src="bower_components/ng-table-excel-export/ng-table-excel-export.min.js">
|
||||
|
||||
|
||||
</script>
|
||||
<div class="container-fluid container-fullw bg-white">
|
||||
<div ng-controller="datacorrectionCtrl">
|
||||
<form name="Form" id="form" novalidate ng-submit="onSubmit()" method="post">
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<fieldset>
|
||||
<legend>Search</legend>
|
||||
<div class="row">
|
||||
<div class="col-md-3 form-group" ng-class="{'has-error':Form.mobilenumber.$dirty && Form.mobilenumber.$invalid}">
|
||||
<label>
|
||||
Mobile Number
|
||||
</label>
|
||||
|
||||
<input type="text" placeholder="Search Mobile Number" ladda="ldloading1.zoom_in" data-style="zoom-in"
|
||||
autofocus tabindex="1" class="form-control" name="mobilenumber" id="mobilenumber" ng-minlength="10" ng-maxlength="12"
|
||||
ng-model="myModel.mobileNumber" ng-pattern="/^[0-9]*$/"/>
|
||||
<span class="error text-small block"
|
||||
ng-if="Form.mobilenumber.$error.maxlength || Form.mobilenumber.$error.minlength || Form.mobilenumber.$error.pattern">Enter a valid mobile number</span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 form-group">
|
||||
<label>
|
||||
Student First Name
|
||||
</label>
|
||||
|
||||
<input type="text" placeholder="Search Student Name"
|
||||
tabindex="2" class="form-control" name="studentname"
|
||||
ng-model="myModel.studentName" ng-pattern="/^[a-zA-Z.\s]*$/" />
|
||||
<span class="error text-small block"
|
||||
ng-if="Form.studentname.$dirty && Form.studentname.$error.pattern">Invalid student name </span>
|
||||
</div>
|
||||
<div class="col-md-3 form-group">
|
||||
<label>
|
||||
RECEIPT NUMBER
|
||||
</label>
|
||||
<input type="text" placeholder="Search Receipt Number"
|
||||
tabindex="2" class="form-control" name="receipt"
|
||||
ng-model="myModel.receipt" />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-2" style="padding-top: 2.3%;">
|
||||
<div class="pull-right">
|
||||
<button type="submit" ng-click="getStudentDetails(Form,myModel);" class="btn btn-success btn-o" tabindex="8">
|
||||
Submit
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
</div>
|
||||
|
||||
<div ng-if="isLoaderShow">
|
||||
<center> <h1>{{load}}</h1> </center>
|
||||
</div>
|
||||
<!-- {{studentInfo}} -->
|
||||
<div class="col-md-12">
|
||||
<div class="table-responsive">
|
||||
<table id="datatable" class="table table-hover">
|
||||
<thead>
|
||||
<tr >
|
||||
<th style="font-size: 12px;">Type</th>
|
||||
<th style="font-size: 12px;">Receipt No</th>
|
||||
<th style="font-size: 12px;">Paid To / Received From</th>
|
||||
<th style="font-size: 12px">Date</th>
|
||||
<th style="font-size: 12px;">Sem</th>
|
||||
<th style="font-size: 12px;">Voucher Number / Bill Number</th>
|
||||
<th style="font-size: 12px;">Amount</th>
|
||||
<!-- <th style="font-size: 12px;">Status</th> -->
|
||||
<th style="font-size: 12px;">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody dir-paginate="p in studentInfo|filter:search:strict|itemsPerPage:10">
|
||||
<tr>
|
||||
<td>{{p.ListName}}</td>
|
||||
<td>{{p.ReceiptNo}}</td>
|
||||
<td>{{p.PaidTo}}</td>
|
||||
<td>{{p.Date}}</td>
|
||||
<td>{{p.FeePaymentDetails}}</td>
|
||||
<td>{{p.VoucherNumber}}</td>
|
||||
<td>{{p.Amount}}</td>
|
||||
<td><span><a class="text-azure" id="editRowBtn{{p.ID}}" ng-click="setEditId(p.ID);"><b class="glyphicon glyphicon-pencil" tooltip="Edit Details" aria-hidden="true"></b></a> </span></td>
|
||||
<!-- <td></td> -->
|
||||
</tr>
|
||||
<tr ng-show="editId === p.ID" ng-if="editId === p.ID">
|
||||
<td colspan="12" ng-include src="'assets/views/edit_daybookentries.html'"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
122
Apollo/assets/views/edit_daybookentries.html
Normal file
122
Apollo/assets/views/edit_daybookentries.html
Normal file
@ -0,0 +1,122 @@
|
||||
<form name="Form" id="form" novalidate>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12">
|
||||
<fieldset>
|
||||
<legend>
|
||||
Update Day Book Details
|
||||
</legend>
|
||||
<div>
|
||||
<input type="hidden" name="ID" id="ID" ng-model="p.ID">
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="hidden" name="feeid" ng-model="p.FID">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-3 form-group"
|
||||
ng-class="{'has-error':Form.edittype.$dirty && Form.edittype.$invalid, 'has-success':Form.edittype.$valid}">
|
||||
<label >
|
||||
Type <span class="symbol required"></span>
|
||||
</label>
|
||||
<input type="text" tabindex="3" class="form-control" name="editListName" ng-model="p.ListName" readonly="true" capitalize
|
||||
required/>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3 form-group" ng-if="p.ReceiptNo!=null">
|
||||
<label>
|
||||
Receipt No <span class="symbol required"></span>
|
||||
</label>
|
||||
|
||||
<input type="text" placeholder="Enter Name" tabindex="5" class="form-control" name="editReceipt" ng-model="p.ReceiptNo" capitalize
|
||||
required readonly="true" />
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 form-group" >
|
||||
<label>
|
||||
Paid to / Received From <span class="symbol required"></span>
|
||||
</label>
|
||||
|
||||
<input type="text" placeholder="Enter Name" tabindex="5" class="form-control" name="editName" readonly="true" ng-model="p.PaidTo" capitalize
|
||||
required/>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 form-group" >
|
||||
<label>
|
||||
Date <span class="symbol required"></span>
|
||||
</label>
|
||||
|
||||
<!-- <input type="text" placeholder="Enter Name" tabindex="5" class="form-control" name="edit" ng-model="p.Date" capitalize
|
||||
required/> -->
|
||||
|
||||
<input type="text" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="p.Date" is-open="startOpen" ng-init="startOpen = false" name="date" datepicker-options="dateOptions" placeholder="Select Date"
|
||||
min-date="currentDate" max-date="futureDate" ng-changes="setDate();"
|
||||
close-text="Close" required="required" ng-readonly="true"/>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3 form-group" >
|
||||
<label>
|
||||
Amount <span class="symbol required"></span>
|
||||
</label>
|
||||
|
||||
<input type="text" tabindex="5" class="form-control" name="editAmount" ng-model="p.Amount" readonly="true" capitalize required/>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-md-3 form-group" >
|
||||
<label>
|
||||
Reason to Deactivate <span class="symbol required"></span>
|
||||
</label>
|
||||
<textarea type="text" placeholder="Enter Reason" tabindex="7" class="form-control" name="Messagebody" ng-model="p.Reason" required></textarea>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>
|
||||
Active/De-Active
|
||||
</label>
|
||||
<div ng-if="p.IsActive==true">
|
||||
|
||||
<switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch>
|
||||
|
||||
</div>
|
||||
<div ng-if="p.IsActive==false">
|
||||
<switch ng-model="p.IsActive" ng-init="p.IsActive = false" class="green"></switch>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="pull-right">
|
||||
<button type="submit" ladda="ldloading.zoom_in" tabindex="6" class="btn btn-wide btn-success" data-style="zoom-in" ng-click="updatestatus(p,Form,'zoom-in')">
|
||||
Save
|
||||
</button>
|
||||
<input type="button" class="btn btn-warning btn-wide" tabindex="10" value="Cancel" ng-click="close()">
|
||||
|
||||
</input>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- class="editRowTd" -->
|
||||
@ -199,13 +199,13 @@
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.markcardstatus" translate="sidebar.nav.student.status.MARKCARD" ng-click="checkSuperAdmin()">
|
||||
<a ui-sref="app.student.status.certificationstatus" translate="sidebar.nav.student.status.CERTIFICATION" ng-click="checkSuperAdmin()">
|
||||
Certification
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.certificatestatus" translate="sidebar.nav.student.status.CERTIFICATE" ng-click="checkSuperAdmin()">
|
||||
Certificate
|
||||
<a ui-sref="app.student.status.applicationstatus" translate="sidebar.nav.student.status.APPLICATION" ng-click="checkSuperAdmin()">
|
||||
Application
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
@ -307,6 +307,13 @@
|
||||
</li>
|
||||
|
||||
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.daybooksuperadmin.datacorrection" ng-click="checkSuperAdmin()">
|
||||
<span class="title" translate="sidebar.nav.daybook.DATACORRECTION"> DATA CORRECTION</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
@ -411,11 +418,6 @@
|
||||
</div>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.reports.universityfileupload" ng-click="checkSuperAdmin()">
|
||||
<span class="title" translate="sidebar.nav.report.unidataupload">University Data Upload</span>
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.reports.studymaterial" ng-click="checkSuperAdmin()">
|
||||
<span class="title" translate="sidebar.nav.report.studmatstatus">Study Material Status</span>
|
||||
@ -648,13 +650,13 @@
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.markcardstatus" translate="sidebar.nav.student.status.MARKCARD" ng-click="checkAdmin()">
|
||||
Markcard
|
||||
<a ui-sref="app.student.status.certificationstatus" translate="sidebar.nav.student.status.CERTIFICATION" ng-click="checkAdmin()">
|
||||
Certification
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.certificatestatus" translate="sidebar.nav.student.status.CERTIFICATE" ng-click="checkAdmin()">
|
||||
Certificate
|
||||
<a ui-sref="app.student.status.applicationstatus" translate="sidebar.nav.student.status.APPLICATION" ng-click="checkAdmin()">
|
||||
Application
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
@ -775,6 +777,14 @@
|
||||
</li>
|
||||
|
||||
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.daybooksuperadmin.datacorrection" ng-click="checkAdmin()">
|
||||
<span class="title" translate="sidebar.nav.daybook.DATACORRECTION"> DATA CORRECTION</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
@ -880,11 +890,6 @@
|
||||
</div>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.reports.universityfileupload" ng-click="checkAdmin()">
|
||||
<span class="title" translate="sidebar.nav.report.unidataupload">University Data Upload</span>
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.reports.studymaterial" ng-click="checkAdmin()">
|
||||
<span class="title" translate="sidebar.nav.report.studmatstatus">Study Material Status</span>
|
||||
@ -1020,12 +1025,12 @@
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.markcardstatus" translate="sidebar.nav.student.status.MARKCARD" ng-click="checkStaff()">
|
||||
Markcard
|
||||
<a ui-sref="app.student.status.certificationstatus" translate="sidebar.nav.student.status.CERTIFICATION" ng-click="checkStaff()">
|
||||
Certification
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.certificatestatus" translate="sidebar.nav.student.status.CERTIFICATE" ng-click="checkStaff()">
|
||||
<a ui-sref="app.student.status.applicationstatus" translate="sidebar.nav.student.status.APPLICATION" ng-click="checkStaff()">
|
||||
Application
|
||||
</a>
|
||||
</li>
|
||||
@ -1128,6 +1133,17 @@
|
||||
<span class="title" translate="sidebar.nav.daybook.INCOMEEXPENSEREPORT"> DAY BOOK PROFIT-LOSS STATEMENT</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.daybooksuperadmin.datacorrection" ng-click="checkStaff()">
|
||||
<span class="title" translate="sidebar.nav.daybook.DATACORRECTION"> DATA CORRECTION</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@ -1276,12 +1292,12 @@
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.markcardstatus" translate="sidebar.nav.student.status.MARKCARD" ng-click="checkStaff()">
|
||||
Markcard
|
||||
<a ui-sref="app.student.status.certificationstatus" translate="sidebar.nav.student.status.CERTIFICATION" ng-click="checkStaff()">
|
||||
Certification
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.certificatestatus" translate="sidebar.nav.student.status.CERTIFICATE" ng-click="checkStaff()">
|
||||
<a ui-sref="app.student.status.applicationstatus" translate="sidebar.nav.student.status.APPLICATION" ng-click="checkStaff()">
|
||||
Application
|
||||
</a>
|
||||
</li>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user