Exemplo n.º 1
0
 public void Delete(Modules.HR_Job model)
 {
     dal.Initialization();
     FineOffice.Entity.HR_Job entity = new Entity.HR_Job
     {
         ID = model.ID,
     };
     dal.Delete(entity);
     dal.Dispose();
 }
Exemplo n.º 2
0
 public FineOffice.Modules.HR_Job Update(FineOffice.Modules.HR_Job model)
 {
     dal.Initialization();
     FineOffice.Entity.HR_Job entity = new Entity.HR_Job
     {
         ID         = model.ID,
         Remark     = model.Remark,
         Job        = model.Job,
         JobNO      = model.JobNO,
         PinyinCode = model.PinyinCode,
         Stop       = model.Stop,
     };
     dal.Update(entity);
     dal.Dispose();
     return(null);
 }
Exemplo n.º 3
0
 /// <summary>
 /// 增加分支机构
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public FineOffice.Modules.HR_Job Add(FineOffice.Modules.HR_Job model)
 {
     dal.Initialization();
     FineOffice.Entity.HR_Job entity = new Entity.HR_Job
     {
         ID         = model.ID,
         Remark     = model.Remark,
         Job        = model.Job,
         JobNO      = model.JobNO,
         PinyinCode = model.PinyinCode,
         Stop       = model.Stop,
     };
     dal.Add(entity);
     dal.Dispose();
     return(this.GetModel(d => d.ID == entity.ID));
 }