Exemplo n.º 1
0
 public override int Insert(DynamicForm.Core.FormM form, DynamicForm.Core.DFDictionary entity, ref string message)
 {
     try
     {
         var currentUser = Util.GetCurrentUser().UserName;
         var list        = base.GetGridClientData <VM_WF_M_MODEL>(entity, "grid1");
         if (list == null || list.Count == 0)
         {
             throw new WFException("没有得到客户端 grid 的数据,请检查 gridid 是否正确?");
         }
         foreach (var item in list.Where(a => a.selected))
         {
             WFDA.Instance.Copy(item.ModelId, currentUser);
         }
         return(DFPub.EXECUTE_SUCCESS);
     }
     catch (Exception ex)
     {
         message = ex.Message;
         return(DFPub.EXECUTE_ERROR);
     }
 }
 public override int Insert(DynamicForm.Core.FormM form, DynamicForm.Core.DFDictionary entity, ref string message)
 {
     Submit(entity, ref message);
     return(base.Insert(form, entity, ref message));
 }