?? commonpropertyform.aspx
字號:
?<%--文件名:CommonPropertyForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="CommonPropertyForm.aspx.cs" Inherits="BaseManage_CommonPropertyForm" Title="當前位置:基本管理->公共財產管理" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table style="width: 558px; height: 1px">
<tr>
<td align="left" style="font-size: 0.8em; width: 584px; font-family: 宋體; height: 21px;
background-color: palegoldenrod">
財產編號:<asp:TextBox ID="TextBox1" runat="server" Width="75px">HMA0001</asp:TextBox>
財產名稱:<asp:TextBox ID="TextBox2" runat="server" Width="156px">1號游泳池</asp:TextBox>
規格型號:<asp:TextBox ID="TextBox3" runat="server" Width="83px">200平方米</asp:TextBox> <br />
所屬類別:<asp:TextBox ID="TextBox4" runat="server" Width="122px">建筑物</asp:TextBox>
財產原值(元):<asp:TextBox ID="TextBox5" runat="server" Width="81px">200000</asp:TextBox>
啟用日期:<asp:TextBox ID="TextBox6" runat="server" Width="85px">2005-8-1</asp:TextBox><br />
存放位置:<asp:TextBox ID="TextBox7" runat="server" Width="155px">中庭花園</asp:TextBox>
當前狀態:<asp:TextBox ID="TextBox8" runat="server" BackColor="White" Width="75px">正在使用</asp:TextBox>
保管人員:<asp:TextBox ID="TextBox9" runat="server" Width="85px">武朝勝</asp:TextBox><br />
補充說明:<asp:TextBox ID="TextBox10" runat="server" BackColor="White" Width="234px">暫無</asp:TextBox>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="新增" Width="70px" /> <asp:Button
ID="Button2" runat="server" OnClick="Button2_Click" Text="修改" Width="70px" />
<asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="打印" Width="70px" /></td>
</tr>
<tr>
<td style="overflow: auto; width: 584px; height: 103px; background-color: gainsboro">
<asp:Panel ID="Panel1" runat="server" Height="150px" ScrollBars="Auto" Width="555px">
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyCommunityDBConnectionString %>"
DeleteCommand="DELETE FROM [公共財產] WHERE [財產編號] = @財產編號" InsertCommand="INSERT INTO [公共財產] ([財產編號], [財產名稱], [規格型號], [所屬類別], [財產原值], [啟用日期], [存放位置], [當前狀態], [保管人員], [補充說明]) VALUES (@財產編號, @財產名稱, @規格型號, @所屬類別, @財產原值, @啟用日期, @存放位置, @當前狀態, @保管人員, @補充說明)"
SelectCommand="SELECT * FROM [公共財產]" UpdateCommand="UPDATE [公共財產] SET [財產名稱] = @財產名稱, [規格型號] = @規格型號, [所屬類別] = @所屬類別, [財產原值] = @財產原值, [啟用日期] = @啟用日期, [存放位置] = @存放位置, [當前狀態] = @當前狀態, [保管人員] = @保管人員, [補充說明] = @補充說明 WHERE [財產編號] = @財產編號">
<DeleteParameters>
<asp:Parameter Name="財產編號" Type="String" />
</DeleteParameters>
<UpdateParameters>
<asp:ControlParameter ControlID="TextBox2" Name="財產名稱" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox3" Name="規格型號" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox4" Name="所屬類別" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox5" Name="財產原值" PropertyName="Text" Type="Double" />
<asp:ControlParameter ControlID="TextBox6" Name="啟用日期" PropertyName="Text" Type="DateTime" />
<asp:ControlParameter ControlID="TextBox7" Name="存放位置" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox8" Name="當前狀態" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox9" Name="保管人員" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox10" Name="補充說明" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox1" Name="財產編號" PropertyName="Text" Type="String" />
</UpdateParameters>
<InsertParameters>
<asp:ControlParameter ControlID="TextBox1" Name="財產編號" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox2" Name="財產名稱" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox3" Name="規格型號" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox4" Name="所屬類別" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox5" Name="財產原值" PropertyName="Text" Type="Double" />
<asp:ControlParameter ControlID="TextBox6" Name="啟用日期" PropertyName="Text" Type="DateTime" />
<asp:ControlParameter ControlID="TextBox7" Name="存放位置" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox8" Name="當前狀態" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox9" Name="保管人員" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox10" Name="補充說明" PropertyName="Text" Type="String" />
</InsertParameters>
</asp:SqlDataSource>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="財產編號"
DataSourceID="SqlDataSource1" Font-Names="宋體" Font-Size="Small" GridLines="Vertical"
OnRowCreated="GridView1_RowCreated" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
Width="1000px">
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<Columns>
<asp:CommandField ButtonType="Button" HeaderText="選擇" ShowSelectButton="True" />
<asp:TemplateField HeaderText="刪除" ShowHeader="False">
<ItemTemplate>
<asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Delete"
Text="刪除" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="財產編號" HeaderText="財產編號" ReadOnly="True" SortExpression="財產編號" />
<asp:BoundField DataField="財產名稱" HeaderText="財產名稱" SortExpression="財產名稱" />
<asp:BoundField DataField="規格型號" HeaderText="規格型號" SortExpression="規格型號" />
<asp:BoundField DataField="所屬類別" HeaderText="所屬類別" SortExpression="所屬類別" />
<asp:BoundField DataField="財產原值" HeaderText="財產原值" SortExpression="財產原值" />
<asp:BoundField DataField="啟用日期" HeaderText="啟用日期" SortExpression="啟用日期" />
<asp:BoundField DataField="存放位置" HeaderText="存放位置" SortExpression="存放位置" />
<asp:BoundField DataField="當前狀態" HeaderText="當前狀態" SortExpression="當前狀態" />
<asp:BoundField DataField="保管人員" HeaderText="保管人員" SortExpression="保管人員" />
<asp:BoundField DataField="補充說明" HeaderText="補充說明" SortExpression="補充說明" />
</Columns>
<RowStyle BackColor="#EEEEEE" ForeColor="Black" />
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
<AlternatingRowStyle BackColor="Gainsboro" />
</asp:GridView>
</asp:Panel>
</td>
</tr>
</table>
</asp:Content>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -