Newer
Older
PgInterface / src / main / java / com / casic / PgInterface / devTable / dto / PipeGalleryDto.java
xiaowei on 21 Dec 2017 1 KB 按资产表修改设备表
package com.casic.PgInterface.devTable.dto;

import com.casic.PgInterface.devTable.domain.PipeGallery;

import java.io.Serializable;

/**
 * Created by yxw on 2017/11/2.
 */
public class PipeGalleryDto implements Serializable {

    private String id;
    private String pgName;//管廊名称
    private String pgPartition;//分区名称
    private String active;//状态位

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPgName() {
        return pgName;
    }

    public void setPgName(String pgName) {
        this.pgName = pgName;
    }

    public String getActive() {
        return active;
    }

    public void setActive(String active) {
        this.active = active;
    }

    public String getPgPartition() {
        return pgPartition;
    }

    public void setPgPartition(String pgPartition) {
        this.pgPartition = pgPartition;
    }

    public PipeGalleryDto(PipeGallery pipeGallery)
    {
        this.setId(String.valueOf(pipeGallery.getId()));
        this.setPgName(pipeGallery.getPgName());
        this.setPgPartition(pipeGallery.getPgPartitionId().getParName());
        this.setActive(String.valueOf(pipeGallery.getActive()));
    }

}