private void editLoadForm()
        {
            editModel = largedataAnalysisConfigBusiness.GetLargeDataAnalysisConfigById(largedataAnalysisId);

            StringBuilder sbText = new StringBuilder();

            //分析模型名称:选择分析模板:分析周期(秒):满足条件输出: 不满足条件输出:
            sbText.Append("分析模型名称:");
            sbText.Append(editModel.Name);
            sbText.Append(" ");
            sbText.Append("分析周期(秒):");
            sbText.Append(editModel.AnalysisInterval.ToString());
            sbText.Append(" ");
            sbText.Append("满足条件输出:");
            sbText.Append(editModel.TrueDescription);
            sbText.Append(" ");
            sbText.Append("不满足条件输出:");
            sbText.Append(editModel.FalseDescription);

            lblContent.Text = sbText.ToString();
            if (null != editModel.AnalysisModelPointRecordInfoList && editModel.AnalysisModelPointRecordInfoList.Count > 0)
            {
                editModel.AnalysisModelPointRecordInfoList = editModel.AnalysisModelPointRecordInfoList.OrderBy(q => q.ExpressionId).ThenBy(q => q.ParameterName).ToList();
                setViewList(editModel.AnalysisModelPointRecordInfoList);
            }
            //gridControlData.DataSource = editModel.AnalysisModelPointRecordInfoList;
            gridControlData.DataSource = viewList;

            gridView1.Columns["ExpressionId"].SortOrder = DevExpress.Data.ColumnSortOrder.Ascending;
            gridView1.BestFitColumns();
        }
Пример #2
0
        private void editLoadForm()
        {
            editModel = largedataAnalysisConfigBusiness.GetLargeDataAnalysisConfigById(largedataAnalysisId);

            txtTempleteName.Text               = editModel.Name;
            lookUpEditName.EditValue           = editModel.TempleteId;
            lookUpEditName.Properties.ReadOnly = true;
            txtAnalysisInterval.EditValue      = editModel.AnalysisInterval;
            txtTrueDescription.EditValue       = editModel.TrueDescription;
            txtFalseDescription.EditValue      = editModel.FalseDescription;

            dataSource = editModel.AnalysisModelPointRecordInfoList;
            dataSource = dataSource.OrderBy(q => q.ExpressionId).ThenBy(q => q.ParameterName).ToList();
            setViewList(dataSource);
            //gridControlData.DataSource = dataSource;
            gridControlData.DataSource = viewList;
            gridView1.Columns["ExpressionId"].SortOrder = DevExpress.Data.ColumnSortOrder.Ascending;
            gridView1.BestFitColumns();
        }