private void makbuzYazdir(int custid, decimal tutar, string aciklama, radiusEntities dc) { ServisDAL.AyarCurrent ay = new AyarCurrent(dc); FaturaBas bas = new FaturaBas(dc); Makbuz_Gorunum faturaBilgisi = bas.MakbuzBilgileri(custid, aciklama, ay.get(), tutar, User.Identity.Name); Session["Makbuz_Gorunum"] = faturaBilgisi; Response.Redirect("/Baski.aspx?tip=tahsilat"); }
protected void yonlendir(string url, radiusEntities dc, int custid) { if (cbYazdir.Checked == true) { //Session["ctrl"] = yazdir; //ClientScript.RegisterStartupScript(this.GetType(), "onclick", "<script language=javascript>window.open('../Print.aspx','PrintMe','height=300px,width=300px,scrollbars=1');</script>"); ServisDAL.AyarCurrent ay = new AyarCurrent(dc); FaturaBas bas = new FaturaBas(dc); Makbuz_Gorunum faturaBilgisi = bas.MakbuzBilgileri(custid, txtAciklama.Text, ay.get(), 0, User.Identity.Name); Session["Makbuz_Gorunum"] = faturaBilgisi; Response.Redirect("/Baski.aspx?tip=emanet"); } else { Response.Redirect(url); } }