示例#1
0
        public SysTrendAnalysis(string depttype)
        {
            InitializeComponent();

            this.dept_type = depttype;

            DataTable table = new DataTable();

            table = operationContract.ExecuteProTrendAnalysis(dept_type, PubClass.userInfo.ID);

            List <string> years = new List <string>();

            years.Add("-请选择-");
            for (int i = 0; i < table.Rows.Count; i++)
            {
                years.Add(table.Rows[i][0].ToString());
            }

            _year.ItemsSource   = years;
            _year.SelectedIndex = 0;

            List <string> analysisThemes = new List <string>();

            analysisThemes.Add("-请选择-");
            analysisThemes.Add("年度各项目检测执行趋势分析");
            analysisThemes.Add("年度各检测项目阳性样本检出趋势分析");
            analysisThemes.Add("年度各检测项目疑似阳性样本检出趋势分析");
            _analysis_theme.ItemsSource   = analysisThemes;
            _analysis_theme.SelectedIndex = 0;

            this.SizeChanged   += new SizeChangedEventHandler(SysTrendAnalysis_SizeChanged);
            _chart.SizeChanged += new SizeChangedEventHandler(_chart_SizeChanged);
        }