Beispiel #1
0
        void InitdgvXY()
        {
            // 事件
            this.cbBoxXY.SelectedIndexChanged += cbBoxXY_SelectedIndexChanged;
            this.cbBoxXY.DropDown             += cbBoxXY_DropDown;
            this.dgvXY.CellClick += dgvXY_CellClick;

            this.btnLocalXY.Click += btnLocalXY_Click;
            this.btnShareXY.Click += btnShareXY_Click;
            // 按钮
            var btnDetailColumn = new DataGridViewButtonExColumn("",
                                                                 BDAuscultation.Properties.Resources.详情点击状态, BDAuscultation.Properties.Resources.详情未点击)
            {
                Name = "dgvXYDetail", HeaderText = "详情", Width = 70
            };

            this.dgvXY.Columns.Add(btnDetailColumn);

            dgvXY.ListColumnImage.Add(null);
            dgvXY.ListColumnImage.Add(BDAuscultation.Properties.Resources.听诊器编号);
            dgvXY.ListColumnImage.Add(BDAuscultation.Properties.Resources.患者类型);
            dgvXY.ListColumnImage.Add(BDAuscultation.Properties.Resources.患者姓名);
            dgvXY.ListColumnImage.Add(BDAuscultation.Properties.Resources.医生姓名);
            dgvXY.ListColumnImage.Add(BDAuscultation.Properties.Resources.初步诊断);
            dgvXY.ListColumnImage.Add(BDAuscultation.Properties.Resources.备注);
            dgvXY.ListColumnImage.Add(BDAuscultation.Properties.Resources.载时间);
            dgvXY.ListColumnImage.Add(BDAuscultation.Properties.Resources.详情);
        }
Beispiel #2
0
        void InitdgvTZPZ()
        {
            dgvTZQPZStetNO.FillWeight = 200;

            var btnConnColumn = new DataGridViewButtonExColumn("",
                                                               BDAuscultation.Properties.Resources.连接_绿色, BDAuscultation.Properties.Resources.连接)
            {
                Name         = "dgvTZQPZConn", HeaderText = "连接",
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None, Width = 70
            };

            this.dgvTZQPZ.Columns.Add(btnConnColumn);

            var btnEditColumn = new DataGridViewButtonExColumn("",
                                                               BDAuscultation.Properties.Resources.编辑点击, BDAuscultation.Properties.Resources.编辑未点击)
            {
                Name         = "dgvTZQPZEdit", HeaderText = "编辑",
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None, Width = 70
            };

            this.dgvTZQPZ.Columns.Add(btnEditColumn);
            var btnDelColumn = new DataGridViewButtonExColumn("",
                                                              BDAuscultation.Properties.Resources.除点击状态,
                                                              BDAuscultation.Properties.Resources.除未点击)
            {
                Name         = "dgvTZQPZDelete", HeaderText = "删除",
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None, Width = 70
            };

            this.dgvTZQPZ.Columns.Add(btnDelColumn);
            dgvTZQPZ.ListColumnImage.Add(BDAuscultation.Properties.Resources.听诊器编号);
            dgvTZQPZ.ListColumnImage.Add(BDAuscultation.Properties.Resources.计算机名);
            dgvTZQPZ.ListColumnImage.Add(BDAuscultation.Properties.Resources.听诊类型);
            dgvTZQPZ.ListColumnImage.Add(BDAuscultation.Properties.Resources.听诊器名字);
            dgvTZQPZ.ListColumnImage.Add(BDAuscultation.Properties.Resources.听诊器所属人);
            dgvTZQPZ.ListColumnImage.Add(null);
            dgvTZQPZ.ListColumnImage.Add(null);
            //dgvTZQPZ.ListColumnImage.Add(BDAuscultation.Properties.Resources.听诊器描述);
            //dgvTZQPZ.ListColumnImage.Add(BDAuscultation.Properties.Resources.听诊器备注);
            dgvTZQPZ.ListColumnImage.Add(BDAuscultation.Properties.Resources.连接状态);
            dgvTZQPZ.ListColumnImage.Add(BDAuscultation.Properties.Resources.连接);
            dgvTZQPZ.ListColumnImage.Add(BDAuscultation.Properties.Resources.编辑);
            dgvTZQPZ.ListColumnImage.Add(BDAuscultation.Properties.Resources.除);
            LoadStetInfoTZPZ();



            this.btnTZPZ.Click += new System.EventHandler(this.btnTZPZ_Click);
            this.btnTZSX.Click += new System.EventHandler(this.BtnTZSX_Click);;
            dgvTZQPZ.CellClick += dgvTZQPZ_CellClick;
            foreach (DataGridViewColumn column in dgvTZQPZ.Columns)
            {
                column.SortMode = DataGridViewColumnSortMode.NotSortable;
            }
            dgvTZQPZ.AllowUserToResizeColumns = false;
        }
Beispiel #3
0
        void FormAudioDetail_Load(object sender, EventArgs e)
        {
            // var filePaths = Directory.GetFiles(@"Image\Part");
            dataGridViewEx1.Columns.Add(new DataGridViewImageColumn(false)
            {
                HeaderText = "缩略图"
            });
            dataGridViewEx1.Columns.Add(new DataGridViewTextBoxColumn()
            {
                Name = "Part", HeaderText = "部位", Width = 120
            });
            dataGridViewEx1.Columns.Add(new DataGridViewTextBoxColumn()
            {
                Name = "isRecord", HeaderText = "是否已录音", Width = 120, FillWeight = 200.0f
            });
            dataGridViewEx1.Columns.Add(new DataGridViewTextBoxColumn()
            {
                Name = "RecordTime", HeaderText = "录制时间", Width = 140, FillWeight = 250.0f
            });
            dataGridViewEx1.Columns.Add(new DataGridViewTextBoxColumn()
            {
                Name = "TakeTime", HeaderText = "时长(秒)", Width = 40, FillWeight = 120.0f
            });


            //var btnDelColumn = new DataGridViewButtonExColumn("",
            //    BDAuscultation.Properties.Resources.删除点击状态, BDAuscultation.Properties.Resources.删除未点击) { Name = "btnDelete", HeaderText = "删除" };
            //this.dataGridViewEx1.Columns.Add(btnDelColumn);
            dataGridViewEx1.RowTemplate.Height = 66;
            dataGridViewEx1.SelectionMode      = DataGridViewSelectionMode.FullRowSelect;
            LoadAudio();
            // this.dataGridViewEx1.RowsDefaultCellStyle = new DataGridViewCellStyle() { SelectionForeColor = Color.Black, Alignment = DataGridViewContentAlignment.MiddleCenter };
            dataGridViewEx1.ListColumnImage.Add(BDAuscultation.Properties.Resources.缩略图);
            dataGridViewEx1.ListColumnImage.Add(BDAuscultation.Properties.Resources.部位);
            dataGridViewEx1.ListColumnImage.Add(BDAuscultation.Properties.Resources.录音未点击状态);
            dataGridViewEx1.ListColumnImage.Add(BDAuscultation.Properties.Resources.录制时间);
            dataGridViewEx1.ListColumnImage.Add(BDAuscultation.Properties.Resources.时长);
            //dataGridViewEx1.ListColumnImage.Add(BDAuscultation.Properties.Resources.删除);
            if (IInfo.isPlay)
            {
                var btnPlayColumn = new DataGridViewButtonExColumn("",
                                                                   BDAuscultation.Properties.Resources.播放点击状态, BDAuscultation.Properties.Resources.播放未点击状态)
                {
                    Name = "btnPlay", HeaderText = "播放"
                };
                this.dataGridViewEx1.Columns.Add(btnPlayColumn);
                dataGridViewEx1.ListColumnImage.Add(BDAuscultation.Properties.Resources.播放未点击状态);
            }
            //LoadFile();
            dataGridViewEx1.CellClick += dataGridViewEx1_CellClick;
        }
Beispiel #4
0
        void FormAudioDetail_Load(object sender, EventArgs e)
        {
            // var filePaths = Directory.GetFiles(@"Image\Part");
            dataGridViewEx1.Columns.Add(new DataGridViewImageColumn(false)
            {
                HeaderText = "缩略图"
            });
            dataGridViewEx1.Columns.Add(new DataGridViewTextBoxColumn()
            {
                Name = "Part", HeaderText = "部位", Width = 120
            });
            dataGridViewEx1.Columns.Add(new DataGridViewTextBoxColumn()
            {
                Name = "isRecord", HeaderText = "是否已录音", Width = 120, FillWeight = 200.0f
            });
            dataGridViewEx1.Columns.Add(new DataGridViewTextBoxColumn()
            {
                Name = "RecordTime", HeaderText = "录制时间", Width = 140, FillWeight = 250.0f
            });
            dataGridViewEx1.Columns.Add(new DataGridViewTextBoxColumn()
            {
                Name = "TakeTime", HeaderText = "时长(秒)", Width = 40, FillWeight = 120.0f
            });

            dataGridViewEx1.RowTemplate.Height = 66;
            dataGridViewEx1.SelectionMode      = DataGridViewSelectionMode.FullRowSelect;
            LoadAudio();
            dataGridViewEx1.ListColumnImage.Add(BDAuscultation.Properties.Resources.缩略图);
            dataGridViewEx1.ListColumnImage.Add(BDAuscultation.Properties.Resources.部位);
            dataGridViewEx1.ListColumnImage.Add(BDAuscultation.Properties.Resources.录音未点击状态);
            dataGridViewEx1.ListColumnImage.Add(BDAuscultation.Properties.Resources.录制时间);
            dataGridViewEx1.ListColumnImage.Add(BDAuscultation.Properties.Resources.时长);
            //if (IInfo.isPlay)
            //{
            var btnPlayColumn = new DataGridViewButtonExColumn("",
                                                               BDAuscultation.Properties.Resources.播放点击状态, BDAuscultation.Properties.Resources.播放未点击状态)
            {
                Name = "btnPlay", HeaderText = "播放"
            };

            this.dataGridViewEx1.Columns.Add(btnPlayColumn);
            dataGridViewEx1.ListColumnImage.Add(BDAuscultation.Properties.Resources.播放未点击状态);
            //}
            LoadFile();
            dataGridViewEx1.CellClick += dataGridViewEx1_CellClick;
            //DownAudio();
            panelImages.Enabled = true;
        }
Beispiel #5
0
        void InitdgvYDTZ()
        {
            cbBoxYDTZ.DropDown             += cbBoxYDTZ_DropDown;
            cbBoxYDTZ.SelectedIndexChanged += cbBoxYDTZ_SelectedIndexChanged;
            this.btnUpload.Click           += btnUpload_Click;
            this.btnShare.Click            += btnShare_Click;
            LoadYDTZStet();
            //列点击事件
            dgvYDTZUpLoad.CellClick += dgvYDTZUpLoad_CellClick;
            dgvYDTZShare.CellClick  += dgvYDTZShare_CellClick;
            //列设置
            //dgvYDTZUpLoad.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
            //dgvYDTZShare.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;

            var btnDownUpLoadColumn = new DataGridViewButtonExColumn("",
                                                                     BDAuscultation.Properties.Resources.载点击状态, BDAuscultation.Properties.Resources.载)
            {
                Name         = "dgvYDTZUpLoadDown",
                HeaderText   = "下载",
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 70
            };

            this.dgvYDTZUpLoad.Columns.Add(btnDownUpLoadColumn);
            var btnShareUpLoadColumn = new DataGridViewButtonExColumn("",
                                                                      BDAuscultation.Properties.Resources.分享点击状态, BDAuscultation.Properties.Resources.分享未点击)
            {
                Name         = "dgvYDTZUpLoadShare",
                HeaderText   = "分享",
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 70
            };

            this.dgvYDTZUpLoad.Columns.Add(btnShareUpLoadColumn);

            var btnDetailUpLoadColumn = new DataGridViewButtonExColumn("",
                                                                       BDAuscultation.Properties.Resources.详情点击状态, BDAuscultation.Properties.Resources.详情未点击)
            {
                Name         = "dgvYDTZLoaclDetail", HeaderText = "详情",
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None, Width = 70
            };

            this.dgvYDTZUpLoad.Columns.Add(btnDetailUpLoadColumn);
            //var btnDelUpLoadColumn = new DataGridViewButtonExColumn("",
            //    BDAuscultation.Properties.Resources.删除点击状态, BDAuscultation.Properties.Resources.删除未点击)
            //    { Name = "dgvYDTZLoaclDelete", HeaderText = "删除" };
            //this.dgvYDTZUpLoad.Columns.Add(btnDelUpLoadColumn);

            dgvYDTZUpLoad.ListColumnImage.Add(null);
            dgvYDTZUpLoad.ListColumnImage.Add(BDAuscultation.Properties.Resources.患者类型);
            dgvYDTZUpLoad.ListColumnImage.Add(BDAuscultation.Properties.Resources.患者姓名);
            dgvYDTZUpLoad.ListColumnImage.Add(BDAuscultation.Properties.Resources.医生姓名);
            dgvYDTZUpLoad.ListColumnImage.Add(BDAuscultation.Properties.Resources.初步诊断);
            dgvYDTZUpLoad.ListColumnImage.Add(BDAuscultation.Properties.Resources.备注);
            dgvYDTZUpLoad.ListColumnImage.Add(BDAuscultation.Properties.Resources.时间);
            dgvYDTZUpLoad.ListColumnImage.Add(BDAuscultation.Properties.Resources.载);
            dgvYDTZUpLoad.ListColumnImage.Add(BDAuscultation.Properties.Resources.分享);
            dgvYDTZUpLoad.ListColumnImage.Add(BDAuscultation.Properties.Resources.详情);


            //列头图标


            var btnDownShareColumn = new DataGridViewButtonExColumn("",
                                                                    BDAuscultation.Properties.Resources.载点击状态, BDAuscultation.Properties.Resources.载)
            {
                Name         = "dgvYDTZShareDown",
                HeaderText   = "下载",
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 60
            };

            this.dgvYDTZShare.Columns.Add(btnDownShareColumn);
            var btnDetailShareColumn = new DataGridViewButtonExColumn("",
                                                                      BDAuscultation.Properties.Resources.详情点击状态, BDAuscultation.Properties.Resources.详情未点击)
            {
                Name         = "dgvYDTZShareDetail",
                HeaderText   = "详情",
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 60
            };

            this.dgvYDTZShare.Columns.Add(btnDetailShareColumn);
            //var btnDelShareColumn = new DataGridViewButtonExColumn("",
            //    BDAuscultation.Properties.Resources.删除点击状态, BDAuscultation.Properties.Resources.删除未点击)
            //    { Name = "dgvYDTZShareDelete", HeaderText = "删除" };
            //this.dgvYDTZShare.Columns.Add(btnDelShareColumn);
            dgvYDTZShare.ListColumnImage.Add(null);
            dgvYDTZShare.ListColumnImage.Add(BDAuscultation.Properties.Resources.患者类型);
            dgvYDTZShare.ListColumnImage.Add(BDAuscultation.Properties.Resources.患者姓名);
            dgvYDTZShare.ListColumnImage.Add(BDAuscultation.Properties.Resources.医生姓名);
            dgvYDTZShare.ListColumnImage.Add(BDAuscultation.Properties.Resources.初步诊断);
            dgvYDTZShare.ListColumnImage.Add(BDAuscultation.Properties.Resources.备注);
            dgvYDTZShare.ListColumnImage.Add(BDAuscultation.Properties.Resources.患者姓名);
            dgvYDTZShare.ListColumnImage.Add(BDAuscultation.Properties.Resources.分享时间);
            dgvYDTZShare.ListColumnImage.Add(BDAuscultation.Properties.Resources.载);
            dgvYDTZShare.ListColumnImage.Add(BDAuscultation.Properties.Resources.详情);
        }
Beispiel #6
0
        void InitdgvTZLY()
        {
            this.btnTZLY.Click += btnTZLY_Click;
            this.cbBoxTZLY.SelectedIndexChanged += cbBoxTZLY_SelectedIndexChanged;
            this.cbBoxTZLY.DropDown             += cbBoxTZLY_DropDown;
            this.btnLYLocal.Click += btnLYLocal_Click;
            this.btnLYDown.Click  += btnLYDown_Click;

            this.tabLY.SelectedIndexChanged += tabLY_SelectedIndexChanged;

            //列点击事件
            dgvTZLY_Local.CellClick += dgvTZLY_Local_CellClick;
            dgvTZLY_Down.CellClick  += dgvTZLY_Down_CellClick;
            //列设置
            //dgvTZLY_Local.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
            //dgvTZLY_Down.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;


            var btnDetailLocalColumn = new DataGridViewButtonExColumn("",
                                                                      BDAuscultation.Properties.Resources.详情点击状态, BDAuscultation.Properties.Resources.详情未点击)
            {
                Name = "dgvTZLYLoaclDetail", HeaderText = "详情"
            };

            this.dgvTZLY_Local.Columns.Add(btnDetailLocalColumn);
            var btnDelLoaclColumn = new DataGridViewButtonExColumn("",
                                                                   BDAuscultation.Properties.Resources.除点击状态, BDAuscultation.Properties.Resources.除未点击)
            {
                Name = "dgvTZLYLoaclDelete", HeaderText = "删除"
            };

            this.dgvTZLY_Local.Columns.Add(btnDelLoaclColumn);
            dgvTZLY_Local.ListColumnImage.Add(null);
            dgvTZLY_Local.ListColumnImage.Add(BDAuscultation.Properties.Resources.患者类型);
            dgvTZLY_Local.ListColumnImage.Add(BDAuscultation.Properties.Resources.患者姓名);
            dgvTZLY_Local.ListColumnImage.Add(BDAuscultation.Properties.Resources.医生姓名);
            dgvTZLY_Local.ListColumnImage.Add(BDAuscultation.Properties.Resources.初步诊断);
            dgvTZLY_Local.ListColumnImage.Add(BDAuscultation.Properties.Resources.备注);
            dgvTZLY_Local.ListColumnImage.Add(BDAuscultation.Properties.Resources.载时间);
            dgvTZLY_Local.ListColumnImage.Add(BDAuscultation.Properties.Resources.详情未点击);
            dgvTZLY_Local.ListColumnImage.Add(BDAuscultation.Properties.Resources.除未点击);

            var btnDetailDownColumn = new DataGridViewButtonExColumn("",
                                                                     BDAuscultation.Properties.Resources.详情点击状态, BDAuscultation.Properties.Resources.详情未点击)
            {
                Name = "dgvTZLYDwonDetail", HeaderText = "详情", Width = 70
            };

            this.dgvTZLY_Down.Columns.Add(btnDetailDownColumn);
            var btnDelDownColumn = new DataGridViewButtonExColumn("",
                                                                  BDAuscultation.Properties.Resources.除点击状态, BDAuscultation.Properties.Resources.除未点击)
            {
                Name = "dgvTZLYDownDelete", HeaderText = "删除", Width = 70
            };

            this.dgvTZLY_Down.Columns.Add(btnDelDownColumn);
            dgvTZLY_Down.ListColumnImage.Add(null);
            dgvTZLY_Down.ListColumnImage.Add(BDAuscultation.Properties.Resources.患者类型);
            dgvTZLY_Down.ListColumnImage.Add(BDAuscultation.Properties.Resources.患者姓名);
            dgvTZLY_Down.ListColumnImage.Add(BDAuscultation.Properties.Resources.医生姓名);
            dgvTZLY_Down.ListColumnImage.Add(BDAuscultation.Properties.Resources.初步诊断);
            dgvTZLY_Down.ListColumnImage.Add(BDAuscultation.Properties.Resources.备注);
            dgvTZLY_Down.ListColumnImage.Add(BDAuscultation.Properties.Resources.分享者);
            dgvTZLY_Down.ListColumnImage.Add(BDAuscultation.Properties.Resources.分享时间);
            dgvTZLY_Down.ListColumnImage.Add(BDAuscultation.Properties.Resources.载时间);
            dgvTZLY_Down.ListColumnImage.Add(BDAuscultation.Properties.Resources.详情未点击);
            dgvTZLY_Down.ListColumnImage.Add(BDAuscultation.Properties.Resources.除未点击);


            cbBoxTZLY.Items.Clear();
            foreach (var item in StethoscopeManager.StethoscopeList)
            {
                var stetInfo = Setting.GetStetInfoByStetName(item.Name);
#if !DEBUG
                if (item.IsConnected)
#endif
                cbBoxTZLY.Items.Add(item.Name);
            }
            if (cbBoxTZLY.Items.Count > 0)
            {
                cbBoxTZLY.SelectedIndex = 0;
            }
        }