예제 #1
0
        //查询按钮,刷新加载图表
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //选择的次数
            int num      = CommUtil.ParseInt(comboxNum.Text);
            int deviceId = CommUtil.ParseInt(comboxDevice.SelectedValue.ToString());


            RefreshChart(userId, deviceId, num);
        }
예제 #2
0
        public EchartWindow()
        {
            InitializeComponent();
            //在选择框加载可选的设备
            ListDataCode = DataCodeDAO.ListByTypeId("DEVICE");
            this.comboxDevice.ItemsSource  = ListDataCode;
            this.comboxDevice2.ItemsSource = ListDataCode;

            //初始化选中的用户id
            userId = CommUtil.ParseInt(CommUtil.GetSettingString("selectedUserId"));
            //选择的设备ID
            int deviceId = CommUtil.ParseInt(comboxDevice.SelectedValue.ToString());

            //初始化心率折线图表 默认加载第一台设备,1条记录
            RefreshChart(userId, deviceId, 1);
            //初始化感想折线
            drawUserThoughts(deviceId);
        }
예제 #3
0
        /// <summary>
        /// 感想折线查询 根据设备
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button2_Click(object sender, RoutedEventArgs e)
        {
            int deviceId = CommUtil.ParseInt(comboxDevice2.SelectedValue.ToString());

            drawUserThoughts(deviceId);
        }