Exemple #1
0
 public IPlugIn Run(DrectSoft.FrameWork.WinForm.Plugin.IEmrHost host)
 {
     try
     {
         PlugIn plg = new PlugIn(this.GetType().ToString(), this);
         plg.PatientChanging += new PatientChangingHandler(plg_PatientChanging);
         plg.PatientChanged  += new PatientChangedHandler(plg_PatientChanged);
         m_app       = host;
         m_RecordDal = new RecordDal(m_app.SqlHelper);
         m_UCEmrInput.SetInnerVar(m_app, m_RecordDal);
         m_UCEmrInput.CurrentInpatient = m_app.CurrentPatientInfo;
         return(plg);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }