本文整理汇总了C#中EFDal.FirmaIddenIlIlceDon方法的典型用法代码示例。如果您正苦于以下问题:C# EFDal.FirmaIddenIlIlceDon方法的具体用法?C# EFDal.FirmaIddenIlIlceDon怎么用?C# EFDal.FirmaIddenIlIlceDon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EFDal
的用法示例。
在下文中一共展示了EFDal.FirmaIddenIlIlceDon方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RadComboBoxFirma_SelectedIndexChanged
protected void RadComboBoxFirma_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
{
EFDal ed=new EFDal();
try
{
int FirmaId = int.Parse(RadComboBoxFirma.SelectedValue);
txtFirmaID.Text = FirmaId.ToString();
txtFirmaAdi.Text = ed.FirmaIddenFirmaAdiDon(FirmaId);
if (Session["OturumIcinGorevID"] == null)
{
txtGorevID.Text = ed.SiradakiGorevIDyiDon().ToString();
}
else
{
txtGorevID.Text = Session["OturumIcinGorevID"].ToString();
}
txtIlIlce.Text = ed.FirmaIddenIlIlceDon(FirmaId);
//Session["IstekleriGosterilecekFirmaId"] = RadComboBoxFirma.SelectedValue;
// Response.Redirect("FirmadanGelenIstekler.aspx");
//IDdenDoldur(int.Parse(bak));
//Response.Redirect("IsEmri.aspx?Id=" + bak);
}
catch
{
}
}
示例2: IsTakvimimneYaz
protected bool IsTakvimimneYaz(int GorevID)
{
EFDal ed=new EFDal();
bool Sonuc = false;
DateTime BasTar,SonTar;
int FirmaId = 0;
string Subject = "";
using (sfKalDataEntities ent = new sfKalDataEntities())
{
var oGorevFirma = (from c in ent.GorevFirma where c.GorevID == GorevID select c).ToList();
foreach (var result in oGorevFirma)
{
Subject += ed.FirmaIddenFirmaAdiDon(result.FirmaID) + "-" + ed.FirmaIddenIlIlceDon(result.FirmaID)+"<br/>";
FirmaId = result.FirmaID;
}
//GorevBaslangic ve Bitis tarihlerini al
DataSet ds = new DataSet();
ds = ed.GorevPersonelDon(GorevID);
BasTar = DateTime.Parse(ds.Tables[0].Rows[0]["GorevSuresi"].ToString());
SonTar=DateTime.Parse(ds.Tables[0].Rows[0]["GorevSuresiBitis"].ToString());
ds.Dispose();
Scheduler oScheduler = new Scheduler();
oScheduler.Subject = Subject;
oScheduler.Start = BasTar;
oScheduler.Endd = SonTar;
oScheduler.RecurrenceRule = "";
oScheduler.RecurrenceParentID = 0;
oScheduler.FirmaId = FirmaId;
oScheduler.Kullanici = Context.User.Identity.Name;
ent.AddToScheduler(oScheduler);
ent.SaveChanges();
}
return Sonuc;
}