?? webform1.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="附單據(jù)">
<ItemTemplate>
<%# Container.DataItem("附單據(jù)") %>
</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="過帳狀態(tài)">
<ItemTemplate>
<%# Container.DataItem("過帳狀態(tài)") %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="憑證狀態(tài)">
<ItemTemplate>
<%# Container.DataItem("憑證狀態(tài)") %>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="edit_State" Text='<%# Container.DataItem("憑證狀態(tài)") %>' 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"> </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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -