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