/// <summary> /// 保存表单(新增、修改) /// </summary> /// <param name="keyValue">主键值</param> /// <param name="entity">实体对象</param> /// <returns></returns> public void SaveForm(string keyValue, DataItemDetailEntity entity) { try { service.SaveForm(keyValue, entity); } catch (Exception) { throw; } }
/// <summary> /// 保存明细表单(新增、修改) /// </summary> /// <param name="keyValue">主键值</param> /// <param name="dataItemDetailEntity">明细实体</param> /// <returns></returns> public void SaveForm(string keyValue, DataItemDetailEntity dataItemDetailEntity) { try { service.SaveForm(keyValue, dataItemDetailEntity); CacheFactory.Cache().RemoveCache(cacheKey); } catch (Exception) { throw; } }
/// <summary> /// 保存明细表单(新增、修改) /// </summary> /// <param name="keyValue">主键值</param> /// <param name="dataItemDetailEntity">明细实体</param> /// <returns></returns> public void SaveForm(string keyValue, DataItemDetailEntity dataItemDetailEntity) { try { dataItemDetailEntity.SimpleSpelling = Str.PinYin(dataItemDetailEntity.ItemName); service.SaveForm(keyValue, dataItemDetailEntity); CacheFactory.Cache().RemoveCache(cacheKey); } catch (Exception) { throw; } }