Exemplo n.º 1
0
 private static string GetCompareConditionStr(MDModel_QueryModel _qv, MDCompare_Request compareRequest, string _itemIndex)
 {
     if (!compareRequest.CompareItems.ContainsKey(_itemIndex))
     {
         throw new Exception(string.Format("缺少编号为{0}的条件项!", _itemIndex));
     }
     else
     {
         MDCompare_ConditionItem _cItem = compareRequest.CompareItems[_itemIndex];
         return(OraConditionItemBuilder.BuildCompareConditionItemString(_cItem, _qv));
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// 取条件项字符串
        /// </summary>
        /// <param name="_qv"></param>
        /// <param name="_queryRequest"></param>
        /// <param name="_itemIndex"></param>
        /// <returns></returns>
        private static string GetConditionStr(MDModel_QueryModel _qv, MDQuery_Request _queryRequest, string _itemIndex)
        {
            var _find = from _c in _queryRequest.ConditionItems
                        where _c.ColumnIndex == _itemIndex
                        select _c;

            if (_find == null || _find.Count() < 1)
            {
                throw new Exception(string.Format("缺少编号为{0}的条件项!", _itemIndex));
            }
            else
            {
                MDQuery_ConditionItem _cItem = _find.First();
                return(OraConditionItemBuilder.BuildConditionItemString(_cItem, _qv));
            }
        }