예제 #1
0
 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();
 }
예제 #2
0
 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);
 }
예제 #3
0
 /// <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));
 }