coolite实例3
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TakeClasseTimeLimit.aspx.cs"
Inherits="Com.DRPENG.INFOPLAT.UI.XFZGL.ClassArrangement.TakeClasseTimeLimit" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!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>
<script type="text/javascript" language="javascript">
//班级上课时间限制
function LeftGradeTree1(node) {
if (node.attributes["typeNum"] == "410") {
hidClassID.setValue(node.id);
Coolite.AjaxMethods.LeftGradeTree1_Click(node.id, node.text);
}
}
//课程上课时间限制
function LeftTree_Click(node) {
if (node.attributes["type"] == "Course") {
hidCourseID.setValue(node.id);
Coolite.AjaxMethods.LeftTree_Click(node.id, node.text);
}
}
//教师上课时间限制
function TeachingGroupTree_Click(node) {
if (node.attributes["type"] == "Teacher") {
hidTeacherID.setValue(node.id);
Coolite.AjaxMethods.TeachingGroupTree_Click(node.id, node.text);
}
}
function SaveTeacherLimit() {
Coolite.AjaxMethods.SaveTeacherLimit_Click();
}
//教室上课时间限制
function BuildingTree_Click(node) {
if (node.attributes["type"] == "ClassRoom") {
hidClassRoomID.setValue(node.id);
Coolite.AjaxMethods.BuildingTree_Click(node.id, node.text);
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<ext:ScriptManager ID="ScriptManager1" runat="server">
</ext:ScriptManager>
<ext:Hidden ID="hidClassID" runat="server">
</ext:Hidden>
<ext:Hidden ID="hidCourseID" runat="server">
</ext:Hidden>
<ext:Hidden ID="hidTeacherID" runat="server">
</ext:Hidden>
<ext:Hidden ID="hidClassRoomID" runat="server">
</ext:Hidden>
<ext:Store runat="server" ID="GradeOrProfessionalStore">
<Reader>
<ext:JsonReader ReaderID="ID">
<Fields>
<ext:RecordField Name="ID">
</ext:RecordField>
<ext:RecordField Name="Name">
</ext:RecordField>
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<ext:Store ID="TeachingArrangeStore" runat="server">
<Reader>
<ext:JsonReader ReaderID="ID">
<Fields>
<ext:RecordField Name="ID">
</ext:RecordField>
<ext:RecordField Name="Name">
</ext:RecordField>
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<ext:Store runat="server" ID="StoreTerms">
<Reader>
<ext:JsonReader ReaderID="ID">
<Fields>
<ext:RecordField Name="ID">
</ext:RecordField>
<ext:RecordField Name="Name">
</ext:RecordField>
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<ext:ViewPort ID="ViewPort1" runat="server">
<Body>
<ext:BorderLayout ID="BorderLayout1" runat="server">
<Center>
<ext:TabPanel runat="server" ID="TabPanel1" ActiveTabIndex="0">
<Tabs>
<ext:Tab ID="tabClass" Closable="false" Title="班级上课时间限制" BodyStyle="8px">
<Body>
<ext:BorderLayout ID="BorderLayout5" runat="server">
<West Collapsible="true" Split="true">
<ext:TreePanel ID="LeftGradeTree" runat="server" Width="210" AutoScroll="true" Icon="BookOpen"
IDMode="Legacy">
<Listeners>
<Click Handler="LeftGradeTree1(node);" />
</Listeners>
</ext:TreePanel>
</West>
<Center>
<ext:Panel ID="actionPanel" runat="server" Border="false">
<TopBar>
<ext:Toolbar ID="Toolbar4" runat="server">
<items>
<ext:Label ID="label4" Text="学期:" runat="server">
</ext:Label>
<ext:ComboBox ID="CBTerms" runat="server" AllowBlank="true" DisplayField="Name" ValueField="ID"
EmptyText="选择...." StoreID="StoreTerms">
</ext:ComboBox>
<ext:Label ID="Label10" Text=" 教学时间段安排:" runat="server">
</ext:Label>
<ext:ComboBox ID="cbTeachingArrange" EmptyText="请选择教学时间段安排..." StoreID="TeachingArrangeStore"
Width="400" DisplayField="Name" ValueField="ID" Editable="false" runat="server">
<AjaxEvents>
<Select OnEvent="cbTeachingArrange_Select">
</Select>
</AjaxEvents>
</ext:ComboBox>
</items>
</ext:Toolbar>
</TopBar>
<AutoLoad Url="CourseTable.aspx" Mode="IFrame" NoCache="true" MaskMsg="加载中..." ShowMask="true" >
</AutoLoad>
<Body>
</Body>
</ext:Panel>
</Center>
</ext:BorderLayout>
</Body>
</ext:Tab>
<ext:Tab ID="tab1" Closable="false" Title="课程上课时间限制" BodyStyle="8px">
<Listeners>
<Activate Handler="Coolite.AjaxMethods.InitTab(1);" />
</Listeners>
<Body>
<ext:BorderLayout ID="BorderLayout2" runat="server">
<West Collapsible="true" Split="true">
<ext:TreePanel ID="LeftSectTree" runat="server" Width="210" AutoScroll="true" Icon="BookOpen"
IDMode="Legacy">
<Root>
</Root>
<Listeners>
<Click Handler="LeftTree_Click(node);" />
</Listeners>
</ext:TreePanel>
</West>
<Center>
<ext:Panel ID="actionPanel1" runat="server" Border="false" >
<TopBar>
<ext:Toolbar ID="Toolbar3" runat="server">
<Items>
<ext:Label ID="label1" Text="学期:" runat="server">
</ext:Label>
<ext:ComboBox ID="CBTerms1" runat="server" AllowBlank="true" DisplayField="Name"
ValueField="ID" EmptyText="选择...." StoreID="StoreTerms">
</ext:ComboBox>
<ext:Label ID="Label3" Text="年级/专业" runat="server">
</ext:Label>
<ext:ComboBox ID="CbGrade1" EmptyText="请选择年级或专业..." StoreID="GradeOrProfessionalStore"
Width="200" DisplayField="Name" ValueField="ID" Editable="false" runat="server"
AllowBlank="false">
<AjaxEvents>
<Select OnEvent="CbGrade1_Select">
</Select>
</AjaxEvents>
</ext:ComboBox>
<ext:Label ID="Label2" Text=" 教学时间段安排:" runat="server">
</ext:Label>
<ext:ComboBox ID="cbTeachingArrange1" EmptyText="请选择教学时间段安排..." StoreID="TeachingArrangeStore"
Width="400" DisplayField="Name" ValueField="ID" Editable="false" runat="server">
<AjaxEvents>
<Select OnEvent="cbTeachingArrange1_Select">
</Select>
</AjaxEvents>
</ext:ComboBox>
<ext:ToolbarFill ID="toolbarfile1" runat="server">
</ext:ToolbarFill>
</Items>
</ext:Toolbar>
</TopBar>
<AutoLoad Url="CourseTable.aspx" Mode="IFrame" NoCache="true" MaskMsg="加载中..." ShowMask="true">
</AutoLoad>
<Body>
</Body>
</ext:Panel>
</Center>
</ext:BorderLayout>
</Body>
</ext:Tab>
<ext:Tab ID="tab2" Closable="false" Title="教师上课时间限制" BodyStyle="8px">
<Listeners>
<Activate Handler="Coolite.AjaxMethods.InitTab(2);" />
</Listeners>
<Body>
<ext:BorderLayout ID="BorderLayout3" runat="server">
<West Collapsible="true" Split="true">
<ext:TreePanel ID="TeachingGroupTree" runat="server" Width="210" AutoScroll="true"
Icon="BookOpen" IDMode="Legacy">
<Root>
</Root>
<Listeners>
<Click Handler="TeachingGroupTree_Click(node);" />
</Listeners>
</ext:TreePanel>
</West>
<Center>
<ext:Panel ID="actionPanel2" runat="server" Border="false" >
<TopBar>
<ext:Toolbar ID="Toolbar1" runat="server">
<Items>
<ext:Label ID="lblterm" Text="学期:" runat="server">
</ext:Label>
<ext:ComboBox ID="CBTerms2" runat="server" AllowBlank="true" DisplayField="Name"
ValueField="ID" EmptyText="选择...." StoreID="StoreTerms">
</ext:ComboBox>
<ext:Label ID="Label5" Text="年级/专业" runat="server">
</ext:Label>
<ext:ComboBox ID="CbGrade2" EmptyText="请选择年级或专业..." StoreID="GradeOrProfessionalStore"
Width="200" DisplayField="Name" ValueField="ID" Editable="false" runat="server"
AllowBlank="false">
<AjaxEvents>
<Select OnEvent="CbGrade2_Select">
</Select>
</AjaxEvents>
</ext:ComboBox>
<ext:Label ID="Label6" Text=" 教学时间段安排:" runat="server">
</ext:Label>
<ext:ComboBox ID="cbTeachingArrange2" EmptyText="请选择教学时间段安排..." StoreID="TeachingArrangeStore"
Width="400" DisplayField="Name" ValueField="ID" Editable="false" runat="server">
<AjaxEvents>
<Select OnEvent="cbTeachingArrange2_Select">
</Select>
</AjaxEvents>
</ext:ComboBox>
<ext:ToolbarFill ID="ToolbarFill1" runat="server">
</ext:ToolbarFill>
</Items>
</ext:Toolbar>
</TopBar>
<AutoLoad Url="CourseTable.aspx" Mode="IFrame" NoCache="true" MaskMsg="加载中..." ShowMask="true">
</AutoLoad>
<Body>
</Body>
</ext:Panel>
</Center>
</ext:BorderLayout>
</Body>
</ext:Tab>
<ext:Tab ID="tab3" Closable="false" Title="教室上课时间限制" BodyStyle="8px">
<Listeners>
<Activate Handler="Coolite.AjaxMethods.InitTab(3);" />
</Listeners>
<Body>
<ext:BorderLayout ID="BorderLayout4" runat="server">
<West Collapsible="true" Split="true">
<ext:TreePanel ID="BuildingTree" runat="server" Width="210" AutoScroll="true" Icon="BookOpen"
IDMode="Legacy">
<Root>
</Root>
<Listeners>
<Click Handler="BuildingTree_Click(node);" />
</Listeners>
</ext:TreePanel>
</West>
<Center>
<ext:Panel ID="actionPanel3" runat="server" Border="false" >
<TopBar>
<ext:Toolbar ID="Toolbar2" runat="server">
<Items>
<ext:Label ID="label7" Text="学期:" runat="server">
</ext:Label>
<ext:ComboBox ID="CBTerms3" runat="server" AllowBlank="true" DisplayField="Name"
ValueField="ID" EmptyText="选择...." StoreID="StoreTerms">
</ext:ComboBox>
<ext:Label ID="Label8" Text="年级/专业" runat="server">
</ext:Label>
<ext:ComboBox ID="CbGrade3" EmptyText="请选择年级或专业..." StoreID="GradeOrProfessionalStore"
Width="200" DisplayField="Name" ValueField="ID" Editable="false" runat="server"
AllowBlank="false">
<AjaxEvents>
<Select OnEvent="CbGrade3_Select">
</Select>
</AjaxEvents>
</ext:ComboBox>
<ext:Label ID="Label9" Text=" 教学时间段安排:" runat="server">
</ext:Label>
<ext:ComboBox ID="cbTeachingArrange3" EmptyText="请选择教学时间段安排..." StoreID="TeachingArrangeStore"
Width="400" DisplayField="Name" ValueField="ID" Editable="false" runat="server">
<AjaxEvents>
<Select OnEvent="cbTeachingArrange3_Select">
</Select>
</AjaxEvents>
</ext:ComboBox>
<ext:ToolbarFill ID="ToolbarFill2" runat="server">
</ext:ToolbarFill>
</Items>
</ext:Toolbar>
</TopBar>
<AutoLoad Url="CourseTable.aspx" Mode="IFrame" NoCache="true" MaskMsg="加载中..." ShowMask="true">
</AutoLoad>
<Body>
</Body>
</ext:Panel>
</Center>
</ext:BorderLayout>
</Body>
</ext:Tab>
</Tabs>
</ext:TabPanel>
</Center>
</ext:BorderLayout>
</Body>
</ext:ViewPort>
</form>
</body>
</html>