private void RefreshGrid() { WebService service = new WebService(); service.SQLText = "SELECT MUSTERI_KODU, MUSTERI_ADI, TIP.TIP_TANIMI, ULKE, UST_NO, TEL_NO, CEP_TEL, E_POSTA, WEB_SITE, PASIF_MI, PUAN = ISNULL((SELECT CAST(SUM(TUTAR) / 100 AS INT) AS PUAN FROM TBLSIPARIS SIP WHERE SIP.MUSTERI_KODU = MUS.MUSTERI_KODU AND ISNULL(DURUM, 0) = 1), 0) FROM TBLMUSTERI MUS, TBLMUSTERITIP TIP WHERE 1 = 1 AND TIP.MUSTERI_TIPI = MUS.MUSTERI_TIPI "; if (PASIF_MI.SelectedIndex == 1) { service.SQLText += " AND PASIF_MI = 'H'"; } else if (PASIF_MI.SelectedIndex == 2) { service.SQLText += " AND PASIF_MI = 'E'"; } service.Open(); ListeRaporGrid.Open(service.dataSet); lblKayıtAdet.Text = service.DataCount() + " Kayıt"; }
private void RefreshGrid() { WebService service = new WebService(); service.SQLText = "SELECT PROMOSYON_KODU, PROMOSYON_TANIMI, PUAN, PASIF_MI FROM TBLPROMOSYON WHERE 1 = 1 "; if (PASIF_MI.SelectedIndex == 1) { service.SQLText += " AND PASIF_MI = 'H'"; } else if (PASIF_MI.SelectedIndex == 2) { service.SQLText += " AND PASIF_MI = 'E'"; } service.Open(); ListeRaporGrid.Open(service.dataSet); lblKayıtAdet.Text = service.DataCount() + " Kayıt"; }
private void RefreshGrid() { WebService service = new WebService(); service.SQLText = "SELECT TEDARIKCI_KODU, TEDARIKCI_ADI, CADDE_SOKAK, UST_NO, SEHIR, TEL_NO, CEP_TEL, E_POSTA, WEB_SITE, PASIF_MI FROM TBLTEDARIKCI WHERE 1 = 1 "; if (PASIF_MI.SelectedIndex == 1) { service.SQLText += " AND PASIF_MI = 'H'"; } else if (PASIF_MI.SelectedIndex == 2) { service.SQLText += " AND PASIF_MI = 'E'"; } service.Open(); ListeRaporGrid.Open(service.dataSet); lblKayıtAdet.Text = service.DataCount() + " Kayıt"; }
private void RefreshGrid() { WebService service = new WebService(); sqlText = gridSQL + " WHERE 1=1"; if (PASIF_MI.SelectedIndex == 1) { sqlText += " AND PASIF_MI = 'H'"; } else if (PASIF_MI.SelectedIndex == 2) { sqlText += " AND PASIF_MI = 'E'"; } if (defWhereStr != "") { sqlText += " AND " + defWhereStr; } service.SQLText = sqlText; service.Open(); ListeRaporGrid.Open(service.dataSet); lblKayıtAdet.Text = service.DataCount() + " Kayıt"; }
private void TextBox1_TextChanged(object sender, EventArgs e) { ListeRaporGrid.Search(textBox1.Text); }