Ejemplo n.º 1
0
        private void createListSelected()
        {
            try
            {
                Documentation.DocumentsList dList = new Documentation.DocumentsList();
            if (checkedListBox1.SelectedItems.Count > 0)
                {

                foreach (int ic in this.checkedListBox1.CheckedIndices)
                    {
                         dList.Add(documentList[ic] );
                //    checkedListBox1.SetItemCheckState(ic, CheckState.Unchecked);
                    }

                }
                else
                {
                    System.Windows.Forms.MessageBox.Show("Выберите документы");
                }

            EventHandler<FormParentListEventArgs> handler = this.ParentDocumentsList;

            if (handler != null)
            {
                handler(this, new FormParentListEventArgs (dList));
            }

            }

            catch (Exception exception)
            {
                Warnings.WarnLog log = new Warnings.WarnLog();
                log.writeLog(MethodBase.GetCurrentMethod().Name, exception.Message.ToString(), exception.StackTrace.ToString());
            }
        }
Ejemplo n.º 2
0
 public void loadDataForPatient(int _pid, DateTime _dateFrom, DateTime _dateTo)
 {
     documentList = new Documentation.DocumentsList();
     documentList.GetPatientDocumentsByDate(_pid, _dateFrom, _dateTo);
     foreach (Documentation.Document i in documentList)
     {
         checkedListBox1.Items.Add(i.Serial+" "+ i.DocumentShortName +" "+ i.DocumentHeader + " " + i.Date);
     }
 }
Ejemplo n.º 3
0
 private void loadDocumentsForPatients(int _pid)
 {
     comboBox1.Items.Clear();
     documentList = new Documentation.DocumentsList();
     documentList.Get50PatientDocumentsWithoutAE(_pid);
     foreach (Documentation.Document i in documentList)
     {
         comboBox1.Items.Add(i.Date + " " + i.DocumentHeader + " " + i.DocumentShortName + " " + i.DocumentDoctor);
     }
 }
Ejemplo n.º 4
0
 public FormParentListEventArgs(Documentation.DocumentsList DocList)
 {
     _docList = DocList;
 }