IntegratedSystem_OBJProxy.cs 1.14 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2
using FLY.Integrated.Common;
using FLY.Integrated.OBJ_INTERFACE;
3 4 5 6 7 8 9 10 11 12
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;

潘栩锋's avatar
潘栩锋 committed
13
namespace FLY.Integrated.Server.OBJProxy
14
{
潘栩锋's avatar
潘栩锋 committed
15
    class IntegratedSystem_OBJProxy : FObj
16
    {
潘栩锋's avatar
潘栩锋 committed
17
        IntegratedSystem data;
18 19 20 21
        SyncProp_OBJProxy syncProp_OBJProxy;

        PLCProxySystem_OBJProxy plcOS_OBJProxy;

潘栩锋's avatar
潘栩锋 committed
22
        public IntegratedSystem_OBJProxy(int objsys_idx, IntegratedSystem data) : base(objsys_idx)
23 24 25 26 27 28 29 30
        {
            ID = OBJ_INTERFACE.OBJ_INTERFACE.IBC_OBJ_ID;
            this.data = data;

            syncProp_OBJProxy = new SyncProp_OBJProxy(
                objsys_idx, ID + 1,
                new Dictionary<string, INotifyPropertyChanged>
                {
31
                    { "Ibc", data.Ibc},
潘栩锋's avatar
潘栩锋 committed
32
                    { "Accessory", data.Accessory}
33 34 35 36 37
                });


            plcOS_OBJProxy = new PLCProxySystem_OBJProxy(
                objsys_idx,
潘栩锋's avatar
潘栩锋 committed
38
                ID + 2,
39 40 41 42 43
                data.PLCos
                );
        }
    }
}