本文整理汇总了C#中EFDal.ReferansIDdenBakKartNoDon方法的典型用法代码示例。如果您正苦于以下问题:C# EFDal.ReferansIDdenBakKartNoDon方法的具体用法?C# EFDal.ReferansIDdenBakKartNoDon怎么用?C# EFDal.ReferansIDdenBakKartNoDon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EFDal
的用法示例。
在下文中一共展示了EFDal.ReferansIDdenBakKartNoDon方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: grdReferansBakimlariBagla
protected void grdReferansBakimlariBagla()
{
EFDal ed = new EFDal();
int Id = int.Parse(Request["Id"].ToString());
string BAKKARTNO = ed.ReferansIDdenBakKartNoDon(Id);
DataSet ds = new DataSet();
ds=ed.Sorgula("select * from refbakim where BAKKARTNO='"+BAKKARTNO+"'");
grdReferansBakimlari.DataSource = ds;
grdReferansBakimlari.DataBind();
ds.Dispose();
}
示例2: 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);
}
示例3: grdReferansKalibrasyonlariBagla
protected void grdReferansKalibrasyonlariBagla()
{
EFDal ed = new EFDal();
int BolgeKodu=ed.kal_BolgeKoduDon(Context.User.Identity.Name);
int Id=int.Parse(Request["Id"].ToString());
string BakKartNo=ed.ReferansIDdenBakKartNoDon(Id);
DataSet ds = new DataSet();
string SQL="select * from refkalibrasyon where BAKKARTNO='"+BakKartNo+"' and BOLGEKODU="+BolgeKodu.ToString();
ds = ed.Sorgula(SQL);
grdReferansKalibrasyonlari.DataSource = ds;
grdReferansKalibrasyonlari.DataBind();
ds.Dispose();
}
示例4: lnkYeniKalibrasyonBilgisiEkle_Click
protected void lnkYeniKalibrasyonBilgisiEkle_Click(object sender, EventArgs e)
{
EFDal ed = new EFDal();
Temizle();
int Id = int.Parse(Request["Id"].ToString());
string BakKartNo = ed.ReferansIDdenBakKartNoDon(Id);
txtBAKKARTNO.Text = BakKartNo;
btnEkle.Visible = true;
btnGuncelle.Visible = false;
pnlRefKalibrasyonGuncelleme.Visible = true;
}
示例5: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
EFDal ed = new EFDal();
int Id=int.Parse(Request["Id"].ToString());
string BakKartNo = ed.ReferansIDdenBakKartNoDon(Id);
if (!IsPostBack)
{
grdReferansBakimlariBagla();
if (UserManager.Default.IsUserInRole(Context.User.Identity.Name, "ReferansGuncelleyici"))
{
lnkYeniBakimBilgisiEkle.Enabled = true;
btnGuncelle.Enabled = true;
btnEkle.Enabled = true;
btnSil.Enabled = true;
}
else
{
lnkYeniBakimBilgisiEkle.ToolTip = "Referans kalibrasyon, bakım bilgisi güncelleme yetkiniz yok!";
btnGuncelle.Enabled = false;
btnEkle.Enabled = false;
btnSil.Enabled = false;
}
}
}
示例6: lnkYeniBakimBilgisiEkle_Click
protected void lnkYeniBakimBilgisiEkle_Click(object sender, EventArgs e)
{
EFDal ed = new EFDal();
Temizle();
int Id = int.Parse(Request["Id"].ToString());
string BakKartNo=ed.ReferansIDdenBakKartNoDon(Id);
txtBAKKARTNO.Text = BakKartNo;
txtBAKANPER.Text = Context.User.Identity.Name;
raddtBAKTAR.SelectedDate = DateTime.Now.Date;
txtBAKANPER.Enabled = false;
btnEkle.Visible = true;
btnGuncelle.Visible = false;
pnlBakimGuncelleme.Visible = true;
}