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)
{
_repository.Update(historyItem);
_repository.Update(u =>u.Id, historyItem);
}
public void DeleteByProcess(Guid processId)

View File

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

View File

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

View File

@ -32,7 +32,7 @@
<tr>
<td>
<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>
</tr>
</tbody>

Binary file not shown.