本文整理汇总了C#中EFDal.spkal_sfPersGetiriAnaliz方法的典型用法代码示例。如果您正苦于以下问题:C# EFDal.spkal_sfPersGetiriAnaliz方法的具体用法?C# EFDal.spkal_sfPersGetiriAnaliz怎么用?C# EFDal.spkal_sfPersGetiriAnaliz使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EFDal
的用法示例。
在下文中一共展示了EFDal.spkal_sfPersGetiriAnaliz方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PersonelBazliGetiriCizdir
//Personel Getirisi ama
public void PersonelBazliGetiriCizdir()
{
if ((this.Parent.FindControl("clnBaslangicTarihi") as RadDatePicker).SelectedDate != null &&
(this.Parent.FindControl("clnBitisTarihi") as RadDatePicker).SelectedDate != null)
{
DateTime baslangic = (this.Parent.FindControl("clnBaslangicTarihi") as RadDatePicker).SelectedDate.Value;
DateTime bitis = (this.Parent.FindControl("clnBitisTarihi") as RadDatePicker).SelectedDate.Value;
//DateTime Bastar = clnBaslangicTarihi.SelectedDate.Value;
//DateTime Bittar = clnBitisTarihi.SelectedDate.Value;
BolgeKodu = BolgeKoduBelirle();
int DataCount = 0;
EFDal ed =new EFDal();
DataSet ds = ed.spkal_sfPersGetiriAnaliz(BolgeKodu, baslangic, bitis);
grvPersonelBazliGetiri.DataSource = ds;
grvPersonelBazliGetiri.DataBind();
grvPersonelBazliGetiri.Visible = true;
Label1.Text = "Toplam Getiri=" + ed.ParaFormatinaCevir(ds.Tables[0].Rows[0]["ToplamGetiri"].ToString());
DataCount = ds.Tables[0].Rows.Count;
chtGetiri.Clear();
chtGetiri.ChartTitle.TextBlock.Text = "Getiriye göre durum";
ChartSeries salesSeries = chtGetiri.CreateSeries("Getiri", defaultColors[0], defaultColors[1],
ChartSeriesType.Bar);
int k = 0;
foreach (DataRow row in ds.Tables[0].Rows)
{
string bak = row["Getiri"].ToString();
if (bak != "")
{
salesSeries.AddItem(Convert.ToDouble(bak), row["Sorumlu"].ToString(), defaultColors[k + 1],
false);
}
chtGetiri.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Font =
new System.Drawing.Font("Ariel", 6);
chtGetiri.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Font =
new System.Drawing.Font("Ariel", 6);
k++;
}
//foreach (var result in Sonuc)
//{
// string bak = result.Getiri.Value.ToString();
// if (bak != "")
// {
// salesSeries.AddItem(Convert.ToDouble(result.Getiri.Value), result.Sorumlu, defaultColors[k + 1],
// false);
// }
// chtGetiri.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Font =
// new System.Drawing.Font("Ariel", 6);
// chtGetiri.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Font =
// new System.Drawing.Font("Ariel", 6);
// k++;
//}
/*
sfKalDataEntities ent = new sfKalDataEntities();
using (Service1Client proxy = new Service1Client())
{
int DataCount = 0;
List<kal_sfPersGetiriAnaliz_Result> Sonuc =
proxy.kal_sfPersGetiriAnaliz_ResultDon((short)BolgeKodu, baslangic, bitis).ToList();
grvPersonelBazliGetiri.DataSource = Sonuc;
grvPersonelBazliGetiri.DataBind();
grvPersonelBazliGetiri.Visible = true;
DataCount = Sonuc.Count;
chtGetiri.Clear();
chtGetiri.ChartTitle.TextBlock.Text = "Getiriye göre durum";
ChartSeries salesSeries = chtGetiri.CreateSeries("Getiri", defaultColors[0], defaultColors[1],
ChartSeriesType.Bar);
int k = 0;
foreach (var result in Sonuc)
{
string bak = result.Getiri.Value.ToString();
if (bak != "")
{
salesSeries.AddItem(Convert.ToDouble(result.Getiri.Value), result.Sorumlu, defaultColors[k + 1],
false);
}
chtGetiri.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Font =
new System.Drawing.Font("Ariel", 6);
chtGetiri.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Font =
new System.Drawing.Font("Ariel", 6);
k++;
}
}
*/
}
else
{
lblPersGetiri.Text = "Tarih aralığı seçmelisiniz";
}
//.........这里部分代码省略.........