Ejemplo n.º 1
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            SelectedPatNum = PIn.PInt(table.Rows[e.Row]["PatNum"].ToString());
            Recall[]           recalls = Recalls.GetList(new int[] { SelectedPatNum });
            FormRecallListEdit FormRE  = new FormRecallListEdit(recalls[0]);

            FormRE.ShowDialog();
            if (FormRE.PinClicked)
            {
                PinClicked   = true;
                AptSelected  = FormRE.AptSelected;
                DialogResult = DialogResult.OK;
                return;
            }
            else
            {
                FillMain();
            }
            for (int i = 0; i < gridMain.Rows.Count; i++)
            {
                if (PIn.PInt(table.Rows[i]["PatNum"].ToString()) == SelectedPatNum)
                {
                    gridMain.SetSelected(i, true);
                }
            }
            SetFamilyColors();
        }
Ejemplo n.º 2
0
        private void listFamily_DoubleClick(object sender, System.EventArgs e)
        {
            if (listFamily.SelectedIndices.Count == 0)
            {
                return;
            }
            int    originalPatNum = PatCur.PatNum;
            Recall recallCur      = null;

            for (int i = 0; i < RecallList.Length; i++)
            {
                if (RecallList[i].PatNum == FamCur.List[listFamily.SelectedIndices[0]].PatNum)
                {
                    recallCur = RecallList[i];
                }
            }
            if (recallCur == null)
            {
                recallCur                = new Recall();
                recallCur.PatNum         = FamCur.List[listFamily.SelectedIndices[0]].PatNum;
                recallCur.RecallInterval = new Interval(0, 0, 6, 0);
            }
            FormRecallListEdit FormRLE = new FormRecallListEdit(recallCur);

            FormRLE.ShowDialog();
            if (FormRLE.PinClicked)
            {
                oResult      = OtherResult.CopyToPinBoard;
                AptSelected  = FormRLE.AptSelected;
                DialogResult = DialogResult.OK;
            }
            else
            {
                FamCur = Patients.GetFamily(originalPatNum);
                PatCur = FamCur.GetPatient(originalPatNum);
                Filltb();
            }
        }