typescript 签item.model.ts

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了typescript 签item.model.ts相关的知识,希望对你有一定的参考价值。

import {Participant} from './participant.model';

export class TechnicalResponsible {

  name: string;
  date: string;
  participant: Participant;
  agentUsername: any;

  constructor() {
  }

}
import {Participant} from './participant.model';
import {CheckedItem} from './checked-item.model';

export class SedimentGeneratingActivities {

  id: string;
  erosionDimensions: string;
  erosionType: string;
  locationsWithErosion: string;
  implementedSolutionsExist: string;
  retentionActions: string;
  performedBy: string;
  floodOccurrence: string;
  eventMitigation: string;
  mitigationActions: MitigationActions;
  roadConservationState: string;
  servicePathsConservationState: string;
  pathsAndRoadsMaintenance: string;
  pathsAndRoadsMaintenanceFrequency: string;
  pathsAndRoadsMaintenanceWho: string;
  predominantRelief: string;
  agentUsername: any;
  pathsAndRoadsInterventionType: PathsAndRoadsInterventionType;
  participant: Participant;
  soilType: SoilType;
  erosionSources: Array<ErosionSource>;
  erosionControlSolutions: Array<ErosionControlSolution>;
  actionSedimentRetentions: Array<ActionSedimentRetention>;
  floodOccurrences: Array<FloodOccurrence>;

  constructor() {
    this.soilType = new SoilType();
    this.erosionControlSolutions = [];
    this.actionSedimentRetentions = [];
    this.floodOccurrences = [];
    this.erosionSources = [];
    this.pathsAndRoadsInterventionType = new PathsAndRoadsInterventionType();
  }
}

export class ErosionSource extends CheckedItem {
  erosionType: string;
  erosionDimensions: string;
  sedimentGeneratingActivity: SedimentGeneratingActivities;

  constructor(name, sedimentGeneratingActivity: SedimentGeneratingActivities) {
    super('erosionSource', name);
    this.sedimentGeneratingActivity = sedimentGeneratingActivity;
  }
}

export class ErosionControlSolution extends CheckedItem {
  sedimentGeneratingActivity: SedimentGeneratingActivities;
  constructor(name, sedimentGeneratingActivity: SedimentGeneratingActivities) {
    super('erosionControlSolution', name);
    this.sedimentGeneratingActivity = sedimentGeneratingActivity;
  }
}

export class ActionSedimentRetention extends CheckedItem {
  sedimentGeneratingActivity: SedimentGeneratingActivities;
  constructor(name, sedimentGeneratingActivity: SedimentGeneratingActivities) {
    super('actionSedimentRetention', name);
    this.sedimentGeneratingActivity = sedimentGeneratingActivity;
  }
}

export class FloodOccurrence extends CheckedItem {
  sedimentGeneratingActivity: SedimentGeneratingActivities;
  constructor(name, sedimentGeneratingActivity: SedimentGeneratingActivities) {
    super('floodOccurrence', name);
    this.sedimentGeneratingActivity = sedimentGeneratingActivity;
  }
}

export class PathsAndRoadsInterventionType {
  dryBoxes: boolean;
  barraginhas: boolean;
  mustache: boolean;
  pathsAndRoadsInterventionTypeOther: string;
}

export class MitigationActions {
  mitigationActionsBarraginhas: boolean;
  mitigationActionsDryBoxes: boolean;
  mitigationActionsLevelCords: boolean;
  mitigationActions: string;
}

export class SoilType {
  mud: boolean;
  sandy: boolean;
  seixos: boolean;
  rocky: boolean;
  solTypeOther: string;
}
import {Participant} from './participant.model';
import {CheckedItem} from './checked-item.model';

export class RuralSanitation {

  id: string;
  waterOrigin: string;
  waterOriginWhichRiver: string;
  waterIsBeingTreated: string;
  propertyHasWaterCaptation: string;
  propertyHasWaterCaptationIsInsignificant: string;
  howHappenRainWaterCaptation: string;
  propertyHasRainWaterCaptation: string;
  numberOfResidentsStatic: string;
  numberOfResidentsEventual: string;
  propertyHasSewerTreatment: string;
  propertyHasSewerTreatmentWhich: string;
  propertyHasSewerTreatmentWhoDoesIt: string;
  propertyHasSewerTreatmentType: string;
  whatIsTheDistanceInMetersOfSewerTreatment: string;
  propertyHasSewerTreatmentDestination: string;
  propertySolidWasteDestination: string;
  propertySolidWasteDestinationWhich: string;
  waterCatchmentDistance: string;
  reverseLogisticsWasteDestination: string;
  isCloseToWaterCatchment: string;
  waterCatchmentType: string;
  agentUsername: any;
  participant: Participant;
  waterCaptationDestination: WaterCaptationDestination;
  waterIsBeingTreatedWhichTreatment: WaterIsBeingTreatedWhichTreatment;
  waterBodiesThatReceiveSewageReleases: Array<WaterBodiesThatReceiveSewageReleases>;

  constructor() {
    this.waterIsBeingTreatedWhichTreatment = new WaterIsBeingTreatedWhichTreatment();
    this.waterCaptationDestination = new WaterCaptationDestination();
    this.waterBodiesThatReceiveSewageReleases = [];
  }
}

export class WaterBodiesThatReceiveSewageReleases extends CheckedItem {
  ruralSanitation: RuralSanitation;
  waterBodiesThatReceiveSewageReleasesDestination: string;

  constructor(name, ruralSanitation: RuralSanitation) {
    super('waterBodiesThatReceiveSewageRelease', name);
    this.ruralSanitation = ruralSanitation;
  }
}

export class WaterCaptationDestination {
  humanSupply: boolean;
  dessedentation: boolean;
  irrigationOfCulture: boolean;
  waterCaptationDestinationOther: string;

}

export class WaterIsBeingTreatedWhichTreatment {
  chlorination: boolean;
  sedimentationBox: boolean;
  filtration: boolean;
  waterIsBeingTreatedWhichTreatmentOther: string;
}
import {Participant} from './participant.model';

export class RoadmapCollection {
  id: string;
  roadmapText: string;
  participant: Participant;
  agentUsername: any;

  constructor() {
  }

}
import {Participant} from './participant.model';

export class ProgramParticipation {

  isContemplatedByAnyOtherProgram: string;
  whichProgram: string;
  whichPhase: string;
  participant: Participant;
  agentUsername: any;

  constructor() {
  }

}
import {Participant} from './participant.model';
import {CheckedItem} from './checked-item.model';

export class PermanentPreservationAreas {

  id: string;
  waterBodiesInProperty: string;
  waterBodyMarginsVegetationWhichOne: string;
  waterBodyMarginsHaveVegetation: string;
  propertyHasWaterSource: string;
  agentUsername: string;
  protectionOrRestorationNeeded: string;
  protectionOrRestorationMethodologies: ProtectionOrRestorationMethodologies;
  waterSourcesSupplyOtherProperties: string;
  waterSourcesSupplyOtherPropertiesHowMany: string;
  hillTopsExistInProperty: string;
  predominantTerrainClass: string;
  actionsOnRecoveringWaterSourceAndPPAs: string;
  actionsOnRecoveringWaterSourceAndPPAsWho: string;
  participant: Participant;
  waterCaptationUsage: WaterCaptationUsage;
  actionsOnRecoveringWaterSourceAndPPAsWhich: ActionsOnRecoveringWaterSourceAndPPAsWhich;
  predominantVegetations: Array<PredominantVegetation>;
  predominantTerrainClasses: Array<PredominantTerrainClass>;
  waterSources: Array<WaterSource>;
  hillTops: Array<HillTops>;
  waterRechargeAreas: Array<WaterRechargeAreas>;
  soilUsageInPermanentPreservationAreas: Array<SoilUsageInPermanentPreservationAreas>;
  waterBodies: Array<WaterBodies>;
  waterBodyMarginsHaveVegetations: Array<WaterBodyMarginsHaveVegetation>;

  constructor() {
    this.predominantVegetations = [];
    this.predominantTerrainClasses = [];
    this.waterSources = [];
    this.hillTops = [];
    this.waterRechargeAreas = [];
    this.soilUsageInPermanentPreservationAreas = [];
    this.waterBodies = [];
    this.waterBodyMarginsHaveVegetations = [];
    this.protectionOrRestorationMethodologies = new ProtectionOrRestorationMethodologies();
    this.waterCaptationUsage = new WaterCaptationUsage;
    this.actionsOnRecoveringWaterSourceAndPPAsWhich = new ActionsOnRecoveringWaterSourceAndPPAsWhich();

  }
}

export class PredominantVegetation extends CheckedItem {
  predominantVegetation: string;
  predominantVegetationShowOther: boolean;
  permanentPreservationArea: PermanentPreservationAreas;

  constructor(name, permanentPreservationArea: PermanentPreservationAreas) {
    super('predominantVegetation', name);
    this.permanentPreservationArea = permanentPreservationArea;
  }
}

export class PredominantTerrainClass extends CheckedItem {
  predominantTerrainClass: string;
  predominantTerrainClassShowOther: boolean;
  permanentPreservationArea: PermanentPreservationAreas;

  constructor(name, permanentPreservationArea: PermanentPreservationAreas) {
    super('predominantTerrainClass', name);
    this.permanentPreservationArea = permanentPreservationArea;
  }
}

export class SurroundingVegetation extends CheckedItem {
  surroundingVegetation: string;
  waterSource: string;
  other: string;

  constructor() {
    super('surroundingVegetation');
  }
}

export class WaterSource extends CheckedItem {
  permanentPreservationArea: PermanentPreservationAreas;
  surroundingVegetation: SurroundingVegetation;

  constructor(name, permanentPreservationArea: PermanentPreservationAreas) {
    super('waterSource', name);
    this.permanentPreservationArea = permanentPreservationArea;
  }
}

export class WaterRechargeAreas extends CheckedItem {
  waterRechargeAreas: string;
  permanentPreservationArea: PermanentPreservationAreas;

  constructor(name, permanentPreservationArea: PermanentPreservationAreas) {
    super('waterRechargeArea', name);
    this.permanentPreservationArea = permanentPreservationArea;
  }
}

export class SoilUsageInPermanentPreservationAreas extends CheckedItem {
  soilUsageInPermanentPreservationAreas: string;
  permanentPreservationArea: PermanentPreservationAreas;

  constructor(name, permanentPreservationArea: PermanentPreservationAreas) {
    super('soilUsageInPermanentPreservationArea', name);
    this.permanentPreservationArea = permanentPreservationArea;
  }
}

export class WaterBodies extends CheckedItem {
  waterBodyName: string;
  permanentPreservationArea: PermanentPreservationAreas;

  constructor(name, permanentPreservationArea: PermanentPreservationAreas) {
    super('waterBody', name);
    this.permanentPreservationArea = permanentPreservationArea;
  }
}

export class WaterBodyMarginsHaveVegetation extends CheckedItem {
  waterBodyMarginsVegetationWhichOne: string;
  permanentPreservationArea: PermanentPreservationAreas;

  constructor(name, permanentPreservationArea: PermanentPreservationAreas) {
    super('waterBodyMarginsHaveVegetation', name);
    this.permanentPreservationArea = permanentPreservationArea;
  }
}

export class HillTops extends CheckedItem {
  hillTopsHaveVegetation: string;
  hillTopsHaveVegetationWhich: string;
  hillTopsHaveVegetationWhichShowOther: boolean;
  permanentPreservationArea: PermanentPreservationAreas;

  constructor(name, permanentPreservationArea: PermanentPreservationAreas) {
    super('hillTop', name);
    this.permanentPreservationArea = permanentPreservationArea;
  }
}

export class ActionsOnRecoveringWaterSourceAndPPAsWhich {
  enclosure: boolean;
  totalPlanting: boolean;
  enrichment: boolean;
  others: string;
}

export class WaterCaptationUsage {
  humanSupply: boolean;
  animalDeception: boolean;
  forestry: boolean;
  irrigation: boolean;
  waterCaptationUsageIrrigationType: string;
  waterCaptationUsageOthers: string;
}

export class ProtectionOrRestorationMethodologies {
  protectionOrRestorationMethodologiesEnclosure: boolean;
  protectionOrRestorationMethodologiesTotalPlanting: boolean;
  protectionOrRestorationMethodologiesEnrichment: boolean;
  protectionOrRestorationMethodologiesOther: string;
}
export class Participant {

  id: string;
  ughr: string;
  name: string;
  motherName: string;
  nickname: string;
  cpf: string;
  cnpj: string;
  rg: string;
  birthday: string;
  occupation: string;
  address: string;
  neighborhood: string;
  image: Array<Image>;
  complement: string;
  city: string;
  state: string;
  zipCode: string;
  telephone: string;
  cel: string;
  email: string;
  agentUsername: any;
  ruralProducerCard: string;
  formsToValidate: FormValidationState;
  rev: string;

  constructor() {
    this.id = '';
    this.ughr = '';
    this.name = '';
    this.motherName = '';
    this.nickname = '';
    this.cpf = '';
    this.cnpj = '';
    this.rg = '';
    this.birthday = '';
    this.occupation = '';
    this.address = '';
    this.neighborhood = '';
    this.image = new Array<Image>();
    this.complement = '';
    this.city = '';
    this.state = '';
    this.zipCode = '';
    this.telephone = '';
    this.cel = '';
    this.email = '';
    this.agentUsername = '';
    this.formsToValidate = new FormValidationState();
    this.rev = '';
  }

}

export class Image {
  imageBase64: string;
  constructor() {
  }
}

export class FormValidationState {
  programParticipation: string;
  environmentalRegulation: string;
  environmentalDiagnostics: string;
  permanentPreservationAreas: string;
  ruralSanitation: string;
  sedimentGeneratingActivities: string;



  constructor() {
    this.environmentalRegulation = 'None';
    this.environmentalDiagnostics = 'None';
    this.permanentPreservationAreas = 'None';
    this.ruralSanitation = 'None';
    this.sedimentGeneratingActivities = 'None';
    this.programParticipation = 'None';
  }
}
import {Participant} from './participant.model';

export class Observation {

  text: string;
  participant: Participant;
  agentUsername: any;

  constructor() {
  }

}
import {CheckedItem} from './checked-item.model';
import {Participant} from './participant.model';

export class EnvironmentalRegulation {

  id: string;
  totalArea: string;
  numberOfFiscalModules: number;
  propertyDescription: string;
  registry: Registry;
  category: string;
  categoryOther: string;
  categoryShowOther: boolean;
  city: string;
  complement: string;
  utmDatumProjection: string;
  zone: string;
  haveCar: boolean;
  car: Car = new Car();
  haveWaterGrant: boolean;
  waterGrant: WaterGrant;
  haveLegalReserve: boolean;
  participant: Participant;
  imageRuralProperty: ImageRuralProperty;
  image: ImageRuralProperty;
  totalImovelArea: TotalImovelArea;
  legalReserve: LegalReserve;
  declarationOfTenure: DeclarationOfTenure;
  agentUsername: any;

  constructor() {
    this.imageRuralProperty = new ImageRuralProperty();
    this.legalReserve = new LegalReserve();
    this.waterGrant = new WaterGrant();
    this.car = new Car();
    this.totalImovelArea = new TotalImovelArea();
    this.registry = new Registry();
    this.declarationOfTenure = new DeclarationOfTenure();
  }

}

class LegalReserveRecord {
  registry: string;
  book: string;
  page: string;
}

class DeclarationOfTenure {
  ownershipType: string;
  ownershipDate: string;
  ownershipTime: string;
  nameOfTheDeclarant: string;
}

class LegalReserve {
  area: string;
  percentageOfTheProperty: string;
  isLegalReserveRecord: boolean;
  legalReserveRecord: LegalReserveRecord;

  constructor() {
    this.legalReserveRecord = new LegalReserveRecord();
  }

}

class Registry {
  book: string;
  page: string;
}

class WaterGrant {
  number: string;
  expirationDate: string;
}

class Car {
  professionalRegistry: string;
  registryNumber: string;
  responsibleForTheElaboration: string;
  authorizationCarIsLessThanFourMF: boolean;
  willPaticipateInTheProgramMoreThanFourMF: boolean;
}

class TotalImovelArea {
  value: string;
  type: string;
}

export class ImageRuralProperty extends CheckedItem {
  id: string;
  environmentalRegulation: string;
  constructor(name?: string) {
    super('imageRuralProperty', name);
  }
}
import {Participant} from './participant.model';

export class EnvironmentalDiagnostic {
  mainEconomicActivity: MainEconomicActivity;
  predominantTerrainClass: string;
  haveFixedEmployees: string;
  howManyEmployees: string;
  ownerSocialReality: string;
  ownerSocialRealityOther: string;
  participant: Participant;
  mainEconomicActivityShowOther: boolean;
  ownerSocialRealityShowOther: boolean;
  agentUsername: any;

  constructor() {
    this.mainEconomicActivity = new MainEconomicActivity();
  }
}

export class SwineIndustry {
  numberOfSheds: string;
  numberOfMatrices: string;
  productionType: string;
  productionSystem: string;
  productionSize: string;
  client: string;
  constructor() {
  }
}

export class MilkClient {
  cooperative: boolean;
  industry: boolean;
  finalCostumer: boolean;
  otherClient: string;
  averageMilkSales: string;
}

export class CheeseClient {
  cooperative: boolean;
  shopkeeper: boolean;
  cutter: boolean;
  finalCostumer: boolean;
  otherClient: string;
}


export class DairyFarming {
  areaDairyFarming: string;
  totalNumberOfFlock: string;
  numberOfLactatingCows: string;
  milkProduction: string;
  milkClients: MilkClient;
  cheeseClients: CheeseClient;
  producesCheese: string;
  howManyProductionCheeseNumber: string;
  howManyProductionCheeseSize: string;

  constructor() {
    this.milkClients = new MilkClient();
    this.cheeseClients = new CheeseClient();
  }
}

export class PoultryFarming {
  numberOfSheds: string;
  shedSize: string;
  numberOfHeads: string;
  productionSystem: string;
  productionType: string;
  accommodationPeriod: string;
  productivityWeight: string;
  productivity: string;
  client: string;

}

export class BeefCattle {
  areaBeefCattle: string;
  numberOfHeads: string;
  productionType: string;
  productionSystem: string;
  productionSize: string;
  client: string;
}

export class FruitClient {
  cooperative: boolean;
  market: boolean;
  industry: boolean;
  ceasa: boolean;
  cutter: boolean;
  governmentProgram: boolean;
  others: string;
}

export class Fruticulture {
  areaFruticulture: string;
  irrigates: string;
  fruitType: string;
  production: string;
  fruitClients: FruitClient;
  constructor() {
    this.fruitClients = new FruitClient();
  }
}

export class HortClient {
  cooperative: boolean;
  market: boolean;
  industry: boolean;
  ceasa: boolean;
  cutter: boolean;
  governmentProgram: boolean;
  others: string;
}

export class Horticulture {
  areaHorticulture: string;
  irrigates: string;
  productionType: string;
  productivity: string;
  buySeed: string;
  hortClients: HortClient;
  constructor() {
    this.hortClients = new HortClient();
  }
}

export class Beekeeping {
  numberHives: string;
  productionFocus: string;
  hiveProductivity: string;
  destinationProduction: string;
}

export class ForestryClient {
  cellulose: boolean;
  coal: boolean;
  middleman: boolean;
  sawmill: boolean;
}

export class Forestry {
  tree: string;
  areaForestry: string;
  spacingUsed: string;
  predominantSpecies: string;
  producesCoal: string;
  sellWhom: string;
  productivity: string;
  forestryClients: ForestryClient;
  constructor() {
    this.forestryClients = new ForestryClient();
  }
}

export class CoffeeClient {
  cooperatives: boolean;
  warehouses: boolean;
  brokers: boolean;
  roasters: boolean;
  others: string;
}

export class Coffee {
  species: string;
  averageProductivity: string;
  laborProductivity: string;
  harvestDay: string;
  harvestPeople: string;
  coffeeClients: CoffeeClient;
  constructor() {
    this.coffeeClients = new CoffeeClient();
  }
}

export class Pisciculture {
  species: string;
  productionType: string;
  productivity: string;
  fingerlings: string;
  processing: string;
  client: string;
}

export class SpeciesVivarium {
  native: boolean;
  eucalyptus: boolean;
  pinus: boolean;
  rubberTree: boolean;
  others: string;
}

export class Vivarium {
  size: string;
  client: string;
  productivity: string;
  speciesVivariums: SpeciesVivarium;
  constructor() {
    this.speciesVivariums = new SpeciesVivarium();
  }
}

export class LeisureActivity {
  location: boolean;
  tourism: boolean;
  family: boolean;
}

export class Lazer {
  leisureActivities: LeisureActivity;
  constructor() {
    this.leisureActivities = new LeisureActivity();
  }
}

export class MainEconomicActivity {
  type: string;
  beefCattle: BeefCattle;
  dairyFarming: DairyFarming;
  swineIndustry: SwineIndustry;
  poultryFarming: PoultryFarming;
  fruticulture: Fruticulture;
  horticulture: Horticulture;
  beekeeping: Beekeeping;
  forestry: Forestry;
  coffee: Coffee;
  pisciculture: Pisciculture;
  vivarium: Vivarium;
  lazer: Lazer;

  constructor() {
    this.beefCattle = new BeefCattle();
    this.dairyFarming = new DairyFarming();
    this.swineIndustry = new SwineIndustry();
    this.poultryFarming = new PoultryFarming();
    this.fruticulture = new Fruticulture();
    this.horticulture = new Horticulture();
    this.beekeeping = new Beekeeping();
    this.forestry = new Forestry();
    this.coffee = new Coffee();
    this.pisciculture = new Pisciculture();
    this.vivarium = new Vivarium();
    this.lazer = new Lazer();
  }
}
import {Participant} from './participant.model';

export class DocumentCollection {
  id: string;
  documents: Array<Document>;
  participant: Participant;
  agentUsername: any;

  constructor() {
    this.documents = [];
  }

}

export class Document {
  id: string;
  type: string;
  documentType: string;
  order: number;
  saveCheckedItemSuccess: boolean;
  saveCheckedItemProcess: boolean;
  saveCheckedItemWarning: boolean;
  saveCheckedItemError: boolean;
  saveCheckedItemDeleted: boolean;
  saveCheckedItemDeletedError: boolean;
  number: string;
  description: string;
  imageBase64: string;
  imageUrl: string;
  documentCollection: DocumentCollection;

  constructor(documentCollection: DocumentCollection) {
    this.type = 'document';
    this.documentCollection = documentCollection;
  }
}
export class Coordinate {
  longitude: number;
  latitude: number;

  constructor() {
    this.latitude = 0;
    this.longitude = 0;
  }
}
import {Participant} from './participant.model';
import {CheckedItem} from './checked-item.model';

export class CommentCollection {
  id: string;
  agentUsername: any;
  participant: Participant;
  comments: Array<Comment>;

  constructor() {
    this.comments = [];
  }

}

export class Comment extends CheckedItem {
  title: string;
  description: string;
  imageBase64: string;
  imageUrl: string;
  commentCollection: CommentCollection;

  constructor(commentCollection: CommentCollection) {
    super('comment');
    this.commentCollection = commentCollection;
  }
}
import {Coordinate} from './coordinate.model';

export abstract class CheckedItem {
  id: string;
  name: string;
  label: string;
  type: string;
  order: number;
  imageBase64: string;
  imageUrl: string;
  saveCheckedItemSuccess: boolean;
  saveCheckedItemProcess: boolean;
  saveCheckedItemWarning: boolean;
  saveCheckedItemDeleted: boolean;
  saveCheckedItemDeletedError: boolean;
  saveCheckedItemError: boolean;
  agentUsername: string;
  coordinate: Coordinate;

  constructor(type: string, name?) {
    this.type = type;
    this.name = name;
    this.coordinate = new Coordinate();
  }
}

以上是关于typescript 签item.model.ts的主要内容,如果未能解决你的问题,请参考以下文章

如何解构一个可组合的?

vs2010中怎么把立即签入改为签入

电脑便签敬业签如何在团队便签中上传图片?

升级到 TFS 2017.3 后,门户网站签入不会启动封闭签入构建

TFS命令tf:undo(强制签入别人签出的文件)(转)

ugui 通用页签管理器