Asp.net源码专业站
首页->商务办公->固定资产管理系统源码>>AssetsManage/RepairForm.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:固定资产管理系统源码
当前文件:文件类型 DepreciationManage/AssetsManage/RepairForm.aspx[13K,2009-6-12 11:38:44]打开代码结构图
普通视图
		            
1<%--文件名:RepairForm.aspx--%> 2<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="RepairForm.aspx.cs" Inherits="AssetsManage_RepairForm" Title="当前位置:资产管理->送修固定资产" %> 3<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 4 <table style="width: 556px; height: 161px"> 5 <tr> 6 <td align="left" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 16px; 7 background-color: mediumturquoise"> 8 &nbsp;请输入需要查询的已送出修理的固定资产名称:<asp:TextBox ID="TextBox1" runat="server" Width="61px">%%</asp:TextBox> 9 <asp:Button 10 ID="Button1" runat="server" Text="查询" Width="60px" /> 11 <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="新增" Width="60px" /> 12 <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="修改" Width="60px" /></td> 13 </tr> 14 <tr> 15 <td align="left" style="font-size: 0.8em; width: 2232px; font-family: 宋体; height: 27px; 16 background-color: gainsboro"> 17 &nbsp;所属类别:<asp:DropDownList ID="DropDownList1" runat="server" Width="82px"> 18 <asp:ListItem>生产设备</asp:ListItem> 19 <asp:ListItem>运输设备</asp:ListItem> 20 <asp:ListItem>管理用具</asp:ListItem> 21 <asp:ListItem>房屋及建筑物</asp:ListItem> 22 </asp:DropDownList> 23 使用部门:<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" 24 DataTextField="部门名称" DataValueField="部门名称" Width="69px"> 25 </asp:DropDownList> 26 资产名称:<asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="SqlDataSource2" 27 DataTextField="资产名称" DataValueField="资产编号" Width="181px"> 28 </asp:DropDownList><br /> 29 &nbsp;计量单位:<asp:TextBox ID="TextBox2" runat="server" Width="31px"></asp:TextBox> 30 送修数量:<asp:TextBox ID="TextBox3" runat="server" Width="35px">1</asp:TextBox> 31 送修日期:<asp:TextBox ID="TextBox4" runat="server" Width="72px">2007-1-1</asp:TextBox> 32 预计完修日期:<asp:TextBox ID="TextBox5" runat="server" Width="72px">2007-1-2</asp:TextBox><br /> 33 &nbsp;预计修理费用:<asp:TextBox ID="TextBox6" runat="server" Width="43px">0</asp:TextBox> 34 修理公司:<asp:TextBox ID="TextBox7" runat="server" Width="116px">X</asp:TextBox> 35 故障原因:<asp:TextBox ID="TextBox8" runat="server" Width="128px">X</asp:TextBox><br /> 36 &nbsp;修理情况:<asp:TextBox ID="TextBox9" runat="server" Width="348px">X</asp:TextBox> 37 经办人:<asp:TextBox ID="TextBox10" runat="server" Width="56px">罗剑林</asp:TextBox><br /> 38 &nbsp;补充说明:<asp:TextBox ID="TextBox11" runat="server" Width="369px">暂无</asp:TextBox> 39 自编号:<asp:TextBox ID="TextBox12" runat="server" BackColor="#E0E0E0" ReadOnly="True" 40 Width="35px"></asp:TextBox></td> 41 </tr> 42 <tr> 43 <td style="width: 2232px; height: 100px; background-color: gainsboro"> 44 <asp:Panel ID="Panel1" runat="server" Height="200px" ScrollBars="Auto" Width="553px"> 45 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyAssetsDBConnectionString %>" 46 SelectCommand="SELECT DISTINCT * FROM [公司部门]"></asp:SqlDataSource> 47 <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyAssetsDBConnectionString %>" 48 SelectCommand="SELECT * FROM [可用固定资产视图] WHERE (([所属类别] = @所属类别) AND ([使用部门] = @使用部门))"> 49 <SelectParameters> 50 <asp:ControlParameter ControlID="DropDownList1" Name="所属类别" PropertyName="SelectedValue" 51 Type="String" /> 52 <asp:ControlParameter ControlID="DropDownList2" Name="使用部门" PropertyName="SelectedValue" 53 Type="String" /> 54 </SelectParameters> 55 </asp:SqlDataSource> 56 <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:MyAssetsDBConnectionString %>" 57 DeleteCommand="DELETE FROM [维修资产] WHERE [自编号] = @自编号" InsertCommand="INSERT INTO [维修资产] ([资产编号], [资产名称], [计量单位], [送修数量], [送修日期], [预计完修日期], [预计修理费用], [修理公司], [故障原因], [修理情况], [经办人], [补充说明]) VALUES (@资产编号, @资产名称, @计量单位, @送修数量, @送修日期, @预计完修日期, @预计修理费用, @修理公司, @故障原因, @修理情况, @经办人, @补充说明)" 58 SelectCommand="SELECT * FROM [维修资产] WHERE ([资产名称] LIKE '%' + @资产名称 + '%')" 59 UpdateCommand="UPDATE [维修资产] SET [计量单位] = @计量单位, [送修数量] = @送修数量, [送修日期] = @送修日期, [预计完修日期] = @预计完修日期, [预计修理费用] = @预计修理费用, [修理公司] = @修理公司, [故障原因] = @故障原因, [修理情况] = @修理情况, [经办人] = @经办人, [补充说明] = @补充说明 WHERE [自编号] = @自编号"> 60 <DeleteParameters> 61 <asp:Parameter Name="自编号" Type="Int32" /> 62 </DeleteParameters> 63 <UpdateParameters> 64 <asp:ControlParameter ControlID="DropDownList3" Name="资产编号" PropertyName="SelectedValue" 65 Type="String" /> 66 <asp:ControlParameter ControlID="DropDownList3" Name="资产名称" PropertyName="SelectedValue" 67 Type="String" /> 68 <asp:ControlParameter ControlID="TextBox2" Name="计量单位" PropertyName="Text" Type="String" /> 69 <asp:ControlParameter ControlID="TextBox3" Name="送修数量" PropertyName="Text" Type="Int32" /> 70 <asp:ControlParameter ControlID="TextBox4" Name="送修日期" PropertyName="Text" Type="DateTime" /> 71 <asp:ControlParameter ControlID="TextBox5" Name="预计完修日期" PropertyName="Text" Type="DateTime" /> 72 <asp:ControlParameter ControlID="TextBox6" Name="预计修理费用" PropertyName="Text" Type="Double" /> 73 <asp:ControlParameter ControlID="TextBox7" Name="修理公司" PropertyName="Text" Type="String" /> 74 <asp:ControlParameter ControlID="TextBox8" Name="故障原因" PropertyName="Text" Type="String" /> 75 <asp:ControlParameter ControlID="TextBox9" Name="修理情况" PropertyName="Text" Type="String" /> 76 <asp:ControlParameter ControlID="TextBox10" Name="经办人" PropertyName="Text" Type="String" /> 77 <asp:ControlParameter ControlID="TextBox11" Name="补充说明" PropertyName="Text" Type="String" /> 78 <asp:ControlParameter ControlID="TextBox12" Name="自编号" PropertyName="Text" Type="Int32" /> 79 </UpdateParameters> 80 <SelectParameters> 81 <asp:ControlParameter ControlID="TextBox1" Name="资产名称" PropertyName="Text" Type="String" /> 82 </SelectParameters> 83 <InsertParameters> 84 <asp:ControlParameter ControlID="DropDownList3" Name="资产编号" PropertyName="SelectedValue" 85 Type="String" /> 86 <asp:ControlParameter ControlID="DropDownList3" Name="资产名称" PropertyName="SelectedItem.Text" 87 Type="String" /> 88 <asp:ControlParameter ControlID="TextBox2" Name="计量单位" PropertyName="Text" Type="String" /> 89 <asp:ControlParameter ControlID="TextBox3" Name="送修数量" PropertyName="Text" Type="Int32" /> 90 <asp:ControlParameter ControlID="TextBox4" Name="送修日期" PropertyName="Text" Type="DateTime" /> 91 <asp:ControlParameter ControlID="TextBox5" Name="预计完修日期" PropertyName="Text" Type="DateTime" /> 92 <asp:ControlParameter ControlID="TextBox6" Name="预计修理费用" PropertyName="Text" Type="Double" /> 93 <asp:ControlParameter ControlID="TextBox7" Name="修理公司" PropertyName="Text" Type="String" /> 94 <asp:ControlParameter ControlID="TextBox8" Name="故障原因" PropertyName="Text" Type="String" /> 95 <asp:ControlParameter ControlID="TextBox9" Name="修理情况" PropertyName="Text" Type="String" /> 96 <asp:ControlParameter ControlID="TextBox10" Name="经办人" PropertyName="Text" Type="String" /> 97 <asp:ControlParameter ControlID="TextBox11" Name="补充说明" PropertyName="Text" Type="String" /> 98 </InsertParameters> 99 </asp:SqlDataSource> 100 <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" 101 BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="自编号" 102 DataSourceID="SqlDataSource3" Font-Names="宋体" Font-Size="Small" GridLines="Vertical" 103 Width="1200px" OnRowCreated="GridView1_RowCreated" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"> 104 <FooterStyle BackColor="#CCCCCC" ForeColor="Black" /> 105 <Columns> 106 <asp:CommandField ButtonType="Button" HeaderText="选择" ShowSelectButton="True" /> 107 <asp:TemplateField HeaderText="删除" ShowHeader="False"> 108 <ItemTemplate> 109 <asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Delete" 110 Text="删除" /> 111 </ItemTemplate> 112 </asp:TemplateField> 113 <asp:BoundField DataField="自编号" HeaderText="自编号" InsertVisible="False" ReadOnly="True" 114 SortExpression="自编号" /> 115 <asp:BoundField DataField="资产编号" HeaderText="资产编号" SortExpression="资产编号" /> 116 <asp:BoundField DataField="资产名称" HeaderText="资产名称" SortExpression="资产名称" /> 117 <asp:BoundField DataField="计量单位" HeaderText="计量单位" SortExpression="计量单位" /> 118 <asp:BoundField DataField="送修数量" HeaderText="送修数量" SortExpression="送修数量" /> 119 <asp:BoundField DataField="送修日期" HeaderText="送修日期" SortExpression="送修日期" /> 120 <asp:BoundField DataField="预计完修日期" HeaderText="预计完修日期" SortExpression="预计完修日期" /> 121 <asp:BoundField DataField="预计修理费用" HeaderText="预计修理费用" SortExpression="预计修理费用" /> 122 <asp:BoundField DataField="修理公司" HeaderText="修理公司" SortExpression="修理公司" /> 123 <asp:BoundField DataField="故障原因" HeaderText="故障原因" SortExpression="故障原因" /> 124 <asp:BoundField DataField="修理情况" HeaderText="修理情况" SortExpression="修理情况" /> 125 <asp:BoundField DataField="经办人" HeaderText="经办人" SortExpression="经办人" /> 126 <asp:BoundField DataField="补充说明" HeaderText="补充说明" SortExpression="补充说明" /> 127 </Columns> 128 <RowStyle BackColor="#EEEEEE" ForeColor="Black" /> 129 <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" /> 130 <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" /> 131 <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" /> 132 <AlternatingRowStyle BackColor="Gainsboro" /> 133 </asp:GridView> 134 </asp:Panel> 135 </td> 136 </tr> 137 </table> 138</asp:Content> 139 140
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:固定资产管理系统源码
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146