From b2316798d7248dfb523c71d487f7c36256471cd0 Mon Sep 17 00:00:00 2001
From: 野心家 <1051256694@qq.com>
Date: 星期三, 01 三月 2023 10:25:01 +0800
Subject: [PATCH] phpswcs创建

---
 src/main/java/com/zy/asrs/controller/SiteController.java    |   28 
 src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java |  130 +++---
 src/main/webapp/static/js/console.map.js                    | 1032 +++++++++++++++++++++++-------------------------
 src/main/java/com/zy/core/MainProcess.java                  |    8 
 src/main/resources/application.yml                          |   32 
 5 files changed, 587 insertions(+), 643 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/SiteController.java b/src/main/java/com/zy/asrs/controller/SiteController.java
index c189878..910788e 100644
--- a/src/main/java/com/zy/asrs/controller/SiteController.java
+++ b/src/main/java/com/zy/asrs/controller/SiteController.java
@@ -41,20 +41,20 @@
     private BasDevpService basDevpService;
 
 
-    @GetMapping("/io/mode/info/site")
-    @ManagerAuth(memo = "鍏ュ嚭搴撴ā寮�")
-    public R ioMode() {
-        List<Map<String, Object>> res = new ArrayList<>();
-        for (DevpSlave devp : slaveProperties.getDevp()) {
-            SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, devp.getId());
-            Map<String, Object> map2 = new HashMap<>();
-            map2.put("floor", 2);
-            map2.put("modeVal", devpThread.ioModeOf2F.id);
-            map2.put("modeDesc", devpThread.ioModeOf2F.desc);
-            res.add(map2);
-        }
-        return R.ok().add(res);
-    }
+//    @GetMapping("/io/mode/info/site")
+//    @ManagerAuth(memo = "鍏ュ嚭搴撴ā寮�")
+//    public R ioMode() {
+//        List<Map<String, Object>> res = new ArrayList<>();
+//        for (DevpSlave devp : slaveProperties.getDevp()) {
+//            SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, devp.getId());
+//            Map<String, Object> map2 = new HashMap<>();
+//            map2.put("floor", 2);
+//            map2.put("modeVal", devpThread.ioModeOf2F.id);
+//            map2.put("modeDesc", devpThread.ioModeOf2F.desc);
+//            res.add(map2);
+//        }
+//        return R.ok().add(res);
+//    }
 
     @PostMapping("/table/site")
     @ManagerAuth(memo = "绔欑偣淇℃伅琛�")
diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
index 98acb5e..95435d8 100644
--- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -315,9 +315,9 @@
                 }
 
 //                // 鍏ュ嚭搴撴ā寮忓垽鏂�
-                if (inSta.getStaNo() == 203 && devpThread.ioModeOf2F != IoModeType.PAKIN_MODE) {
-                    continue;
-                }
+//                if (inSta.getStaNo() == 203 && devpThread.ioModeOf2F != IoModeType.PAKIN_MODE) {
+//                    continue;
+//                }
 
                 // 鍒ゆ柇鏄惁婊¤冻鍏ュ簱鏉′欢
                 if (staProtocol.isAutoing() && staProtocol.isLoading() && staProtocol.isInEnable()
@@ -861,9 +861,9 @@
 
 //            // 鍏ュ嚭搴撴ā寮忓垽鏂�
 //            if (devpThread.ioMode != IoModeType.PAKOUT_MODE) { continue; }
-                if (wrkMast.getStaNo() == 204 && devpThread.ioModeOf2F != IoModeType.PAKOUT_MODE) {
-                    continue;
-                }
+//                if (wrkMast.getStaNo() == 204 && devpThread.ioModeOf2F != IoModeType.PAKOUT_MODE) {
+//                    continue;
+//                }
 
                 // 鏌ヨ绔欑偣璇︾粏淇℃伅
                 BasDevp staDetl = basDevpService.selectById(crnStn.getStaNo());
@@ -2058,65 +2058,65 @@
     /**
      * 鍏ュ嚭搴撴ā寮忓垏鎹㈠嚱鏁�
      */
-    public synchronized void ioConvert() {
-        try {
-            // 鏍规嵁杈撻�佺嚎plc閬嶅巻
-            for (DevpSlave devp : slaveProperties.getDevp()) {
-                SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, devp.getId());
-
-                for (DevpSlave.Sta inSta : devp.getInSta()) {
-                    if (inSta.getStaNo() == 2) {
-                        continue;
-                    }
-                    WrkMast pakout = wrkMastMapper.selectWorkingPakout(inSta.getStaNo());
-                    switch (inSta.getStaNo()) {
-                        case 203://1F
-                            if (pakout != null) {
-                                if (devpThread.ioModeOf2F != IoModeType.PAKOUT_MODE) {
-                                    // 鍑哄簱鍒囨崲涓�
-                                    devpThread.ioModeOf2F = IoModeType.PAKOUT_BOOTING;
-                                    WrkMast pakin = wrkMastMapper.selectWorkingPakin(inSta.getStaNo());
-                                    if (pakin == null && !devpThread.getStation().get(inSta.getStaNo()).isLoading()
-                                            && !devpThread.getStation().get(inSta.getStaNo() + 1).isLoading()
-                                            && devpThread.getStation().get(inSta.getStaNo() + 1).getWorkNo() == 0) {
-                                        // 鍑哄簱妯″紡
-                                        devpThread.ioModeOf2F = IoModeType.PAKOUT_MODE;
-                                    }
-                                }
-                            } else {
-                                // 鍏ュ簱妯″紡
-                                devpThread.ioModeOf2F = IoModeType.PAKIN_MODE;
-                            }
-                            break;
-                        case 401://1F
-                            if (pakout != null) {
-                                if (devpThread.ioModeOf4F != IoModeType.PAKOUT_MODE) {
-                                    // 鍑哄簱鍒囨崲涓�
-                                    devpThread.ioModeOf4F = IoModeType.PAKOUT_BOOTING;
-                                    WrkMast pakin = wrkMastMapper.selectWorkingPakin(inSta.getStaNo());
-                                    if (pakin == null && !devpThread.getStation().get(inSta.getStaNo()).isLoading()
-                                            && !devpThread.getStation().get(inSta.getStaNo() + 1).isLoading()
-                                            && devpThread.getStation().get(inSta.getStaNo() + 1).getWorkNo() == 0) {
-                                        // 鍑哄簱妯″紡
-                                        devpThread.ioModeOf4F = IoModeType.PAKOUT_MODE;
-                                    }
-                                }
-                            } else {
-                                // 鍏ュ簱妯″紡
-                                devpThread.ioModeOf4F = IoModeType.PAKIN_MODE;
-                            }
-                            break;
-                    }
-                }
-
-            }
-
-        } catch (Exception e) {
-            e.printStackTrace();
-        }
-
-
-    }
+//    public synchronized void ioConvert() {
+//        try {
+//            // 鏍规嵁杈撻�佺嚎plc閬嶅巻
+//            for (DevpSlave devp : slaveProperties.getDevp()) {
+//                SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, devp.getId());
+//
+//                for (DevpSlave.Sta inSta : devp.getInSta()) {
+//                    if (inSta.getStaNo() == 2) {
+//                        continue;
+//                    }
+//                    WrkMast pakout = wrkMastMapper.selectWorkingPakout(inSta.getStaNo());
+//                    switch (inSta.getStaNo()) {
+//                        case 203://1F
+//                            if (pakout != null) {
+//                                if (devpThread.ioModeOf2F != IoModeType.PAKOUT_MODE) {
+//                                    // 鍑哄簱鍒囨崲涓�
+//                                    devpThread.ioModeOf2F = IoModeType.PAKOUT_BOOTING;
+//                                    WrkMast pakin = wrkMastMapper.selectWorkingPakin(inSta.getStaNo());
+//                                    if (pakin == null && !devpThread.getStation().get(inSta.getStaNo()).isLoading()
+//                                            && !devpThread.getStation().get(inSta.getStaNo() + 1).isLoading()
+//                                            && devpThread.getStation().get(inSta.getStaNo() + 1).getWorkNo() == 0) {
+//                                        // 鍑哄簱妯″紡
+//                                        devpThread.ioModeOf2F = IoModeType.PAKOUT_MODE;
+//                                    }
+//                                }
+//                            } else {
+//                                // 鍏ュ簱妯″紡
+//                                devpThread.ioModeOf2F = IoModeType.PAKIN_MODE;
+//                            }
+//                            break;
+//                        case 401://1F
+//                            if (pakout != null) {
+//                                if (devpThread.ioModeOf4F != IoModeType.PAKOUT_MODE) {
+//                                    // 鍑哄簱鍒囨崲涓�
+//                                    devpThread.ioModeOf4F = IoModeType.PAKOUT_BOOTING;
+//                                    WrkMast pakin = wrkMastMapper.selectWorkingPakin(inSta.getStaNo());
+//                                    if (pakin == null && !devpThread.getStation().get(inSta.getStaNo()).isLoading()
+//                                            && !devpThread.getStation().get(inSta.getStaNo() + 1).isLoading()
+//                                            && devpThread.getStation().get(inSta.getStaNo() + 1).getWorkNo() == 0) {
+//                                        // 鍑哄簱妯″紡
+//                                        devpThread.ioModeOf4F = IoModeType.PAKOUT_MODE;
+//                                    }
+//                                }
+//                            } else {
+//                                // 鍏ュ簱妯″紡
+//                                devpThread.ioModeOf4F = IoModeType.PAKIN_MODE;
+//                            }
+//                            break;
+//                    }
+//                }
+//
+//            }
+//
+//        } catch (Exception e) {
+//            e.printStackTrace();
+//        }
+//
+//
+//    }
 
     public synchronized void outOfDevp() {
         List<WrkMast> wrkMasts = wrkMastMapper.selectPick();
diff --git a/src/main/java/com/zy/core/MainProcess.java b/src/main/java/com/zy/core/MainProcess.java
index bd5826d..c029e94 100644
--- a/src/main/java/com/zy/core/MainProcess.java
+++ b/src/main/java/com/zy/core/MainProcess.java
@@ -78,10 +78,10 @@
 
                     // 鍏朵粬  ===>> 鍏ュ嚭搴撴ā寮忓垏鎹�
                     i++;
-                    if (i > 1) {
-                        mainService.ioConvert();
-                        i = 0;
-                    }
+//                    if (i > 1) {
+//                        mainService.ioConvert();
+//                        i = 0;
+//                    }
 
                 } catch (Exception e) {
                     e.printStackTrace();
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index e6e5ae1..60b7887 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -9,7 +9,7 @@
   datasource:
     driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
 #    url: jdbc:sqlserver://10.10.10.100:1433;databasename=stasrs
-    url: jdbc:sqlserver://localhost:1433;databasename=phpsasrs
+    url: jdbc:sqlserver://192.168.4.15:1433;databasename=phpsasrs
     username: sa
     password: sa@123
   mvc:
@@ -62,13 +62,6 @@
       row: 1
       bay: 1
       lev: 1
-    # 鍫嗗灈鏈哄嚭搴撶珯鐐�1
-    crnOutStn[0]:
-      devpPlcId: ${wcs-slave.devp[0].id}
-      staNo: 107
-      row: 2
-      bay: 1
-      lev: 1
     # 鍫嗗灈鏈哄叆搴撶珯鐐�2
     crnInStn[1]:
       devpPlcId: ${wcs-slave.devp[1].id}
@@ -76,18 +69,25 @@
       row: 1
       bay: 1
       lev: 1
-    # 鍫嗗灈鏈哄嚭搴撶珯鐐�2
-    crnOutStn[1]:
-      devpPlcId: ${wcs-slave.devp[1].id}
-      staNo: 207
-      row: 2
-      bay: 1
-      lev: 1
     # 鍫嗗灈鏈哄叆搴撶珯鐐�3
     crnInStn[2]:
       devpPlcId: ${wcs-slave.devp[2].id}
       staNo: 306
       row: 1
+      bay: 1
+      lev: 1
+    # 鍫嗗灈鏈哄嚭搴撶珯鐐�1
+    crnOutStn[0]:
+      devpPlcId: ${wcs-slave.devp[0].id}
+      staNo: 107
+      row: 2
+      bay: 1
+      lev: 1
+    # 鍫嗗灈鏈哄嚭搴撶珯鐐�2
+    crnOutStn[1]:
+      devpPlcId: ${wcs-slave.devp[1].id}
+      staNo: 207
+      row: 2
       bay: 1
       lev: 1
     # 鍫嗗灈鏈哄嚭搴撶珯鐐�3
@@ -510,3 +510,5 @@
     id: 9
     ip: 10.10.10.201
     port: 5005
+
+
diff --git a/src/main/webapp/static/js/console.map.js b/src/main/webapp/static/js/console.map.js
index 454caa5..dea8820 100644
--- a/src/main/webapp/static/js/console.map.js
+++ b/src/main/webapp/static/js/console.map.js
@@ -4,550 +4,492 @@
     "crnCount": 3,
     "stbCount": 39,
     "hpPosition": 1,
-    "minBayNo": 1,
+    "minBayNo": 2,
     "floors": 3,
-    "racks": [
-        {
-            "type": "rack",
-            "id": "rack6",
-            "top": 344,
-            "left": 193,
-            "width": 796,
-            "height": 23,
-            "minBayNo": 1,
-            "maxBayNo": 35
-        },
-        {
-            "type": "rack",
-            "id": "rack5",
-            "top": 284,
-            "left": 193,
-            "width": 796,
-            "height": 23,
-            "minBayNo": 1,
-            "maxBayNo": 35
-        },
-        {
-            "type": "rack",
-            "id": "rack4",
-            "top": 260,
-            "left": 193,
-            "width": 796,
-            "height": 23,
-            "minBayNo": 1,
-            "maxBayNo": 35
-        },
-        {
-            "type": "rack",
-            "id": "rack1",
-            "top": 119,
-            "left": 193,
-            "width": 796,
-            "height": 23,
-            "minBayNo": 1,
-            "maxBayNo": 35
-        },
-        {
-            "type": "rack",
-            "id": "rack2",
-            "top": 176,
-            "left": 193,
-            "width": 796,
-            "height": 23,
-            "minBayNo": 1,
-            "maxBayNo": 35
-        },
-        {
-            "type": "rack",
-            "id": "rack3",
-            "top": 200,
-            "left": 193,
-            "width": 796,
-            "height": 23,
-            "minBayNo": 1,
-            "maxBayNo": 35
-        }
-    ],
-    "rackDescs": [
-        {
-            "type": "rackDescs",
-            "id": "lb_desc16",
-            "text": "#6",
-            "top": 344,
-            "left": 138,
-            "width": 33,
-            "height": 23
-        }
-    ],
-    "crns": [
-        {
-            "type": "track",
-            "id": "lb_track4",
-            "text": "",
-            "top": 97,
-            "left": 1090,
-            "width": 3,
-            "height": 290
-        },
-        {
-            "type": "track",
-            "id": "lb_track5",
-            "text": "",
-            "top": 97,
-            "left": 1119,
-            "width": 3,
-            "height": 290
-        },
-        {
-            "type": "crane",
-            "id": "crn-3",
-            "text": "3",
-            "top": 316,
-            "left": 466,
-            "width": 93,
-            "height": 22
-        },
-        {
-            "type": "track",
-            "id": "lb_track3",
-            "text": "",
-            "top": 327,
-            "left": 172,
-            "width": 850,
-            "height": 2
-        },
-        {
-            "type": "crane",
-            "id": "crn-2",
-            "text": "2",
-            "top": 232,
-            "left": 466,
-            "width": 93,
-            "height": 22
-        },
-        {
-            "type": "track",
-            "id": "lb_track1",
-            "text": "",
-            "top": 160,
-            "left": 177,
-            "width": 850,
-            "height": 2
-        },
-        {
-            "type": "track",
-            "id": "lb_track2",
-            "text": "",
-            "top": 243,
-            "left": 172,
-            "width": 850,
-            "height": 2
-        },
-        {
-            "type": "crane",
-            "id": "crn-1",
-            "text": "1",
-            "top": 151,
-            "left": 471,
-            "width": 93,
-            "height": 22
-        }
-    ],
-    "areas": [
-        {
-            "type": "Control_floor",
-            "id": "tabControl_floor1",
-            "text": "妤煎眰",
-            "top": 66,
-            "left": 80,
-            "width": 1252,
-            "height": 654,
-            "floors": [
-                {
-                    "type": "floor",
-                    "id": "page_floor1",
-                    "text": "1F",
-                    "top": 4,
-                    "left": 22,
-                    "width": 1226,
-                    "height": 646,
-                    "stns": [
-                        {
-                            "type": "stn",
-                            "id": "site-100",
-                            "text": "100",
-                            "top": 176,
-                            "left": 1206,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-102",
-                            "text": "102",
-                            "top": 237,
-                            "left": 1206,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-101",
-                            "text": "101",
-                            "top": 176,
-                            "left": 1140,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-112",
-                            "text": "112",
-                            "top": 154,
-                            "left": 1073,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-105",
-                            "text": "105",
-                            "top": 284,
-                            "left": 1140,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-103",
-                            "text": "103",
-                            "top": 237,
-                            "left": 1140,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-110",
-                            "text": "110",
-                            "top": 284,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-108",
-                            "text": "108",
-                            "top": 200,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-109",
-                            "text": "109",
-                            "top": 260,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-104",
-                            "text": "104",
-                            "top": 284,
-                            "left": 1206,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-107",
-                            "text": "107",
-                            "top": 176,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-106",
-                            "text": "106",
-                            "top": 119,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-111",
-                            "text": "111",
-                            "top": 344,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        }
-                    ]
-                },
-                {
-                    "type": "floor",
-                    "id": "page_floor2",
-                    "text": "2F",
-                    "top": 4,
-                    "left": 22,
-                    "width": 1226,
-                    "height": 646,
-                    "stns": [
-                        {
-                            "type": "stn",
-                            "id": "site-200",
-                            "text": "200",
-                            "top": 176,
-                            "left": 1206,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-202",
-                            "text": "202",
-                            "top": 237,
-                            "left": 1206,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-201",
-                            "text": "201",
-                            "top": 176,
-                            "left": 1140,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-212",
-                            "text": "212",
-                            "top": 154,
-                            "left": 1073,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-205",
-                            "text": "205",
-                            "top": 284,
-                            "left": 1140,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-203",
-                            "text": "203",
-                            "top": 237,
-                            "left": 1140,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-210",
-                            "text": "210",
-                            "top": 284,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-208",
-                            "text": "208",
-                            "top": 200,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-209",
-                            "text": "209",
-                            "top": 260,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-204",
-                            "text": "204",
-                            "top": 284,
-                            "left": 1206,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-207",
-                            "text": "207",
-                            "top": 176,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-206",
-                            "text": "206",
-                            "top": 119,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-211",
-                            "text": "211",
-                            "top": 344,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        }
-                    ]
-                },
-                {
-                    "type": "floor",
-                    "id": "page_floor3",
-                    "text": "3F",
-                    "top": 4,
-                    "left": 22,
-                    "width": 1226,
-                    "height": 646,
-                    "stns": [
-                        {
-                            "type": "stn",
-                            "id": "site-300",
-                            "text": "300",
-                            "top": 176,
-                            "left": 1206,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-302",
-                            "text": "302",
-                            "top": 237,
-                            "left": 1206,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-301",
-                            "text": "301",
-                            "top": 176,
-                            "left": 1140,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-312",
-                            "text": "312",
-                            "top": 154,
-                            "left": 1073,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-305",
-                            "text": "305",
-                            "top": 284,
-                            "left": 1140,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-303",
-                            "text": "303",
-                            "top": 237,
-                            "left": 1140,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-310",
-                            "text": "310",
-                            "top": 284,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-308",
-                            "text": "308",
-                            "top": 200,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-309",
-                            "text": "309",
-                            "top": 260,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-304",
-                            "text": "304",
-                            "top": 284,
-                            "left": 1206,
-                            "width": 65,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-307",
-                            "text": "307",
-                            "top": 176,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-306",
-                            "text": "306",
-                            "top": 119,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        },
-                        {
-                            "type": "stn",
-                            "id": "site-311",
-                            "text": "311",
-                            "top": 344,
-                            "left": 991,
-                            "width": 80,
-                            "height": 23
-                        }
-                    ]
-                }
-            ]
-        }
-    ]
+    "racks": [{
+        "type": "rack",
+        "id": "rack6",
+        "top": 344,
+        "left": 193,
+        "width": 796,
+        "height": 23,
+        "minBayNo": 2,
+        "maxBayNo": 35
+    }, {
+        "type": "rack",
+        "id": "rack5",
+        "top": 284,
+        "left": 193,
+        "width": 796,
+        "height": 23,
+        "minBayNo": 2,
+        "maxBayNo": 35
+    }, {
+        "type": "rack",
+        "id": "rack4",
+        "top": 260,
+        "left": 193,
+        "width": 796,
+        "height": 23,
+        "minBayNo": 2,
+        "maxBayNo": 35
+    }, {
+        "type": "rack",
+        "id": "rack1",
+        "top": 119,
+        "left": 193,
+        "width": 796,
+        "height": 23,
+        "minBayNo": 2,
+        "maxBayNo": 35
+    }, {
+        "type": "rack",
+        "id": "rack2",
+        "top": 176,
+        "left": 193,
+        "width": 796,
+        "height": 23,
+        "minBayNo": 2,
+        "maxBayNo": 35
+    }, {
+        "type": "rack",
+        "id": "rack3",
+        "top": 200,
+        "left": 193,
+        "width": 796,
+        "height": 23,
+        "minBayNo": 2,
+        "maxBayNo": 35
+    }],
+    "rackDescs": [{
+        "type": "rackDescs",
+        "id": "lb_desc17",
+        "text": "#1",
+        "top": 119,
+        "left": 157,
+        "width": 30,
+        "height": 23
+    }, {
+        "type": "rackDescs",
+        "id": "lb_desc16",
+        "text": "#6",
+        "top": 344,
+        "left": 154,
+        "width": 33,
+        "height": 23
+    }],
+    "crns": [{
+        "type": "track",
+        "id": "lb_track4",
+        "text": "",
+        "top": 97,
+        "left": 1090,
+        "width": 3,
+        "height": 290
+    }, {
+        "type": "track",
+        "id": "lb_track5",
+        "text": "",
+        "top": 97,
+        "left": 1119,
+        "width": 3,
+        "height": 290
+    }, {
+        "type": "crane",
+        "id": "crn-3",
+        "text": "3",
+        "top": 316,
+        "left": 466,
+        "width": 93,
+        "height": 22
+    }, {
+        "type": "track",
+        "id": "lb_track3",
+        "text": "",
+        "top": 327,
+        "left": 172,
+        "width": 850,
+        "height": 2
+    }, {
+        "type": "crane",
+        "id": "crn-2",
+        "text": "2",
+        "top": 232,
+        "left": 466,
+        "width": 93,
+        "height": 22
+    }, {
+        "type": "track",
+        "id": "lb_track1",
+        "text": "",
+        "top": 160,
+        "left": 177,
+        "width": 850,
+        "height": 2
+    }, {
+        "type": "track",
+        "id": "lb_track2",
+        "text": "",
+        "top": 243,
+        "left": 172,
+        "width": 850,
+        "height": 2
+    }, {
+        "type": "crane",
+        "id": "crn-1",
+        "text": "1",
+        "top": 151,
+        "left": 471,
+        "width": 93,
+        "height": 22
+    }],
+    "areas": [{
+        "type": "Control_floor",
+        "id": "tabControl_floor1",
+        "text": "妤煎眰",
+        "top": 66,
+        "left": 80,
+        "width": 1267,
+        "height": 666,
+        "floors": [{
+            "type": "floor",
+            "id": "page_floor1",
+            "text": "1F",
+            "top": 4,
+            "left": 22,
+            "width": 1241,
+            "height": 658,
+            "stns": [{
+                "type": "stn",
+                "id": "site-100",
+                "text": "100",
+                "top": 176,
+                "left": 1204,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-102",
+                "text": "102",
+                "top": 237,
+                "left": 1204,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-101",
+                "text": "101",
+                "top": 176,
+                "left": 1138,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-112",
+                "text": "112",
+                "top": 176,
+                "left": 1072,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-105",
+                "text": "105",
+                "top": 284,
+                "left": 1138,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-103",
+                "text": "103",
+                "top": 237,
+                "left": 1138,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-110",
+                "text": "110",
+                "top": 284,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-108",
+                "text": "108",
+                "top": 200,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-109",
+                "text": "109",
+                "top": 260,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-104",
+                "text": "104",
+                "top": 284,
+                "left": 1204,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-107",
+                "text": "107",
+                "top": 176,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-106",
+                "text": "106",
+                "top": 119,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-111",
+                "text": "111",
+                "top": 344,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }]
+        }, {
+            "type": "floor",
+            "id": "page_floor2",
+            "text": "2F",
+            "top": 4,
+            "left": 22,
+            "width": 1241,
+            "height": 658,
+            "stns": [{
+                "type": "stn",
+                "id": "site-200",
+                "text": "200",
+                "top": 176,
+                "left": 1204,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-202",
+                "text": "202",
+                "top": 237,
+                "left": 1204,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-201",
+                "text": "201",
+                "top": 176,
+                "left": 1138,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-212",
+                "text": "212",
+                "top": 176,
+                "left": 1072,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-205",
+                "text": "205",
+                "top": 284,
+                "left": 1138,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-203",
+                "text": "203",
+                "top": 237,
+                "left": 1138,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-210",
+                "text": "210",
+                "top": 284,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-208",
+                "text": "208",
+                "top": 200,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-209",
+                "text": "209",
+                "top": 260,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-204",
+                "text": "204",
+                "top": 284,
+                "left": 1204,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-207",
+                "text": "207",
+                "top": 176,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-206",
+                "text": "206",
+                "top": 119,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-211",
+                "text": "211",
+                "top": 344,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }]
+        }, {
+            "type": "floor",
+            "id": "page_floor3",
+            "text": "3F",
+            "top": 4,
+            "left": 22,
+            "width": 1241,
+            "height": 658,
+            "stns": [{
+                "type": "stn",
+                "id": "site-300",
+                "text": "300",
+                "top": 176,
+                "left": 1204,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-302",
+                "text": "302",
+                "top": 237,
+                "left": 1204,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-301",
+                "text": "301",
+                "top": 176,
+                "left": 1138,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-312",
+                "text": "312",
+                "top": 176,
+                "left": 1072,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-305",
+                "text": "305",
+                "top": 284,
+                "left": 1138,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-303",
+                "text": "303",
+                "top": 237,
+                "left": 1138,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-310",
+                "text": "310",
+                "top": 284,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-308",
+                "text": "308",
+                "top": 200,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-309",
+                "text": "309",
+                "top": 260,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-304",
+                "text": "304",
+                "top": 284,
+                "left": 1204,
+                "width": 65,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-307",
+                "text": "307",
+                "top": 176,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-306",
+                "text": "306",
+                "top": 119,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }, {
+                "type": "stn",
+                "id": "site-311",
+                "text": "311",
+                "top": 344,
+                "left": 991,
+                "width": 80,
+                "height": 23
+            }]
+        }]
+    }]
 }
\ No newline at end of file

--
Gitblit v1.9.1