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


C# EFDal.ParaFormatinaCevir方法代码示例

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


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

示例1: GetiriBazliEgitimAnalizYap

    protected void GetiriBazliEgitimAnalizYap()
    {
        if ((this.Parent.FindControl("clnBaslangicTarihi") as RadDatePicker).SelectedDate != null &&
            (this.Parent.FindControl("clnBitisTarihi") as RadDatePicker).SelectedDate != null)
        {

            DateTime Bastar = (this.Parent.FindControl("clnBaslangicTarihi") as RadDatePicker).SelectedDate.Value;
            DateTime Bittar = (this.Parent.FindControl("clnBitisTarihi") as RadDatePicker).SelectedDate.Value;

            decimal DataCount = 0;
            BolgeKodu = BolgeKoduBelirle();
            /*
            using (Service1Client proxy = new Service1Client())
            {
                List<kal_sfEgitimPersonelBazliGetiri_Result> Sonuc =
                    proxy.kal_sfEgitimPersonelBazliGetiri_ResultDon((short) BolgeKodu, Bastar, Bittar).ToList();
                gvEgitimGetiriBazliAnaliz.DataSource = Sonuc;
                gvEgitimGetiriBazliAnaliz.DataBind();
                //DataCount = Sonuc.Count;
                foreach (var result in Sonuc)
                {
                    DataCount = DataCount + Convert.ToDecimal(result.Getiri.Value);
                }
                lblToplamEgitimGetiri.Text = "Toplam eğitim getirisi=" + DataCount.ToString() + " TL";
            }
             * */
            EFDal ed=new EFDal();
            //gvEgitimGetiriBazliAnaliz.DataSource = ed.kal_EgitimGetiriAnaliz(BolgeKodu, Bastar, Bittar);
            gvEgitimGetiriBazliAnaliz.DataSource = ed.kal_EgitimDonemiPersonelAnalizi(BolgeKodu, Bastar, Bittar);
            gvEgitimGetiriBazliAnaliz.DataBind();

            //lblToplamEgitimGetiri.Text = "Toplam eğitim getirisi=" + ed.kal_EgitimDonemGetirisi(BolgeKodu, Bastar, Bittar).Tables[0].Rows[0]["DonemGetirisi"].ToString() + " TL";
            lblToplamEgitimGetiri.Text = "Toplam eğitim getirisi=" + ed.ParaFormatinaCevir(ed.kal_EgitimDonemiPersonelAnalizi(BolgeKodu, Bastar, Bittar).Tables[1].Rows[0]["DonemGetirisi"].ToString());
            lblEgitimToplamGunSayisi.Text = "Toplam eğitim gun sayısı=" + ed.kal_EgitimDonemiPersonelAnalizi(BolgeKodu, Bastar, Bittar).Tables[2].Rows[0]["DonemEgitimGunSayisi"].ToString();

        }
        else
        {
            lblUyari.Text = "Lütfen tarih aralığı seçiniz...";
        }
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:41,代码来源:Egitim.ascx.cs

示例2: 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";
        }
//.........这里部分代码省略.........
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:101,代码来源:PersonelGetiri.ascx.cs


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