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


C# EFDal.Sil方法代码示例

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


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

示例1: btnGercektenSil_Click

 protected void btnGercektenSil_Click(object sender, EventArgs e)
 {
     EFDal ed = new EFDal();
     int Id = int.Parse(Request["Id"].ToString());
     string BakKartNo = ed.ReferansIDdenBakKartNoDon(Id);
     string delSQL = "delete from referans where ID=" + Id.ToString();
     ed.Sil(delSQL);
     delSQL = "delete from refbakim where BAKKARTNO=" + BakKartNo;
     ed.Sil(delSQL);
     delSQL = "delete from refkalibrasyon where BAKKARTNO=" + BakKartNo;
     ed.Sil(delSQL);
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:12,代码来源:EditReferans.aspx.cs

示例2: GridView1_RowDeleting

 protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     EFDal ed = new EFDal();
     int key = (int)GridView1.DataKeys[e.RowIndex].Value;
     string delSQL = "delete from GorevPersonel where ID=" + key.ToString();
     ed.Sil(delSQL);
     GorevPersonelGridiniBagla(int.Parse(GorevID.Text.Trim()));
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:8,代码来源:GorevPersonel.ascx.cs

示例3: btnSil_Click

 protected void btnSil_Click(object sender, EventArgs e)
 {
     EFDal ed = new EFDal();
     int Id = int.Parse(txtID.Text.Trim());
     string delSQL = "delete from refkalibrasyon where ID=" + Id.ToString();
     ed.Sil(delSQL);
     Temizle();
     grdReferansKalibrasyonlariBagla();
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:9,代码来源:ReferansKalibrasyonlari.aspx.cs

示例4: rdgrDahaOncePakatKapsaminaAlinanlar_ItemCommand

    protected void rdgrDahaOncePakatKapsaminaAlinanlar_ItemCommand(object source, GridCommandEventArgs e)
    {
        EFDal ed = new EFDal();
        int IstId = 0;
        if (e.CommandName == RadGrid.SelectCommandName && e.Item is GridDataItem)
        {
            GridDataItem dataItem = (GridDataItem)e.Item;
            int key = int.Parse(dataItem.OwnerTableView.DataKeyValues[dataItem.ItemIndex]["PaketNoID"].ToString());
            //Paket numaralari silinmezden önce istek tablosunda PaketNoId alanını -1'e çekmen gerekir
            IstId = ed.PaketNumaralariTablosundaPaketNoIddenIstIdDon(key);
            ed.IstekTablosundaIstIdlikaydinPaketNoIdsiniEksiBirYap(IstId);

            ed.Sil("delete from PaketNumaralari where PaketNoID =" + key.ToString());//önceki aynı ISTID li kayitlari sil
            rdgrDahaOncePakatKapsaminaAlinanlarGridiniBagla();

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

示例5: FaturaOnYaziTablosunaEkle

 protected void FaturaOnYaziTablosunaEkle(int IstId,string GrupIcinFaturaNo,int GunlukSirano)
 {
     string OlcumAraligi = "";
     int CihazKapsamAyrintiTablosuId = 0;
     decimal FatBedel = 0;
     int FaturaSira = 0;
     EFDal ed = new EFDal();
     ed.Sil("delete from FaturaOnYazi where ISTID=" + IstId.ToString());
     int BolgeKodu = ed.kal_BolgeKoduDon(Context.User.Identity.Name);
     using (Service1Client proxy = new Service1Client())
     {
         var oistek = proxy.IstekFind(IstId);
         OlcumAraligi = oistek.OLCUMARALIGI;
         CihazKapsamAyrintiTablosuId = oistek.CIHAZKAPSAMAYRINTITABLOSU;
         FatBedel = oistek.FATBEDEL;
         FaturaSira = oistek.FATURASIRA;
     }
     //string BuGrupIcinFaturaNo = KisaltilmisTurkceTarihDon().Replace(".", "") + "-" + ed.kal_FaturaOnYaziIcinSiradakiGunlukSiraNoDon(BolgeKodu).ToString();
     using (sfKalDataEntities ent = new sfKalDataEntities())
     {
         int intIstId = IstId;
         short CihazKapsamAyrintiTablosuAdlariID = (short)CihazKapsamAyrintiTablosuId;
         FaturaOnYazi oFaturaOnyazi = new FaturaOnYazi();
         //oFaturaOnyazi.CIHAZKAPSAMAYRINTIID = int.Parse(Session["CihazKapsamAyrintiTablosuID"].ToString());
         oFaturaOnyazi.CIHAZKAPSAMAYRINTIID = FaturaSira;
         oFaturaOnyazi.CihazKapsamAyrintiTabloAdlariID = CihazKapsamAyrintiTablosuAdlariID;
         oFaturaOnyazi.GUNLUKSIRA = GunlukSirano;//ed.kal_FaturaOnYaziIcinSiradakiGunlukSiraNoDon(BolgeKodu);
         //oFaturaOnyazi.FATURANO = KisaltilmisTurkceTarihDon().Replace(".", "") + "-" + ed.kal_FaturaOnYaziIcinSiradakiGunlukSiraNoDon(BolgeKodu).ToString();
         oFaturaOnyazi.FATURANO = GrupIcinFaturaNo;
         oFaturaOnyazi.ISTID = IstId;
         oFaturaOnyazi.OlcumAraligi = OlcumAraligi;
         oFaturaOnyazi.Bedel = FatBedel;
         oFaturaOnyazi.BOLGEKODU = (short)BolgeKodu;
         oFaturaOnyazi.EkBolgemi = false;
         oFaturaOnyazi.Silindi = false;
         oFaturaOnyazi.FATONYAZITAR = DateTime.Today;
         ent.AddToFaturaOnYazi(oFaturaOnyazi);
         ent.SaveChanges();
         //kal_FaturalandirmaAyrintilari(IstId);
     }
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:41,代码来源:FaturaOnYazi.ascx.cs

示例6: TeklifTablosundanSil

 protected void TeklifTablosundanSil(int Id)
 {
     EFDal ed = new EFDal();
     string SQL = "delete from teklif where ID=" + Id.ToString();
     ed.Sil(SQL);
     //Indirimli tekliflerden de sil
     using (Service1Client client = new Service1Client())
     {
         client.IndirimliTekliflerdenSil(Id);
     }
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:11,代码来源:EditTeklif.aspx.cs

示例7: Sil

 protected void Sil(int IstId)
 {
     EFDal ed = new EFDal();
     try
     {
         lblUyari.Visible = true;
         ed.Sil("update istek set SILINDI=1,IPTAL='iptal' where ISTID=" + IstId.ToString());
         //FaturaOnyazi tablosundan da silmelisin
         ed.Sil("update FaturaOnYazi SET Silindi=1 WHERE ID=" + IstId.ToString());
         lblUyari.ForeColor = System.Drawing.Color.Green;
         lblUyari.Text = "Kayıt silme işlemi başarılı"; ;
     }
     catch(Exception exc)
     {
         lblUyari.Visible = true;
         lblUyari.ForeColor = System.Drawing.Color.Red;
         lblUyari.Text = "Kayıt silme başarısız. Hata:"+exc.Message;
     }
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:19,代码来源:Istek.aspx.cs


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