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

📄 moneyoperate.aspx

📁 课程设计了
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MoneyOperate.aspx.cs" Inherits="MoneyMsg_MoneyOperate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <link href="../style/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
       查询条件:<asp:DropDownList ID="DrDpSeaLei" runat="server" Width="175px">
          <asp:ListItem Value="all" Selected="True">==显示所有==</asp:ListItem>
           <asp:ListItem Value="moneymagid">编号</asp:ListItem>
		    <asp:ListItem Value="dealworkder">经手人员</asp:ListItem>
            <asp:ListItem Value="moneychang">金钱数额</asp:ListItem>
          <asp:ListItem Value="moneykind">处理种类</asp:ListItem>
           
		
        </asp:DropDownList>
        &nbsp; &nbsp; &nbsp;&nbsp;
        关键字: &nbsp;&nbsp;
        <asp:TextBox ID="TbSeaDetail" runat="server" Width="292px"></asp:TextBox>
        <asp:Button ID="BtSearch" runat="server" Text="Search" OnClick="BtSearch_Click" />
        <br />
        &nbsp; &nbsp; &nbsp;<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
            BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
            CellPadding="3" DataKeyNames="MoneyMagId"  GridLines="Vertical"  OnRowCancelingEdit="GridView1_RowCancelingEdit"  OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" Width="676px" OnRowDeleting="GridView1_RowDeleting">
     
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black"   />
            <Columns>
                <asp:BoundField DataField="MoneyMagId" HeaderText="编号" InsertVisible="False"
                    ReadOnly="True" SortExpression="MoneyMagId" />
                    
                      <asp:TemplateField HeaderText="经手人员">
               <ItemTemplate>
                   <asp:Label ID="Label1" runat="server" Text='<%#Eval("WorkerName") %>'></asp:Label>
               </ItemTemplate>
               <EditItemTemplate>
             <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource2"
                        DataTextField="WorkerName" DataValueField="WorkersListId"  Width="133px">
                    </asp:DropDownList><
               </EditItemTemplate>
               </asp:TemplateField>
             
                <asp:BoundField DataField="MoneyChang" HeaderText="金钱数额" SortExpression="MoneyChang" />
            
                  <asp:TemplateField HeaderText="处理类型">
               <ItemTemplate>
                   <asp:Label ID="Label2" runat="server" Text='<%#Eval("MoneyKindS") %>'></asp:Label>
               </ItemTemplate>
               <EditItemTemplate>
           <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="SqlDataSource1"
                        DataTextField="MoneyKindS" DataValueField="MoneyKindId" Width="133px">
                    </asp:DropDownList>
               </EditItemTemplate>
               </asp:TemplateField>
                <asp:TemplateField HeaderText="进款/出款">
               <ItemTemplate>
                   <asp:Label ID="Label3" runat="server" Text='<%#Eval("JinChu") %>' ></asp:Label>
               </ItemTemplate>
               <EditItemTemplate>
           <asp:DropDownList ID="DropDownList5" runat="server"  Width="133px">
           <asp:ListItem Value="进款">进款</asp:ListItem>
           <asp:ListItem Value="出款">出款</asp:ListItem>
                    </asp:DropDownList>
               </EditItemTemplate>
               </asp:TemplateField>
                <asp:BoundField DataField="MoneyMagMoreInfo" HeaderText="备注信息" SortExpression="MoneyMagMoreInfo" />
                <asp:BoundField DataField="MoneyMagDate" HeaderText="办理时间" SortExpression="MoneyMagDate" />
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            </Columns>
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" HorizontalAlign="Center"/>
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="Gainsboro" />
        </asp:GridView>
       
          <br />
        
        共有
        <asp:Label ID="label1" runat="server"></asp:Label>
        条记录&nbsp; 总页数
        <asp:Label ID="lblPageCount" runat="server" ForeColor="Red" Width="30"></asp:Label>当前页<asp:Label
            ID="lblCurrentIndex" runat="server" ForeColor="red" Width="30"></asp:Label>
        <asp:LinkButton ID="btnPrev" runat="server" CommandArgument="前一项" Font-Names="verdana"
            Font-Size="8pt" ForeColor="navy" OnClick="PagerButtonClick" Text="上一页"></asp:LinkButton>&nbsp;
        <asp:LinkButton ID="btnNext" runat="server" CommandArgument="Next" Font-Names="verdana"
            Font-Size="8pt" ForeColor="navy" OnClick="PagerButtonClick" Text="下一页"></asp:LinkButton>&nbsp;
        <asp:LinkButton ID="btnFirst" runat="server" CommandArgument="0" Font-Names="verdana"
            Font-Size="8pt" ForeColor="navy" OnClick="PagerButtonClick" Text="转到第一页"></asp:LinkButton>&nbsp;
        <asp:LinkButton ID="btnLast" runat="server" CommandArgument="最后一项" Font-Names="verdana"
            Font-Size="8pt" ForeColor="navy" OnClick="PagerButtonClick" Text="转到最后一页"></asp:LinkButton>
        <asp:LinkButton ID="btnPage8" runat="server" CommandArgument="X" Font-Names="verdana"
            Font-Size="8pt" ForeColor="navy" OnClick="PagerButtonClick" Text="转到第"></asp:LinkButton><asp:TextBox
                ID="No" runat="server" Width="20"></asp:TextBox><font style="font-size: 8pt; color: navy">页</font>
        <br />
        <br />
        
        <br />
        &nbsp;
        <table style="width: 393px; height: 113px">
            <tr>
                <td style="width: 116px">
                    处理类型:</td>
                <td colspan="2" style="width: 259px">
                    <asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="SqlDataSource1"
                        DataTextField="MoneyKindS" DataValueField="MoneyKindId" Width="133px">
                    </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:csmagConnectionString %>"
                        SelectCommand="SELECT * FROM [MoneyKind]"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td style="width: 116px; height: 20px">
                    进款/出款:</td>
                <td colspan="2" style="width: 259px; height: 20px">
   <asp:DropDownList ID="DropDownList6" runat="server"  Width="133px">
         <asp:ListItem Value="进款">进款</asp:ListItem>
           <asp:ListItem Value="出款">出款</asp:ListItem>
             </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="width: 116px; height: 20px">
                    处理员工:</td>
                <td colspan="2" style="width: 259px; height: 20px">
                    <asp:DropDownList ID="DropDownList4" runat="server" DataSourceID="SqlDataSource2"
                        DataTextField="WorkerName" DataValueField="WorkersListId" Width="133px">
                    </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:csmagConnectionString %>"
                        SelectCommand="SELECT [WorkersListId], [WorkerName] FROM [WorkersList]"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td style="width: 116px; height: 20px">
                    金钱数额:</td>
                <td colspan="2" style="width: 259px; height: 20px">
                    <asp:TextBox ID="TextBox1" runat="server" Width="191px"></asp:TextBox>
                     
                    </td>
            </tr>
            <tr>
                <td style="width: 116px">
                    备注信息:</td>
                <td colspan="2" style="width: 259px">
                    <asp:TextBox ID="TextBox2" runat="server" Height="59px" TextMode="MultiLine" Width="192px"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 116px">
                </td>
                <td colspan="2" style="width: 259px">
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="插入" /></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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