Example #1
0
        private void goster(radiusEntities dc)
        {
            string baslik = "ÇEKLER-";
            int    gun    = 2;
            string gunS   = Request.QueryString["gun"];

            if (!String.IsNullOrEmpty(gunS))
            {
                gun = Int32.Parse(gunS);
            }

            baslik += gun.ToString() + "-Güne Kadar-";

            CekSenet c = new CekSenet(dc);

            bool?  cekildi  = null;
            bool?  alinan   = null;
            string alinanS  = Request.QueryString["alinan"];
            string cekildiS = Request.QueryString["cekildi"];

            if (!String.IsNullOrEmpty(alinanS))
            {
                alinan = Boolean.Parse(alinanS);
                if (alinan == true)
                {
                    baslik += "Alınan-";
                }
                else
                {
                    baslik += "Verilen-";
                }
            }
            if (!String.IsNullOrEmpty(cekildiS))
            {
                cekildi = Boolean.Parse(cekildiS);
                if (cekildi == true)
                {
                    baslik += "Ödenen-";
                }
                else
                {
                    baslik += "Ödenmemiş-";
                }
            }
            baslikk.InnerHtml = baslik;
            cekozet ozet = c.Cekler(gun, cekildi, alinan);

            GridView1.DataSource = ozet.cekler;
            GridView1.DataBind();
            if (!IsPostBack)
            {
                var bankalar = dc.bankas.ToList();
                drdBanka.AppendDataBoundItems = true;
                drdBanka.DataSource           = bankalar;
                drdBanka.DataValueField       = "banka_id";
                drdBanka.DataTextField        = "banka_adi";
            }
        }
Example #2
0
        protected void btnKasaKaydet_Click(object sender, EventArgs e)
        {
            int id = Int32.Parse(hdnCekID.Value);



            using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma()))
            {
                CekSenet      c       = new CekSenet(dc);
                KasaIslemleri k       = new KasaIslemleri(dc);
                int           kasa_id = k.AktifKasa();
                c.CekTahsilat(id, kasa_id, null);
                goster(dc);
            }

            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            sb.Append(@"<script type='text/javascript'>");
            sb.Append(" alertify.success('Çek Ödemesi kaydedildi!');");
            sb.Append("$('#onayModal').modal('hide');");
            sb.Append(@"</script>");
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "EditHideModalScript3", sb.ToString(), false);
        }
Example #3
0
        protected void btnBankaKaydet_Click(object sender, EventArgs e)
        {
            int id       = Int32.Parse(hdnCekIdBanka.Value);
            int banka_id = Convert.ToInt32(drdBanka.SelectedValue);

            if (banka_id > -1)
            {
                using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma()))
                {
                    CekSenet c = new CekSenet(dc);

                    c.CekTahsilat(id, null, banka_id);
                    goster(dc);
                }


                System.Text.StringBuilder sb = new System.Text.StringBuilder();
                sb.Append(@"<script type='text/javascript'>");
                sb.Append(" alertify.success('Çek Ödemesi kaydedildi!');");
                sb.Append("$('#bankaModal').modal('hide');");
                sb.Append(@"</script>");
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "EditHideModalScript3", sb.ToString(), false);
            }
        }