employee add live issue
This commit is contained in:
parent
84c0305438
commit
b73c6674f7
@ -176,6 +176,9 @@ class Employee_Controller extends REST_Controller {
|
|||||||
public function addEmployee_post() {
|
public function addEmployee_post() {
|
||||||
$data = $this->post('data');
|
$data = $this->post('data');
|
||||||
|
|
||||||
|
|
||||||
|
//print_r($data);die();
|
||||||
|
|
||||||
$createdBy = $this->post('createdBy');
|
$createdBy = $this->post('createdBy');
|
||||||
|
|
||||||
$imagename = '';
|
$imagename = '';
|
||||||
|
|||||||
@ -45,7 +45,8 @@ app.controller('staffCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "$
|
|||||||
'role': '',
|
'role': '',
|
||||||
'jobResponsibility': '',
|
'jobResponsibility': '',
|
||||||
'switchsetting': true,
|
'switchsetting': true,
|
||||||
'finaceModuleAccess': false
|
'finaceModuleAccess': false,
|
||||||
|
'callModuleAccess':false
|
||||||
};
|
};
|
||||||
var data = '';
|
var data = '';
|
||||||
$scope.roleDetails = '';
|
$scope.roleDetails = '';
|
||||||
@ -386,7 +387,7 @@ app.controller('staffCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "$
|
|||||||
|
|
||||||
$scope.addEmpBranchDetails = function(emp, form) {
|
$scope.addEmpBranchDetails = function(emp, form) {
|
||||||
|
|
||||||
// console.log(form);return false;;
|
// console.log($scope.empAddBranchDetails.callModuleAccess);return false;;
|
||||||
if (form.$invalid) {
|
if (form.$invalid) {
|
||||||
var field = null, firstError = null;
|
var field = null, firstError = null;
|
||||||
for (field in form) {
|
for (field in form) {
|
||||||
@ -412,7 +413,7 @@ app.controller('staffCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "$
|
|||||||
'FinanceModuleAccess': $scope.empAddBranchDetails.FinanceModuleAccess == true ? 1 : 0,
|
'FinanceModuleAccess': $scope.empAddBranchDetails.FinanceModuleAccess == true ? 1 : 0,
|
||||||
'CallModuleAccess': $scope.empAddBranchDetails.callModuleAccess == true ? 1 : 0,
|
'CallModuleAccess': $scope.empAddBranchDetails.callModuleAccess == true ? 1 : 0,
|
||||||
}
|
}
|
||||||
// console.log($scope.addEmpNewBranch);return false;
|
//console.log($scope.addEmpNewBranch);return false;
|
||||||
var req = {
|
var req = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: apiPoint.url + 'addEmpBranchDetail/',
|
url: apiPoint.url + 'addEmpBranchDetail/',
|
||||||
|
|||||||
@ -114,8 +114,8 @@
|
|||||||
Call Tracking Access <span ng-if="empRoleDetail.callModuleAccess" class="symbol"></span>
|
Call Tracking Access <span ng-if="empRoleDetail.callModuleAccess" class="symbol"></span>
|
||||||
</label>
|
</label>
|
||||||
<div class="checkbox clip-check check-primary">
|
<div class="checkbox clip-check check-primary">
|
||||||
<input type="checkbox" id="checkbox7" name="CalltrackingAccess" ng-model="empEditBranchDetails.callModuleAccess">
|
<input type="checkbox" id="checkbox8" name="CalltrackingAccess" ng-model="empEditBranchDetails.callModuleAccess">
|
||||||
<label for="checkbox7">
|
<label for="checkbox8">
|
||||||
Call Tracking Access
|
Call Tracking Access
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user