IBCSystem_OBJProxy.cs 1.11 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2
using FLY.IBC.Common;
using FLY.IBC.OBJ_INTERFACE;
潘栩锋's avatar
潘栩锋 committed
3
using FLY.IBC.Server.Model;
潘栩锋's avatar
潘栩锋 committed
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
using FLY.OBJComponents.Server.OBJProxy;
using FObjBase;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FLY.IBC.Server.OBJProxy
{
    class IBCSystem_OBJProxy : FObj
    {
        IBCSystem data;
        SyncProp_OBJProxy syncProp_OBJProxy;

        PLCProxySystem_OBJProxy plcOS_OBJProxy;


        public IBCSystem_OBJProxy(int objsys_idx, IBCSystem data) : base(objsys_idx)
        {
            ID = OBJ_INTERFACE.OBJ_INTERFACE.IBC_OBJ_ID;
            this.data = data;

            syncProp_OBJProxy = new SyncProp_OBJProxy(
                objsys_idx, ID + 1,
                new Dictionary<string, INotifyPropertyChanged>
                {
潘栩锋's avatar
潘栩锋 committed
33
                    { "Item", data.Item }
潘栩锋's avatar
潘栩锋 committed
34 35 36 37 38 39 40 41 42 43 44
                });


            plcOS_OBJProxy = new PLCProxySystem_OBJProxy(
                objsys_idx,
                OBJ_INTERFACE.OBJ_INTERFACE.IBC_OBJ_PLCOS_ID,
                data.PLCos
                );
        }
    }
}