示例#1
0
        public MultiMeasureConfigDlg(BaseConfiguration baseConf) : base(baseConf)
        {
            InitializeComponent();
            Text                     = MultiLang.TrendOfPoint + " " + MultiLang.Filter;
            Btn_Close.Text           = MultiLang.Close;
            groupControl1.Text       = MultiLang.OperationPeriod;
            groupControl2.Text       = MultiLang.TypeOfMeasurement;
            groupControl3.Text       = MultiLang.Unit;
            groupControl5.Text       = "Y " + MultiLang.Scale;
            Gr_Machine.Text          = MultiLang.PlantMap;
            Gr_Measurement.Text      = MultiLang.Measurement;
            Radio_Day.Text           = MultiLang.Day;
            Radio_Week.Text          = MultiLang.Week;
            Radio_Month.Text         = MultiLang.Month;
            CheckEdit_All.Text       = MultiLang.BatchCheck;
            MimicNodeTree.DataSource = baseConf.MimicNodes;
            MimicNodeTree.BestFitColumns();
            DateEdit_Start.DateTime = BaseConfig.StartDate;
            DateEdit_End.DateTime   = BaseConfig.EndDate;
            MimicNodeTree.SetFocusedNode(MimicNodeTree.Nodes.FirstNode);

            cbe_alarmScale.DataBindings.Add(new Binding("EditValue", MultiBandConf, "AlarmReferenceName")
            {
                DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged
            });
            radioGroupScale.DataBindings.Add(new Binding("SelectedIndex", MultiBandConf, "ScaleTypeIdx")
            {
                DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged
            });
            te_Scale.DataBindings.Add(new Binding("EditValue", MultiBandConf, "MaxScale")
            {
                DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged
            });
        }
示例#2
0
        public RepairConfigDlg(BaseConfiguration baseConf)
            : base(baseConf)
        {
            InitializeComponent();
            Text                     = MultiLang.MaintenanceTask + " " + MultiLang.Report + " " + MultiLang.Filter;
            Btn_Close.Text           = MultiLang.Close;
            groupControl1.Text       = MultiLang.MaintenancePeriod;
            groupControl2.Text       = MultiLang.TypeOfMeasurement;
            groupControl3.Text       = "Y " + MultiLang.Scale;
            Gr_Machine.Text          = MultiLang.PlantMap;
            Gr_Measurement.Text      = MultiLang.Measurement;
            CheckEdit_All.Text       = MultiLang.BatchCheck;
            labelControl1.Text       = MultiLang.BeforeMaintenance;
            labelControl2.Text       = MultiLang.AfterMaintenance;
            labelControl4.Text       = MultiLang.Days;
            MimicNodeTree.DataSource = baseConf.MimicNodes;
            MimicNodeTree.BestFitColumns();
            Numeric_RepairOffset.Value = RepairConf.RepairOffsetDay;
            DateEdit_Before.DateTime   = BaseConfig.StartDate;
            DateEdit_After.DateTime    = BaseConfig.EndDate;

            cbe_alarmScale.DataBindings.Add(new Binding("EditValue", RepairConf, "AlarmReferenceName")
            {
                DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged
            });
            radioGroupScale.DataBindings.Add(new Binding("SelectedIndex", RepairConf, "ScaleTypeIdx")
            {
                DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged
            });
            radioGroupScaleTime.DataBindings.Add(new Binding("SelectedIndex", RepairConf, "ScaleTypeIdx_Time")
            {
                DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged
            });
            radioGroupScaleFFT.DataBindings.Add(new Binding("SelectedIndex", RepairConf, "ScaleTypeIdx_FFT")
            {
                DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged
            });
            te_maxScale.DataBindings.Add(new Binding("EditValue", RepairConf, "MaxScale")
            {
                DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged
            });
            te_maxScaleTime.DataBindings.Add(new Binding("EditValue", RepairConf, "MaxScale_Time")
            {
                DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged
            });
            te_minScaleTime.DataBindings.Add(new Binding("EditValue", RepairConf, "MinScale_Time")
            {
                DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged
            });
            te_maxScaleFFT.DataBindings.Add(new Binding("EditValue", RepairConf, "MaxScale_FFT")
            {
                DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged
            });
        }
示例#3
0
 private void TreeChildAllCheck(TreeListNodes nodes)
 {
     if (nodes.Count == 0)
     {
         (MimicNodeTree.GetDataRecordByNode(nodes.ParentNode) as MimicTreeNode).Active = nodes.ParentNode.Checked;
         return;
     }
     foreach (TreeListNode node in nodes)
     {
         node.Checked = nodes.ParentNode.Checked;
         TreeChildAllCheck(node.Nodes);
     }
 }
示例#4
0
        private void MimicNodeTree_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            MimicTreeNode mimicNode = MimicNodeTree.GetDataRecordByNode(e.Node) as MimicTreeNode;

            if (mimicNode.ThisNode.NodeType == 300)
            {
                ChannelConfig channel = new ChannelConfig(mimicNode);
                BaseConfig.Channel            = channel;
                CheckList_Bandpass.DataSource = channel.BandpassArr.Where(x => x.Visible);
            }
            else
            {
                CheckList_Bandpass.DataSource = null;
            }
        }
示例#5
0
        public DayOfWeekConfigDlg(BaseConfiguration baseConf)
            : base(baseConf)
        {
            InitializeComponent();
            Text                = MultiLang.WeeklyComparison + " " + MultiLang.Filter;
            Btn_Close.Text      = MultiLang.Close;
            groupControl1.Text  = MultiLang.OperationPeriod;
            groupControl2.Text  = MultiLang.TypeOfMeasurement;
            groupControl3.Text  = "X " + MultiLang.Scale;
            Gr_Machine.Text     = MultiLang.PlantMap;
            Gr_Measurement.Text = MultiLang.Measurement;
            CheckEdit_All.Text  = MultiLang.BatchCheck;

            MimicNodeTree.DataSource = baseConf.MimicNodes;
            MimicNodeTree.BestFitColumns();
            DateEdit_Start.DateTime = BaseConfig.StartDate;
            DateEdit_End.DateTime   = BaseConfig.EndDate;
        }
示例#6
0
        public PeriodConfigDlg(BaseConfiguration baseConf)
            : base(baseConf)
        {
            InitializeComponent();
            Text                = MultiLang.PeriodicComparison + " " + MultiLang.Filter;
            Btn_Close.Text      = MultiLang.Close;
            groupControl1.Text  = MultiLang.OperationPeriod;
            groupControl2.Text  = MultiLang.TypeOfMeasurement;
            groupControl3.Text  = "Y " + MultiLang.Scale;
            Gr_Machine.Text     = MultiLang.PlantMap;
            Gr_Measurement.Text = MultiLang.Measurement;
            DateEdit_Start.Properties.DisplayFormat.FormatString = "yyyy " + MultiLang.Years;

            MimicNodeTree.DataSource = baseConf.MimicNodes;
            MimicNodeTree.BestFitColumns();
            MimicNodeTree.ExpandAll();
            MimicNodeTree.CollapseAll();
            DateEdit_Start.DateTime = BaseConfig.StartDate;
        }