Пример #1
0
 //创建一个新的RecordsSearchFunctions对象,并且让SearchingResultPage的ID和它的ID一致
 public RecordsSearchFunctions()
 {
     IDCount++;
     SearchingResultPage.ID = ID = IDCount;
     cswQueryServiceClient.getRecords_BasicSearchCompleted      += new EventHandler <getRecords_BasicSearchCompletedEventArgs>(proxy_GetRecords_BasicSearchCompleted);
     cswQueryServiceClient.getRecords_AdvancedSearchCompleted   += new EventHandler <getRecords_AdvancedSearchCompletedEventArgs>(proxy_GetRecords_AdvancedSearchCompleted);
     cswQueryServiceClient.getRecords_QuickSearchBySBACompleted += new EventHandler <getRecords_QuickSearchBySBACompletedEventArgs>(proxy_getRecords_QuickSearchBySBACompleted);
     queryPerformanceFunctions = new QualityQueryFunctions(ID);
     otherQueryFuntions        = new OtherQueryFuntions();
 }
Пример #2
0
 public void setBasicContent(ClientSideRecord record, QualityQueryFunctions queryPerformanceFunctions, DateTime from, DateTime to)
 {
     this.record = record;
     if (record.Type.Equals(ConstantCollection.ServiceType_WMS))
     {
         Button_WMS_Layers_QoS.Visibility = Visibility.Visible;
     }
     else
     {
         Button_WMS_Layers_QoS.Visibility = Visibility.Collapsed;
     }
     this.queryPerformanceFunctions = queryPerformanceFunctions;
     setServiceQoSDateTimeFromAndTo(from, to);
     setServiceQoSDatePickerFromAndTo();
     TextBox_Title.DataContext = record;
 }