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

Activities of "Hasan"

Sorry to bother you Ismail

I have the same issue

My DB datatype is numeric(18,6) but when I am storing more than 2 digits. It is always getting stored only 2 digits

Plesase check it from your end

This is going to be massive blocker for us

Please help us to solve this

Question

Hello Team,

In the UI Grid Cell Contents are not wrapped. Is there any solution for this ?

I have attached a picture for it.

Question

Hello Team

Is there any possibility to download the Old Version from the Website ?

Currently it helps to download only the latest version

Question

Hello Team,

Do you have any Simple HangFire Code ?

I have gone through one in the documentation but did not give any ?

Answer

Thanks Sir

Is it possible to give me a quick example ?

Much Appreciated..

Answer

I have done both but it is not working.

I have attached my code here..

vm.importAll = function () {
                abp.message.confirm(app.localize('ImportWarning'),
                    function (isConfirmed) {

                        if (isConfirmed) {
                            abp.ui.block();
                            setupService.seedSampleCompany().success(function() {
                                abp.notify.success(app.localize('Organization') + ' ' + app.localize('SuccessfullyImported'));
                                setupService.seedSampleMenu().success(function() {
                                    abp.notify.success(app.localize('Menu') + ' ' + app.localize('SuccessfullyImported'));

                                    setupService.seedSampleCustomer().success(function() {
                                        abp.notify.success(app.localize('Customer') + ' ' + app.localize('SuccessfullyImported'));
                                    }).finally(function() {});

                                    setupService.seedSampleSupplier().success(function() {
                                        abp.notify.success(app.localize('Supplier') + ' ' + app.localize('SuccessfullyImported'));
                                    }).finally(function() {
                                        setupService.seedSampleMaterial().success(function() {
                                            abp.notify.success(app.localize('Material') + ' ' + app.localize('SuccessfullyImported'));
                                        });
                                    });
                                    setupService.seedSampleTax().success(function() {
                                        abp.notify.success(app.localize('Tax') + ' ' + app.localize('SuccessfullyImported'));
                                    }).finally(function() {});

                                });

                            });
                            abp.ui.unblock();
                        }
                    });
            }

My Page has already have got two files that you have mentioned.

Question

Hello Team

I have tried using

abp.ui.block();

from Angular Controller but it is not working.

Do i need to import anything into my Page ? and i have checked the page

http://www.aspnetboilerplate.com/Pages/Documents/Javascript-API/UI-Block-Busy

It says "(See this javascript file for simple implementation and defaults)" but there is no file there. It is better if you can give a example.

Thanks

Question

Hello Team,

We are planning to Integerate QuickBooks into our system

What is the best way to do it ?

I want to call their Oauth Method to get the tokens

Is there any sample code in ASP.ZERO to do that ?

Here is the Code

using System;
using System.Threading.Tasks;
using System.Web.Http;
using Abp.Authorization.Users;
using Abp.UI;
using Abp.Web.Models;
using Microsoft.Owin.Infrastructure;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.OAuth;
using DinePlan.DineConnect.Authorization;
using DinePlan.DineConnect.Authorization.Roles;
using DinePlan.DineConnect.Authorization.Users;
using DinePlan.DineConnect.MultiTenancy;
using DinePlan.DineConnect.WebApi.Models;

namespace DinePlan.DineConnect.WebApi.Controllers
{
    public class TryController : DineConnectApiControllerBase
    {
        public static OAuthBearerAuthenticationOptions OAuthBearerOptions { get; set; }

        private readonly UserManager _userManager;
        private readonly AbpLoginResultTypeHelper _abpLoginResultTypeHelper;

        static TryController()
        {
            OAuthBearerOptions = new OAuthBearerAuthenticationOptions();
        }

        public TryController(
            UserManager userManager, 
            AbpLoginResultTypeHelper abpLoginResultTypeHelper)
        {
            _userManager = userManager;
            _abpLoginResultTypeHelper = abpLoginResultTypeHelper;
        }

        
        [HttpPost]
        public async Task<AjaxResponse> Hello()
        {
           
            var loginResult = await GetLoginResultAsync(
                DEFAULT_USER,
                DEFAULT_PASSWORD,
                DEFAULT_TENANCY
                );

            var ticket = new AuthenticationTicket(loginResult.Identity, new AuthenticationProperties());

            var currentUtc = new SystemClock().UtcNow;
            ticket.Properties.IssuedUtc = currentUtc;
            ticket.Properties.ExpiresUtc = currentUtc.Add(TimeSpan.FromMinutes(30));

            return new AjaxResponse(OAuthBearerOptions.AccessTokenFormat.Protect(ticket));
        }

        public string DEFAULT_USER => "admin";

        public string DEFAULT_PASSWORD => "123qwe";

        public string DEFAULT_TENANCY => "Connect";

        private async Task<AbpUserManager<Tenant, Role, User>.AbpLoginResult> GetLoginResultAsync(string usernameOrEmailAddress, string password, string tenancyName)
        {
            var loginResult = await _userManager.LoginAsync(usernameOrEmailAddress, password, tenancyName);

            switch (loginResult.Result)
            {
                case AbpLoginResultType.Success:
                    return loginResult;
                default:
                    throw _abpLoginResultTypeHelper.CreateExceptionForFailedLoginAttempt(loginResult.Result, usernameOrEmailAddress, tenancyName);
            }
        }

        protected virtual void CheckModelState()
        {
            if (!ModelState.IsValid)
            {
                throw new UserFriendlyException("Invalid request!");
            }
        }
    }
}

Hello Team,

I have gone through the document at

<a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/EventBus-Domain-Events">http://www.aspnetboilerplate.com/Pages/ ... ain-Events</a>

Do you have any sample to handle the generic event data classes for entity changes: EntityCreatingEventData<TEntity>, EntityCreatedEventData<TEntity>, EntityUpdatingEventData<TEntity>, EntityUpdatedEventData<TEntity>, EntityDeletingEventData<TEntity> and EntityDeletedEventData<TEntity>. Also, there are EntityChangingEventData<TEntity> and EntityChangedEventData<TEntity> ?

Thanks Again

Showing 51 to 60 of 97 entries