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

📄 coursepanel.aspx

📁 这是一个自动排课软件(包含源码,需求分析,详细设计).希望对你有所帮助.
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
            {
                var table=ClassAccordion.childNodes[i].firstChild;
                if(table.tagName=="DIV")
                    table=table.firstChild;
                for(var j=0;j<table.rows.length;j++)
                {                
                    if(table.rows[j].className=="selectedrow")
                    {
                        selectedID=parseInt(table.rows[j].classID);
                        found=true;
                        break;
                    }
                }
                if(found)
                {
                   break;
                }
            }
            var firstTable=ClassAccordion.childNodes[2].firstChild;
            if(firstTable.tagName=="DIV")
                    firstTable=firstTable.firstChild;
            if(!found && ClassAccordion.childNodes.length>2 && firstTable.rows.length>0)
            {
                selectedID=parseInt(firstTable.rows[0].classID);
                firstTable.rows[0].className="selectedrow";
            }
        }
        function showClassPlan()
        {
            drawScale();   
        }
        /******其它******/
        function selectRow(row)
        {
            for(var i=2;i<ClassAccordion.childNodes.length;i+=2)
            {
                var table=ClassAccordion.childNodes[i].firstChild;
                if(table.tagName=="DIV")
                    table=table.firstChild;
                for(var j=0;j<table.rows.length;j++)
                {                
                    table.rows[j].className="";
                    
                }
            }
            selectedID=parseInt(row.classID);
            row.className="selectedrow";
            drawScale();
        }
        function overRow(row)
        {
            if(row.className!="selectedrow")
                row.className="overrow";
        }
        function outRow(row)
        {
            if(row.className!="selectedrow")
                row.className="";
        }
        function clickItem(menuType,itemName)
        {
            var classID=selectedID;
            courseMenu.style.display="none";
            classMenu.style.display="none";
            var result;
            if(menuType=="classMenu")
            {
                switch(itemName)
                {
                    case "classStatus":
                        result=window.showModalDialog("UpDateClassState.aspx?classID="+classID+"&planID="+planID+"&date="+date+"&isAm="+isAm+"&rand="+Math.random(),"","help:no;status:no;dialogHeight:150px;dialogWidth: 330px;");
                    break;
                    case "addCourse":
                         result=window.showModalDialog("addScheme.aspx?classID="+classID+"&rand="+Math.random(),"","help:no;status:no;dialogHeight: 550px; dialogWidth: 650px;");
                    break;
                }
            }
            else
            {
                var planID=courseMenu.planID;
                var date=courseMenu.date;
                var isAm=courseMenu.isAm;
                switch(itemName)
                {
                    case "addAmovement":
                       result=window.showModalDialog("addmovement.aspx?classID="+classID+"&planID="+planID+"&date="+date+"&isAm="+isAm+"&rand="+Math.random(),"","help:no;status:no;dialogHeight:380px;dialogWidth: 500px;");
                    break;
                    case "addTempCourse":
                        result=window.showModalDialog("addtempcourse.aspx?classID="+classID+"&planID="+planID+"&date="+date+"&isAm="+isAm+"&rand="+Math.random(),"","help:no;status:no;dialogHeight:250px;dialogWidth: 400px;");
                    break;
                    case "changeTimePlan":
                        result=window.showModalDialog("updateTimePlan.aspx?classID="+classID+"&planID="+planID+"&date="+date+"&isAm="+isAm+"&rand="+Math.random(),"","help:no;status:no;dialogHeight:250px;dialogWidth: 400px;");
                    break;
                    case "changeTeacher":
                        result=window.showModalDialog("updateTeacher.aspx?classID="+classID+"&planID="+planID+"&date="+date+"&isAm="+isAm+"&rand="+Math.random(),"","help:no;status:no;dialogHeight:400px");
                    break;
                }
            }
            if(result!=null)
            {
                drawScale();
            }
        }
        /*********/
        function showCourseMenu(planID,date,isAm)
        {
            classMenu.style.display="none";
            courseMenu.style.left=event.clientX;
            courseMenu.style.top=event.clientY;
            courseMenu.style.display="block";
            courseMenu.planID=planID;
            courseMenu.date=date;
            courseMenu.isAm=isAm;
        }
        function showClassMenu()
        {
            if(event.srcElement.tagName=="rect")
                return;
            courseMenu.style.display="none";
            classMenu.style.left=event.clientX;
            classMenu.style.top=event.clientY;
            classMenu.style.display="block";
        }
    </script>
</head>
<body onload="drawScale()" onresize="changeGroupSize()" bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" style="overflow:hidden">
    <form id="form1" runat="server">
    <table id="classMenu" class="menu" width="100" style="position:absolute;filter : progid:DXImageTransform.Microsoft.DropShadow(color=#000666,offX=2 offY=2,positives=true);display:none">
    <tr itemName="classStatus" style="cursor:hand" onclick="clickItem('classMenu',this.itemName)" onmouseout="outRow(this)" onmouseover="overRow(this)">
    <td>改变班级状态</td>
    </tr>
    <tr itemName="addCourse" style="cursor:hand" onclick="clickItem('classMenu',this.itemName)" onmouseout="outRow(this)" onmouseover="overRow(this)">
    <td >新增课程计划</td>
    </tr>
    </table>
    <table id="courseMenu" class="menu" width="100" style="position:absolute;filter : progid:DXImageTransform.Microsoft.DropShadow(color=#000666,offX=2 offY=2,positives=true);display:none">
    <tr itemName="addAmovement" style="cursor:hand" onclick="clickItem(this.parentElement.id,this.itemName)" onmouseout="outRow(this)" onmouseover="overRow(this)">
    <td>插入活动</td>
    </tr>
    <tr itemName="addTempCourse" style="cursor:hand" onclick="clickItem(this.parentElement.id,this.itemName)" onmouseout="outRow(this)" onmouseover="overRow(this)">
    <td >插入临时课</td>
    </tr>
    <tr itemName="changeTimePlan" style="cursor:hand" onclick="clickItem(this.parentElement.id,this.itemName)" onmouseout="outRow(this)" onmouseover="overRow(this)">
    <td >更改时间安排</td>
    </tr>
    <tr itemName="changeTeacher" style="cursor:hand" onclick="clickItem(this.parentElement.id,this.itemName)" onmouseout="outRow(this)" onmouseover="overRow(this)">
    <td >更改授课教员</td>
    </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"></asp:ScriptManager>
    
    
    
    <input id="cssFileName" type="hidden" name="cssFileName" /><asp:LinkButton ID="lbChangeStyle" runat="server" OnClick="lbChangeStyle_Click"></asp:LinkButton>
        <table class="frametable" style="width: 100%; height: 100%;border-collapse:collapse" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td class="topleft">
                </td>
                <td class="topmiddle">
                <table style="width: 100%;border-collapse:collapse;" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="topmiddle1">
                            </td>
                            <td  class="topmiddle2" align="center"></td>
                            <td class="topmiddle3">
                            </td>
                        </tr>
                    </table>
                </td>
                <td  class="topright">
                </td>
            </tr>
            <tr class="sep">
                <td class="sepleft"></td>
                <td class="sepmiddle">
                    
                </td>
                <td class="sepright"></td>
            </tr>
           <tr>
                <td class="menuleft"></td>
                <td class="menumiddle">
                <table width="100%" style="border-collapse:collapse;" cellpadding="0" cellspacing="0" border="0"><tr><td class="menumiddle1"></td><td class="menumiddle2">
                <asp:Menu ID="Menu1" runat="server" Font-Size="12px" Orientation="Horizontal" BorderStyle="None" MaximumDynamicDisplayLevels="5" StaticEnableDefaultPopOutImage="False" DynamicVerticalOffset="5">
                    <DynamicHoverStyle CssClass="dynamichover" />
                    <DynamicMenuItemStyle CssClass="dynamicitem" HorizontalPadding="12px" VerticalPadding="4px" />
                    <StaticMenuItemStyle CssClass="staticitem" HorizontalPadding="5px" />
                    <StaticMenuStyle CssClass="staticmenu" HorizontalPadding="5px" />
                    <DynamicMenuStyle CssClass="dynamicmenu" />
                </asp:Menu>
                </td><td class="menumiddle3"></td></tr></table>
                </td>
                <td class="menuright"></td>
            </tr>
            <tr>
                <td class="ctnleft"></td>
                <td class="ctnmiddle" align="center">
                <table border="1" width="100%" height="100%" style="border-collapse:collapse;">
    <tr><td  width="120px" valign="top">
        <table width="120px" height="100%">
            <tr style="height:30px">
                <td valign="top"> 
                    <table width="120px" style="font-size:9pt">
                        <tr>
                            <td style="width: 20px; height: 17px;">
                            <a href="javascript:previousMonth()">&lt;&lt;</a>
                            </td>
                            <td style="height: 17px">
                                <asp:Label ID="lbDate" runat="server"></asp:Label></td>
                            <td style="width: 20px; height: 17px;">
                            <a href="javascript:nextMonth()">&gt;&gt;</a>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">
            <ajaxToolkit:Accordion ID="ClassAccordion" runat="server" SelectedIndex="0"
            HeaderCssClass="accordionheader" HeaderSelectedCssClass="accordionheader"
            ContentCssClass="accordionContent" FadeTransitions="false" FramesPerSecond="40" 
            TransitionDuration="150" AutoSize="None" RequireOpenedPane="false" SuppressHeaderPostbacks="true">
           <HeaderTemplate><span class='headertext'><%# Eval("Name") %></span></HeaderTemplate>
           <ContentTemplate><asp:Repeater ID="RepeaterClass" DataSource='<%# Eval("Classes") %>' runat="server">
              <HeaderTemplate><table class='accordionpanel' width="95%" border="0" cellpadding="2" cellspacing="2" style="font-size:9pt"></HeaderTemplate>
              <ItemTemplate><tr classID='<%# Eval("ID")%>' style="cursor:hand" onclick="selectRow(this)" onmouseout="outRow(this)" onmouseover="overRow(this)"><td><%# Eval("ClassName")%></td></tr></ItemTemplate>
              <FooterTemplate></table></FooterTemplate>
           </asp:Repeater>
           </ContentTemplate>
           </ajaxToolkit:Accordion>
                    &nbsp;&nbsp;
                </td>
            </tr>
        </table>
    </td>
    <td>
    <div style="background-color:White;width:100%;height:100%;overflow:auto" oncontextmenu="showClassMenu()">
    <v:group ID="course" style="width:100%;height:100%" coordsize="755160,500000"></v:group></DIV>
        </td>
    </tr></table>
    
    
    </td>
                <td class="ctnright"></td>
            </tr>
            <tr>
                <td class="footerleft"></td>
                <td class="footermiddle" style="height:29">
                    <table style="width: 100%;border-collapse:collapse;height:28px" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="footermiddle1">
                            </td>
                            <td  class="footermiddle2" align="center"> Power by T321</td>
                            <td class="footermiddle3">
                            </td>
                        </tr>
                    </table>
                </td>
                <td class="footerright"></td>
            </tr>
        </table>
            
    </form>
    <script type="text/javascript">
    document.oncontextmenu=function()
    {
        if(event.srcElement.tagName!="rect")
            courseMenu.style.display="none";
        event.returnValue=false;
    }
    document.body.onclick=function()
    {
        if(event.srcElement.tagName=="rect")
        {
            if(event.button!=2)
            {
                courseMenu.style.display="none";
                classMenu.style.display="none";
            }
        }
        else
        {
            courseMenu.style.display="none";
            classMenu.style.display="none";
        }
    }
    </script>
</body>
</html>

⌨️ 快捷键说明

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