Exemple #1
0
        public DocumentHistory(HistoryType historyType, Document dvDoc)
        {
            SectionData           sdCustHistory = dvDoc.GetSectionData(historyType.SectionId);
            IEnumerable <RowData> newRdc        = sdCustHistory.Rows.OrderBy(r => r["SysRowTimestamp"]);

            foreach (RowData row in newRdc)
            {
                historyRows.Add(new HistoryRow(row));
            }
        }
Exemple #2
0
        protected HistoryType GetHistoryType()
        {
            HistoryType historyType = null;

            if (ParentDocument.Kind == "Договор")
            {
                historyType = HistoryType.ApprovingContract;
            }
            else if (this.Kind == "Ознакомление")
            {
                historyType = HistoryType.AcquaintanceDeloDoc;
            }
            else
            {
                historyType = HistoryType.ApprovingDeloDoc;
            }
            return(historyType);
        }