Ejemplo n.º 1
0
        private void gridEdu_CellClick(object sender, ODGridClickEventArgs e)
        {
            if (e.Col != 1)
            {
                return;
            }
            bool didPrint = false;

            try {
                FormEhrEduBrowser FormEDUB = new FormEhrEduBrowser(eduResourceList[e.Row].ResourceUrl);
                FormEDUB.ShowDialog();
                didPrint = FormEDUB.DidPrint;
                //System.Diagnostics.Process.Start(eduResourceList[e.Row].ResourceUrl);
            }
            catch {
                MessageBox.Show("Link not found.");
                return;
            }
            if (didPrint)
            {
                EhrMeasureEvent newMeasureEvent = new EhrMeasureEvent();
                newMeasureEvent.DateTEvent = DateTime.Now;
                newMeasureEvent.EventType  = EhrMeasureEventType.EducationProvided;
                newMeasureEvent.PatNum     = patCur.PatNum;
                newMeasureEvent.MoreInfo   = eduResourceList[e.Row].ResourceUrl;
                EhrMeasureEvents.Insert(newMeasureEvent);
                FillGridProvided();
            }
        }
Ejemplo n.º 2
0
		private void gridEdu_CellClick(object sender,ODGridClickEventArgs e) {
			if(e.Col!=1) {
				return;
			}
			bool didPrint = false;
			try {
				FormEhrEduBrowser FormEDUB = new FormEhrEduBrowser(eduResourceList[e.Row].ResourceUrl);
				FormEDUB.ShowDialog();
				didPrint = FormEDUB.DidPrint;
				//System.Diagnostics.Process.Start(eduResourceList[e.Row].ResourceUrl);
			}
			catch {
				MessageBox.Show("Link not found.");
				return;
			}
			if(didPrint) {
				EhrMeasureEvent newMeasureEvent = new EhrMeasureEvent();
				newMeasureEvent.DateTEvent=DateTime.Now;
				newMeasureEvent.EventType=EhrMeasureEventType.EducationProvided;
				newMeasureEvent.PatNum=patCur.PatNum;
				newMeasureEvent.MoreInfo=eduResourceList[e.Row].ResourceUrl;
				EhrMeasureEvents.Insert(newMeasureEvent);
				FillGridProvided();
			}
		}