info-library 2.10.63 → 2.10.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4354,10 +4354,29 @@
4354
4354
  InfoGridComponent.prototype.getSearch = function () {
4355
4355
  var _this = this;
4356
4356
  this.onbeforesearch.emit();
4357
+ this.messages = [];
4357
4358
  if (this.paged) {
4358
4359
  this.searchmodel.Index = this.paginator.index;
4359
4360
  this.searchmodel.Size = this.size;
4360
4361
  }
4362
+ /** @type {?} */
4363
+ var dataInicial = this.searchmodel["DataInicial"];
4364
+ /** @type {?} */
4365
+ var dataFinal = this.searchmodel["DataFinal"];
4366
+ if (dataInicial != null && dataFinal != null && new Date(dataInicial) > new Date(dataFinal)) {
4367
+ this.messages.push('DataInicialMaiorFinal');
4368
+ this.hideLoad();
4369
+ return;
4370
+ }
4371
+ /** @type {?} */
4372
+ var dataInicio = this.searchmodel["DataInicio"];
4373
+ /** @type {?} */
4374
+ var dataFim = this.searchmodel["DataFim"];
4375
+ if (dataInicio != null && dataFim != null && new Date(dataInicio) > new Date(dataFim)) {
4376
+ this.messages.push('DataInicioMaiorFim');
4377
+ this.hideLoad();
4378
+ return;
4379
+ }
4361
4380
  this._dataAccessService
4362
4381
  .post(this.api, this.searchmodel, this.method)
4363
4382
  .subscribe(( /**