Example #1
0
        protected virtual void PreparePostObject(IInputData input)
        {
            DataSet postDataSet = input.PostObject.Convert <DataSet>();

            MainResolver.PrepareDataSet(postDataSet);
            OnPreparedPostObject(new PreparePostObjectEventArgs(input));
        }
Example #2
0
        protected virtual void PreparePostObject(IInputData input)
        {
            DataSet postDataSet = input.PostObject.Convert <DataSet>();

            MainResolver.PrepareDataSet(postDataSet);
            foreach (var item in ChildTables)
            {
                item.Resolver.PrepareDataSet(postDataSet);
                item.SetRelationFieldValue(MainResolver);
            }

            OnPreparedPostObject(new PreparePostObjectEventArgs(input));
        }
        protected virtual OutputData DoPost(IInputData input)
        {
            MainResolver.PrepareDataSet(input.PostObject.Convert <DataSet>());

            switch (input.Style.Style)
            {
            case PageStyle.Update:
                DefaultUpdateAction(input);
                break;

            default:
                TkDebug.ThrowImpossibleCode(this);
                break;
            }

            PostData(input);
            Commit(input);

            return(OutputData.CreateToolkitObject(KeyData.Empty));
        }