From a2cbe051419ee5c5669a6cf3ebbcaf55c8a44793 Mon Sep 17 00:00:00 2001
From: zhangjianyu <1401542919@qq.com>
Date: 星期六, 03 八月 2024 10:56:23 +0800
Subject: [PATCH] Merge branch 'master' of ssh://115.28.86.8:29418/~admin/ef-p_pro_24_07_23

---
 /dev/null                          |    0 
 Client/范蓉/document/设备结构体.txt       |  150 ++++++++++++++++++++++++++++++++++++++++++++++++++
 Client/范蓉/log/范蓉_2024.8.2.doc      |    0 
 Client/范蓉/document/生产计划和设备管理 .docx |    0 
 4 files changed, 150 insertions(+), 0 deletions(-)

diff --git "a/Client/\350\214\203\350\223\211/document/\347\224\237\344\272\247\350\256\241\345\210\222\345\222\214\350\256\276\345\244\207\347\256\241\347\220\206 .docx" "b/Client/\350\214\203\350\223\211/document/\347\224\237\344\272\247\350\256\241\345\210\222\345\222\214\350\256\276\345\244\207\347\256\241\347\220\206 .docx"
index 494ceed..4338e51 100644
--- "a/Client/\350\214\203\350\223\211/document/\347\224\237\344\272\247\350\256\241\345\210\222\345\222\214\350\256\276\345\244\207\347\256\241\347\220\206 .docx"
+++ "b/Client/\350\214\203\350\223\211/document/\347\224\237\344\272\247\350\256\241\345\210\222\345\222\214\350\256\276\345\244\207\347\256\241\347\220\206 .docx"
Binary files differ
diff --git "a/Client/\350\214\203\350\223\211/document/\350\256\276\345\244\207\347\273\223\346\236\204\344\275\223.txt" "b/Client/\350\214\203\350\223\211/document/\350\256\276\345\244\207\347\273\223\346\236\204\344\275\223.txt"
new file mode 100644
index 0000000..1657f13
--- /dev/null
+++ "b/Client/\350\214\203\350\223\211/document/\350\256\276\345\244\207\347\273\223\346\236\204\344\275\223.txt"
@@ -0,0 +1,150 @@
+enum TypeInfo{
+    DEVICESELECT_REQ, //鏌ョ湅璁惧璇锋眰
+    DEVICESELECT_RES, //鏌ョ湅璁惧鍝嶅簲
+
+    DEVICEADD_REQ, //澧炲姞璁惧璇锋眰
+    DEVICEADD_RES, //澧炲姞璁惧鍝嶅簲
+
+    DEVICEDELETE_REQ, //鍒犻櫎璁惧璇锋眰
+    DEVICEDELETE_RES, //鍒犻櫎璁惧鍝嶅簲
+
+    DEVICEUPDATE_REQ, //淇敼璁惧璇锋眰
+    DEVICEUPDATE_RES, //淇敼璁惧鍝嶅簲
+
+    DEVICESELECTALL_REQ,//鏌ョ湅鍏ㄩ儴璁惧璇锋眰
+    DEVICESELECTALL_RES//鏌ョ湅鍏ㄩ儴璁惧鍝嶅簲
+};
+
+struct Head
+{
+    int type;//鍖哄垎涓嶅悓鍔熻兘缁撴瀯浣�
+    int lenth;//琛ㄧず褰撳墠灏佸寘闀垮害锛屼富瑕佽В鍐冲勾绮樺寘銆佹媶鍖呯殑鎿嶄綔
+  //  int flag;
+};
+
+//璁惧淇℃伅
+struct DeviceData {
+    int   id;  // 璁惧缂栧彿
+    char name[32];  // 璁惧鍚嶇О
+    double longitude; // 璁惧鎵�鍦ㄤ綅缃紙缁忓害锛�
+    double latitude;  //璁惧鎵�鍦ㄤ綅缃紙绾害锛�
+    int status;  // 璁惧鐘舵�� 0锛氳澶囨甯� 1锛氳澶囧紓甯� 2锛氳澶囨崯鍧�
+    double currentEnvironment_humidity;//褰撳墠鐢熶骇鐜婀垮害
+    double currentEnvironment_temperature;//褰撳墠鐢熶骇鐜娓╁害
+};
+
+//鍏ㄩ儴璁惧鏌ヨ璇锋眰缁撴瀯浣�
+struct DeviceSelectAllReq
+{
+    Head head;
+    DeviceData dev;
+    DeviceSelectAllReq() {//鏋勯�犲嚱鏁�
+        head.type = DEVICESELECTALL_REQ;
+        head.lenth = sizeof(DeviceSelectAllReq);
+    }
+};
+
+
+//鍏ㄩ儴璁惧鏌ヨ鍝嶅簲缁撴瀯浣�
+struct DeviceSelectAllRes
+{
+    Head head;
+    int state;//0锛氭煡璇㈡垚鍔� 1锛氭煡璇㈠け璐�
+    DeviceData dev[0]; // 鏌旀�ф暟缁�
+    DeviceSelectAllRes() {
+        head.type = DEVICESELECTALL_RES;
+        head.lenth = sizeof(DeviceSelectAllRes);
+    }
+};
+//璁惧鏌ヨ璇锋眰缁撴瀯浣�
+struct DeviceSelectReq
+{
+    Head head;
+    DeviceData dev;
+    DeviceSelectReq() {//鏋勯�犲嚱鏁�
+        head.type = DEVICESELECT_REQ;
+        head.lenth = sizeof(DeviceSelectReq);
+    }
+};
+
+
+//璁惧鏌ヨ鍝嶅簲缁撴瀯浣�
+struct DeviceSelectRes
+{
+    Head head;
+    int state;//0锛氭煡璇㈡垚鍔� 1锛氭煡璇㈠け璐�
+    DeviceData dev[0]; // 鏌旀�ф暟缁�
+    DeviceSelectRes() {
+        head.type = DEVICESELECT_RES;
+        head.lenth = sizeof(DeviceSelectRes);
+    }
+};
+
+//璁惧澧炲姞璇锋眰缁撴瀯浣�
+struct DeviceAddReq
+{
+    Head head;
+    DeviceData dev;
+    DeviceAddReq() {
+        head.type = DEVICEADD_REQ;
+        head.lenth = sizeof(DeviceAddReq);
+    }
+};
+
+//璁惧澧炲姞鍝嶅簲缁撴瀯浣�
+struct DeviceAddRes
+{
+    Head head;
+    int state;//0锛氭坊鍔犳垚鍔� 1锛氬け璐�
+    DeviceAddRes() {
+        head.type = DEVICEADD_RES;
+        head.lenth = sizeof(DeviceAddRes);
+    }
+};
+
+//璁惧鍒犻櫎璇锋眰缁撴瀯浣�
+struct DeviceDeleteReq
+{
+    Head head;
+    DeviceData dev;
+    DeviceDeleteReq() {
+        head.type = DEVICEDELETE_REQ;
+        head.lenth = sizeof(DeviceDeleteReq);
+    }
+};
+
+//璁惧鍒犻櫎鍝嶅簲缁撴瀯浣�
+struct DeviceDeleteRes
+{
+    Head head;
+    int state;//0锛氬垹闄ゆ垚鍔� 1锛氬垹闄ゅけ璐�
+    DeviceDeleteRes() {
+        head.type = DEVICEDELETE_RES;
+        head.lenth = sizeof(DeviceDeleteRes);
+    }
+};
+
+
+//璁惧淇敼鏇存柊璇锋眰缁撴瀯浣�
+struct DeviceUpdateReq
+{
+    Head head;
+    DeviceData dev;
+    DeviceUpdateReq() {
+        head.type = DEVICEUPDATE_REQ;
+        head.lenth = sizeof(DeviceUpdateReq);
+    }
+};
+
+
+//璁惧淇敼鏇存柊鍝嶅簲缁撴瀯浣�
+struct DeviceUpdateRes
+{
+    Head head;
+    DeviceData dev;
+    int state;//0锛氫慨鏀规垚鍔� 1锛氫慨鏀瑰け璐�
+    DeviceUpdateRes() {
+        head.type = DEVICEUPDATE_RES;
+        head.lenth = sizeof(DeviceUpdateRes);
+    }
+};
\ No newline at end of file
diff --git "a/Client/\350\214\203\350\223\211/log/\350\214\203\350\223\211_2024.8.2.doc" "b/Client/\350\214\203\350\223\211/log/\350\214\203\350\223\211_2024.8.2.doc"
new file mode 100644
index 0000000..92e39bf
--- /dev/null
+++ "b/Client/\350\214\203\350\223\211/log/\350\214\203\350\223\211_2024.8.2.doc"
Binary files differ
diff --git "a/\345\217\202\350\200\203\346\226\207\346\241\243/\351\234\200\346\261\202\345\210\206\346\236\220\346\250\241\346\235\277/\347\224\237\344\272\247\350\256\241\345\210\222\345\222\214\350\256\276\345\244\207\347\256\241\347\220\206.docx" "b/\345\217\202\350\200\203\346\226\207\346\241\243/\351\234\200\346\261\202\345\210\206\346\236\220\346\250\241\346\235\277/\347\224\237\344\272\247\350\256\241\345\210\222\345\222\214\350\256\276\345\244\207\347\256\241\347\220\206.docx"
deleted file mode 100644
index 4f2ff12..0000000
--- "a/\345\217\202\350\200\203\346\226\207\346\241\243/\351\234\200\346\261\202\345\210\206\346\236\220\346\250\241\346\235\277/\347\224\237\344\272\247\350\256\241\345\210\222\345\222\214\350\256\276\345\244\207\347\256\241\347\220\206.docx"
+++ /dev/null
Binary files differ

--
Gitblit v1.8.0