修复因iframe造成的分页导航显示问题

This commit is contained in:
yubaolee 2016-02-18 17:33:40 +08:00
parent f63159dc07
commit 068e6a4bac
11 changed files with 22 additions and 17 deletions

View File

@ -41,7 +41,7 @@ namespace OpenAuth.Domain.Interface
/// <summary> /// <summary>
/// 批量更新 /// 批量更新
/// </summary> /// </summary>
void Update(Expression<Func<T, bool>> exp, T entity); void Update(Expression<Func<T, object>> exp, T entity);
/// <summary> /// <summary>
/// 批量删除 /// 批量删除

View File

@ -87,7 +87,7 @@
paging: true, paging: true,
filterMult: false, filterMult: false,
showTfoot: false, showTfoot: false,
height: '700' height: '100%'
}); });
} }

View File

@ -1,5 +1,5 @@
@{ @{
Layout = "~/Views/Shared/_BjuiLayout.cshtml"; Layout = null;
} }
@model IEnumerable<OpenAuth.Domain.ModuleElement> @model IEnumerable<OpenAuth.Domain.ModuleElement>

View File

@ -92,7 +92,7 @@
paging: true, paging: true,
filterMult: false, filterMult: false,
showTfoot: false, showTfoot: false,
height: '700' height: '100%'
}); });
} }

View File

@ -98,7 +98,7 @@
paging: true, paging: true,
filterMult: false, filterMult: false,
showTfoot: false, showTfoot: false,
height: '700' height: '100%'
}); });
} }

View File

@ -85,7 +85,7 @@
paging: true, paging: true,
filterMult: false, filterMult: false,
showTfoot: false, showTfoot: false,
height: '700' height: '100%'
}); });
} }

View File

@ -86,7 +86,7 @@
paging: true, paging: true,
filterMult: false, filterMult: false,
showTfoot: false, showTfoot: false,
height: '700' height: '100%'
}); });
} }

View File

@ -87,7 +87,7 @@
paging: true, paging: true,
filterMult: false, filterMult: false,
showTfoot: false, showTfoot: false,
height: '700' height: '100%' //TODO这种高度如果记录数较少的时候看起有点怪这个可以根据自己爱好修改
}); });
} }

View File

@ -75,10 +75,12 @@ namespace OpenAuth.Repository
Save(); Save();
} }
public void Update(Expression<Func<T, bool>> exp, T entity) public void Update(Expression<Func<T, object>> identityExp, T entity)
{ {
//TODO: 暂时有问题EntityFramework.Extension的Update必须有new操作 //TODO: 暂时有问题EntityFramework.Extension的Update必须有new操作
Context.Set<T>().Where(exp).Update(u => entity); // Context.Set<T>().Where(exp).Update(u => entity);
Context.Set<T>().AddOrUpdate(identityExp, entity);
Save();
} }
public void Delete(Expression<Func<T, bool>> exp) public void Delete(Expression<Func<T, bool>> exp)

View File

@ -76,7 +76,9 @@
<Compile Include="TestOrgApp.cs" /> <Compile Include="TestOrgApp.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="App.config" /> <None Include="App.config">
<SubType>Designer</SubType>
</None>
<None Include="packages.config" /> <None Include="packages.config" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
@ -117,7 +119,6 @@
</Choose> </Choose>
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" /> <Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">

View File

@ -51,13 +51,15 @@ namespace OpenAuth.UnitTest
// module.CascadeId += module1.CascadeId; // module.CascadeId += module1.CascadeId;
//} //}
//moduleRep.Update(module); //moduleRep.Update(module);
var module2 = new Module moduleRep.Update(u =>u.Id, new Module
{ {
Id = 14, Id = 15,
CascadeId = DateTime.Now.ToShortTimeString() Name = "test",
}; CascadeId = DateTime.Now.ToShortTimeString(),
moduleRep.Update(module2); Url = "ssss"
});
} }
} }
} }