Exemplo n.º 1
0
        private void SendAddByItem_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DbModel.Location.Work.InspectionTrack it = SendAddByItem.SelectedItem as DbModel.Location.Work.InspectionTrack;
            if (it == null)
            {
                return;
            }
            DbModel.Location.Work.InspectionTrackList TrackList2 = new DbModel.Location.Work.InspectionTrackList();
            TrackList2.AddTrack.Add(it);

            InspectionTrackHub.SendInspectionTracks(TrackList2.ToTModel());//发送给客户端
        }
Exemplo n.º 2
0
        private void DataGridPatrolList2_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DbModel.Location.Work.InspectionTrack item = DataGridPatrolList2.SelectedItem as DbModel.Location.Work.InspectionTrack;
            if (item == null)
            {
                return;
            }
            Bll bll   = Bll.NewBllNoRelation();
            var route = bll.PatrolPoints.FindAll(i => i.ParentId == item.Id);

            PatrolDetail2.SelectedObject   = item;
            DataGridRouteList2.ItemsSource = route;
            bll.Dispose();
        }