private void btnSelectIMSI_Click(object sender, RoutedEventArgs e) { try { string imsi = string.Empty; string timeStart = string.Empty; string timeEnd = string.Empty; timeStart = Convert.ToDateTime(dpStartTime.Text).ToString("yyyy-MM-dd") + " " + System.Int32.Parse(txtStartHour.Text.Trim()).ToString().PadLeft(2, '0') + ":" + System.Int32.Parse(txtStartMinute.Text.Trim()).ToString().PadLeft(2, '0') + ":" + System.Int32.Parse(txtStartSecond.Text.Trim()).ToString().PadLeft(2, '0'); timeEnd = Convert.ToDateTime(dpEndTime.Text).ToString("yyyy-MM-dd") + " " + System.Int32.Parse(txtEndHour.Text.Trim()).ToString().PadLeft(2, '0') + ":" + System.Int32.Parse(txtEndMinute.Text.Trim()).ToString().PadLeft(2, '0') + ":" + System.Int32.Parse(txtEndSecond.Text.Trim()).ToString().PadLeft(2, '0'); imsi = txtIMSI.Text.Trim(); if (NetWorkClient.ControllerServer.Connected) { NetWorkClient.ControllerServer.Send(JsonInterFace.Get_imsi_path_Request(timeStart, timeEnd, imsi)); } else { Parameters.PrintfLogsExtended("网络与服务器断开!", "Connected: Failed!"); } } catch (Exception ex) { MessageBox.Show("轨迹查询" + ex.Message, "提示", MessageBoxButton.OK, MessageBoxImage.Warning); } string marker = mapweb.InvokeScript("GetAllMarker").ToString(); string[] listMarker = marker.Split(new char[] { '|' }); for (int i = 0; i < listMarker.Length - 1; i++) { string point = listMarker[i]; } }