• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# EFDal类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: btnMustNodanAra_Click

 protected void btnMustNodanAra_Click(object sender, EventArgs e)
 {
     EFDal ed = new EFDal();
     DataSet ds = ed.kal_MustNodanAra(int.Parse(txtAranacakMustNo.Text.Trim()), intBolgeKodu);
     grdBulunanFirmalar.DataSource = ds;
     grdBulunanFirmalar.DataBind();
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:7,代码来源:FirmaAra.ascx.cs


示例2: Ekle

    protected void Ekle()
    {
        EFDal ed = new EFDal();
        DataSet ds = new DataSet();
        using (sfKalDataEntities ent = new sfKalDataEntities())
        {
            try
            {

                GorevFirma oGorevFirma = new GorevFirma();
                oGorevFirma.GorevID = int.Parse(txtGorevID.Text.Trim());
                oGorevFirma.FirmaID =int.Parse(txtFirmaID.Text.Trim());
                oGorevFirma.Tarih = clnGorevTarihi.SelectedDate.Value;
                oGorevFirma.GoreveGidilenAracinPlakasi = ddlAracPlakasi.SelectedItem.Text;
                ent.AddToGorevFirma(oGorevFirma);
                ent.SaveChanges();
                Session["RaporIcinAracPlakasi"] = ddlAracPlakasi.SelectedItem.Text;
                lblUyari.ForeColor = System.Drawing.Color.Green;
                lblUyari.Text = "Görev-Firma başarılı olarak eklendi..";
                if (Session["OturumIcinGorevID"]==null)
                Session["OturumIcinGorevID"] = int.Parse(txtGorevID.Text.Trim());
                GorevIDdenGrdiBagla(int.Parse(txtGorevID.Text.Trim()));
            }
            catch (Exception exc)
            {
                lblUyari.ForeColor = System.Drawing.Color.Red;
                lblUyari.Text = "Görev-Firma ekleme başarısız.Hata:" + exc.Message;
            }
        }
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:30,代码来源:GorevFirma.ascx.cs


示例3: GridiBagla

 private void GridiBagla()
 {
     EFDal ed = new EFDal();
     Guid ikbsPersonelUN = ed.UserNamedenPersonelUNDon(Context.User.Identity.Name);
     grdImzaBekleyenBelgeler.DataSource = ed.PersonelinImzasınıBekleyenBelgeleriDon(ikbsPersonelUN);
     grdImzaBekleyenBelgeler.DataBind();
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:7,代码来源:PersonelinImzasiniBekleyenBelgeler.aspx.cs


示例4: btnIndirimiGeriAl_Click

    protected void btnIndirimiGeriAl_Click(object sender, EventArgs e)
    {
        //string[] arrVirgulleAyrilmiIstIdler = GridUzerindeSecilmisSatirlarinIdleriniDon().Split(',');
        using (Service1Client proxy = new Service1Client())
        {
            EFDal ed = new EFDal();
            int BolgeKodu = ed.kal_BolgeKoduDon(Context.User.Identity.Name);
            //string arrVirgulleAyrilmiIstIdler = proxy.OnaylananFaturaNoIcerigiIstIdleriniDon((short)BolgeKodu, lblFaturaNo.Text);
            //string[] IstIdler = arrVirgulleAyrilmiIstIdler.Split(',');

            string arrVirgulleAyrilmiIstIdler = proxy.OnaylananFaturaNoIcerigiIstIdleriniDon((short)BolgeKodu, lblFaturaNo.Text);
            string[] IstIdler = arrVirgulleAyrilmiIstIdler.Split(',');
            try
            {
                foreach (string itemIstId in IstIdler)
                {
                    proxy.SeciliIstekIcinIndirimiGeriAl(int.Parse(itemIstId));
                }
                RefreshdenSonraIndirimIsleriniAyarla();
                grdFaturaIcerigiGridiniBagla(lblFaturaNo.Text, lblFirmaAdi.Text);
                RadNotification1.Text = "Uygulanan indirim geri alma işlemi <font color='green'>başarılı!</font>"; ;
                RadNotification1.Show();
            }
            catch
            {
                RadNotification1.Text = "Uygulanan indirim geri alma işlemi <font color='red'>başarısız!</font>"; ;
                RadNotification1.Show();
            }
        }
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:30,代码来源:FaturaIcerigi.aspx.cs


示例5: Ekle

 protected void Ekle()
 {
     using (sfKalDataEntities ent = new sfKalDataEntities())
     {
         EFDal ed = new EFDal();
         referans oreferans = new referans();
         oreferans.LABKOD = txtLABKOD.Text.Trim();
         oreferans.CIHAZ = txtCIHAZ.Text.Trim();
         oreferans.DBASNO = txtDBASNO.Text.Trim();
         oreferans.MARKA = txtMARKA.Text.Trim();
         oreferans.TIPMODEL = txtTIPMODEL.Text.Trim();
         oreferans.SERINO = txtSERINO.Text.Trim();
         oreferans.OLCARALIGI = txtOLCARALIGI.Text.Trim();
         oreferans.OLCBUYUKLUGU = txtOLCBUYUKLUGU.Text.Trim();
         oreferans.BAKKARTNO = txtBAKKARTNO.Text.Trim();
         oreferans.SINIF = txtSINIF.Text.Trim();
         oreferans.KALPERIYOT = txtKALPERIYOT.Text.Trim();
         oreferans.TEMINTAR = raddtTeminTar.SelectedDate.Value;
         oreferans.TEMINDURUMU = txtTEMINDURUMU.Text.Trim();
         oreferans.KAPSAMDISI = chkKAPSAMDISI.Checked;
         oreferans.BOLGEKODU = ed.kal_BolgeKoduDon(Context.User.Identity.Name);
         oreferans.NICK = txtNICK.Text.Trim();
         ent.AddToreferans(oreferans);
         ent.SaveChanges();
     }
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:26,代码来源:YeniReferansEkle.aspx.cs


示例6: 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.PersGetiriAnaliz();
        this.rptPersonelGetiri.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(Session["dshBasTar"].ToString());
        report.ReportParameters["SonTar"].Value = DateTime.Parse(Session["dshSonTar"].ToString());
        report.ReportParameters["Personel"].Value = Context.User.Identity.Name;

        Telerik.Reporting.TextBox txtReportHeader = report.Items.Find("txtReportHeader", true)[0] as Telerik.Reporting.TextBox;
        txtReportHeader.Value = report.ReportParameters["BasTar"].Value.ToString().Replace(" 00:00:00", "") + " ve " + report.ReportParameters["SonTar"].Value.ToString().Replace(" 00:00:00", "") +
                            " tarihleri arasında gerçekleştirilen kalibrasyonları  aşağıda görebilirsiniz";
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:26,代码来源:tlrPersonelGetiri.ascx.cs


示例7: SevKGorunumunuAyarla

    protected void SevKGorunumunuAyarla(int IstId)
    {
        EFDal ed = new EFDal();
        short BolgeKodu = (short)ed.kal_BolgeKoduDon(Context.User.Identity.Name);

        using (Service1Client proxy = new Service1Client())
        {
            //List<kal_IstekAraEnGenelDisBirimeGidenCihazlarDahil_Result> oSevkAramaSonucu = null;
            //oSevkAramaSonucu = proxy.IstekAraEnGenelDisBirimeGidenCihazlarDahil(0, 0, 0,BolgeKodu,null, null, null, IstId, null, null, null, null, null);
            //List<kal_IstekAraEnGenelDisBirimeGidenCihazlarDahil_Result> oSevkAramaSonucu  = proxy.IstekAraEnGenelDisBirimeGidenCihazlarDahil(0, 0, 0, BolgeKodu, null, null, IstId, null, null, null, null, null);
            ServiceReference1.kal_IstekAraEnGenelDisBirimeGidenCihazlarDahil_Result[] oSevkAramaSonucu = proxy.IstekAraEnGenelDisBirimeGidenCihazlarDahil(0, 0, 0, BolgeKodu, null, null, IstId, null, null, null, null, null);
            int cnt = oSevkAramaSonucu.Count();
            if (cnt > 0)
            {
                pnlSevkBirimi.Visible = true;
                //İçeriği doldur
                lblSevkBirimi.Text = oSevkAramaSonucu[0].ALTBIRIMADI;
                lblSevkEden.Text = oSevkAramaSonucu[0].Gonderen;
                lblGonderilmeTarihi.Text = oSevkAramaSonucu[0].GonderilmeTarihi != null ? oSevkAramaSonucu[0].GonderilmeTarihi.Value.ToString("dd.MM.yyyy") : " ";
                //lblDonusTarihi.Text = oSevkAramaSonucu[0].GeriDonusTarihi.Value.ToString("dd.MM.yyyy");
                lblDonusTarihi.Text = oSevkAramaSonucu[0].GeriDonusTarihi != null ? oSevkAramaSonucu[0].GeriDonusTarihi.Value.ToString("dd.MM.yyyy") : " ";
            }
            else
            {
                pnlSevkBirimi.Visible = false;
            }
        }
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:28,代码来源:IstekDetay.ascx.cs


示例8: MailGonder

 protected void MailGonder(int FirmaId, DateTime KalBitTar)
 {
     //try
     //{
         EFDal ed = new EFDal();
         string EMail = ed.FirmaIddenFirmaEmailDon(FirmaId);
         MailMessage mail = new MailMessage();
         //mail.To.Add(EMail);
         mail.To = EMail;
         //mail.Bcc = "[email protected];[email protected]";
         mail.Bcc = "[email protected]";
         mail.From = "[email protected]";
         mail.Subject = "Kalibrasyon bilgilendirme";
         string Body = "Sn. " + ed.FirmaIddenFirmaAdiDon(FirmaId) + " yetkilisi,<br/> Yaklaşık bir sene  önce kurumumuz kalibrasyon laboratuvarları bünyesinde aşağıda listesi verilen cihazlarınızın kalibrasyonları yapılmıştır. Bu cihazlar için yaklaşan kalibrasyon zamanını saygılarımızla hatırlatırız.<br/> Lütfen bu e-postaya yanıt dönmeyiniz.<br/>";
         Body += MailBodyOlustur(FirmaId, KalBitTar);
         mail.Body = Body + "<br/><br/>TSE Kalibrasyon Merkezi Başkanlığı";
         SmtpMail.SmtpServer = "10.6.1.7";
         mail.BodyFormat = MailFormat.Html;
         //lblDeneme.Text = Body;
         SmtpMail.Send(mail);
     //}
     //catch (Exception exc)
     //{
     //    lblDeneme.Text += exc.Message;
     //}
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:26,代码来源:SendMail.ascx.cs


示例9: MailBodyOlustur

 protected string MailBodyOlustur(int FirmaId, DateTime KalBitTar)
 {
     EFDal ed = new EFDal();
     string MailBody = "";
     MailBody += "<table border=\"1\"><tr>" +
                     "<td><b>Marka</b></td>" +
                     "<td><b>Model</b></td>" +
                     "<td><b>Seri No</b></td>" +
                     "<td><b>Kalibrasyon Tarihi</b></td>" +
                     "<td><b>Sertifika No</b></td>" +
                     "<td><b>Ölçüm Aralığı</b></td>" +
                 "</tr>";
     DataSet ds = new DataSet();
     ds = ed.FirmaIDveKalTardanCihazListesiDon(FirmaId, KalBitTar);
     for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
     {
         MailBody += "<tr>";
         string Marka = "<td>" + ds.Tables[0].Rows[i]["IMALATCI"].ToString() + "</td>";
         string Model = "<td>" + ds.Tables[0].Rows[i]["MODEL"].ToString() + "</td>";
         string SeriNo = "<td>" + ds.Tables[0].Rows[i]["SERINO"].ToString() + "</td>";
         string KalBitTar2 = "<td>" + ds.Tables[0].Rows[i]["KALBITTAR"].ToString().Replace(" 00:00:00", "") + "</td>";
         string SertifikaNo = "<td>" + ds.Tables[0].Rows[i]["SERTIFIKANO"].ToString() + "</td>";
         string OlcAraligi = "<td>" + ds.Tables[0].Rows[i]["OLCUMARALIGI"].ToString() + "</td>";
         MailBody += Marka + Model + SeriNo + KalBitTar2 + SertifikaNo + OlcAraligi + "</tr>";
     }
     MailBody += "</table>";
     ds.Dispose();
     return MailBody;
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:29,代码来源:SendMail.ascx.cs


示例10: btnEkle_Click

    protected void btnEkle_Click(object sender, EventArgs e)
    {
        EFDal ed=new EFDal();
        int SiradakiFirmaId = ed.FirmaIdMaxDon() + 1;
        if (btnEkle.Text == "Yeni Firma Eklemek İstiyorum")
        {
            txtMustNo.Text = SiradakiMustNoDon().ToString();
            btnEkle.Text = "Ekle";
        }
        else
        {
            try
            {
                if (Ekle())
                {
                    //Eger firma için bir şifre tanımlanmamışsa şifreyi tanımla ve Yetki tablosuna kaydet; Hepsini alltaki fonksiyon yapacak
                    ed.FirmaCredentialsEkle(SiradakiFirmaId);
                    if (cusCustomtxtVergiNo.IsValid)
                    {
                        Session["IstekleriGosterilecekFirmaId"] = SiradakiFirmaId.ToString();
                        Response.Redirect("FirmadanGelenIstekler.aspx");
                    }
                }
            }
            catch
            {

            }
        }
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:30,代码来源:Firma.ascx.cs


示例11: PopulaterdgvIstekDokumanlari

 private void PopulaterdgvIstekDokumanlari()
 {
     EFDal ed = new EFDal();
     rdgvIstekDokumanlari.DataSource =
         ed.IstekIddenIstekDokumanlariniDon(IstId);
     rdgvIstekDokumanlari.DataBind();
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:7,代码来源:IstekArsivi.aspx.cs


示例12: btnVergiNodanAra_Click

 protected void btnVergiNodanAra_Click(object sender, EventArgs e)
 {
     EFDal ed = new EFDal();
     DataSet ds = ed.kal_VergiNodanAra(intBolgeKodu, txtAranacakVergiNo.Text.Trim());
     grdBulunanFirmalar.DataSource = ds;
     grdBulunanFirmalar.DataBind();
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:7,代码来源:FirmaAra.ascx.cs


示例13: grdIstIdninImzaileIlgiliBelgeleri2_OnItemDataBound

    protected void grdIstIdninImzaileIlgiliBelgeleri2_OnItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            GridDataItem item = (GridDataItem)e.Item;
            Label lblKimlerImzalamis = (Label)item.FindControl("lblImzalayanlar");

            EFDal ed=new EFDal();
            string path = ed.ImzaliDosyalarIddenPathDon(Convert.ToInt32(item["Id"].Text));
            //lblKimlerImzalamis.Text=  ed.SignersInfo(path);

            item["Imzalayan"].Text = ed.SignersInfo(path);

            item["Imzalayan"].ForeColor = System.Drawing.Color.Red;
            if (item["Imzalayan"].Text == "00000000-0000-0000-0000-000000000000" || item["Imzalayan"].Text == "&nbsp;")
            {
                item["Imzalayan"].BackColor = System.Drawing.Color.Gainsboro;
                item["Imzalayan"].Text = "İmzalanmamış";
            }
            else
            {
                item["Imzalayan"].BackColor = System.Drawing.Color.LightYellow;
            }

           using (Service1Client proxy = new Service1Client())
           {
               item["Yukleyen"].Text = proxy.kal_UserIddenUserNameDon(Guid.Parse(item["Yukleyen"].Text));
           }

            item["DokumanTipi"].Text = ed.DokumanTipiIddenDokumanAdiDon(Convert.ToInt32(item["DokumanTipi"].Text));

        }
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:33,代码来源:Imzala2.aspx.cs


示例14: 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


示例15: ddlPersonel_SelectedIndexChanged

    protected void ddlPersonel_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddlPersonel.SelectedValue != "-1")
        {
            var master = (App_Master_standardized)this.Page.Master;
            try
            {
                EFDal ed = new EFDal();
                Guid ikbsPersonelUN = ed.UserNamedenPersonelUNDon(ddlPersonel.SelectedValue);

                if (ed.PersonelTelefonNumarasiDahaOnceGirilmisMi(ikbsPersonelUN))
                {
                    if (ed.PersonelinTelefonunuDon(ikbsPersonelUN) != "-")
                    {
                        txtTelefonNo.Text = ed.PersonelinTelefonunuDon(ikbsPersonelUN);
                        master.MesajGoster(true, "Uyarı", "Bu personelin zaten kayıtlı bir telefonu var.Güncellemek için yeni numarayı girip kaydediniz");

                    }
                }
                else
                {
                    txtTelefonNo.Text = string.Empty;
                }

            }
            catch (Exception exc)
            {

                master.MesajGoster(false, "Hata", "Telefon numarası eklenemedi...");
            }

        }
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:33,代码来源:PersonelTelefonNo.aspx.cs


示例16: 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


示例17: Ekle

 protected void Ekle()
 {
     EFDal ed = new EFDal();
     using (sfKalDataEntities ent = new sfKalDataEntities())
     {
         try
         {
             Egitim oEgitim = new Egitim();
             oEgitim.FirmaId = int.Parse(_FirmaId.Text.Trim());
             oEgitim.Egitimci = _Egitimci.Text.Trim();
             oEgitim.EgitimiAlan = _EgitimiAlan.Text.Trim();
             oEgitim.EgitimTarihi = clnEgitimTar.SelectedDate.Value;
             //oEgitim.EgitimTarihi = DateTime.Parse("2010.06.14");
             oEgitim.EgitiminKonusu = _EgitiminKonusu.Text.Trim();
             oEgitim.SertifikaNo = _SertifikaNo.Text.Trim();
             oEgitim.EgitimYeri = _EgitimYeri.Text.Trim();
             oEgitim.BolgeKodu = (short)ed.kal_BolgeKoduDon(Context.User.Identity.Name);
             oEgitim.EgitimBedeli = decimal.Parse(_EgitimBedeli.Text);
             oEgitim.EgitimGunSayisi = short.Parse(_EgitimGunSayisi.Text);
             ent.AddToEgitim(oEgitim);
             ent.SaveChanges();
             lblUyari.ForeColor = System.Drawing.Color.Green;
             lblUyari.Text = "Kayıt ekleme işlemi başarılı!";
         }
         catch (Exception exc)
         {
             lblUyari.ForeColor = System.Drawing.Color.Red;
             lblUyari.Text = "Kayıt ekleme işlemi başarısız!Hata:" + exc.Message;
         }
     }
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:31,代码来源:EditEgitim.aspx.cs


示例18: btnTelefonNoKaydet_Click

    protected void btnTelefonNoKaydet_Click(object sender, EventArgs e)
    {
        if (ddlPersonel.SelectedValue != "-1")
        {
            EFDal ed = new EFDal();
            var master = (App_Master_standardized)this.Page.Master;
            try
            {
                Guid ikbsPersonelUN = ed.UserNamedenPersonelUNDon(ddlPersonel.SelectedValue);
                if (ed.PersonelTelefonNumarasiDahaOnceGirilmisMi(ikbsPersonelUN))
                {
                    ed.PersonelTelefonNumarasiniGuncelle(ikbsPersonelUN, txtTelefonNo.Text);
                }
                else
                {
                    ed.PersonelTelefonNumaralarinaEkle(ikbsPersonelUN, txtTelefonNo.Text.Trim());
                }

                master.MesajGoster(true, "Başarılı", "Telefon numarası başarılı biçimde eklendi...");
            }
            catch (Exception exc)
            {

                master.MesajGoster(false, "Hata", "Telefon numarası eklenemdi...");
            }

        }
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:28,代码来源:PersonelTelefonNo.aspx.cs


示例19: cmdDelete_Click

    //
    //Event handler for Delete clicks
    protected void cmdDelete_Click(object sender, EventArgs e)
    {
        //Declare Connection Variable (Connection)
        //Create a new object SqlConnection with the connection string initialized
        //Set the Connection variable to point to the new object instance.
        //If connection goes out of scope the database connection won't be closed and must be closed with either ( Close or Disopose )
        EFDal ed = new EFDal();
        SqlConnection Connection = new SqlConnection(ed.connStr);

        //Opens a connection to the database.
        //If available draws from an open conneciton from the connection pool(if available)
        Connection.Open();

        String sql = "delete from [dbo].[Vekalet] where [Id] = @Id";
        //
        //Declare SQLCommand Object named Command
        //Create a new Command object with a delete statement that will removed the current item being edited
        SqlCommand Command = new SqlCommand(sql, Connection);
        Command.Parameters.AddWithValue("@Id", RequestValue("ID"));
        //
        //Run the statement ExecuteNonQuery returns no Results.
        Command.ExecuteNonQuery();

        //Closes the Connection to the back to the connection pool.
        Connection.Close();
        Response.Redirect("Vekalet.aspx");
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:29,代码来源:EditVekalet.aspx.cs


示例20: btnEkle_Click

    protected void btnEkle_Click(object sender, EventArgs e)
    {
        EFDal ed = new EFDal();
        int BolgeKodu = ed.kal_BolgeKoduDon(Context.User.Identity.Name);
        int SiradakiFirmaId = ed.FirmaIdMaxDon() + 1;
        sfKalDataEntities KalData=new sfKalDataEntities();
        firma oFirma = new firma();
        oFirma.MUSTNO = int.Parse(txtMustNo.Text.Trim());
        oFirma.FIRMAADI = txtFirmaAdi.Text.Trim();
        oFirma.ADRESI = txtAdres1.Text.Trim();
        oFirma.ADRESII = txtAdres2.Text.Trim();
        oFirma.IL_ILCE = txtIlce.Text.Trim();
        oFirma.TELEFON = txtTelefon.Text.Trim();
        oFirma.FAX = txtFax.Text.Trim();
        oFirma.ILGILI = txtIlgili.Text.Trim();
        oFirma.EMAIL = txtEmail.Text.Trim();
        oFirma.NOTLAR = txtNotlar.Text.Trim();
        oFirma.FATADRES = txtFatAdresi.Text.Trim();
        oFirma.VERGIDAIRESI = txtVergiDairesi.Text.Trim();
        oFirma.VERGINO = txtVergiNo.Text.Trim();
        oFirma.BOLGEKODU = (short)BolgeKodu;
        oFirma.KAMUFIRMASI = chkKamufirması.Checked;
        oFirma.TSEBELGELI = chkTseBelgeli.Checked;
        KalData.AddTofirma(oFirma);

        firmaChild ofirmaChild = new firmaChild();
        ofirmaChild.AnneFirmaFirmaId = int.Parse(Session["ChildFirmaIcingidecekFirmaId"].ToString());
        ofirmaChild.ChildFirmaId = SiradakiFirmaId;
        KalData.AddTofirmaChild(ofirmaChild);
        KalData.SaveChanges();
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:31,代码来源:ChildFirma.aspx.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# EFRepository类代码示例发布时间:2022-05-24
下一篇:
C# EETypePtr类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap