mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 18:47:55 +08:00
可以编辑表单
This commit is contained in:
@@ -36,7 +36,7 @@ namespace OpenAuth.App
|
||||
}
|
||||
|
||||
public GridData Load(int pageCurrent, int pageSize)
|
||||
{
|
||||
{
|
||||
var result = new GridData
|
||||
{
|
||||
page = pageCurrent
|
||||
@@ -48,5 +48,19 @@ namespace OpenAuth.App
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public void SaveForm(string keyValue, WFFrmMain entity)
|
||||
{
|
||||
|
||||
if (string.IsNullOrEmpty(keyValue))
|
||||
{
|
||||
_unitWork.Add(entity);
|
||||
}
|
||||
else
|
||||
{
|
||||
_unitWork.Update(u =>u.Id, entity);
|
||||
}
|
||||
_unitWork.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user