Exemplo n.º 1
0
 private static void DiffTables(HtmlDataTable referenceTable, HtmlDataTable currentTable)
 {
     foreach (var currentDataRow in currentTable.Rows)
     {
         var referenceRow = referenceTable.GetRowByDateFormat(currentDataRow.DateFormat);
         DiffCellsInRows(referenceRow, currentDataRow);
     }
 }
Exemplo n.º 2
0
            public ITableBuilder <TChild> ChildTable <TChild>(Expression <Func <T, IEnumerable <TChild> > > memberExpression) where TChild : class
            {
                var name  = GetPropertyName(memberExpression);
                var child = new HtmlDataTable <TChild>(_helper, string.Format("{0}_Details_{1}", tableId, name), this);

                this.childPropertyName = name;
                childTable             = child;
                return(child);
            }
Exemplo n.º 3
0
        public void Execute(string referenceFile, string courantFile, string diffsFile)
        {
            var referenceTable = new HtmlDataTable(referenceFile);
            var currentTable   = new HtmlDataTable(courantFile);

            DiffTables(referenceTable, currentTable);

            currentTable.Save(diffsFile);
        }
Exemplo n.º 4
0
            public ITableBuilder <TChild> ChildTable <TChild>(Expression <Func <T, int> > parentPropertyExpression, string url) where TChild : class
            {
                var name = typeof(TChild).Name;

                this.parentPropertyName = GetPropertyNameFrom <T, int>(parentPropertyExpression);
                var child = new HtmlDataTable <TChild>(_helper, string.Format("{0}_Details_{1}", tableId, name), this, url);

                child.InServer();
                childTable     = child;
                deferredSearch = true;
                return(child);
            }