📄 myassetsform.aspx
字号:
<%--文件名:MyAssetsForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MyAssetsForm.aspx.cs" Inherits="SystemManage_AssetsManage_MyAssetsForm" Title="当前位置:资产管理->增加固定资产" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table style="width: 556px; height: 161px">
<tr>
<td align="left" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 16px;
background-color: darkturquoise">
请输入查询固定资产名称:<asp:TextBox ID="TextBox1" runat="server" Width="158px">%%</asp:TextBox>
<asp:Button ID="Button1" runat="server" 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 align="left" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 27px;
background-color: gainsboro">
自编号:<asp:TextBox ID="TextBox2" runat="server" BackColor="Silver" ReadOnly="True"
Width="33px"></asp:TextBox>
资产编号:<asp:TextBox ID="TextBox3" runat="server" Width="75px">GD</asp:TextBox>
资产名称:<asp:TextBox ID="TextBox4" runat="server" Width="221px">X</asp:TextBox><br />
规格型号:<asp:TextBox ID="TextBox5" runat="server" Width="75px">X</asp:TextBox>
制造厂家:<asp:TextBox ID="TextBox6" runat="server" Width="163px">X</asp:TextBox>
出厂日期:<asp:TextBox ID="TextBox7" runat="server" Width="78px">2000-1-1</asp:TextBox><br />
入账日期:<asp:TextBox ID="TextBox8" runat="server" Width="75px">2000-1-2</asp:TextBox>
存放地点:<asp:TextBox ID="TextBox9" runat="server" Width="164px">本公司</asp:TextBox>
使用部门:<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1"
DataTextField="部门名称" DataValueField="部门名称" Width="82px">
</asp:DropDownList><br />
使用状态:<asp:DropDownList ID="DropDownList2" runat="server" Width="82px">
<asp:ListItem>使用中</asp:ListItem>
<asp:ListItem>未使用</asp:ListItem>
<asp:ListItem>不需用</asp:ListItem>
<asp:ListItem>经营性租出</asp:ListItem>
<asp:ListItem>其他</asp:ListItem>
</asp:DropDownList>
增加方式:<asp:DropDownList ID="DropDownList3" runat="server" Width="74px">
<asp:ListItem>购入</asp:ListItem>
<asp:ListItem>接受投资</asp:ListItem>
<asp:ListItem>接受捐赠</asp:ListItem>
<asp:ListItem>融资租入</asp:ListItem>
<asp:ListItem>自建</asp:ListItem>
<asp:ListItem>盘盈</asp:ListItem>
</asp:DropDownList>
所属类别:<asp:DropDownList ID="DropDownList4" runat="server" Width="82px">
<asp:ListItem>生产设备</asp:ListItem>
<asp:ListItem>运输设备</asp:ListItem>
<asp:ListItem>管理用具</asp:ListItem>
<asp:ListItem>房屋及建筑物</asp:ListItem>
</asp:DropDownList>
单位:<asp:TextBox ID="TextBox10" runat="server" Width="43px">台</asp:TextBox><br />
数量:<asp:TextBox ID="TextBox11" runat="server" Width="21px">1</asp:TextBox>
单价:<asp:TextBox ID="TextBox12" runat="server" Width="44px">0</asp:TextBox>
金额:<asp:TextBox ID="TextBox13" runat="server" Width="53px">0</asp:TextBox>
资产原值:<asp:TextBox ID="TextBox14" runat="server" Width="66px">0</asp:TextBox>
累计折旧:<asp:TextBox ID="TextBox15" runat="server" Width="53px">0</asp:TextBox><br />
折旧方法:<asp:DropDownList ID="DropDownList5" runat="server" Width="97px">
<asp:ListItem>平均年限法</asp:ListItem>
<asp:ListItem>工作量法</asp:ListItem>
<asp:ListItem>双倍余额递减法</asp:ListItem>
<asp:ListItem>年数总和法</asp:ListItem>
<asp:ListItem>不计提折旧</asp:ListItem>
<asp:ListItem>其他折旧法</asp:ListItem>
</asp:DropDownList>
折旧月数:<asp:TextBox ID="TextBox16" runat="server" Width="26px">0</asp:TextBox>
已提月数:<asp:TextBox ID="TextBox17" runat="server" Width="37px">0</asp:TextBox>
月度折旧额:<asp:TextBox ID="TextBox18" runat="server" Width="70px">0</asp:TextBox><br />
预计净残值:<asp:TextBox ID="TextBox19" runat="server" Width="56px">0</asp:TextBox>
补充说明:<asp:TextBox ID="TextBox20" runat="server" Width="209px">暂无</asp:TextBox>
<asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="附属设备及配件" Width="110px" /><br />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyAssetsDBConnectionString %>"
SelectCommand="SELECT DISTINCT * FROM [公司部门]"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyAssetsDBConnectionString %>"
DeleteCommand="DELETE FROM [可用固定资产视图] WHERE [资产编号] = @资产编号"
InsertCommand="INSERT INTO [可用固定资产视图] ([资产编号], [资产名称], [规格型号], [制造厂家], [出厂日期], [入账日期], [存放地点], [使用部门], [使用状态], [增加方式], [所属类别], [单位], [数量], [单价], [金额], [资产原值], [累计折旧], [折旧方法], [折旧月数], [已提月数], [月度折旧额], [预计净残值], [补充说明]) VALUES (@资产编号, @资产名称, @规格型号, @制造厂家, @出厂日期, @入账日期, @存放地点, @使用部门, @使用状态, @增加方式, @所属类别, @单位, @数量, @单价, @金额, @资产原值, @累计折旧, @折旧方法, @折旧月数, @已提月数, @月度折旧额, @预计净残值, @补充说明)"
SelectCommand="SELECT * FROM [可用固定资产视图] WHERE ([资产名称] LIKE '%' + @资产名称 + '%')"
UpdateCommand="UPDATE [可用固定资产视图] SET [资产名称] = @资产名称, [规格型号] = @规格型号, [制造厂家] = @制造厂家, [出厂日期] = @出厂日期, [入账日期] = @入账日期, [存放地点] = @存放地点,[使用部门] = @使用部门, [使用状态] = @使用状态, [增加方式] = @增加方式, [所属类别] = @所属类别, [单位] = @单位, [数量] = @数量, [单价] = @单价, [金额] = @金额, [资产原值] = @资产原值, [累计折旧] = @累计折旧, [折旧方法] = @折旧方法, [折旧月数] = @折旧月数, [已提月数] = @已提月数, [月度折旧额] = @月度折旧额, [预计净残值] = @预计净残值, [补充说明] = @补充说明 WHERE [资产编号] = @资产编号">
<UpdateParameters>
<asp:ControlParameter ControlID="TextBox4" Name="资产名称" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox5" Name="规格型号" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox6" Name="制造厂家" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox7" Name="出厂日期" PropertyName="Text" Type="DateTime" />
<asp:ControlParameter ControlID="TextBox8" Name="入账日期" PropertyName="Text" Type="DateTime" />
<asp:ControlParameter ControlID="TextBox9" Name="存放地点" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="DropDownList1" Name="使用部门" PropertyName="SelectedValue"
Type="String" />
<asp:ControlParameter ControlID="DropDownList2" Name="使用状态" PropertyName="SelectedValue"
Type="String" />
<asp:ControlParameter ControlID="DropDownList3" Name="增加方式" PropertyName="SelectedValue"
Type="String" />
<asp:ControlParameter ControlID="DropDownList4" Name="所属类别" PropertyName="SelectedValue"
Type="String" />
<asp:ControlParameter ControlID="TextBox10" Name="单位" PropertyName="Text" Type="String" />
<asp:ControlParameter ControlID="TextBox11" Name="数量" PropertyName="Text" Type="Int32" />
<asp:ControlParameter ControlID="TextBox12" Name="单价" PropertyName="Text" Type="Double" />
<asp:ControlParameter ControlID="TextBox13" Name="金额" PropertyName="Text" Type="Double" />
<asp:ControlParameter ControlID="TextBox14" Name="资产原值" PropertyName="Text" Type="Double" />
<asp:ControlParameter ControlID="TextBox15" Name="累计折旧" PropertyName="Text" Type="Double" />
<asp:ControlParameter ControlID="DropDownList5" Name="折旧方法" PropertyName="SelectedValue"
Type="String" />
<asp:ControlParameter ControlID="TextBox16" Name="折旧月数" PropertyName="Text" Type="Int32" />
<asp:ControlParameter ControlID="TextBox17" Name="已提月数" PropertyName="Text" Type="Int32" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -