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

Activities of "rvanwoezik"

HI, I have an clinic entity which is an extension of OrganizationUnit

public class Clinic : OrganizationUnit {...} All works fine, but when i call this repository from a periodicbackgroundworker this repository is empty! `protected override void DoWork() { var utcNow = Clock.Now.ToUniversalTime();

        var clinics = _clinicRepository.GetAllList();
        `
        when i call other normal repositories there not empty.
        
        Please advice
        

Hi,

I try to use NGX Bootstrap Datepicker [https://valor-software.com/ngx-bootstrap/#/datepicker]) Does anyone has an example to bind it to ngModel?

Thanx in advance!

Hi, excuse me for maybe a stupid question, but i have created an modal.component like the create-or-edit-user-modal.component which i open from dropdown in datatable

<div class="btn-group dropdown" normalizePosition>
                                 <button class="dropdown-toggle btn btn-sm btn-primary"
                                                    data-toggle="dropdown"
                                                    aria-haspopup="true"
                                                    aria-expanded="false">
                                                <i class="fa fa-cog"></i><span class="caret"></span> {{l("Actions")}}
                                            </button>
                                            <ul class="dropdown-menu">
                                                <li>
                                                    <a *ngIf="permission.isGranted('Pages.Tenant.Hrm.Employees.Edit')"
                                                       (click)="editEmployeeModal.show(record.id)">{{l('Edit')}}</a>
                                                </li>
                                               
                                            </ul>
                                        </div>

And in my edit-employee-modal.component.ts

show(employeeId?: number): void {
        this._employeeService.getEmployeeForEdit(employeeId).subscribe(employeeResult => {
            this.employee = employeeResult.employee;

            this.getProfilePicture(employeeResult.profilePictureId);

        });
    }

My application layer returns the correct EmployeeEditDto but my Modal doesn't open, no errors in browser console nothing.

What am i missing? How can i debug the show?

Hi, I've extended User with HomeAddress, in EF core 2.0 i load the related entity like this:

var query = UserManager.Users
                .Include(e => e.HomeAddress)
                .Include(e => e.PostalAddress)
                .WhereIf(
                    !input.Filter.IsNullOrWhiteSpace(),
                    u =>
                        u.Name.Contains(input.Filter) ||
                        u.Surname.Contains(input.Filter) ||
                        u.UserName.Contains(input.Filter) ||
                        u.EmailAddress.Contains(input.Filter)
                );

Now in EF Core 2.1 my HomeAddress is empty. What am i forgetting? Thanks in advance

I'm updating my project from Jquery to Angular and i have a usergrid like this:

<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12" *ngFor="let user of coworkers">
                            <div class="mt-card-item">
                                <div class="mt-card-content">
                                    <img src="/Profile/GetProfilePictureById?id={{user.profilePictureId}}" class="card-img" />
                                    <p></p>
                                    <h3 class="mt-card-name">{{user.preferredFullName}}</h3>
                                    <h3 class="mt-card-desc m--font-warning"><i class="m-nav__link-icon la la-phone"></i> {{user.phoneNumber}}</h3>
                                    <h3 class="mt-card-desc m--font-primary">Toestel: {{user.phoneExtension}}</h3>
                                    <h4 class="mt-card-desc m--font-info"><i class="m-nav__link-icon la la-home"></i> {{user.homeAddress.city}}</h4>
                                    <p class="mt-card-desc font-grey-mint">{{user.jobTitle}}</p>
                                </div>
                            </div>
                        </div>

Problem is that profilepicture is not shown, how to show profilepicture in a foreach loop?

Is it possible to search in soft-deleted users only?

i've just updated to 5.2 Mvc/jquery and now datatables are not working. Please advice

Hi, I am on ASP.NET CORE MVC & JQuery v5.0.4, and i have added a Modal with a summernote editor: [http://keenthemes.com/metronic/preview/?page=components/forms/widgets/summernote&demo=default])

In the Metronics demo if you press enter the editor goes to next line, in my modal if you press enter the data is saved and modal closes. How to prevent enter key to do this.

Here is my _AddEmployeeNoteModal.js

(function () {
    app.modals.AddEmployeeNoteModal = function () {

        var _modalManager;
        var _employeeService = abp.services.app.employee;
        var _$form = null;

        this.init = function(modalManager) {
            $('#summernote').summernote({
                height: 150,
                dialogsInBody: true
            });

            _modalManager = modalManager;
            _$form = _modalManager.getModal().find('form[name=EmployeeNoteForm]');
        };

        this.save = function () {
            var employeeNote = _$form.serializeFormToObject();
            var markupContent = $('#summernote').summernote('code');
            employeeNote.content = markupContent;

            _modalManager.setBusy(true);
            _employeeService.addEmployeeNote(
                employeeNote
            ).done(function () {
                _modalManager.close();
                abp.event.trigger('app.addEmployeeNoteModalSaved');
            }).always(function () {
                _modalManager.setBusy(false);
            });
        };
    };
})(jQuery);

Hi, i have added Highcharts library but when running Gulp --prod the highchart files are deleted from /lib/highcharts Can you please give instruction how to add js library. Should i use npm, bower, gulp, candycrush... please clarify

Is it possible to toggle the sidebar from mvc controller? Certain pages i want the sidebar be closed when opening. Do i need to add a ViewBag property to the layout? or is it already build in?

Showing 41 to 50 of 69 entries