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

📄 tempcourseplan.aspx

📁 这是一个自动排课软件(包含源码,需求分析,详细设计).希望对你有所帮助.
💻 ASPX
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="TempCoursePlan.aspx.cs" Inherits="CourseManage_TempCoursePlan" Title="临时课程维护" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript">
        function showColorPicker(txtColor)
        {
            var dialogObject = new Object() ;
				dialogObject.colorValue = txtColor.value ;
				dialogObject.valueObject = txtColor ;
				dialogObject.styleObject = null ;
				var colorValue = window.showModalDialog("../htc/2k3ColorPicker/2k3ColorPickerDialog.htm", dialogObject, "dialogWidth:373px; dialogHeight:460px; center:yes; help:no; resizable:no; status:no") ;
				txtColor.value = (colorValue == false) ? txtColor.value : colorValue ;
        }
        function textChange(button)
        {
            alert(button.backgroundColor);test.style.backgroundColor
        }
        
        function show()
        {
            var result = window.showModalDialog("NewTempCourse.aspx", "", "dialogWidth:390px; dialogHeight:200px; center:yes; help:no; resizable:no; status:no");
             if(result!=null)
            {
                __doPostBack('LinkButton1','');
            }
        }
    </script>

    <br />
    
    <table align="center">
                    <tr>
                        <td style="width: 311px; height: 120px" valign="top">
                            <asp:GridView CssClass="grid" ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
                                BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3"
                                DataKeyNames="TempCourseID" DataSourceID="OSDTempCourse" Font-Size="9pt"
                                GridLines="Horizontal" Width="400px" Height="81px">
                                <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                                <Columns>
                                    <asp:TemplateField HeaderText="临时课程">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("TempCourseName") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("TempCourseName") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="显示颜色">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server" onpropertychange="this.parentElement.childNodes[1].style.backgroundColor=this.value"
                                                Style="display: none" Text='<%# Bind("TempCourseColor") %>'></asp:TextBox><input
                                                    onclick="showColorPicker(this.parentElement.firstChild)" style="border-right: gray 1px solid;
                                                    border-top: gray 1px solid; border-left: gray 1px solid; width: 25px; border-bottom: gray 1px solid;
                                                    height: 20px; background-color: <%# Eval("TempCourseColor")%>" title="单击更改显示颜色"
                                                    type="button" />
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <input style="border-right: gray 1px solid; border-top: gray 1px solid; border-left: gray 1px solid;
                                                width: 25px; border-bottom: gray 1px solid; height: 20px; background-color: <%# Eval("TempCourseColor")%>"
                                                type="button" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="是否可用">
                                        <EditItemTemplate>
                                            <asp:CheckBox ID="CheckBox2" runat="server" Checked='<%# Bind("IsValid") %>' />
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Eval("IsValid") %>' />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:CommandField HeaderText="编辑" ShowEditButton="True" />
                                    <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                                </Columns>
                                <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
    <RowStyle CssClass="gridrow" />
    <PagerStyle HorizontalAlign="Right" CssClass="gridpager" />
    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" CssClass="gridheader" />
    <AlternatingRowStyle CssClass="gridaltrow" />
                            </asp:GridView>
                            <asp:ObjectDataSource ID="OSDTempCourse" runat="server" DataObjectTypeName="Entities.TempCourse"
                                DeleteMethod="Delete" SelectMethod="SelectAll" TypeName="BLL.BTempCourse" UpdateMethod="Update">
                            </asp:ObjectDataSource>
                        </td>
                    </tr>
                </table>
                <a href="javascript:show()"><font Size="2">新增临时课</font></a><asp:LinkButton ID="LinkButton1" runat="server"></asp:LinkButton>
</asp:Content>

⌨️ 快捷键说明

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