Example #1
0
 /// <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);
     }
 }