PgIbcSetting.xaml.cs 2.31 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

潘栩锋's avatar
潘栩锋 committed
17
namespace FLY.Integrated.UI.Client
18 19 20 21
{
    /// <summary>
    /// Page_System.xaml 的交互逻辑
    /// </summary>
潘栩锋's avatar
潘栩锋 committed
22
    public partial class PgIbcSetting : Page
23
    {
潘栩锋's avatar
潘栩锋 committed
24
        FLY.Integrated.Client.IntegratedSystemServiceClient integratedSystemServiceClient;
25
        FLY.OBJComponents.Client.SetPLCUpdatePlan setPlan;
潘栩锋's avatar
潘栩锋 committed
26
        public PgIbcSetting()
27 28 29 30
        {
            InitializeComponent();
        }

潘栩锋's avatar
潘栩锋 committed
31
        public void Init()
32
        {
潘栩锋's avatar
潘栩锋 committed
33
            integratedSystemServiceClient = TDGage.Current.integratedSystemServiceClient;
34
            this.DataContext = integratedSystemServiceClient.Ibc;
35 36 37

            //注册属性更新计划
            setPlan = new FLY.OBJComponents.Client.SetPLCUpdatePlan(
潘栩锋's avatar
潘栩锋 committed
38
                integratedSystemServiceClient.PLCos,
39
                integratedSystemServiceClient.Ibc,
40
                new string[] {
潘栩锋's avatar
潘栩锋 committed
41 42 43 44 45
                    "PIDResult",
                    "PIDAdjust",
                    "InletAirVelocity",
                    "OutletAirVelocity",

46 47 48 49 50
                    "Area1Set",
                    "Area1P",
                    "Area1I",
                    "Area1D",
                    "Area1DI",
潘栩锋's avatar
潘栩锋 committed
51

52 53 54 55
                    "Area2Set",
                    "Area2P",
                    "Area2I",
                    "Area2D",
潘栩锋's avatar
潘栩锋 committed
56 57 58 59

                    "SampleInterval",
                    "AdjustFactor",

60 61 62 63 64
                    "Sensor1DeadZone",
                    "Sensor2DeadZone",
                    "Sensor3DeadZone",
                    "Sensor1Factor",
                    "Sensor2Factor",
潘栩锋's avatar
潘栩锋 committed
65 66 67 68 69
                    "Sensor3Factor",

                    "ExCoolDefaultFreq",
                    "OutletAirDefaultFreq",
                    "InletAirDefaultFreq"
70 71 72 73 74 75 76 77 78 79 80 81 82 83
            });
        }
        
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {

        }

        private void Page_Unloaded(object sender, RoutedEventArgs e)
        {
            setPlan.Dispose();
        }
    }
}