private void Save(MNorm entity) { entity.Name = Name; entity.SortId = SortId; entity.Status = Status; entity.PostDate = PostDate; entity.Content = Content; entity.MainCode = MainCode; entity.MainName = MainName; entity.AdminCode = AdminCode; entity.AdminName = AdminName; entity.ServiceCode = ServiceCode; entity.ServiceName = ServiceName; if (entity.MNormId == 0) { m_FTISService.CreateMNorm(entity); } else { m_FTISService.UpdateMNorm(entity); } LoadEntity(entity.MNormId); }
protected void LoadEntity(MNorm entity) { if (entity != null) { EntityId = entity.MNormId; Name = entity.Name; SortId = entity.SortId; Status = entity.Status; PostDate = entity.PostDate; Content = entity.Content; MainCode = entity.MainCode; MainName = entity.MainName; AdminCode = entity.AdminCode; AdminName = entity.AdminName; ServiceCode = entity.ServiceCode; ServiceName = entity.ServiceName; } }
/// <summary> /// 刪除國際組織標準/系統動態 /// </summary> /// <param name="mNorm">被刪除的國際組織標準/系統動態</param> public void DeleteMNorm(MNorm mNorm) { FTISDao.DeleteMNorm(mNorm); }
/// <summary> /// 更新國際組織標準/系統動態 /// </summary> /// <param name="mNorm">被更新的國際組織標準/系統動態</param> /// <returns>更新後的國際組織標準/系統動態</returns> public MNorm UpdateMNorm(MNorm mNorm) { return FTISDao.UpdateMNorm(mNorm); }
/// <summary> /// 新增國際組織標準/系統動態 /// </summary> /// <param name="mNorm">被新增的國際組織標準/系統動態</param> /// <returns>新增後的國際組織標準/系統動態</returns> public MNorm CreateMNorm(MNorm mNorm) { return FTISDao.CreateMNorm(mNorm); }
public void Insert() { MNorm entity = new MNorm(); Save(entity); }