public void Delete(Modules.AM_Kind model) { dal.Initialization(); FineOffice.Entity.AM_Kind entity = new Entity.AM_Kind { ID = model.ID, }; dal.Delete(entity); dal.Dispose(); }
public FineOffice.Modules.AM_Kind Update(FineOffice.Modules.AM_Kind model) { dal.Initialization(); FineOffice.Entity.AM_Kind entity = new Entity.AM_Kind { ID = model.ID, KindID = model.KindID, KindName = model.KindName, Name = model.Name, Relation = model.Relation, Serial = model.Serial, SerialNO = model.SerialNO, }; dal.Update(entity); dal.Dispose(); return(null); }
/// <summary> /// 增加部门 /// </summary> public FineOffice.Modules.AM_Kind Add(FineOffice.Modules.AM_Kind model) { dal.Initialization(); FineOffice.Entity.AM_Kind entity = new Entity.AM_Kind { ID = model.ID, KindID = model.KindID, KindName = model.KindName, Name = model.Name, Relation = model.Relation, Serial = model.Serial, SerialNO = model.SerialNO, }; dal.Add(entity); dal.Dispose(); return(this.GetModel(d => d.ID == entity.ID)); }