/// <summary>
 /// 更新状态
 /// </summary>
 /// <param name="keyValue">模板信息主键</param>
 /// <param name="state">状态1启用0禁用</param>
 public void UpdateState(string keyValue, int state)
 {
     try
     {
         FunctionEntity entity = new FunctionEntity
         {
             F_Id          = keyValue,
             F_EnabledMark = state
         };
         this.BaseRepository().Update(entity);
     }
     catch (Exception ex)
     {
         if (ex is ExceptionEx)
         {
             throw;
         }
         else
         {
             throw ExceptionEx.ThrowServiceException(ex);
         }
     }
 }