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

📄 createprice.aspx

📁 简单的Web平台。能够读取Excel文件
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CreatePrice.aspx.cs" Inherits="CreatePrice" %>

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 751px; height: 400px;">
            <tr>
                <td style="width: 100px; height: 24px">
                </td>
                <td style="width: 180px; height: 24px">
                </td>
                <td style="width: 120px; height: 24px">
                </td>
                <td style="width: 80px; height: 24px">
                    </td>
                <td style="width: 140px; height: 24px">
                </td>
                <td style="width: 630px; height: 24px">
                </td>
                <td style="width: 50px; height: 24px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 26px;">
                    &nbsp;<asp:Label ID="lblLevel" runat="server" Text="价格层次" Width="75px" Font-Names="宋体" Font-Size="Small"></asp:Label></td>
                <td style="width: 180px; height: 26px;">
                    <asp:DropDownList ID="ddlLevel" runat="server" Width="120px" TabIndex="2" AutoPostBack="true" OnSelectedIndexChanged="ddlLevel_SelectedIndexChanged">
                    </asp:DropDownList></td>
                <td style="width: 120px; height: 26px;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                        ErrorMessage="价格名称能为空" Font-Names="宋体" Font-Size="Small"></asp:RequiredFieldValidator></td>
                <td style="width: 80px; height: 26px;">
                    <asp:Label ID="lblValDate" runat="server" Text="有效日期" Font-Names="宋体" Font-Size="Small" Width="75px"></asp:Label></td>
                <td style="width: 140px; height: 26px;">                   
                    <asp:TextBox ID="txtValDate" runat="server" Height="16px" Width="120px" TabIndex="7"></asp:TextBox></td>
                <td style="width: 630px; height: 26px">
                    <asp:Button ID="btnCalShow" runat="server" OnClick="btnCalShow_Click" Text="选择" /></td>
                <td style="width: 50px; height: 26px">
                    <asp:RequiredFieldValidator ID="reqValDate" runat="server" ControlToValidate="txtValDate"
                        ErrorMessage="有效日期不能为空" Display="Dynamic" Font-Names="宋体" Font-Size="Small" Height="20px" Width="120px" Enabled="False"></asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="rngValDate" runat="server" ControlToValidate="txtValDate"
                        ErrorMessage="时间范围有误" MaximumValue="2050-1-1" MinimumValue="1970-1-1"
                        Type="Date" Display="Dynamic" Font-Names="宋体" Font-Size="Small" Height="20px" Width="120px" Enabled="False"></asp:RangeValidator></td>
            </tr>
            <tr>
                <td style="width: 100px; height: 18px">
                </td>
                <td style="width: 180px; height: 18px">
                </td>
                <td style="width: 120px; height: 18px">
                </td>
                <td style="width: 80px; height: 18px">
                </td>
                <td style="width: 140px; height: 18px">
                </td>
                <td style="width: 630px; height: 18px">
                </td>
                <td style="width: 50px; height: 18px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 26px">
                    <asp:Label ID="lblName" runat="server" Text="价格名称" Width="60px" Font-Names="宋体" Font-Size="Small"></asp:Label></td>
                <td style="width: 180px; height: 26px">
                    &nbsp;<asp:TextBox ID="txtName" runat="server" Height="16px" Width="120px"></asp:TextBox></td>
                <td style="width: 120px; height: 26px">
                    <asp:Button ID="btnCheckName" runat="server" OnClick="btnCheckName_Click" Text="检查名称"
                        Width="65px" /></td>
                <td style="width: 80px; height: 26px">
                    <asp:Label ID="lblRemark" runat="server" Text="备注" Font-Names="宋体" Font-Size="Small" Width="60px"></asp:Label></td>
                <td style="width: 140px;" rowspan="9" valign="top">
                    <asp:TextBox ID="txtRemark" runat="server" Height="180px" TextMode="MultiLine" Width="120px" TabIndex="8"></asp:TextBox></td>
                <td rowspan="9" style="width: 630px" valign="top">
                </td>
                <td rowspan="9" style="width: 50px" valign="top">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 18px">
                </td>
                <td style="width: 180px; height: 18px">
                </td>
                <td style="width: 120px; height: 18px">
                </td>
                <td style="width: 80px; height: 18px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 26px;">
                    <asp:Label ID="lblPrcUpper" runat="server" Text="上浮比例" Width="96px" Font-Names="宋体" Font-Size="Small"></asp:Label></td>
                <td style="width: 180px; height: 26px;">
                    <asp:TextBox ID="txtPrcUpper" runat="server" Height="16px" Width="90px" TabIndex="3"></asp:TextBox></td>
                <td style="width: 120px; height: 26px;">
                    <asp:RequiredFieldValidator ID="reqPrcUpper" runat="server" ControlToValidate="txtPrcUpper"
                        Display="Dynamic" ErrorMessage="上浮比例不能为空" Height="20px" Width="120px" Font-Size="Small" Font-Names="宋体" Enabled="False"></asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="rngPrcUpper" runat="server" ControlToValidate="txtPrcUpper"
                        ErrorMessage="范围在0.5~5之间" MaximumValue="5" MinimumValue="0.5" SetFocusOnError="True"
                        Type="Double" Display="Dynamic" Font-Size="Small" Height="20px" Width="120px" Font-Names="宋体" Enabled="False"></asp:RangeValidator></td>
                <td style="width: 80px; height: 26px;">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 18px;">
                </td>
                <td style="width: 180px; height: 18px;">
                </td>
                <td style="width: 120px; height: 18px;">
                    <asp:CompareValidator ID="cmpPrc" runat="server" ControlToCompare="txtPrcUpper" ControlToValidate="txtPrcLower"
                        ErrorMessage="浮动比例设置错误" Font-Names="宋体" Font-Size="Small" Height="20px" Operator="LessThan"
                        Type="Double" Width="120px" Enabled="False"></asp:CompareValidator></td>
                <td style="width: 80px; height: 18px;">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 26px;">
                    <asp:Label ID="lblPrcLower" runat="server" Text="下浮比例" Width="96px" Font-Names="宋体" Font-Size="Small"></asp:Label></td>
                <td style="width: 180px; height: 26px;">
                    <asp:TextBox ID="txtPrcLower" runat="server" Height="16px" Width="90px" TabIndex="4"></asp:TextBox></td>
                <td style="width: 120px; height: 26px;">
                    <asp:RequiredFieldValidator ID="reqPrcLower" runat="server" ControlToValidate="txtPrcLower"
                        ErrorMessage="下浮比例不能为空" Display="Dynamic" Font-Names="宋体" Font-Size="Small" Height="20px" Width="120px" Enabled="False"></asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="rngPrcLower" runat="server" ControlToValidate="txtPrcLower"
                        ErrorMessage="范围在0.5~5之间" Display="Dynamic" Font-Names="宋体" Font-Size="Small" Height="20px" MaximumValue="5" MinimumValue="0.5" Width="120px" Type="Double" Enabled="False"></asp:RangeValidator></td>
                <td style="width: 80px; height: 26px;">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 18px;">
                </td>
                <td style="width: 180px; height: 18px;">
                </td>
                <td style="width: 120px; height: 18px;">
                </td>
                <td style="width: 80px; height: 18px;">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 26px;">
                    <asp:Label ID="lblImpUpper" runat="server" Text="价格导入上限" Font-Names="宋体" Font-Size="Small" Width="90px"></asp:Label></td>
                <td style="width: 180px; height: 26px;">
                    <asp:TextBox ID="txtImpUpper" runat="server" Height="16px" Width="90px" TabIndex="5"></asp:TextBox></td>
                <td style="width: 120px; height: 26px;">
                    <asp:RequiredFieldValidator ID="reqImpUpper" runat="server" ControlToValidate="txtImpUpper"
                        Display="Dynamic" ErrorMessage="范围上限不能为空" Height="20px" Width="120px" Font-Names="宋体" Font-Size="Small" Enabled="False"></asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="rngImpUpper" runat="server" ControlToValidate="txtImpUpper"
                        ErrorMessage="范围在0.5~5之间" Display="Dynamic" Font-Names="宋体" Font-Size="Small" Height="20px" MaximumValue="5" MinimumValue="0.5" Width="120px" Type="Double" Enabled="False"></asp:RangeValidator></td>
                <td style="width: 80px; height: 26px;">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 18px;">
                </td>
                <td style="width: 180px; height: 18px;">
                </td>
                <td style="width: 120px; height: 18px;">
                    <asp:CompareValidator ID="cmpImp" runat="server" ControlToCompare="txtImpUpper" ControlToValidate="txtImpLower"
                        ErrorMessage="导入范围设置错误" Font-Names="宋体" Font-Size="Small" Height="20px" Operator="LessThan"
                        Width="120px" Type="Double" Enabled="False"></asp:CompareValidator></td>
                <td style="width: 80px; height: 18px;">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 26px;">
                    <asp:Label ID="lblImpLower" runat="server" Text="价格导入下限" Font-Names="宋体" Font-Size="Small" Width="90px"></asp:Label></td>
                <td style="width: 180px; height: 26px;">
                    <asp:TextBox ID="txtImpLower" runat="server" Height="16px" Width="90px" TabIndex="6"></asp:TextBox></td>
                <td style="width: 120px; height: 26px;">
                    <asp:RequiredFieldValidator ID="reqImpLower" runat="server" ControlToValidate="txtImpLower"
                        ErrorMessage="范围下限不能为空" Height="20px" Width="120px" Display="Dynamic" Font-Names="宋体" Font-Size="Small" Enabled="False"></asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="rngImpLower" runat="server" ControlToValidate="txtImpLower"
                        ErrorMessage="范围在0.5~5之间" Height="20px" Width="120px" Display="Dynamic" Font-Names="宋体" Font-Size="Small" MaximumValue="5" MinimumValue="0.5" Type="Double" Enabled="False"></asp:RangeValidator></td>
                <td style="width: 80px; height: 26px;">
                </td>
            </tr>
        </table>
    
    </div>
        <hr style="width: 745px" />
        <table style="width: 715px; height: 30px">
            <tr>
                <td style="width: 185px; height: 26px">
                </td>
                <td style="width: 100px; height: 26px">
                    <asp:Button ID="btnCreate" runat="server" Text="创建价格" Width="90px" OnClick="btnCreate_Click" TabIndex="9" /></td>
            </tr>
        </table>
        <asp:Calendar ID="calValidDate" runat="server" BackColor="White" BorderColor="Black"
            BorderStyle="Solid" CellSpacing="1" Font-Names="Verdana" Font-Size="9pt" ForeColor="Black"
            Height="200px" NextPrevFormat="ShortMonth" Style="z-index: 100; left: 454px;
            position: absolute; top: 90px" Visible="False" Width="270px" OnSelectionChanged="calValidDate_SelectionChanged">
            <SelectedDayStyle BackColor="#333399" ForeColor="White" />
            <TodayDayStyle BackColor="#999999" ForeColor="White" />
            <DayStyle BackColor="#CCCCCC" />
            <OtherMonthDayStyle ForeColor="#999999" />
            <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="White" />
            <DayHeaderStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" Height="8pt" />
            <TitleStyle BackColor="#333399" BorderStyle="Solid" Font-Bold="True" Font-Size="12pt"
                ForeColor="White" Height="12pt" />
        </asp:Calendar>
    </form>
</body>
</html>

⌨️ 快捷键说明

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