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

📄 studentin.aspx

📁 asp.net 2.0的教务管理软件源码
💻 ASPX
字号:
<%@ Page Language="C#" MasterPageFile="~/style/MasterPage.master" AutoEventWireup="true"
    CodeFile="StudentIn.aspx.cs" Inherits="Personal_StudentIn" EnableViewState="true" Title="学生基本信息 - 杰邦教学管理系统" %>

<%@ Register TagPrefix="Person" Src="~/uctl/PersonInput.ascx" TagName="uctl_PersonInput" %>
<%@ Register TagPrefix="JControls" TagName="TypeList" Src="~/uctl/StandardChoice.ascx"%>
<%@ Register TagPrefix="DualList" Src="~/uctl/SC.ascx" TagName="DualList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<script language="javascript" type="text/javascript">
function calcRealPay(feeCell,ratecell,realPayCell)
{
    f = document.getElementById(feeCell);
    t = document.getElementById(ratecell);
    r = document.getElementById(realPayCell);
    
    r.value = Math.round((f.value * t.value)*100) / 100;
 //   r.value = Math.round(praseFloat(f.value) * praseFloat(t.options[this.selectedIndex].value));
}
</script>
    <div style="z-index: 102; left: 506px; width: 48%; position: absolute; top: 1px; height: 151%" id="divChoice">
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
            <tr>
                <td class="titlebar" style="height: 24px">
                    该学生参加的课程</td>
            </tr>
            <tr>
                <td>
                <DualList:DualList ID="DualList" SourceName="可选课程" SqlProcedureName="p_ListDeStCourse" TargetName="已参加课程" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    <div style="z-index: 103; left: 1px; width: 500px; position: absolute; top: 1px; height: 44%" id="divInput">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td class="titlebar">
                    <asp:Label ID="lblMessageResult" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td>
                    <Person:uctl_PersonInput ID="PersonInput" runat="server"/>
                    <table width="100%">
                        <tr>
                            <td align="right" style="height: 24px; width: 80px;">
                                *班级:</td>
                            <td style="width: 416px">
                               <asp:DropDownList ID="ddlBanJi" runat="server" DataSourceID="SqlDataSource2"
                                    DataTextField="theName" DataValueField="theID">
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 80px; height: 26px">
                                入学日期:</td>
                            <td style="height: 26px; width: 416px;">
                                <asp:TextBox ID="txtJoinDate" runat="server" onfocus="select()" ToolTip="格式:yyyy-mm-dd"></asp:TextBox>
                                如果是咨询,请留空.<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtJoinDate"
                                    ErrorMessage="入学日期太早." Operator="GreaterThan" Type="Date" ValueToCompare="2001-1-1"></asp:CompareValidator></td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 80px; height: 26px">
                                应收学费:</td>
                            <td style="height: 26px; width: 416px;">
                                <asp:TextBox ID="txtFee" runat="server" Width="74px" onfocus="select()" MaxLength="8" ToolTip="填应收学费"></asp:TextBox>
                                X
                                <asp:TextBox ID="txtlRate" runat="server" Width="26px" onfocus="select()" MaxLength="5" ToolTip="折扣,填小于等于1的小数">1</asp:TextBox>&nbsp;
                                实收:<asp:TextBox ID="txtRealPay" runat="server" Width="74px" onfocus="select()" MaxLength="8" ToolTip="实收可以通过自动计算,也可以手工输入."></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator4" runat="server" ControlToValidate="txtRealPay"
                                    ErrorMessage="实收请填数字." Operator="DataTypeCheck" Type="Currency"></asp:CompareValidator></td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 80px; height: 24px;">
                                *经办人:</td>
                            <td style="height: 24px; width: 416px;">
                                <asp:DropDownList ID="ddlIntroduceBy" runat="server" DataSourceID="SqlDataSource1"
                                    DataTextField="pe_Name" DataValueField="pe_ID">
                                </asp:DropDownList>
                                <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="txtFee"
                                    ErrorMessage="学费请输入数字." Operator="DataTypeCheck" Type="Currency"></asp:CompareValidator>
                                <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToValidate="txtlRate"
                                    ErrorMessage="折扣必须<=1." Operator="LessThanEqual" Type="Double" ValueToCompare="1"></asp:CompareValidator></td>
                        </tr>
                        <tr>
                            <td style="width: 80px" align="right">
                            </td>
                            <td style="width: 416px">
                                <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="保存" ToolTip="保存修改结果" /><asp:Button
                                    ID="btnAddNew" runat="server" Text="新增同学" OnClick="btnAddNew_Click" CausesValidation="False" ToolTip="插入一条空白记录" /></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div style="z-index: 104; left: 511px; width: 352px; position: absolute; top: 281px;
        height: 40px">
        <asp:Label ID="ErrMsg" runat="server" CssClass="ErrMsg"></asp:Label>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:keke100ConnectionString %>"
                                    SelectCommand="(SELECT pe_ID=NULL, pe_Name='-无-') UNION (SELECT [pe_ID], [pe_Name] FROM [v_Employee])"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:keke100ConnectionString %>"
            SelectCommand="p_ListAllDepartment" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:keke100ConnectionString %>"
            SelectCommand="p_ListMyPowerClass" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:SessionParameter Name="EmployeeID" SessionField="LoginID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
                            </div>

</asp:Content>

⌨️ 快捷键说明

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