コード例 #1
0
        /// <summary>
        /// 根据value模糊查询获得对应的自定义的List<string>
        /// </summary>
        /// <param name="customDataEnum">枚举类型type</param>
        /// <returns></returns>
        public List <string> GetExistByValue(CustomDataEnum customDataEnum, string value)
        {
            List <string> queryResult = new List <string>();
            var           result      = customDataDAO.GetExistByValue(customDataEnum, value);

            foreach (var i in result)
            {
                queryResult.Add(i.CD_CustomName);
            }
            return(queryResult);
        }
コード例 #2
0
ファイル: zero.xaml.cs プロジェクト: Avalon305/AI_Recovery
        /// <summary>
        /// 测试自定义模糊查询
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_12(object sender, RoutedEventArgs e)
        {
            CustomDataDAO customDataDAO = new CustomDataDAO();

            MessageBox.Show(JsonTools.Obj2JSONStrNew(customDataDAO.GetExistByValue(CustomDataEnum.Group, "C")));
        }