/// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        private void SearchCommandFunc(object obj)
        {
            SearchSchemaModel searchData = obj as SearchSchemaModel;
            ThirftService     thrift     = new ThirftService();

            long startDate =
                ConvertTime.ConvertTimeToLongData(true, searchData.StartDateValue, searchData.StartTimeIndex, searchData.StartMinute);
            long endDate =
                ConvertTime.ConvertTimeToLongData(false, searchData.EndDateValue, searchData.EndTimeIndex, searchData.EndMinute);

            //LoadingVisiblity = Visibility.Visible;
            if (searchData.TemplateStoreIndex == 0)
            {
                IsSnapStore = Visibility.Collapsed;

                Task task = QueryResultFromTemplateStore(thrift, startDate, endDate, searchData);
            }
            else
            {
                IsSnapStore = Visibility.Visible;
                Task task = QueryResultFromSanpStore(thrift, startDate, endDate);
            }

            //LoadingVisiblity = Visibility.Collapsed;
            //OnPropertyChanged("LoadingVisiblity");
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        void SearchCommandFunc(object obj)
        {
            SearchSchemaModel searchData = obj as SearchSchemaModel;
            long startTime = ConvertTime.ConvertTimeToLongData(true, searchData.StartDateValue, searchData.StartTimeIndex, searchData.StartMinute);

            long endTime = ConvertTime.ConvertTimeToLongData(false, searchData.EndDateValue, searchData.EndTimeIndex, searchData.EndMinute);

            try
            {
                ThirftService thrift = new ThirftService();
                if (searchData.IsTargetValue == "有目标分析")
                {
                    GoTarget(thrift, startTime, endTime);
                }
                else
                {
                    GoNoTarget(thrift, startTime, endTime);
                }
            }
            catch (Exception)
            {
            }
        }