26 lines
768 B
TypeScript
26 lines
768 B
TypeScript
import { Base } from './base.model';
|
|
import { UntypedFormBuilder, Validators, UntypedFormGroup, FormControl } from '@angular/forms';
|
|
import { HttpClient } from '@angular/common/http';
|
|
import { environment } from 'src/environments/environment';
|
|
import { DataService } from '../services/data.service';
|
|
import { map } from 'rxjs';
|
|
|
|
export class DataRow extends Base {
|
|
code?: string;
|
|
value?: number;
|
|
desc1?: string;
|
|
desc2?: string;
|
|
desc3?: string;
|
|
desc4?: string;
|
|
desc5?: string;
|
|
|
|
constructor(data: Partial<DataRow> = {}) {
|
|
super();
|
|
Object.assign(this, data);
|
|
}
|
|
|
|
override deserialize(input: any): this {
|
|
Object.assign(this, Object.assign(this, super.deserialize(input)));
|
|
return this;
|
|
}
|
|
} |