package cn.com.liandisys.ycjt.ggcx.latetrain.model;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 
 *     
 * 项目名称：ycjt-ggcx    
 * 类名称：TrainZWD    
 * 类描述：    
 * 创建人：zhangyn  
 * 创建时间：2017年3月22日 下午4:36:58    
 * 修改人：zhangyn    
 * 修改时间：2017年3月23日 下午2:36:58    
 * 修改备注：    
 * @version     
 *
 */
public class TrainZWD {

    //车次
    private String laterNo;

    //始发站
    private String startStation;

    //始发站发车时间
    private String startTime;

    //终点站
    private String endStation;

    //终点站到站时间
    private String endTime;

    //到站
    private String departStation;

    //到站时间
    private String arrTime;

    //晚点时间
    private String laterTime;

    //计划到站时间
    private String departTimePlan;

    //发车时间
    private String goTime;

    public String getLaterNo() {

        return laterNo;
    }

    public void setLaterNo(String laterNo) {

        this.laterNo = laterNo;
    }

    public String getStartStation() {

        return startStation;
    }

    public void setStartStation(String startStation) {

        this.startStation = startStation;
    }

    public String getStartTime() {

        SimpleDateFormat sdf = new SimpleDateFormat("HHmm");
        SimpleDateFormat sdf2 = new SimpleDateFormat("HH:mm");
        Date time = null;
        String newstartTime;
        try {
            time = (Date) sdf.parse(startTime);
        } catch (ParseException e2) {
            // TODO Auto-generated catch block
            e2.printStackTrace();
        }
        newstartTime = sdf2.format(time);
        return newstartTime;
    }

    public void setStartTime(String startTime) {

        this.startTime = startTime;
    }

    public String getEndStation() {

        return endStation;
    }

    public void setEndStation(String endStation) {

        this.endStation = endStation;
    }

    public String getEndTime() {

        SimpleDateFormat sdf = new SimpleDateFormat("HHmm");
        SimpleDateFormat sdf2 = new SimpleDateFormat("HH:mm");
        Date time = null;
        String newstartTime;
        try {
            time = (Date) sdf.parse(endTime);
        } catch (ParseException e2) {
            // TODO Auto-generated catch block
            e2.printStackTrace();
        }
        newstartTime = sdf2.format(time);
        return newstartTime;
    }

    public void setEndTime(String endTime) {

        this.endTime = endTime;
    }

    public String getDepartStation() {

        return departStation;
    }

    public void setDepartStation(String departStation) {

        this.departStation = departStation;
    }

    public String getArrTime() {

        SimpleDateFormat sdf = new SimpleDateFormat("HHmm");
        SimpleDateFormat sdf2 = new SimpleDateFormat("HH:mm");
        Date time = null;
        String newstartTime;
        try {
            time = (Date) sdf.parse(arrTime);
        } catch (ParseException e2) {
            // TODO Auto-generated catch block
            e2.printStackTrace();
        }
        newstartTime = sdf2.format(time);
        return newstartTime;
    }

    public void setArrTime(String arrTime) {

        this.arrTime = arrTime;
    }

    public String getLaterTime() {

        return laterTime;
    }

    public void setLaterTime(String laterTime) {

        this.laterTime = laterTime;
    }

    public String getDepartTimePlan() {

        SimpleDateFormat sdf = new SimpleDateFormat("HHmm");
        SimpleDateFormat sdf2 = new SimpleDateFormat("HH:mm");
        Date time = null;
        String newstartTime;
        try {
            time = (Date) sdf.parse(departTimePlan);
        } catch (ParseException e2) {
            // TODO Auto-generated catch block
            e2.printStackTrace();
        }
        newstartTime = sdf2.format(time);
        return newstartTime;
    }

    public void setDepartTimePlan(String departTimePlan) {

        this.departTimePlan = departTimePlan;
    }

    public String getGoTime() {

        SimpleDateFormat sdf = new SimpleDateFormat("HHmm");
        SimpleDateFormat sdf2 = new SimpleDateFormat("HH:mm");
        Date time = null;
        String newstartTime;
        try {
            time = (Date) sdf.parse(goTime);
        } catch (ParseException e2) {
            // TODO Auto-generated catch block
            e2.printStackTrace();
        }
        newstartTime = sdf2.format(time);
        return newstartTime;
    }

    public void setGoTime(String goTime) {

        this.goTime = goTime;
    }

}
