当前位置: 首页>>代码示例>>C#>>正文


C# EFDal.BolgeKodundanBolgeAdiniDon方法代码示例

本文整理汇总了C#中EFDal.BolgeKodundanBolgeAdiniDon方法的典型用法代码示例。如果您正苦于以下问题:C# EFDal.BolgeKodundanBolgeAdiniDon方法的具体用法?C# EFDal.BolgeKodundanBolgeAdiniDon怎么用?C# EFDal.BolgeKodundanBolgeAdiniDon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EFDal的用法示例。


在下文中一共展示了EFDal.BolgeKodundanBolgeAdiniDon方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RaporuOlustur

    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";
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:32,代码来源:LaboratuvarGetiri.ascx.cs

示例2: ButtonDene_Click

    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";
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:27,代码来源:KYS.aspx.cs


注:本文中的EFDal.BolgeKodundanBolgeAdiniDon方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。