Beispiel #1
0
        private void OnEdit()
        {
            _isPrint      = false;
            _ketQuaSieuAm = null;
            if (dgSieuAm.SelectedRows == null || dgSieuAm.SelectedRows.Count <= 0)
            {
                MsgBox.Show(Application.ProductName, "Vui lòng chọn 1 kết quả siêu âm.", IconType.Information);
                return;
            }

            if (Global.AllowEditKhamCTC && Global.TVHomeConfig.SuDungSieuAm && !File.Exists(Global.TVHomeConfig.Path))
            {
                MsgBox.Show(Application.ProductName, "Đường dẫn TVHome không tồn tại, vui lòng kiểm tra lại.", IconType.Information);
                return;
            }

            string             gioiTinh       = _patientRow["GenderAsStr"].ToString();
            DataRow            drKetQuaSieuAm = (dgSieuAm.SelectedRows[0].DataBoundItem as DataRowView).Row;
            bool               allowEdit      = _isChuyenBenhAn ? false : Global.AllowEditSieuAm;
            dlgAddKetQuaSieuAm dlg            = new dlgAddKetQuaSieuAm(_patientGUID, gioiTinh, drKetQuaSieuAm, allowEdit);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                _isPrint      = dlg.IsPrint;
                _ketQuaSieuAm = dlg.KetQuaSieuAm;
                DisplayAsThread();
            }
        }
Beispiel #2
0
        private void OnAdd()
        {
            _isPrint      = false;
            _ketQuaSieuAm = null;

            if (Global.TVHomeConfig.SuDungSieuAm && !File.Exists(Global.TVHomeConfig.Path))
            {
                MsgBox.Show(Application.ProductName, "Đường dẫn TVHome không tồn tại, vui lòng kiểm tra lại.", IconType.Information);
                return;
            }

            string             gioiTinh = _patientRow["GenderAsStr"].ToString();
            dlgAddKetQuaSieuAm dlg      = new dlgAddKetQuaSieuAm(_patientGUID, gioiTinh);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                _isPrint      = dlg.IsPrint;
                _ketQuaSieuAm = dlg.KetQuaSieuAm;
                DisplayAsThread();
            }
        }