本文整理汇总了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";
}
示例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";
}