private void LoadInf()
        {
            List <Jc_DefInfo> temp = DEFServiceModel.QueryPointByDevpropertIDCache(0).ToList();

            try
            {
                temp = temp.OrderBy(item => item.Fzh).ToList();
                temp.ForEach(a =>
                {
                    a.Wz = a.Point + ":" + a.Wz + "[" + a.DevName + "]";//增加测点号,安装位置,设备类型三个值显示  20170716
                });
            }
            catch (Exception ex)
            {
                LogHelper.Error(ex);
            }
            if (null == temp)
            {
                return;
            }
            var dtTemp = ListToDataTable(temp);

            CgleStaionAdress.Properties.View.BestFitColumns();
            CgleStaionAdress.Properties.DisplayMember = "Wz";
            CgleStaionAdress.Properties.ValueMember   = "Point";
            if (null != dtTemp)
            {
                CgleStaionAdress.Properties.DataSource = dtTemp;
            }
            if (!string.IsNullOrEmpty(_Station))
            {
                CgleStaionAdress.EditValue = _Station;
            }

            AddColumnInf();
            IList <Jc_JcsdkzInfo> tempControl = JCSDKZServiceModel.QueryJCSDKZsCache();

            EvaluateControleDataSource(tempControl);
            if (null != GridSource.GridControlSource)
            {
                CGridControl.DataSource = GridSource.GridControlSource;
                CGridControl.RefreshDataSource();
            }

            barStaticItem2.Caption = "就绪";
        }
        private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
        {
            try
            {
                if (null == CgleStaionAdress.EditValue)
                {
                    XtraMessageBox.Show("请选择分站", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
                SaveControl(CgleStaionAdress.EditValue.ToString(), 13);

                IList <Jc_JcsdkzInfo> tempControl = JCSDKZServiceModel.QueryJCSDKZsCache();
                EvaluateControleDataSource(tempControl);
                if (null != GridSource.GridControlSource)
                {
                    CGridControl.RefreshDataSource();
                }
            }
            catch (Exception ex)
            {
                LogHelper.Error(ex);
            }
        }