Beispiel #1
0
        /// <summary>
        /// 執行 Find 方法的實作。
        /// </summary>
        /// <param name="inputArgs"></param>
        /// <param name="outputResult"></param>
        protected virtual void DoFind(GFindInputArgs inputArgs, GFindOutputResult outputResult)
        {
            var selectArgs = new GSelectInputArgs {
                TableName = this.ProgID, SelectFields = inputArgs.SelectFields, FilterItems = inputArgs.FilterItems
            };
            var selectResult = Select(selectArgs);

            outputResult.EntityTable = selectResult.Table;
        }
Beispiel #2
0
        /// <summary>
        /// 查詢清單資料。
        /// </summary>
        /// <param name="inputArgs"></param>
        /// <returns></returns>
        public GFindOutputResult Find(GFindInputArgs inputArgs)
        {
            var outputResult = new GFindOutputResult();

            DoBeforeFind(inputArgs, outputResult);
            if (inputArgs.Cancel)
            {
                return(outputResult);
            }

            DoFind(inputArgs, outputResult);

            DoAfterFind(inputArgs, outputResult);

            return(outputResult);
        }
Beispiel #3
0
 /// <summary>
 /// 執行 Find 方法後呼叫的方法。
 /// </summary>
 /// <param name="inputArgs"></param>
 /// <param name="outputResult"></param>
 protected virtual void DoAfterFind(GFindInputArgs inputArgs, GFindOutputResult outputResult)
 {
 }
Beispiel #4
0
 /// <summary>
 /// 執行 Find 方法前呼叫的方法。
 /// </summary>
 /// <param name="inputArgs"></param>
 /// <param name="outputResult"></param>
 protected virtual void DoBeforeFind(GFindInputArgs inputArgs, GFindOutputResult outputResult)
 {
 }