/// <summary> /// 保存后 /// </summary> /// <param name="operateType"></param> /// <param name="t"></param> /// <param name="result"></param> /// <param name="currUser"></param> /// <param name="otherParams"></param> public void OperateCompeletedHandle(ModelRecordOperateType operateType, Sys_FormField t, bool result, Frame.Base.UserInfo currUser, object[] otherParams = null) { if (result) { string errMsg = string.Empty; Sys_FormField tempT = CommonOperate.GetEntityById <Sys_FormField>(t.Id, out errMsg); bool isFormEnableMemeryCache = ModelConfigHelper.IsModelEnableMemeryCache(typeof(Sys_Form)); //Sys_Form是否启动内存缓存 if (tempT.Sys_FormId.HasValue && isFormEnableMemeryCache) { Sys_Form form = SystemOperate.GetForm(tempT.Sys_FormId.Value); if (form != null) { form.FormFields = null; } } } }
/// <summary> /// 操作完成 /// </summary> /// <param name="operateType"></param> /// <param name="t"></param> /// <param name="result"></param> /// <param name="currUser"></param> /// <param name="otherParams"></param> public void OperateCompeletedHandle(ModelRecordOperateType operateType, Sys_GridField t, bool result, UserInfo currUser, object[] otherParams = null) { if (result) { Sys_GridField tempT = SystemOperate.GetAllGridFields(x => x.Id == t.Id).FirstOrDefault(); bool isGridEnableMemeryCache = ModelConfigHelper.IsModelEnableMemeryCache(typeof(Sys_Grid)); //Sys_Grid是否启动内存缓存 if (tempT.Sys_GridId.HasValue && isGridEnableMemeryCache) { Sys_Grid grid = SystemOperate.GetGrid(tempT.Sys_GridId.Value); if (grid != null) { grid.GridFields = null; } } //string errMsg = string.Empty; //CommonOperate.UpdateRecordsByExpression<Sys_GridField>(new { FieldFormatter = "", EditorFormatter = "" }, x => x.Id == t.Id, out errMsg); } }