I have different dashboards, based on the selected Tenant, how do i route / navigate to the correct dashboard? I have one db
I know how to do it in MVC, but not in Angular
Thanks in advance
Thnx! you are the best!
I'm sorry, but i don't know what you mean? You mean live database?
I have about 75 clinics in my database, clinic is an extension of organizationunit. i have added Address, Phone etc. All crud operations work from application layer.
` public class ClinicClosedCheckWorker : PeriodicBackgroundWorkerBase, ISingletonDependency { private const int CheckPeriodAsMilliseconds = 1 * 60 * 60 * 24 * 1000; //1 day
private readonly IRepository<Clinic, long> _clinicRepository;
private readonly OrganizationUnitManager _organizationUnitManager;
public ClinicClosedCheckWorker(
AbpTimer timer,
IRepository<Clinic, long> clinicRepository,
OrganizationUnitManager organizationUnitManager
) : base(timer)
{
_clinicRepository = clinicRepository;
_organizationUnitManager = organizationUnitManager;
Timer.Period = CheckPeriodAsMilliseconds;
Timer.RunOnStart = true;
LocalizationSourceName = PhoogleConsts.LocalizationSourceName;
}
protected override void DoWork()
{
var utcNow = Clock.Now.ToUniversalTime();
var closedClinics = _clinicRepository.GetAllList(
clinic => clinic.ClosingDate != null);
foreach (var clinic in closedClinics)
{
try
{
if (clinic.ClosingDate <= utcNow)
{
_organizationUnitManager.Delete(clinic.Id);
}
}
catch (Exception exception)
{
Logger.Error($"Clinic is gesloten maar kan niet worden verwijderd");
Logger.Error(exception.Message, exception);
}
}
}
}
`
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
Looks great guys! Well done!
Thanks, I fixed it with
html
<input type="text" class="form-control" bsDatepicker [bsValue]="bsValue" [(ngModel)]="employee.dateOfBirth" />
and in ts
show(employeeId?: number): void {
this._employeeService.getEmployeeForEdit(employeeId).subscribe(employeeResult => {
this.employee = employeeResult.employee;
this.jobTitles = employeeResult.jobTitles;
this.getProfilePicture(employeeResult.profilePictureId);
this.bsValue = moment(this.employee.dateOfBirth, 'YYYY-MM-DD').toDate();
this.active = true;
this.modal.show();
});
}
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!
<cite>yekalkan: </cite> Adding the lines below to show method may help.
this.active = true; this.modal.show();
Thanks! that was stupid ;-)