protected void RaporuOlustur()
    {
        //Create new CultureInfo
        var cultureInfo = new System.Globalization.CultureInfo("tr-TR");

        // Set the language for static text (i.e. column headings, titles)
        System.Threading.Thread.CurrentThread.CurrentUICulture = cultureInfo;

        // Set the language for dynamic text (i.e. date, time, money)
        System.Threading.Thread.CurrentThread.CurrentCulture = cultureInfo;

        EFDal ed = new EFDal();
        var instanceReportSource = new Telerik.Reporting.InstanceReportSource();
        instanceReportSource.ReportDocument = new KalibrasyonRaporlari.Laboratuvarlar();
        this.rptLaboratuvarlar.ReportSource = instanceReportSource;
        Telerik.Reporting.Report report = (Telerik.Reporting.Report)instanceReportSource.ReportDocument;

        /*
        report.ReportParameters["BolgeKodu"].Value = Convert.ToInt32(Session["dshBolgeKodu"].ToString());//ed.kal_BolgeKoduDon(Context.User.Identity.Name);
        report.ReportParameters["BasTar"].Value = DateTime.Parse("2015-01-01");
        report.ReportParameters["SonTar"].Value = DateTime.Parse("2015-06-01");
        //report.ReportParameters["Personel"].Value = Context.User.Identity.Name;
        */

        report.ReportParameters["BolgeKodu"].Value = Convert.ToInt32(Session["dshBolgeKodu"].ToString());//ed.kal_BolgeKoduDon(Context.User.Identity.Name);
        report.ReportParameters["BasTar"].Value = DateTime.Parse(Session["dshBasTar"].ToString());
        report.ReportParameters["SonTar"].Value = DateTime.Parse(Session["dshSonTar"].ToString());

        Telerik.Reporting.TextBox txtAciklama = report.Items.Find("txtAciklama", true)[0] as Telerik.Reporting.TextBox;
        txtAciklama.Value = ed.BolgeKodundanBolgeAdiniDon(Convert.ToInt32(report.ReportParameters["BolgeKodu"].Value.ToString())) + " bölgesinde, " + report.ReportParameters["BasTar"].Value.ToString().Replace(" 00:00:00", "") + " ve " + report.ReportParameters["SonTar"].Value.ToString().Replace(" 00:00:00", "") +
                            " tarihleri arasında bölgelere ait özet durumu  aşağıda görebilirsiniz";
    }
Exemplo n.º 2
0
    protected void ButtonDene_Click(object sender, EventArgs e)
    {
        //Create new CultureInfo
        var cultureInfo = new System.Globalization.CultureInfo("tr-TR");

        // Set the language for static text (i.e. column headings, titles)
        System.Threading.Thread.CurrentThread.CurrentUICulture = cultureInfo;

        // Set the language for dynamic text (i.e. date, time, money)
        System.Threading.Thread.CurrentThread.CurrentCulture = cultureInfo;

        EFDal ed = new EFDal();
        var instanceReportSource = new Telerik.Reporting.InstanceReportSource();
        instanceReportSource.ReportDocument = new KalibrasyonRaporlari.KYS();
        this.KYSReport.ReportSource = instanceReportSource;
        Telerik.Reporting.Report report = (Telerik.Reporting.Report)instanceReportSource.ReportDocument;

        report.ReportParameters["BolgeKodu"].Value = 1;
        //report.ReportParameters[0].Value = 1;
        report.ReportParameters["BasTar"].Value = DateTime.Parse("2015-01-01");
        report.ReportParameters["SonTar"].Value = DateTime.Parse("2015-06-01");

        Telerik.Reporting.TextBox txtAciklama = report.Items.Find("txtAciklama", true)[0] as Telerik.Reporting.TextBox;
        txtAciklama.Value = ed.BolgeKodundanBolgeAdiniDon(Convert.ToInt32(report.ReportParameters["BolgeKodu"].Value)) +
                            " bölgesi için " + report.ReportParameters["BasTar"].Value.ToString().Replace(" 00:00:00", "") + " ve " + report.ReportParameters["SonTar"].Value.ToString().Replace(" 00:00:00", "") +
                            " tarihleri arasında gecikme sürelerini aşağıda görebilirsiniz";
    }
Exemplo n.º 3
0
    protected void ButtonDene_Click(object sender, EventArgs e)
    {
        //Create new CultureInfo
        var cultureInfo = new System.Globalization.CultureInfo("tr-TR");

        // Set the language for static text (i.e. column headings, titles)
        System.Threading.Thread.CurrentThread.CurrentUICulture = cultureInfo;

        // Set the language for dynamic text (i.e. date, time, money)
        System.Threading.Thread.CurrentThread.CurrentCulture = cultureInfo;



        EFDal ed = new EFDal();
        var   instanceReportSource = new Telerik.Reporting.InstanceReportSource();

        instanceReportSource.ReportDocument = new KalibrasyonRaporlari.KYS();
        this.KYSReport.ReportSource         = instanceReportSource;
        Telerik.Reporting.Report report = (Telerik.Reporting.Report)instanceReportSource.ReportDocument;



        report.ReportParameters["BolgeKodu"].Value = 1;
        //report.ReportParameters[0].Value = 1;
        report.ReportParameters["BasTar"].Value = DateTime.Parse("2015-01-01");
        report.ReportParameters["SonTar"].Value = DateTime.Parse("2015-06-01");

        Telerik.Reporting.TextBox txtAciklama = report.Items.Find("txtAciklama", true)[0] as Telerik.Reporting.TextBox;
        txtAciklama.Value = ed.BolgeKodundanBolgeAdiniDon(Convert.ToInt32(report.ReportParameters["BolgeKodu"].Value)) +
                            " bölgesi için " + report.ReportParameters["BasTar"].Value.ToString().Replace(" 00:00:00", "") + " ve " + report.ReportParameters["SonTar"].Value.ToString().Replace(" 00:00:00", "") +
                            " tarihleri arasında gecikme sürelerini aşağıda görebilirsiniz";
    }
Exemplo n.º 4
0
    protected void RaporuOlustur()
    {
        //Create new CultureInfo
        var cultureInfo = new System.Globalization.CultureInfo("tr-TR");

        // Set the language for static text (i.e. column headings, titles)
        System.Threading.Thread.CurrentThread.CurrentUICulture = cultureInfo;

        // Set the language for dynamic text (i.e. date, time, money)
        System.Threading.Thread.CurrentThread.CurrentCulture = cultureInfo;



        EFDal ed = new EFDal();
        var   instanceReportSource = new Telerik.Reporting.InstanceReportSource();

        instanceReportSource.ReportDocument = new KalibrasyonRaporlari.Laboratuvarlar();
        this.rptLaboratuvarlar.ReportSource = instanceReportSource;
        Telerik.Reporting.Report report = (Telerik.Reporting.Report)instanceReportSource.ReportDocument;


        /*
         * report.ReportParameters["BolgeKodu"].Value = Convert.ToInt32(Session["dshBolgeKodu"].ToString());//ed.kal_BolgeKoduDon(Context.User.Identity.Name);
         * report.ReportParameters["BasTar"].Value = DateTime.Parse("2015-01-01");
         * report.ReportParameters["SonTar"].Value = DateTime.Parse("2015-06-01");
         * //report.ReportParameters["Personel"].Value = Context.User.Identity.Name;
         */



        report.ReportParameters["BolgeKodu"].Value = Convert.ToInt32(Session["dshBolgeKodu"].ToString());//ed.kal_BolgeKoduDon(Context.User.Identity.Name);
        report.ReportParameters["BasTar"].Value    = DateTime.Parse(Session["dshBasTar"].ToString());
        report.ReportParameters["SonTar"].Value    = DateTime.Parse(Session["dshSonTar"].ToString());


        Telerik.Reporting.TextBox txtAciklama = report.Items.Find("txtAciklama", true)[0] as Telerik.Reporting.TextBox;
        txtAciklama.Value = ed.BolgeKodundanBolgeAdiniDon(Convert.ToInt32(report.ReportParameters["BolgeKodu"].Value.ToString())) + " bölgesinde, " + report.ReportParameters["BasTar"].Value.ToString().Replace(" 00:00:00", "") + " ve " + report.ReportParameters["SonTar"].Value.ToString().Replace(" 00:00:00", "") +
                            " tarihleri arasında bölgelere ait özet durumu  aşağıda görebilirsiniz";
    }