/// <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");
        }
Beispiel #2
0
 /// <summary>
 /// <para>Initializes a new instance of the class CallInfo from the ALPData storage.</para>
 /// <para>Reads the necessary number of bytes from the provided data storage and advances the current position.</para>
 /// </summary>
 /// <param name="data">Any object deriving from ALPData that holds the data.</param>
 public CallInfo(AltiLinkPlus.ALPData data)
 {
     base.ToALPData(data.ReadBytes(Length));
     Position                = 0;
     lineID                  = CallHandle = ReadInt32();
     SessionHandle           = ReadInt32();
     callerPAD               = ReadInt32();
     callerIPAddress         = ReadInt32();
     callerID                = ReadString(41);
     callerName              = ReadString(65);
     calleePAD               = ReadInt32();
     accessCode              = ReadString(1);
     calleeID                = ReadString(41);
     calleeName              = ReadString(65);
     workgroupPAD            = ReadInt32();
     WorkGroupNumber         = ReadString(9);
     OutBoundWorkGroupNumber = ReadString(8);
     DNISName                = ReadString(65);
     DNISID                  = ReadString(41);
     ANIName                 = ReadString(65);
     ANIID            = ReadString(41);
     this.CurrentTime = ConvertTime.ToDateTime(ReadInt32());
     this.StartTime   = ConvertTime.ToDateTime(ReadInt32());
     this.HoldTime    = ConvertTime.ToDateTime(ReadInt32());
 }
Beispiel #3
0
 /// <summary>
 /// Gets all the data from Call Info structure.
 /// </summary>
 /// <returns>An array of bytes holding all data for Call Info structure.</returns>
 public override byte [] GetBytes()
 {
     base.Length = this.Length;
     Position    = 0;
     Write(CallHandle);
     Write(SessionHandle);
     Write(callerIPAddress);
     Write(callerID, 41);
     Write(callerName, 65);
     Write(calleePAD);
     Write(accessCode, 1);
     Write(calleeID, 41);
     Write(calleeName, 65);
     Write(workgroupPAD);
     Write(WorkGroupNumber, 9);
     Write(OutBoundWorkGroupNumber, 8);
     Write(DNISName, 65);
     Write(DNISID, 41);
     Write(ANIName, 65);
     Write(ANIID, 41);
     Write(BitConverter.GetBytes(ConvertTime.To_time_t(CurrentTime)));
     Write(BitConverter.GetBytes(ConvertTime.To_time_t(StartTime)));
     Write(BitConverter.GetBytes(ConvertTime.To_time_t(HoldTime)));
     return(base.GetBytes());
 }
Beispiel #4
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)
            {
            }
        }