private void DtBike_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (dtBike.SelectedItem != null) { popupBike.IsOpen = false; var row = (V_Product_V)dtBike.SelectedItem; double?avgPoint = 0; var ID = row.ProductID; var image = services.Image(ID); ImgBike.Source = image; avgPoint = users.AVgPointForProduct(row.ProductID); if (avgPoint != 0) { lblAvgPoint.Content = "Ürünün Ortalama Puanı : " + avgPoint.ToString() + ""; } else { lblAvgPoint.Content = "Ürün hakkında puanlama yapılmamış"; } popupBike.IsOpen = true; } }
private void DtGridTicket_SelectionChanged(object sender, SelectionChangedEventArgs e) { var row = (V_FeedBakDetail)dtGridTicket.SelectedItem; if (dtGridTicket.SelectedItem != null) { TicketPopUp.IsOpen = false; TicketPopUp.IsOpen = true; var userName = ticket.getUserInfo(int.Parse(row.UserID.ToString())); lblUserName.Content = "Kullanıcı Adı " + userName.UserName + ""; lblMail.Content = "Mail Adresi: " + userName.UserMail + ""; var ProductName = ticket.UserTicketProduct(int.Parse(row.ProductID.ToString()), false); lblProductName.Content = "Ürün İsmi: " + ProductName.ToString() + ""; var CompanyName = ticket.UserTicketProduct(int.Parse(row.ProductID.ToString()), true); lblFirma.Content = "Firma Adı: " + CompanyName.ToString() + ""; lblPoint.Content = "Ürün Ortalama Puanınız: " + ((row.Dayanıklılık + row.DısGörünüs + row.Kalite + row.KullanımKolaylıgı + row.FiyatPerf) / 5).ToString() + ""; var image = services.Image(int.Parse(row.ProductID.ToString())); ImgTicket.Source = image; if (ticket.FlagStatus(row.FeedBackDetail_ID) == false) { lblTicketStatus.Content = "Bildirim Durumu : Açık"; } else { lblTicketStatus.Content = "Bildirim Durumu : Kapalı"; } lblSikayet.Content = "" + row.UserReview.ToUpper() + ""; if (row.CompanyReview != null && row.CompanyReview != "") { lblFirmaAcıklamasi.Content = "" + row.CompanyReview.ToUpper() + ""; } else { lblFirmaAcıklamasi.Content = "Firma Henüz Geri Dönüş Yapmamıştır"; } } }
private void DtGridFeedBack_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (dtGridFeedBack.SelectedItem != null) { popUpPoint.IsOpen = false; int counter = 0; var row = (Sells)dtGridFeedBack.SelectedItem; userID = row.UserID; ProductID = row.ProductID; var image = services.Image(int.Parse(row.ProductID.ToString())); ImgFeedBack.Source = image; var listUserPoint = UserPro.UserPoint(ProductID, userID); if (row.DeliveryFlag == 0) { lblTicket.Content = "Bilet Durumu: Açık"; rchBoxReview.IsReadOnly = false; } else { lblTicket.Content = "Bilet Durumu: Kapalı"; rchBoxReview.IsReadOnly = true; } if (listUserPoint == null) { txtDısGörünüs.Text = "Dış Görünüş Puanını Buraya Giriniz"; txtDısGörünüs.IsReadOnly = false; txtFiyPerf.Text = "Fiyat Performans Puanını Buraya Giriniz"; txtFiyPerf.IsReadOnly = false; txtKullanımK.Text = "Kullanım Kolaylığı Puanını Buraya Giriniz"; txtKullanımK.IsReadOnly = false; txtKalite.Text = "Kalite Puanını Buraya Giriniz"; txtKalite.IsReadOnly = false; txtDay.Text = "Dayanıklılık Puanını Buraya Giriniz"; } else { foreach (var item in listUserPoint) { if (counter == 0) { txtDısGörünüs.Text = "Ürün Puanınız=" + item + ""; txtDısGörünüs.IsReadOnly = true; } if (counter == 1) { txtFiyPerf.Text = "Ürün Puanınız=" + item + ""; txtFiyPerf.IsReadOnly = true; } if (counter == 2) { txtKullanımK.Text = "Ürün Puanınız=" + item + ""; txtKullanımK.IsReadOnly = true; } if (counter == 3) { txtKalite.Text = "Ürün Puanınız= " + item + ""; txtKalite.IsReadOnly = true; } if (counter == 4) { txtDay.Text = "Ürün Puanınız= " + item + ""; txtFiyPerf.IsReadOnly = true; } if (counter == 5) { rchBoxReview.Document.Blocks.Clear(); rchBoxReview.Document.Blocks.Add(new Paragraph(new Run(item))); } counter++; } } popUpPoint.IsOpen = true; popUpPoint.Visibility = Visibility.Visible; } }