コード例 #1
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);
        }
コード例 #2
0
        private void goster_kasa(radiusEntities dc)
        {
            KasaIslemleri s = new KasaIslemleri(dc);

            DateTime baslangic = DateTime.Now.AddDays(-1);
            DateTime bitis     = DateTime.Now;

            if (!String.IsNullOrEmpty(datetimepicker6.Value))
            {
                baslangic = DateTime.Parse(datetimepicker6.Value);
            }
            if (!String.IsNullOrEmpty(datetimepicker7.Value))
            {
                bitis = DateTime.Parse(datetimepicker7.Value);
            }

            string tur = drdKart.SelectedValue;

            //KasaOzetOdemelerle ozet = new KasaOzetOdemelerle();
            if (drdKart.SelectedIndex == 0 || drdKart.SelectedIndex == 3)
            {
                KasaOzetOdemelerle ozet = s.HesaplarOdemeyle(baslangic, bitis, string.Empty);
                txtAdet.InnerHtml    = "İşlem :" + ozet.adet.ToString();
                txtTutar.InnerHtml   = "Bakiye :" + ozet.aktif_bakiye.ToString("C");
                GridView1.DataSource = ozet.islemeler;
                GridView1.DataBind();
            }
            else
            {
                KasaOzetOdemelerle ozet = s.HesaplarOdemeyle(baslangic, bitis, tur);
                txtAdet.InnerHtml    = "İşlem :" + ozet.adet.ToString();
                txtTutar.InnerHtml   = "Bakiye :" + ozet.aktif_bakiye.ToString("C");
                GridView1.DataSource = ozet.islemeler;
                GridView1.DataBind();
            }
        }