本文整理汇总了C#中EFDal.GorevPersonelDon方法的典型用法代码示例。如果您正苦于以下问题:C# EFDal.GorevPersonelDon方法的具体用法?C# EFDal.GorevPersonelDon怎么用?C# EFDal.GorevPersonelDon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EFDal
的用法示例。
在下文中一共展示了EFDal.GorevPersonelDon方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GorevPersonelGridiniBagla
protected void GorevPersonelGridiniBagla(int GorevId)
{
EFDal ed = new EFDal();
DataSet ds = new DataSet();
ds = ed.GorevPersonelDon(GorevId);
GridView1.DataSource = ds;
GridView1.DataBind();
//ds.Dispose();
}
示例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;
}