欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

智能制造MES系統(tǒng)框架-創(chuàng)新互聯(lián)

MES系統(tǒng)概述

MES系統(tǒng)是一套面向制造企業(yè)車間執(zhí)行層的生產(chǎn)信息化管理系統(tǒng)。為企業(yè)提供包括制造數(shù)據(jù)管理、計劃排成管理、生產(chǎn)調(diào)度管理、庫存管理、質(zhì)量管理、人力資源管理、工作中心/設備管理、工具工裝管理、采購管理、成本管理、項目看板管理、生產(chǎn)過程控制、底層數(shù)據(jù)集成分析、上層數(shù)據(jù)集成分解等管理模塊,為企業(yè)打造一個扎實、可靠、全面、可行的制造協(xié)同管理平臺

創(chuàng)新互聯(lián)是一家專注于網(wǎng)站建設、做網(wǎng)站與策劃設計,瀾滄網(wǎng)站建設哪家好?創(chuàng)新互聯(lián)做網(wǎng)站,專注于網(wǎng)站建設十年,網(wǎng)設計領域的專業(yè)建站公司;建站業(yè)務涵蓋:瀾滄等地區(qū)。瀾滄做網(wǎng)站價格咨詢:028-86922220系統(tǒng)架構

項目代碼
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zhaoxi.MES.Frame.Models;

namespace Zhaoxi.MES.Frame.ViewModels
{
    public class DeviceViewModel
    {
        public bool MonitorState { get; set; }

        public ListDeviceList { get; set; }

        public DeviceViewModel()
        {
            DeviceList = new List();

            App.MqttMessageReceived += App_MqttMessageReceived;

            DeviceItemModel dim = new DeviceItemModel();
            // 網(wǎng)絡圖片
            dim.Image = "pack://application:,,,/Zhaoxi.MES.Frame;component/Assets/Images/Device/d_1.png";
            dim.LightType = Controls.LightState.Fault;
            dim.Title = "加工中心";
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "運行狀態(tài)", PropValue = "故障" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "工作模式", PropValue = "AUTO" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "進給倍率", PropValue = "0" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "主軸轉(zhuǎn)速", PropValue = "0" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "主軸負載", PropValue = "0 r/min" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "程序編號", PropValue = "7014" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "機床坐標-X", PropValue = "-500 mm" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "機床坐標-Y", PropValue = "-120.002 mm" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "機床坐標-Z", PropValue = "-1.525 mm" });
            DeviceList.Add(dim);

            dim = new DeviceItemModel();
            dim.Image = "pack://application:,,,/Zhaoxi.MES.Frame;component/Assets/Images/Device/d_2.png";
            dim.LightType = Controls.LightState.Warning;
            dim.Title = "電火花";
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "L編號", PropValue = "31" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "N編號", PropValue = "0" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "B編號", PropValue = "0" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "停止編號", PropValue = "0" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "程序錯誤", PropValue = "0" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "運行錯誤", PropValue = "0" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "順序錯誤", PropValue = "0" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "啟動ON時間", PropValue = "0時:0分:0秒" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "加工ON時間", PropValue = "0時:0分:0秒" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "E條件編號", PropValue = "909002" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "設備機械坐標", PropValue = "暫無" });
            DeviceList.Add(dim);

            dim = new DeviceItemModel();
            dim.Image = "pack://application:,,,/Zhaoxi.MES.Frame;component/Assets/Images/Device/d_3.png";
            dim.LightType = Controls.LightState.Run;
            dim.Title = "機器臂";
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "運行狀態(tài)", PropValue = "運行" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "工作模式", PropValue = "手動" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "關節(jié)軸J1", PropValue = "-97.979°" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "關節(jié)軸J2", PropValue = "-31.493°" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "關節(jié)軸J3", PropValue = "-24.517°" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "關節(jié)軸J4", PropValue = "-0.032°" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "關節(jié)軸J5", PropValue = "-34.038°" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "關節(jié)軸J6", PropValue = "-8.532°" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "關節(jié)軸J7", PropValue = "3182.790°" });
            DeviceList.Add(dim);

            dim = new DeviceItemModel();
            dim.Image = "pack://application:,,,/Zhaoxi.MES.Frame;component/Assets/Images/Device/d_4.png";
            dim.LightType = Controls.LightState.None;
            dim.Title = "三坐標";
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "運行狀態(tài)", PropValue = "運行" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "工作模式", PropValue = "手動" });
            DeviceList.Add(dim);


            dim = new DeviceItemModel();
            dim.Image = "pack://application:,,,/Zhaoxi.MES.Frame;component/Assets/Images/Device/d_5.png";
            dim.LightType = Controls.LightState.Run;
            dim.Title = "線切割";
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "運行狀態(tài)", PropValue = "運行" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "工作模式", PropValue = "自動" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "停止編號", PropValue = "0" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "程序錯誤", PropValue = "0" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "運行錯誤", PropValue = "0" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "順序錯誤", PropValue = "0" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "啟動設定為ON的時間", PropValue = "0時:0分:0秒" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "加工設定為ON的時間", PropValue = "0時:0分:0秒" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "加工條件(E條件)編號", PropValue = "909002" });
            dim.Properties.Add(new DevicePropertyItemModel { PropName = "設備機械坐標", PropValue = "暫無" });
            DeviceList.Add(dim);
        }

        // 如果小伙伴對事件委托不理解    加強 一下C#基礎
        private void App_MqttMessageReceived(object? sender, string e)
        {
            // 演示
            DeviceList[0].Properties[3].PropValue = e;
            //Debug.WriteLine(e);

            // 真實對接    作業(yè) 
            //e  就是一個Json字符串  反序列化 -》 對象 

        }
    }
}

using System;
using System.Collections.Generic;
using System.DirectoryServices.ActiveDirectory;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zhaoxi.MES.Frame.Models;
using Zhaoxi.MES.Frame.Base;
using System.Collections.ObjectModel;
using System.Reflection;

namespace Zhaoxi.MES.Frame.ViewModels
{
    public class MainViewModel:NotifyBase
    {
        // 菜單 集合
        public ListTreeList { get; set; }
        // 頁面 集合
        public ObservableCollectionPages { get; set; }
            = new ObservableCollection();

        public MainViewModel()
        {
            #region 菜單初始化
            TreeList = new List();
            {
                MenuItemModel tim = new MenuItemModel();
                tim.Header = "工藝設計";
                //  XAML里使用
                tim.IconCode = "\ue610"; // 字體圖標編碼,阿里的Iconfont平臺打包的圖標庫
                TreeList.Add(tim);
                tim.Children.Add(new MenuItemModel
                {
                    Header = "加工工藝",
                    TargetView = "BlankPage",
                    OpenViewCommand = new Command(OpenView)
                });
                tim.Children.Add(new MenuItemModel
                {
                    Header = "EBOM",
                    TargetView = "BlankPage",
                    OpenViewCommand = new Command(OpenView)
                });
                tim.Children.Add(new MenuItemModel
                {
                    Header = "設備看板",
                    TargetView = "DevicePage",
                    OpenViewCommand = new Command(OpenView)
                });

                tim.Children.Add(new MenuItemModel
                {
                    Header = "PBOM",
                    TargetView = "PBomPage",
                    OpenViewCommand = new Command(OpenView)
                });
                MenuItemModel subMenu = new MenuItemModel();
                subMenu.Header = "二級菜單";
                subMenu.Children.Add(
                    new MenuItemModel
                    {
                        Header = "三級菜單"
                    }
                   );
                tim.Children.Add(subMenu);
            }
            #endregion

            #region 測試  頁面初始
            // 所有數(shù)據(jù)集合都可以 VM中進行控件 (增加和刪除)
            //Pages = new ObservableCollection();
            //Pages.Add("AAAA");
            //Pages.Add("BBBB");
            //Pages.Add("CCCC");
            //Pages.Add("DDDD");
            #endregion
        }

        private void OpenView(MenuItemModel menu)
        {
            // 兩個問題:
            // 1、每點擊一次都會有一個新的頁面!  解決方案:從集合中判斷是否存在
            // 2、新打開一個頁面后,不能馬上顯示 

            //MenuItemModel mim = menu as MenuItemModel;
            // 需要進行頁面的打開 
            //Pages.Add("EEEE");

            var page = Pages.ToList().FirstOrDefault(p =>p.Header == menu.Header);

            if (page == null)
            {
                Type type = Assembly.GetExecutingAssembly().
                    GetType("Zhaoxi.MES.Frame.Views.Pages." + menu.TargetView);
                object p = Activator.CreateInstance(type);

                Pages.Add(new PageItemModel
                {
                    Header = menu.Header,
                    PageView = p,
                    IsSelected = true,
                    CloseTabCommand = new Command(ClosePage)
                });
            }
            else
                page.IsSelected = true;
        }

        private void ClosePage(PageItemModel menu)
        {
            Pages.Remove(menu);
        }
    }
}

你是否還在尋找穩(wěn)定的海外服務器提供商?創(chuàng)新互聯(lián)www.cdcxhl.cn海外機房具備T級流量清洗系統(tǒng)配攻擊溯源,準確流量調(diào)度確保服務器高可用性,企業(yè)級服務器適合批量采購,新人活動首月15元起,快前往官網(wǎng)查看詳情吧

分享名稱:智能制造MES系統(tǒng)框架-創(chuàng)新互聯(lián)
文章源于:http://chinadenli.net/article4/jggoe.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供外貿(mào)網(wǎng)站建設、品牌網(wǎng)站建設、標簽優(yōu)化、網(wǎng)站導航、品牌網(wǎng)站設計、網(wǎng)站改版

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站優(yōu)化排名
成年午夜在线免费视频| 亚洲熟女熟妇乱色一区| 欧美精品一区二区水蜜桃| 亚洲中文字幕有码在线观看| 日韩偷拍精品一区二区三区| 少妇毛片一区二区三区| 日本高清一区免费不卡| 不卡在线播放一区二区三区| 成人三级视频在线观看不卡| 高清一区二区三区大伊香蕉 | 中文字幕亚洲人妻在线视频| 国产免费成人激情视频| 高清欧美大片免费在线观看| 一区二区三区免费公开| 精品国产亚洲一区二区三区| 99久免费精品视频在线观| 欧美丰满大屁股一区二区三区| 欧美中文字幕一区在线| 99免费人成看国产片| 国产传媒高清视频在线| 欧美精品在线观看国产| 国产韩国日本精品视频| 亚洲性生活一区二区三区| 亚洲一区二区三区三州| 国产熟女高清一区二区| 欧美成人免费一级特黄| 日韩不卡一区二区在线| 日本欧美在线一区二区三区| 亚洲精品有码中文字幕在线观看| 日韩欧美亚洲综合在线| 可以在线看的欧美黄片| 国产精品一区二区有码| 日本深夜福利视频在线| 日本人妻熟女一区二区三区| 久七久精品视频黄色的| 超薄丝袜足一区二区三区| 国产精品夜色一区二区三区不卡| 好吊日在线观看免费视频| 五月婷婷缴情七月丁香| 又大又长又粗又猛国产精品| 日本熟女中文字幕一区|