9度通讯程序适用于9度多组设备
Administrator
2023-12-27 c736aaea5522e295b42676f094d313e7f6a4afb4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
package com.dev.fbs9009;
 
import java.io.File;
import java.util.Date;
 
public class LD_updateState {
    
    private int dev_id;                                            //ÐèÒª¸üÐÂÉ豸µÄid
    private String upfileName = "E51_DFU.SM5";                    //¸üÐÂÎļþµÄÃû³Æ
    private boolean update_en;                                    //¸üÐÂÎļþʹÄÜ                false:²»¸üР        true:¸üÐÂ
    private boolean send_upfile_ok;                                //·¢ËÍÉý¼¶ÎļþÊÇ·ñ³É¹¦
    private int countpackage;                                    //Êý¾Ý×ܰüÊý
    private int nowpackagenum;                                    //µ±Ç°·¢ËͰüµÄË÷Òý
    private Date updatetime;                                    //Éý¼¶ÏµÍ³Ê±¼ä
    private Date starttime;                                        //Éý¼¶¿ªÊ¼Ê±¼ä
    private int stopreason;                                        //ʧ°ÜÔ­Òò
    private String note;                                        //±¸×¢
    
    private File upFile;                                        //Éý¼¶Îļþ                                        
    private long fileCount;                                        //Éý¼¶Îļþ°üµÄ×Ü×Ö½ÚÊý
    public LD_updateState() {
        
    }    
    
    public LD_updateState(int dev_id) {
        this.dev_id = dev_id;
        this.update_en = false;
        this.send_upfile_ok = false;
        this.countpackage = 0;
        this.nowpackagenum = 0;
        this.updatetime = new Date();
        this.starttime = new Date();
        this.stopreason = 0;
        this.upFile = new File(upfileName);
    }
    
    public int getDev_id() {
        return dev_id;
    }
    public void setDev_id(int dev_id) {
        this.dev_id = dev_id;
    }
    public String getUpfileName() {
        return upfileName;
    }
    public void setUpfileName(String upfileName) {
        this.upFile = new File(upfileName);
        this.upfileName = upfileName;
    }
    public boolean isUpdate_en() {
        return update_en;
    }
    public void setUpdate_en(boolean update_en) {
        this.update_en = update_en;
    }
    public boolean isSend_upfile_ok() {
        return send_upfile_ok;
    }
    public void setSend_upfile_ok(boolean send_upfile_ok) {
        this.send_upfile_ok = send_upfile_ok;
    }
    public int getStopreason() {
        return stopreason;
    }
    public void setStopreason(int stopreason) {
        this.stopreason = stopreason;
    }
    public int getCountpackage() {
        return countpackage;
    }
    public void setCountpackage(int countpackage) {
        this.countpackage = countpackage;
    }
    public int getNowpackagenum() {
        return nowpackagenum;
    }
    public void setNowpackagenum(int nowpackagenum) {
        this.nowpackagenum = nowpackagenum;
    }
    
    public void setNowpackagenum() {
        this.nowpackagenum = this.nowpackagenum+1;
    }
    
    public Date getUpdatetime() {
        return updatetime;
    }
    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }
    public String getNote() {
        return note;
    }
    public void setNote(String note) {
        this.note = note;
    }
 
    public File getUpFile() {
        return upFile;
    }
 
    public void setUpFile(File upFile) {
        this.upFile = upFile;
    }
 
    public long getFileCount() {
        return fileCount;
    }
 
    public void setFileCount(long fileCount) {
        this.fileCount = fileCount;
    }
    
    
 
    public Date getStarttime() {
        return starttime;
    }
 
    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }
 
    @Override
    public String toString() {
        return "LD_updateState [dev_id=" + dev_id + ", upfileName=" + upfileName + ", update_en=" + update_en
                + ", send_upfile_ok=" + send_upfile_ok + ", countpackage=" + countpackage + ", nowpackagenum="
                + nowpackagenum + ", updatetime=" + updatetime + ", stopreason=" + stopreason + ", note=" + note + "]";
    }    
}