This commit is contained in:
yubaolee 2016-09-07 18:57:58 +08:00
parent c8dec703a7
commit 7aff8036ef
5 changed files with 7 additions and 6 deletions

View File

@ -26,7 +26,7 @@ namespace OpenAuth.App
public void Update(ApplyTransitionHistory historyItem) public void Update(ApplyTransitionHistory historyItem)
{ {
_repository.Update(historyItem); _repository.Update(u =>u.Id, historyItem);
} }
public void DeleteByProcess(Guid processId) public void DeleteByProcess(Guid processId)

View File

@ -22,8 +22,8 @@ namespace OpenAuth.App
{ {
if (model.Id == Guid.Empty) if (model.Id == Guid.Empty)
{ {
var obj = model.CopyTo<CommonApply>(); model.ApplyTime = DateTime.Now;
_repository.Add(obj); _repository.Add(model);
} }
else else
{ {
@ -31,6 +31,7 @@ namespace OpenAuth.App
{ {
UserId = model.UserId, UserId = model.UserId,
Name = model.Name, Name = model.Name,
Comment = model.Comment
}); });
} }

View File

@ -145,8 +145,8 @@ namespace OpenAuth.Mvc.Controllers
/// </summary> /// </summary>
/// <param name="id">流程实例ID</param> /// <param name="id">流程实例ID</param>
/// <param name="commandName">命令名称</param> /// <param name="commandName">命令名称</param>
/// <param name="goodsApply">申请实体</param> /// <param name="apply">申请实体</param>
private void ExecuteCommand(Guid id, string commandName, CommonApply goodsApply) private void ExecuteCommand(Guid id, string commandName, CommonApply apply)
{ {
var currentUser =AuthUtil.GetCurrentUser().User.Id.ToString(); var currentUser =AuthUtil.GetCurrentUser().User.Id.ToString();

View File

@ -32,7 +32,7 @@
<tr> <tr>
<td> <td>
<label for="Comment" class="control-label x120">申请描述:</label> <label for="Comment" class="control-label x120">申请描述:</label>
<input type="text" id="Comment" name="Comment" value="" /> <textarea type="text" id="Comment" name="Comment" value=""></textarea>
</td> </td>
</tr> </tr>
</tbody> </tbody>

Binary file not shown.