Base solution for your next web application

Activities of "abu"

sir

{{emp.description}}

this is the value that is fetched from session to display the user.

and

ng-model="vm.employeedescription.Description"

this is the value that i want to again update to database if user updated

but it always shows null when user click on update button this is the problem.

sir one more issue how i will show a selected list of employees from database. in following code

(function () {
    var controllerId = 'app.views.listofemployees';
    angular.module('app').controller(controllerId, [
        '$scope', '$location', 'abp.services.ameba.employee', function ($scope, $location, employeeService) {
            var vm = this;
            var id;
            var persondetail
            vm.employees = [];
            var localize = abp.localization.getSource('Ameba');
            $scope.detail = JSON.parse(sessionStorage.getItem("detail"));
            var details = $scope.detail
            for (var i = 0; i < details.length; i++)
            {
                persondetail = details[i];
                console.log(persondetail.companyId);
            }
           
            vm.info = {
                CompanyId: persondetail.companyId,
                DesignationId:2

            };
            vm.refreshMember = function () {
               employeeService.getEmployees(
                  vm.info
                  ).success(function (data) {
                      debugger;
                   
                      vm.employees = data.employees;
              
              })
            };
          
        }]);
})();

i am getting error

please help

sir i want to show some information in somepages

Above problem resolved. i want to know one thing i have a. loginpage with login.js in login folder in views folder.

through login.js i fetched the data by using following code

(function () {
    var controllerId = 'logincontroller';
    angular.module('app').controller(controllerId, [
        '$scope', '$location', 'abp.services.practise.employee', function ($scope, $location, employeeService) {
            var vm = this;
            var localize = abp.localization.getSource('Practise');
            vm.logininfo = {};

            vm.employees = [];

          

            vm.logincheck = function () {

                employeeService.getEmployee(
                    vm.logininfo
                ).success(function (data) {
                   // debugger;
                    alert("success");
                    vm.employees = data.employees
                    $location.path('/dashboard');
                })
            };


        }]);
})();

now by using $location.path to dashboard page now i want the collected information shown in dashboard cshtml page how i will do this...????

please help

sir this problem is resolved because there is such fields in the table which is not null and i am not inserting data.. thank you sir for your reply

yes sir i define mapping in all dtos this problem is resolve because i am fetching a single record and mapping is done with list<employee> . i removed the return type of the employee it works. thank you sir for your kind attention

please reply ...

Getting an error on following code:

public GetEmployeesOutput GetEmployee(GetEmployeesInput input)
        {
                var userinfo = _userRepository.GetAll().Where(m => m.EmailID == input.Email&&m.Password==input.Password).FirstOrDefault();
          
                var user = _employeeRepository.GetAll().Where(m => m.UserId == userinfo.Id).ToList();
               
                return new GetEmployeesOutput
                {
                       Employee = Mapper.Map<List<EmployeeDto>>(user)
                };     
                
        }

error is:

An exception of type 'AutoMapper.AutoMapperMappingException' occurred in AutoMapper.dll but was not handled in user code
this exception take place in

  **return new GetEmployeesOutput
                {
                       Employee = Mapper.Map<List<EmployeeDto>>(user)
                };**

thank you sir for all your support and guidance

i want to know the use of Get() method in boilerplate ...??? I am using it but getting error may i know the the important points to remember for use of Get() method ..??

internal error occurs during your request means ...???

please reply.. thank you

Showing 11 to 20 of 28 entries