Esempio n. 1
0
 public MED_ANESTHESIA_EVENT AddRow(object obj)
 {
     if (_anesthesiaEventsEditor != null)
     {
         return(_anesthesiaEventsEditor.AddRow(obj));
     }
     return(null);
 }
Esempio n. 2
0
        private void lblDosage_Click(object sender, MouseEventArgs e)
        {
            Label lbl = sender as Label;

            if (!lbl.Text.Equals("?"))
            {
                ItemAdd(Convert.ToInt32(lbl.Tag), lbl.Text);
                if (items.Count > 0)
                {
                    foreach (EventInfo info in items)
                    {
                        MED_ANESTHESIA_EVENT row = _anesthesiaEventsEditor.AddRow(info.ItemClass, info.ItemName, info.ItemSpec, info.ItemCode, info.Administrator, (decimal)info.Concentration
                                                                                  , info.ConcentrationUnit, (decimal)info.Dosage, info.DosageUnits, (decimal)info.PerformSpeed, info.SpeedUnit, ExtendApplicationContext.Current.LoginUser.USER_JOB_ID, info.Event_Attr, (int)info.DuractiveIndicator);
                        SetEventSortValue(row);
                    }
                    items.Clear();
                }
            }
        }
Esempio n. 3
0
 private void btnOK_Click(object sender, EventArgs e)
 {
     try
     {
         if (items.Count > 0)
         {
             foreach (EventInfo info in items)
             {
                 MED_ANESTHESIA_EVENT row = _anesthesiaEventsEditor.AddRow(info.ItemClass, info.ItemName, info.ItemSpec, info.ItemCode, info.Administrator, (decimal)info.Concentration
                                                                           , info.ConcentrationUnit, (decimal)info.Dosage, info.DosageUnits, (decimal)info.PerformSpeed, info.SpeedUnit, ExtendApplicationContext.Current.LoginUser.USER_JOB_ID, info.Event_Attr);
                 if (row != null)
                 {
                     row.START_TIME         = timeEvent.Value;
                     row.DURATIVE_INDICATOR = (int)info.DuractiveIndicator;
                 }
             }
             items.Clear();
         }
     }
     catch (Exception ex)
     {
         ExceptionHandler.Handle(ex);
     }
 }