private void butAddNote_Click(object sender, EventArgs e)
        {
            FormEhrLabNoteEdit FormLNE = new FormEhrLabNoteEdit();

            FormLNE.LabNoteCur = new EhrLabNote();
            FormLNE.ShowDialog();
            if (FormLNE.DialogResult != DialogResult.OK)
            {
                return;
            }
            FormLNE.LabNoteCur.EhrLabNum = EhrLabCur.EhrLabNum;
            EhrLabCur.ListEhrLabNotes.Add(FormLNE.LabNoteCur);
            FillGridNotes();
        }
        private void gridNotes_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormEhrLabNoteEdit FormLNE = new FormEhrLabNoteEdit();

            FormLNE.IsViewOnly = IsViewOnly;
            FormLNE.IsImport   = IsImport;
            FormLNE.LabNoteCur = EhrLabCur.ListEhrLabNotes[e.Row];
            FormLNE.ShowDialog();
            if (FormLNE.DialogResult != DialogResult.OK)
            {
                return;
            }
            EhrLabCur.ListEhrLabNotes[e.Row] = FormLNE.LabNoteCur;
            FillGridNotes();
        }
Example #3
0
        private void butAddNote_Click(object sender, EventArgs e)
        {
            if (IsImport || IsViewOnly)
            {
                return;                //should never happen. This button shoudl not be enabled if IsImport or IsViewOnly
            }
            FormEhrLabNoteEdit FormLNE = new FormEhrLabNoteEdit();

            FormLNE.LabNoteCur = new EhrLabNote();
            FormLNE.ShowDialog();
            if (FormLNE.DialogResult != DialogResult.OK)
            {
                return;
            }
            FormLNE.LabNoteCur.EhrLabNum       = EhrLabResultCur.EhrLabNum;
            FormLNE.LabNoteCur.EhrLabResultNum = EhrLabResultCur.EhrLabResultNum;
            EhrLabResultCur.ListEhrLabResultNotes.Add(FormLNE.LabNoteCur);
            FillGridNotes();
        }
Example #4
0
		private void gridNotes_CellDoubleClick(object sender,UI.ODGridClickEventArgs e) {
			FormEhrLabNoteEdit FormLNE=new FormEhrLabNoteEdit();
			FormLNE.IsImport=IsImport;
			FormLNE.IsViewOnly=IsViewOnly;
			FormLNE.LabNoteCur=EhrLabResultCur.ListEhrLabResultNotes[e.Row];
			FormLNE.ShowDialog();
			if(IsImport || IsViewOnly || FormLNE.DialogResult!=DialogResult.OK) {
				return;
			}
			EhrLabResultCur.ListEhrLabResultNotes[e.Row]=FormLNE.LabNoteCur;
			FillGridNotes();
		}
Example #5
0
		private void butAddNote_Click(object sender,EventArgs e) {
			if(IsImport || IsViewOnly) {
				return;//should never happen. This button shoudl not be enabled if IsImport or IsViewOnly
			}
			FormEhrLabNoteEdit FormLNE=new FormEhrLabNoteEdit();
			FormLNE.LabNoteCur=new EhrLabNote();
			FormLNE.ShowDialog();
			if(FormLNE.DialogResult!=DialogResult.OK) {
				return;
			}
			FormLNE.LabNoteCur.EhrLabNum=EhrLabResultCur.EhrLabNum;
			FormLNE.LabNoteCur.EhrLabResultNum=EhrLabResultCur.EhrLabResultNum;
			EhrLabResultCur.ListEhrLabResultNotes.Add(FormLNE.LabNoteCur);
			FillGridNotes();
		}
		private void butAddNote_Click(object sender,EventArgs e) {
			FormEhrLabNoteEdit FormLNE=new FormEhrLabNoteEdit();
			FormLNE.LabNoteCur=new EhrLabNote();
			FormLNE.ShowDialog();
			if(FormLNE.DialogResult!=DialogResult.OK) {
				return;
			}
			FormLNE.LabNoteCur.EhrLabNum=EhrLabCur.EhrLabNum;
			EhrLabCur.ListEhrLabNotes.Add(FormLNE.LabNoteCur);
			FillGridNotes();
		}