Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        internal override ReturnResultBase Execute()
        {
            ReturnResult result = (ReturnResult)PrepareColumnsList();

            if (result.Success)
            {
                OnRecordFetchDelegate onRecordFetch = Serialize;

                Init();

                IClientCommand dataViewCommand = CommandFactory.CreateFetchAllDataViewCommand(Task.getTaskTag(), onRecordFetch);
                result = Task.DataviewManager.Execute(dataViewCommand);

                Terminate();
            }

            return(result);
        }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="taskId"></param>
 /// <param name="onRecordFetchDelegate"></param>
 /// <returns></returns>
 internal static FetchAllDataViewCommand CreateFetchAllDataViewCommand(String taskId, OnRecordFetchDelegate onRecordFetchDelegate)
 {
     return(new FetchAllDataViewCommand {
         TaskTag = taskId, onRecordFetch = onRecordFetchDelegate
     });
 }
Exemplo n.º 3
0
 internal LocalDataViewFetcherCommand(IClientCommand command)
     : base(command)
 {
     this.onRecordFetch = ((FetchAllDataViewCommand)command).onRecordFetch;
 }