private void goster(radiusEntities dc) { PosBanka s = new PosBanka(dc); GridView1.DataSource = s.bankalar(); GridView1.DataBind(); }
private void goster_kasa(radiusEntities dc) { PosBanka s = new PosBanka(dc); if (!IsPostBack) { List <Radius.pos_tanims> poss = s.PosListe(); drdKart.AppendDataBoundItems = true; drdKart.DataSource = poss; drdKart.DataValueField = "pos_id"; drdKart.DataTextField = "pos_adi"; drdKart.DataBind(); drdPosBanka.AppendDataBoundItems = true; drdPosBanka.DataSource = s.bankalar(); drdPosBanka.DataValueField = "banka_id"; drdPosBanka.DataTextField = "banka_adi"; drdPosBanka.DataBind(); } int? pos_id = null; bool?aktif = null; bool cekilen = false; int index = drdKart.SelectedIndex; int aktifS = drdAktif.SelectedIndex; if (index > 1) { pos_id = Int32.Parse(drdKart.SelectedValue); } if (aktifS > 0) { aktif = true; } if (chcCekilen.Checked == true) { cekilen = true; } if (cekilen == true) { posozet ozet = s.HesaplarCekilen(pos_id); txtAdet.InnerHtml = "İşlem :" + ozet.adet.ToString(); txtTutar.InnerHtml = "Tahsilat :" + ozet.tahsilat_tutar.ToString("C"); txtKomisyon.InnerHtml = "Komisyon :" + ozet.komisyon_tutar.ToString("C"); txtNet.InnerHtml = "NET :" + ozet.net_tutar.ToString("C"); btnTransfer.Visible = false; GridView1.DataSource = ozet.poshesaplar; GridView1.DataBind(); } else { posozet ozet = s.Hesaplar(pos_id, aktif); txtAdet.InnerHtml = "İşlem :" + ozet.adet.ToString(); txtTutar.InnerHtml = "Tahsilat :" + ozet.tahsilat_tutar.ToString("C"); txtKomisyon.InnerHtml = "Komisyon :" + ozet.komisyon_tutar.ToString("C"); txtNet.InnerHtml = "NET :" + ozet.net_tutar.ToString("C"); if (pos_id != null && ozet.net_tutar > 0 && aktif == true) { btnTransfer.Visible = true; } else { btnTransfer.Visible = false; } GridView1.DataSource = ozet.poshesaplar; GridView1.DataBind(); } }