module fb { export class MaeklarObjektObjektWizard extends ResourceBase { Upplaatelseform: ChangeTrack; Boendeform: ChangeTrack; KontorId: ChangeTrack; DatumForIntagsforsok: ChangeTrack; UppdragTyp: ChangeTrack; ObjektTypNamn: ChangeTrack; KommunId: ChangeTrack; Adress: ChangeTrack; //Foersamlingskod: ChangeTrack; // Mappas ej Saeljare: ChangeTrack[]; Maeklare: ChangeTrack; Postnr: ChangeTrack; Ort: ChangeTrack; Vaaning: ChangeTrack; AntalRum: ChangeTrack; AntalKvm: ChangeTrack; Maanadsavgift: ChangeTrack; PortKod: ChangeTrack; Anteckningsfaelt: ChangeTrack; TidFoerIntagsfoersoek: ChangeTrack; ExtraKontakt: ChangeTrack; Intagare: ChangeTrack; IntagskaellaId: ChangeTrack; AntalVaaningar: ChangeTrack; Fastighetsbeteckning: ChangeTrack; TomtYta: ChangeTrack; // Projektspecifika MaeklarObjektNamn: ChangeTrack; ObjektTypIdFoerObjektIProjekt: ChangeTrack; // Inte på genererad fil/backends databärare DatumFoerIntagsfoersoekEjBestaemt: ChangeTrack; ObjektTypId: ChangeTrack; Kategori: ChangeTrack; constructor(data: any) { super(data, true, undefined, undefined, false); this.KontorId = new fb.ChangeTrack(null, this, 'KontorId'); this.AntalKvm = new fb.ChangeTrack(null, this, 'AntalKvm'); this.Maanadsavgift = new fb.ChangeTrack(null, this, 'Maanadsavgift'); this.AntalRum = new fb.ChangeTrack(null, this, 'AntalRum'); this.ObjektTypNamn = new fb.ChangeTrack(null, this, 'ObjektTypNamn'); this.Maeklare = new fb.ChangeTrack(null, this, 'Maeklare'); this.ExtraKontakt = new fb.ChangeTrack(null, this, 'ExtraKontakt'); this.Intagare = new fb.ChangeTrack(null, this, 'Intagare'); this.DatumForIntagsforsok = new fb.ChangeTrack(null, this, 'DatumForIntagsforsok'); this.KommunId = new fb.ChangeTrack(null, this, 'KommunId'); this.UppdragTyp = new fb.ChangeTrack(fb.FasITDomain.UppdragTyp.FOERSAELJNING, this, 'UppdragTyp'); this.Adress = new fb.ChangeTrack(null, this, 'Adress'); //this.Foersamlingskod = new fb.ChangeTrack(null, this, 'Foersamlingskod'); this.Postnr = new fb.ChangeTrack(null, this, 'Postnr'); this.Ort = new fb.ChangeTrack(null, this, 'Ort'); this.Vaaning = new fb.ChangeTrack(null, this, 'Vaaning'); this.PortKod = new fb.ChangeTrack(null, this, 'PortKod'); this.Anteckningsfaelt = new fb.ChangeTrack(null, this, 'Anteckningsfaelt'); this.TidFoerIntagsfoersoek = new fb.ChangeTrack(null, this, 'TidFoerIntagsfoersoek'); this.IntagskaellaId = new fb.ChangeTrack(null, this, 'IntagskaellaId'); this.AntalVaaningar = new fb.ChangeTrack(null, this, 'AntalVaaningar'); this.Upplaatelseform = new fb.ChangeTrack(null, this, 'Upplaatelseform'); this.Boendeform = new fb.ChangeTrack(null, this, 'Boendeform'); this.Fastighetsbeteckning = new fb.ChangeTrack(null, this, 'Fastighetsbeteckning'); this.TomtYta = new fb.ChangeTrack(null, this, 'TomtYta'); this.MaeklarObjektNamn = new fb.ChangeTrack(null, this, 'MaeklarObjektNamn'); this.ObjektTypIdFoerObjektIProjekt = new fb.ChangeTrack(null, this, 'ObjektTypIdFoerObjektIProjekt'); this.DatumFoerIntagsfoersoekEjBestaemt = new fb.ChangeTrack(false, this, 'DatumFoerIntagsfoersoekEjBestaemt'); this.ObjektTypId = new fb.ChangeTrack(null, this, 'ObjektTypId'); this.Kategori = new fb.ChangeTrack(fb.FasITDomain.BoendeKategori.PRIVATBOSTAD, this, 'ObjektTypId'); if (!this.Saeljare) { this.Saeljare = []; } this.validation(); } validation() { this.Maeklare.required = true; this.Intagare.required = true; this.UppdragTyp.required = true; this.Boendeform.required = true; this.Upplaatelseform.required = true; this.ObjektTypId.required = true; this.MaeklarObjektNamn.maxLength = 40; this.PortKod.maxLength = 10; } } }