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

Activities of "abu"

sir want to know your email id...???

thank you so much sir for your support

yes sir i used a template ...

yes sir i have created project with template and also check by debug the code..

sir after opening following link in my browser its blank page...??? now what the next step to work it out..???

<a class="postlink" href="http://localhost:6234/api/AbpServiceProxies/GetAll?type=angular">http://localhost:6234/api/AbpServicePro ... pe=angular</a>

please reply thank you

ImemberprofileAppService code

namespace MYVEO.MemberProfiles
{
   public interface ImemberprofileAppService:IApplicationService
    {
        GetTasksOutput GetTasks(GetTasksInput input);
        void UpdateTask(UpdateTaskInput input);
        void CreateTask(CreateTaskInput input);
    }
}

memberprofileAppService code

namespace MYVEO.MemberProfiles
{
    public class memberprofileAppService : ApplicationService, ImemberprofileAppService
    {
         private ImemberprofileRepository _taskRepository;
       
        
        /// <summary>
        ///In constructor, we can get needed classes/interfaces.
        ///They are sent here by dependency injection system automatically.
        /// </summary>
        public memberprofileAppService(ImemberprofileRepository taskRepository)
        {
            _taskRepository = taskRepository;
            
        }
        
        public GetTasksOutput GetTasks(GetTasksInput input)
        {
            //Called specific GetAllWithPeople method of task repository.
            var tasks = _taskRepository.memberGetAll();

            //Used AutoMapper to automatically convert List<Task> to List<TaskDto>.
            return new GetTasksOutput
                   {
                       //Tasks = Mapper.Map<List<MemberProfilesDtos>>(tasks)
                   };
        }
        
        public void UpdateTask(UpdateTaskInput input)
        {
           
        }

        public void CreateTask(CreateTaskInput input)
        {
           
           // Logger.Info("Creating a task for input: " + input);
            var tasks = new memberprofile
            {
                MemberCode=input.MemberCode,
                Firstname=input.Firstname,
                Lastname=input.Lastname,
                MiddleInitial=input.MiddleInitial,
                Additional=input.MiddleInitial,
                DOB=input.DOB,
                Email=input.Email,
                PhoneNo=input.PhoneNo,
                Extension=input.Extension
            };
            _taskRepository.Insert(tasks);
        }
    }

Coding in webapi

DynamicApiControllerBuilder
               .ForAll<IApplicationService>(Assembly.GetAssembly(typeof(MYVEOApplicationModule)), "tasksystem")
               .Build();

Javascript code

(function () {
    var app = angular.module('app');
    var controllerId = 'insertcontroller';
    app.controller(controllerId, [
        '$scope', '$location', 'abp.services.tasksystem.memberprofile',
        function ($scope, $location,memberprofileService) {
            var vm = this;

            vm.tasks = {
                Membercode:'',
                FirstName:'',
                Lastname:'',
                MiddleInitial:'',
                Additional:'',
                DOB:null,
                Email:'',
                PhoneNo:'',
                Extension:''
            };

            var localize = abp.localization.getSource('MYVEO');
            vm.saveTask = function() {
                abp.ui.setBusy(
                    null,
                    memberprofileService.createTask(
                        vm.tasks
                    ).success(function() {
                        //abp.notify.info(abp.utils.formatString(localize("TaskCreatedMessage"), vm.task.description));
                        $location.path('/');
                    })
                );
            };
        }
    ]);
})();

html page coding

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>

<body>
    <div class="container" style="margin-bottom:4px; border:5px outset; border-color:#e1e1e1" ng-controller="insertcontroller as vm">
        <div class="col-md-12">

            <div class="profile_bg">
                <h4 style="font-size:larger"><b>Member Profile</b></h4>
                <div class="col-md-12">
                    <div class="col-md-5">
                        <span>MemberCode*</span>
                    </div>
                    <div class="col-md-5">
                        <input id="txtMemberCode" type="text" ng-model="vm.tasks.Membercode" />
                    </div>
                </div>
                <div class="col-md-12">
                    <div class="col-md-5">
                        <span>First Name *</span>
                    </div>
                    <div class="col-md-5">
                        <input id="txtFirstName" type="text" ng-model="vm.tasks.FirstName" />
                    </div>
                </div>
                <div class="col-md-12">
                    <div class="col-md-5">
                        <span>Last Name</span>
                    </div>
                    <div class="col-md-5">
                        <input id="txtLastName" type="text" ng-model="vm.tasks.Lastname" />
                    </div>
                </div>

                <div class="col-md-12">
                    <div class="col-md-5">
                        <span>Middle Initial</span>
                    </div>
                    <div class="col-md-5">
                        <input id="txtMiddle" type="text" ng-model="vm.tasks.MiddleInitial" />
                    </div>
                </div>
                <div class="col-md-12">
                    <div class="col-md-5">
                        <span>Additional</span>
                    </div>
                    <div class="col-md-5">
                        <textarea id="TextArea1" rows="2" cols="20" ng-model="vm.tasks.Additional"></textarea>
                    </div>
                </div>

                <div class="col-md-12">
                    <div class="col-md-5">
                        <span>Date Of Birth*</span>
                    </div>
                    <div class="col-md-5">
                        <input id="txtDOB" type="text" ng-model="vm.tasks.DOB" />
                    </div>
                </div>
                <div class="col-md-12">
                    <div class="col-md-5">
                        <span>Email *</span>
                    </div>
                    <div class="col-md-5">
                        <input id="txtEmail" type="text" ng-model="vm.tasks.Email" />
                    </div>
                </div>
                <div class="col-md-12">
                    <div class="col-md-5">
                        <span>Contact Number*<span style="color: #00629F">(Ex-987-666-4323)</span></span>

                    </div>
                    <div class="col-md-5">
                        <input id="txtContactNo" type="text" maxlength="12" ng-model="vm.tasks.PhoneNo" />
                    </div>
                </div>
                <div class="col-md-12">
                    <div class="col-md-5">
                        <span>Extension</span>
                    </div>
                    <div class="col-md-5">
                        <input id="Text1" type="text" ng-model="vm.tasks.Extension" />

                    </div>
                </div>
                <div class="col-md-12">
                </div>
                <div class="col-md-5">
                </div>
                <button ng-click="vm.saveTask()"type="submit">INSERT</button>
            </div>
        </div>
    </div>
    <script src="/api/AbpServiceProxies/GetAll" type="text/javascript"></script>
    <script src="/api/AbpServiceProxies/Get?name=tasksystem/task" type="text/javascript"></script>
</body>
</html>

error

Error: [$injector:unpr] http://errors.angularjs.org/1.3.15/$injector/unpr?p0=abp.services.tasksystem.memberprofileProvider%20%3C-%20abp.services.tasksystem.memberprofile%20%3C-                   0nsertcontroller

please help me out sir waiting for reply thank you

sir i had send you all my coding part to you in your first to learn forum article please help me out sir

sir i have use this script in my html page..!! but same problem..

<script src="/api/AbpServiceProxies/GetAll" type="text/javascript"></script> and <script src="/api/AbpServiceProxies/Get?name=tasksystem/task" type="text/javascript"></script>

i also have same error i have an ImemberprofileAppService interface and memberProfileAppService class files

the above two files present in application in MemberProfiles folder

i used this in .js file

abp.services.tasksystem.memberprofile

i have the following coding in webapi

DynamicApiControllerBuilder .ForAll<IApplicationService>(Assembly.GetAssembly(typeof(MYVEOApplicationModule)), "tasksystem") .Build();

what is the service name in this case please give an answer....???? please

Showing 21 to 28 of 28 entries