⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webform1.aspx

📁 使用工具为.net2003
💻 ASPX
字号:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="EditNestedDataGrid.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>WebForm1</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<asp:literal id="Literal1" runat="server"></asp:literal>
		<style type="text/css">.Freezing { Z-INDEX: 10; POSITION: relative; ; TOP: expression(DataGrid1.offsetParent.scrollTop) }
		</style>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<asp:datagrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 192px" runat="server"
				AllowPaging="True" ItemStyle-VerticalAlign="Top" AutoGenerateColumns="False" Font-Size="8pt"
				Font-Name="Verdana" HorizontalAlign="Center" BackColor="#F1F1F1" ShowFooter="True" AllowSorting="True"
				DataMember="ParentTable" Font-Names="Verdana">
				<AlternatingItemStyle BackColor="White"></AlternatingItemStyle>
				<ItemStyle VerticalAlign="Top"></ItemStyle>
				<HeaderStyle Font-Bold="True" HorizontalAlign="Center" ForeColor="White" CssClass="Freezing"
					BackColor="#0083C1"></HeaderStyle>
				<Columns>
					<asp:TemplateColumn>
						<HeaderStyle Width="9px"></HeaderStyle>
						<ItemTemplate>
							<asp:ImageButton id="ImageButton1" runat="server" Width="9px" Height="9px" ImageUrl="~/Images/Plus.gif"
								CommandName="Expand"></asp:ImageButton>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn Visible="False" DataField="CustomerID" HeaderText="凭证编号">
						<ItemStyle HorizontalAlign="Left"></ItemStyle>
					</asp:BoundColumn>
					<asp:TemplateColumn SortExpression="[凭证表].[凭证编号] ASC" HeaderText="凭证编号">
						<ItemTemplate>
							<%# Container.DataItem("CustomerID") %>
						</ItemTemplate>
						<EditItemTemplate>
							<asp:TextBox ID="edit_CustomerID" Text='<%# Container.DataItem("CustomerID") %>' readonly=True width="100%" Columns="5" Runat="Server" />
						</EditItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn SortExpression="[凭证表].[会计期间] ASC" HeaderText="会计期间">
						<ItemTemplate>
							<%# Container.DataItem("会计期间") %>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn SortExpression="[凭证表].[凭证字号] ASC" HeaderText="凭证字号">
						<ItemTemplate>
							<%# Container.DataItem("凭证字号") %>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn SortExpression="[凭证表].[日期] ASC" HeaderText="日期">
						<ItemTemplate>
							<%# Container.DataItem("日期") %>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="附单据">
						<ItemTemplate>
							<%# Container.DataItem("附单据") %>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="制单">
						<ItemTemplate>
							<%# Container.DataItem("制单") %>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="借方合计">
						<ItemTemplate>
							<%# Container.DataItem("借方合计") %>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="贷方合计">
						<ItemTemplate>
							<%# Container.DataItem("贷方合计") %>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="过帐状态">
						<ItemTemplate>
							<%# Container.DataItem("过帐状态") %>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="凭证状态">
						<ItemTemplate>
							<%# Container.DataItem("凭证状态") %>
						</ItemTemplate>
						<EditItemTemplate>
							<asp:TextBox ID="edit_State" Text='<%# Container.DataItem("凭证状态") %>' readonly=true width="100%" Columns="5" Runat="Server" />
						</EditItemTemplate>
					</asp:TemplateColumn>
					<asp:EditCommandColumn ButtonType="PushButton" UpdateText="审核" HeaderText="编辑" CancelText="取消" EditText="编辑"></asp:EditCommandColumn>
					<asp:TemplateColumn>
						<ItemTemplate>
							<asp:PlaceHolder id="Expanded" Visible="false" Runat="server">
								</td></tr>
								<tr>
									<td width="9">&nbsp;</td>
									<td colspan="7">
										<asp:DataGrid id=DataGrid2 runat="server" AllowPaging="false" ItemStyle-VerticalAlign="Top" AutoGenerateColumns="false" Font-Size="8pt" Font-Name="Verdana" BackColor="#f1f1f1" ShowFooter="True" AllowSorting="True" EnableViewState="true" OnSortCommand="DataGrid2_SortCommand" OnPageIndexChanged="DataGrid2_PageIndexChanged" OnItemCommand="DataGrid2_ItemCommand" CellPadding="2" DataSource='<%# Container.DataItem.CreateChildView("ParentTable_ChildTable") %>'>
											<AlternatingItemStyle BackColor="White"></AlternatingItemStyle>
											<HeaderStyle Font-Bold="True" HorizontalAlign="Center" ForeColor="White" BackColor="#0083C1"></HeaderStyle>
											<Columns>
												<asp:BoundColumn DataField="科目代码" HeaderText="科目代码" Visible="False">
													<ItemStyle HorizontalAlign="Left"></ItemStyle>
												</asp:BoundColumn>
												<asp:TemplateColumn SortExpression="[分录表].[科目代码] ASC" HeaderText="科目代码">
													<ItemTemplate>
														<%# Container.DataItem("科目代码") %>
													</ItemTemplate>
												</asp:TemplateColumn>
												<asp:TemplateColumn HeaderText="科目名称">
													<ItemTemplate>
														<%# Container.DataItem("科目名称") %>
													</ItemTemplate>
												</asp:TemplateColumn>
												<asp:TemplateColumn HeaderText="借方">
													<ItemTemplate>
														<%# Container.DataItem("借方") %>
													</ItemTemplate>
												</asp:TemplateColumn>
												<asp:TemplateColumn HeaderText="贷方">
													<ItemTemplate>
														<%# Container.DataItem("贷方") %>
													</ItemTemplate>
												</asp:TemplateColumn>
												<asp:TemplateColumn HeaderText="摘要">
													<ItemTemplate>
														<%# Container.DataItem("摘要") %>
													</ItemTemplate>
												</asp:TemplateColumn>
											</Columns>
											<PagerStyle Mode="NumericPages"></PagerStyle>
										</asp:DataGrid>
							</asp:PlaceHolder>
						</ItemTemplate>
					</asp:TemplateColumn>
				</Columns>
				<PagerStyle Mode="NumericPages"></PagerStyle>
			</asp:datagrid>
			<asp:Label id="lblShowBal" style="Z-INDEX: 106; LEFT: 64px; POSITION: absolute; TOP: 104px"
				runat="server" BackColor="White" ForeColor="InactiveCaption" Width="288px" Height="24px"
				BorderStyle="Inset"></asp:Label>
			<asp:Label id="Label2" style="Z-INDEX: 105; LEFT: 0px; POSITION: absolute; TOP: 136px" runat="server"
				BackColor="Gainsboro" ForeColor="InactiveCaption" Width="288px" Height="24px">第二项,审核账户细则</asp:Label>
			<asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 336px; POSITION: absolute; TOP: 72px" runat="server"
				Width="72px" Text="查询"></asp:Button>
			<asp:Label id="Label1" style="Z-INDEX: 104; LEFT: 0px; POSITION: absolute; TOP: 72px" runat="server"
				BackColor="Gainsboro" ForeColor="InactiveCaption" Width="288px" Height="24px">第一项,查询是否试算平衡</asp:Label><asp:label id="lblMessage" style="Z-INDEX: 103; LEFT: 8px; POSITION: absolute; TOP: 168px"
				runat="server" Font-Bold="true"></asp:label>
			<asp:Panel id="Panel1" style="Z-INDEX: 107; LEFT: 0px; POSITION: absolute; TOP: 8px" runat="server"
				HorizontalAlign="Center" ForeColor="#FF8080" Width="736px" Height="56px">
				<P>会计审核</P>
			</asp:Panel></form>
	</body>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -