Exemplo n.º 1
0
        private void gridObservations_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            EhrAptObs         obs   = (EhrAptObs)gridObservations.ListGridRows[e.Row].Tag;
            FormEhrAptObsEdit formE = new FormEhrAptObsEdit(obs);

            if (formE.ShowDialog() == DialogResult.OK)
            {
                if (obs.EhrAptObsNum != 0)               //Was not deleted.
                {
                    EhrAptObses.Update(obs);
                }
                FillGridObservations();
            }
        }
Exemplo n.º 2
0
        private void butAdd_Click(object sender, EventArgs e)
        {
            EhrAptObs obs = new EhrAptObs();

            obs.IsNew  = true;
            obs.AptNum = _appt.AptNum;
            FormEhrAptObsEdit formE = new FormEhrAptObsEdit(obs);

            if (formE.ShowDialog() == DialogResult.OK)
            {
                EhrAptObses.Insert(obs);
                FillGridObservations();
            }
        }
Exemplo n.º 3
0
		private void butAdd_Click(object sender,EventArgs e) {
			EhrAptObs obs=new EhrAptObs();
			obs.IsNew=true;
			obs.AptNum=_appt.AptNum;
			FormEhrAptObsEdit formE=new FormEhrAptObsEdit(obs);
			if(formE.ShowDialog()==DialogResult.OK) {
				EhrAptObses.Insert(obs);
				FillGridObservations();
			}
		}
Exemplo n.º 4
0
		private void gridObservations_CellDoubleClick(object sender,UI.ODGridClickEventArgs e) {
			EhrAptObs obs=(EhrAptObs)gridObservations.Rows[e.Row].Tag;
			FormEhrAptObsEdit formE=new FormEhrAptObsEdit(obs);
			if(formE.ShowDialog()==DialogResult.OK) {
				if(obs.EhrAptObsNum!=0) {//Was not deleted.
					EhrAptObses.Update(obs);
				}
				FillGridObservations();
			}
		}