3.6. 人事子系统表示层(Web)
修改Depts.aspx
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)<asp:Panel ID="Panel1" runat="server" GroupingText="部门列表">
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)        
<br />
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)        
<asp:GridView ID="GridView1" runat="server" DataSourceID="odsDepts" DataKeyNames="ID"
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)            AutoGenerateColumns
="False" Width="100%" AllowPaging="true" PageSize="10">
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)            
<Columns>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                
<asp:TemplateField>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                    
<ItemTemplate>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                        
<asp:Button ID="btnEdit" runat="server" CommandName="Edit" Text="编辑" />
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                        
<asp:Button ID="btnDelete" runat="server" CommandName="Delete" Text="删除" OnClientClick="return confirm('您真的要删除吗?')" />
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                    
</ItemTemplate>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                    
<EditItemTemplate>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                        
<asp:Button ID="btnUpdate" runat="server" CommandName="Update" Text="更新" />
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                        
<asp:Button ID="btnCancel" runat="server" CommandName="Cancel" Text="取消" />
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                    
</EditItemTemplate>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                
</asp:TemplateField>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                
<asp:BoundField HeaderText="部门代码" DataField="Code" />
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                
<asp:BoundField HeaderText="部门名称" DataField="Name" />
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)            
</Columns>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)        
</asp:GridView>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)    
</asp:Panel>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)    
<hr />
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)    
<asp:Panel ID="Panel2" runat="server" GroupingText="新增部门">
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)        
<br />
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)        
<asp:FormView ID="FormView1" runat="server" DataSourceID="odsDepts" DefaultMode="Insert">
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)            
<InsertItemTemplate>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                
<table width="100%" border="0" cellpadding="2" cellspacing="2">
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                    
<tr>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                        
<td>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                            部门代码
</td>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                        
<td>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                            
<asp:TextBox ID="txtCode" runat="server" Width="200" Text='<%# Bind("Code") %>' />
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                        
</td>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                    
</tr>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                    
<tr>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                        
<td>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                            部门名称
</td>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                        
<td>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                            
<asp:TextBox ID="txtGroupName" runat="server" Width="200" Text='<%# Bind("Name") %>' />
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                        
</td>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                    
</tr>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                
</table>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                
<p>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                    
<asp:Button ID="btnInsert" runat="server" CommandName="Insert" Text="新增" />
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)                
</p>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)            
</InsertItemTemplate>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)        
</asp:FormView>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)    
</asp:Panel>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)    
<asp:ObjectDataSource ID="odsDepts" runat="server" TypeName="Guushuuse.SalaryPrj.HR.Helper.HRHelper"
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)        SelectMethod
="GetAllDepts" InsertMethod="CreateDept" UpdateMethod="UpdateDept"
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)        DeleteMethod
="DeleteDept"></asp:ObjectDataSource>
ASP.NET&Spring.NET&NHibernate最佳实践(六)——第3章人事子系统(3)
修改Employees.aspx

相关文章:

猜你喜欢
相关资源
相似解决方案