protected void btnPrnt_Click(object sender, EventArgs e) { string custidd = Request.QueryString["custid"]; if (!String.IsNullOrEmpty(custidd)) { int custid = Int32.Parse(custidd); int gun = 3; string gunS = Request.QueryString["gun"]; if (!String.IsNullOrEmpty(gunS)) { gun = Int32.Parse(gunS); } using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { FaturaBas bas = new FaturaBas(dc); AyarCurrent ay = new AyarCurrent(dc); extre extreBilgi = bas.ExtreBilgileri(custid, gun, ay.get()); Session["extre"] = extreBilgi; string uri = "/Baski.aspx?tip=extre"; Response.Redirect(uri); } } //Session["ctrl"] = GridView2; //ClientScript.RegisterStartupScript(this.GetType(), "onclick", "<script language=javascript>window.open('../Print.aspx','PrintMe','height=300px,width=300px,scrollbars=1');</script>"); }
protected void btnDonemselKaydet_Click(object sender, EventArgs e) { string custidd = Request.QueryString["custid"]; if (!String.IsNullOrEmpty(custidd)) { int custid = Int32.Parse(custidd); DateTime basla = DateTime.Now.AddDays(-30); DateTime son = DateTime.Now; if (!String.IsNullOrEmpty(datetimepicker6.Value)) { basla = DateTime.Parse(datetimepicker6.Value); } if (!String.IsNullOrEmpty(datetimepicker7.Value)) { son = DateTime.Parse(datetimepicker7.Value); } using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { FaturaBas bas = new FaturaBas(dc); AyarCurrent ay = new AyarCurrent(dc); extre extreBilgi = bas.ExtreBilgileri(custid, ay.get(), basla, son); Session["extredonem"] = extreBilgi; string uri = "/Baski.aspx?tip=extredonem"; Response.Redirect(uri); } } }
protected void btnPrint_Click(object sender, EventArgs e) { if (GridView1.SelectedValue != null) { int custid = Convert.ToInt32(GridView1.SelectedValue); int gun = 365; string gunS = Request.QueryString["gun"]; if (!String.IsNullOrEmpty(gunS)) { gun = Int32.Parse(gunS); } using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { FaturaBas bas = new FaturaBas(dc); AyarCurrent ay = new AyarCurrent(dc); extre extreBilgi = bas.ExtreBilgileri(custid, gun, ay.get()); Session["extre"] = extreBilgi; string uri = "/Baski.aspx?tip=extre"; Response.Redirect(uri); } } }