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(); }
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); }
/// <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)); }