Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "abu"

Hi all I hope you all

DynamicApiControllerBuilder
               .ForAll<IApplicationService>(Assembly.GetAssembly(typeof(TravelsHubApplicationModule)), "ameba")
               .Build();

Error: CS0120 An object reference is required for the non-static field, method, or property 'DynamicApiControllerBuilder.ForAll<IApplicationService>(Assembly, string)'

in TravelsHub.WebApi layer Please help me out

Thanks in advance

Hi

Thanks for information but how we start learning module zero with .net core and angular2 in VS2015..??

Thanks Abu

Hi,

Thanks for your presence and time

Error are follow:

Error MSB4041: The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.

Having visual studio 2015 ultimate Thanks Abu

some changes in the script:

(function () {
    var controllerId = 'resourceUploadController';
    angular.module('app').controller(controllerId, [
        '$scope', '$location', 'abp.services.vault.resource', 'abp.services.vault.subCategory', 'abp.services.vault.category', 'abp.services.vault.fileType',
        'abp.services.vault.season', 'abp.services.vault.numberOfPeople','abp.services.vault.scenario','$http',
        function ($scope, $location, resourceService, subCategoryService, categoryService, fileTypeService, seasonService, numberOfPeopleService, scenarioService, $http) {
            var vm = this;
            var localize = abp.localization.getSource('Vault');
            vm.resourceInfo = {};
            $scope.subCategory = function () {
                subCategoryService.getSubCategories().success(function (data) {
                   
                    vm.subcategories = data.subCategories;
                });
            }
            $scope.subCategory();

            $scope.category = function () {
                categoryService.getCategories().success(function (data) {
                  
                    vm.categories = data.categories;
                });
            }
            $scope.category();

            $scope.fileType = function () {
                fileTypeService.getFileTypes().success(function (data) {
             
                    vm.filetypes = data.fileTypes;
                });
            }
            $scope.fileType();

            $scope.season = function () {
                seasonService.getSeasons().success(function (data) {
                
                    vm.seasons = data.seasons;
                });
            }
            $scope.season();

            $scope.numberofPeople = function () {
                numberOfPeopleService.getNumberOfPeoples().success(function (data) {
                   
                    vm.numberOfPeoples = data.numberOfPeoples;
                });
            }
            $scope.numberofPeople();

            $scope.scenario = function () {
                scenarioService.getScenarios().success(function (data) {
              
                    vm.scenarios = data.scenarios;
                });
            }
            $scope.scenario();

            vm.saveResource = function (element) {
                $scope.fileList = [];
                // get the files
                var files = element.files;
                var data = new FormData();
                debugger;
                for (var i = 0; i < files.length; i++) {

                    data.append("HelpSectionImages" + i, files[i]);
                }
                $.ajax({
                    url: '../ResourceUpload/SaveFiles', type: "POST", processData: false,
                    data: data, dataType: 'json',
                    contentType: false,
                    success: function (data) {
                        debugger;
                        var url = data;
                            resourceService.createResource(vm.resourceInfo, url).success(function () {
                                abp.notify.info("Image Saved");
                                $location.path('/admin');
                            });
                 
                        
                    },
                    error: function (er) {
                        
                    }

                });
               
            };
           
            //============== DRAG & DROP =============

           var dropbox = document.getElementById("dropbox")
            $scope.dropText = 'Drop files here...'

            function dragEnterLeave(evt) {
                evt.stopPropagation()
                evt.preventDefault()
                $scope.$apply(function () {
                    $scope.dropText = 'Drop files here...'
                    $scope.dropClass = ''
                })
            }
            dropbox.addEventListener("dragenter", dragEnterLeave, false)
            dropbox.addEventListener("dragleave", dragEnterLeave, false)
            dropbox.addEventListener("dragover", function (evt) {
                evt.stopPropagation()
                evt.preventDefault()
                var clazz = 'not-available'
               
            }, false)
            dropbox.addEventListener("drop", function (evt) {
           
                evt.stopPropagation()
                evt.preventDefault()
                $scope.$apply(function () {
                    $scope.dropText = 'Drop files here...'
                    $scope.dropClass = ''
                })
                var files = evt.dataTransfer.files
           
                if (files.length > 0) {
    
                 
                    $scope.$apply(function () {
                        $scope.files = []
                        $scope.stepsModel = [];
                        for (var i = 0; i < files.length; i++) {
                       
                            $scope.files.push(files[i])
                            var file = files[i];
                            var reader = new FileReader();
                            reader.onload = $scope.imageIsLoaded;
                            reader.readAsDataURL(file);
                        }

                    })
                }
               
            }, false)

            $scope.imageIsLoaded = function (e) {
                $scope.$apply(function () {
                    $scope.stepsModel.push(e.target.result);
                });
            }
            //============== END DRAG & DROP =============
        }]);

 
})();

some changes in the view:

<li class='last'><a href='' ng-click="vm.saveResource(this)"><span>Save</span></a></li>

please help me :

yes sir sure i will wait for your reply...

please make sample as soon as you can..

thank you sir

thank you sir

its working when i removed the line you guide me.. but how we show setBusy() when we redirect to another page..???

thank you sir for your reply.

i will follow up the same layout because m using ABP SPA

and one of my request to guide me through upload photo or document in ABP using ng-model and coding of application.cs file please help me sir . please make a small demo of upload and share with me.

i really need your help

this is my code:

(function () {
    var controllerId = 'app.views.addemployeeform';
    angular.module('app').controller(controllerId, [
        '$scope', '$location', 'abp.services.ameba.employee', function ($scope, $location, employeeService) {
            var vm = this;
            vm.employeeinfo = {};
            var localize = abp.localization.getSource('Ameba');
            vm.companyemployeeRegister = function () {
                abp.ui.setBusy( //Set whole page busy until getTasks complete
                   null,
                employeeService.createCompanyEmployee(vm.employeeinfo).success(function () {
                    abp.notify.info("Registration Completed please login to continue");
                    $location.path('/login')
                })

                );
            };


        }]);
})();

sir when i use abp.ui.setBusy() then it work but when we call angularjs function and it take time to fetch data or to insert or to login then its not working no spin is visible to user.

thank you for your kind information after so many days.

sir i will search on web for the solution of above problem and may i get a some information on following topic..???

1.) how we work with the session in boilerplate...??? 2) how we upload image and save in database in boilerplate.???

please reply

thank you sir for your attention and guide

Showing 1 to 10 of 28 entries