Esempio n. 1
0
        //Получить кол. всех созданных документов данного типа начиная от даты time
        public int GetCreatedDocumentsInfo(DocumentType type, DateTime time)
        {
            int count = 0;
            List <DocumentInfo> createdDocumentsInfo = SqlSecretaryCreatedDocuments.GetCreatedDocumentsInfo(EmployeeId);

            foreach (DocumentInfo documentInfo in createdDocumentsInfo)
            {
                if (documentInfo.Type.Equals(type) && documentInfo.Time.CompareTo(time) > 0)
                {
                    count++;
                }
            }
            return(count);
        }
Esempio n. 2
0
        //Получить кол. всех созданных документов
        public int GetCreatedDocumentsInfo()
        {
            List <DocumentInfo> createdDocumentsInfo = SqlSecretaryCreatedDocuments.GetCreatedDocumentsInfo(EmployeeId);

            return(createdDocumentsInfo.Count);
        }