protected void reportDesigner_SaveReportLayout(object sender, SaveReportLayoutEventArgs e)
        {
            if (e.Parameters == "CallbackCache")
            {
                Session["CallbackCache"] = e.ReportLayout;
                return;
            }

            //Save report layout here
        }
示例#2
0
 void designer_SaveReportLayout(object sender, SaveReportLayoutEventArgs e)
 {
     throw new NotImplementedException();
 }
示例#3
0
        protected void ASPxReportDesigner1_SaveReportLayout(object sender, SaveReportLayoutEventArgs e)
        {
            string tip   = Request.QueryString["tip"];
            string firma = KullaniciIslem.firma();


            if (tip.Equals("fatura"))
            {
                //fatura yolunu bulalım
                bool?ciftTaraf = false;
                using (Radius.radiusEntities dc = Radius.MyContext.Context(KullaniciIslem.firma()))
                {
                    AyarCurrent ay = new AyarCurrent(dc);
                    ciftTaraf = ay.get().cift_taraf;
                }
                if (ciftTaraf == true)
                {
                    string path = "/Raporlar/" + KullaniciIslem.firma() + "fatura.repx";
                    string yol  = Server.MapPath(path);
                    File.WriteAllBytes(yol, e.ReportLayout);
                }
                else
                {
                    string path = "/Raporlar/" + KullaniciIslem.firma() + "faturaTek.repx";
                    string yol  = Server.MapPath(path);
                    File.WriteAllBytes(yol, e.ReportLayout);
                }

                ASPxWebControl.RedirectOnCallback("~/");
            }
            else if (tip.Equals("makbuz"))
            {
                //fatura yolunu bulalım
                string path = "/Raporlar/" + KullaniciIslem.firma() + "makbuz.repx";
                string yol  = Server.MapPath(path);
                File.WriteAllBytes(yol, e.ReportLayout);
                ASPxWebControl.RedirectOnCallback("~/");
            }
            else if (tip.Equals("servis"))
            {
                //fatura yolunu bulalım
                string path = "/Raporlar/" + KullaniciIslem.firma() + "servis.repx";
                string yol  = Server.MapPath(path);
                File.WriteAllBytes(yol, e.ReportLayout);
                ASPxWebControl.RedirectOnCallback("~/");
            }
            else if (tip.Equals("extre"))
            {
                //fatura yolunu bulalım
                string path = "/Raporlar/" + KullaniciIslem.firma() + "extre.repx";
                string yol  = Server.MapPath(path);
                File.WriteAllBytes(yol, e.ReportLayout);
                ASPxWebControl.RedirectOnCallback("~/");
            }
            else if (tip.Equals("servis_maliyet"))
            {
                //fatura yolunu bulalım
                string path = "/Raporlar/" + KullaniciIslem.firma() + "servis_maliyet.repx";
                string yol  = Server.MapPath(path);
                File.WriteAllBytes(yol, e.ReportLayout);
                ASPxWebControl.RedirectOnCallback("~/");
            }

            else if (tip.Equals("gelirgider"))
            {
                //fatura yolunu bulalım
                string path = "/Raporlar/" + KullaniciIslem.firma() + "gelirgider.repx";
                string yol  = Server.MapPath(path);
                File.WriteAllBytes(yol, e.ReportLayout);
                ASPxWebControl.RedirectOnCallback("~/");
            }
            else if (tip.Equals("gelirgiderozet"))
            {
                //fatura yolunu bulalım
                string path = "/Raporlar/" + KullaniciIslem.firma() + "gelirgiderozet.repx";
                string yol  = Server.MapPath(path);
                File.WriteAllBytes(yol, e.ReportLayout);
                ASPxWebControl.RedirectOnCallback("~/");
            }
            else if (tip.Equals("gelirgidergruplu"))
            {
                //fatura yolunu bulalım
                string path = "/Raporlar/" + KullaniciIslem.firma() + "gelirgidergruplu.repx";
                string yol  = Server.MapPath(path);
                File.WriteAllBytes(yol, e.ReportLayout);
                ASPxWebControl.RedirectOnCallback("~/");
            }
            else if (tip.Equals("gelirgideraylik"))
            {
                //fatura yolunu bulalım
                string path = "/Raporlar/" + KullaniciIslem.firma() + "gelirgideraylik.repx";
                string yol  = Server.MapPath(path);
                File.WriteAllBytes(yol, e.ReportLayout);
                ASPxWebControl.RedirectOnCallback("~/");
            }
            else if (tip.Equals("makineanaliz"))
            {
                //fatura yolunu bulalım
                string path = "/Raporlar/" + KullaniciIslem.firma() + "makine.repx";
                string yol  = Server.MapPath(path);
                File.WriteAllBytes(yol, e.ReportLayout);
                ASPxWebControl.RedirectOnCallback("~/");
            }
        }