package com.eactive.eai.rms.onl.manage.serviceinfo.company;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

@Data
public class CompanyUI {

	@JsonProperty("GROUPCOCD")
	private String groupCoCd;

	@JsonProperty("COMPANYCODE")
	private String companyCode;

	@JsonProperty("APPCODE")
	private String appCode;

	@JsonProperty("BZWKDSTCODE")
	private String bzwkDstcode; // id

	@JsonProperty("BZWKCONTACTNAME")
	private String bzwkContactName;

	@JsonProperty("BZWKCONTACTPERSON")
	private String bzwkContactPerson;

	@JsonProperty("BZWKNAME")
	private String bzwkName;

	@JsonProperty("COMPANYITCONTACTNAME")
	private String companyItContactName;

	@JsonProperty("COMPANYITCONTACTTELNO")
	private String companyItContactTelNo;

	@JsonProperty("COMPANYNAME")
	private String companyName;

	@JsonProperty("CONNETINSTICODE")
	private String conNetInstiCode;

	@JsonProperty("CONNETINSTICODENAME")
	private String conNetInstiCodeName;

	@JsonProperty("ITCONTACTPOINTNAME")
	private String itContactPointName;

	@JsonProperty("ITCONTACTPOINTPERSON1")
	private String itContactPointPerson1;

	@JsonProperty("ITCONTACTPOINTPERSON2")
	private String itContactPointPerson2;

	@JsonProperty("ONLINEYN")
	private String onlineYn;

	public String getBzwkNameWithCode() {
		if (this.getBzwkDstcode() != null && this.getBzwkName() != null) {
			return "[" + this.getBzwkDstcode() + "] " + this.getBzwkName();
		}
		return null;
	}
}
