Exemplo n.º 1
0
        public virtual ITask Execute(CommandContext commandContext)
        {
            CheckCreateTask(commandContext);

            var task = TaskEntity.Create();

            task.Id = TaskId;
            return((ITask)task);
        }
Exemplo n.º 2
0
 public void SubmitForm(TaskEntity userEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         userEntity.Modify(keyValue);
     }
     else
     {
         userEntity.Create();
     }
     service.SubmitForm(userEntity, keyValue);
 }
Exemplo n.º 3
0
 public void SubmitForm(TaskEntity userEntity)
 {
     if (!string.IsNullOrEmpty(userEntity.F_Id))
     {
         userEntity.Modify(userEntity.F_Id);
     }
     else
     {
         userEntity.Create();
     }
     service.SubmitForm(userEntity);
 }
Exemplo n.º 4
0
 public void SubmitForm(TaskEntity entity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         entity.Modify(keyValue);
         service.Update(entity);
     }
     else
     {
         entity.Create();
         entity.F_Status = 0;
         service.Insert(entity);
     }
 }