예제 #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     _equipmentInfo = new EquipmentInfo()
     {
         CRST     = CRST.O,
         EQST     = CommonStatus.I,
         EQSTCODE = 1000,
         MDLN     = "equipment",
         SOFTREV  = "v1.0.",
     };
     AddLog(_equipmentInfo.ToString());
 }
예제 #2
0
        /// <summary>
        /// 货柜信息
        /// </summary>
        public BoxRpt BoxInfo(int box)
        {
            BoxRpt boxRpt = new BoxRpt();

            //机器设备状态
            BoxStatus boxStatus = base.QueryBoxStatus(box);

            boxRpt.BoxStatus += string.Format("机器设备状态:\r\n{0}\r\n", boxStatus.ToString());
            //制冷压缩机/风机/照明/除雾/广告灯/工控机等设备状态
            EquipmentsStatus equipmentsStatus = base.QueryEquipmentsStatus(box);

            boxRpt.BoxStatus += string.Format("制冷压缩机/风机/照明/除雾/广告灯/工控机等设备状态:\r\n{0}\r\n", equipmentsStatus.ToString());

            //制冷压缩机/照明/除雾/广告灯/工控机等设备控制策略参数
            EquipmentInfo equipmentAll = base.QueryEquipmentAll(box);

            boxRpt.BoxSetup += equipmentAll.ToString();

            //货道信息
            RoadModelCollection roadModelCollection = JMBoxConfigUtil.GetRoadsConfig(box);

            foreach (RoadModel road in roadModelCollection.RoadList)
            {
                RoadInfo roadInfo = base.QueryRoadInfo(box, road.Floor, road.Num);

                RoadRpt roadRpt = new RoadRpt();
                roadRpt.Floor    = road.Floor;
                roadRpt.Num      = road.Num;
                roadRpt.IsOK     = roadInfo.IsOK;
                roadRpt.ErrorMsg = roadInfo.ErrorMsg;
                roadRpt.Price    = roadInfo.Price;

                boxRpt.RoadCollection.RoadList.Add(roadRpt);
            }
            boxRpt.RoadCollection.FloorCount = roadModelCollection.FloorCount;

            return(boxRpt);
        }
예제 #3
0
 public static void TryToDecompose(this EquipmentInfo _eq)
 {
     Debug.Log("TryToDecompose" + _eq.ToString());
     GameCenter.uIMng.SwitchToSubUI(SubGUIType.DECOMPOSITION);
 }