Пример #1
0
        protected void DoInsertAction(IInputData input)
        {
            DataTable table = MainResolver.CreateVirtualTable();
            DataRow   row   = table.NewRow();

            table.Rows.Add(row);
            MainResolver.SetDefaultValue(input.QueryString);
            MainResolver.SetDefaultValue(row);
            MetaDataTableResolver metaResolver = MainResolver as MetaDataTableResolver;

            if (metaResolver != null)
            {
                metaResolver.FillCodeTable(input.Style);
                metaResolver.Decode(input.Style);
            }
        }
Пример #2
0
        protected void DoInsertAction(IInputData input)
        {
            DataTable table = MainResolver.CreateVirtualTable();
            DataRow   row   = NewTableRow(table);

            MainResolver.SetDefaultValue(input.QueryString);
            MainResolver.SetDefaultValue(row);
            DecodeResolver(input, MainResolver);

            foreach (var item in fDetailResolvers)
            {
                TableResolver resolver = item.Item1;
                table = resolver.CreateVirtualTable();
                if (!item.Item2)
                {
                    row = NewTableRow(table);
                    resolver.SetDefaultValue(row);
                }
                DecodeResolver(input, resolver);
            }
        }