<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Admin_Exam_ks_sjkm" Codebehind="ks.sjkm.aspx.cs" %>
<%@ Import Namespace="Kesion.Cache" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
     <div id="manage_top" class="menu_top_fixed">
         <ul class="titleTab">
          <li><a href="KS.SJConfig.aspx">频道参数设置</a></li>
          <li><a href="KS.SJCategory.aspx">分类管理</a></li>
          <li><a href="KS.SJType.aspx">自定义类别</a></li>
          <li><a href="KS.SJZDYType.aspx">自定义题型</a></li>
       		<%if (MyCache.GetSJCacheConfig(2).ToString() == "1"){ %>
          <li><a href="KS.SJKnowledge.aspx">知识点管理</a></li>
        	<%} %>          
          <li><a href="KS.SjTypeClass.aspx">章节管理</a></li>
          <li><a href="KS.SJCJD.aspx">成绩等级管理</a></li>
          <li><a href="KS.ZGCard.aspx">准考证生成管理</a></li>
          <li class="curr"><a href="KS.SJKM.aspx">会计科目管理</a></li>
       </ul>
 </div>  
<div class="menu_top_fixed_height"></div> 
<asp:Panel ID="ListPannel" runat="server" Width="100%">
<div class="content-area">   
    <div class="myTitle">
        <a href='?action=Add&parentId=<%=parentId %>' class="fr mr20 button button_on">添加科目</a>
        会计科目管理
    </div> 
    <asp:GridView ID="AreaList" cssclass="CTable" runat="server" AutoGenerateColumns="False" EmptyDataText="还没有添加科目!"
    GridLines="None"  OnRowDataBound="List_RowDataBound"
    Width="99%" OnRowCommand="AreaList_RowCommand" OnRowCreated="AreaList_RowCreated">
    <EmptyDataRowStyle CssClass="emptycss" />
    <Columns>
        <asp:BoundField DataField="ID" HeaderText="序号">
            <ItemStyle HorizontalAlign="Center" Width="50px" />
        </asp:BoundField>
        <asp:TemplateField HeaderText="科目名称">
        <ItemStyle HorizontalAlign="Left" Width="550" />
        <ItemTemplate>
        <div onmouseover="jQuery('#sub<%# Eval("ID") %>').show();" onmouseout="jQuery('#sub<%# Eval("ID") %>').hide();">
          	<asp:TextBox CssClass="textbox" ID="TxtCity" Text='<%#Eval("coursename") %>' runat="server"></asp:TextBox>
            <asp:HiddenField ID="hdFDepth" Value='<%#Eval("Depth") %>' runat="server" />
            
        </div>
        </ItemTemplate>
        </asp:TemplateField>           
        <asp:TemplateField HeaderText="显示顺序">
            <ItemStyle HorizontalAlign="Center"  />
            <ItemTemplate>
              	<asp:TextBox CssClass="textbox" ID="TxtOrderID" Width="50px" style="text-align:center" Text='<%#Eval("OrderID") %>' runat="server"></asp:TextBox>
            </ItemTemplate>
        </asp:TemplateField>
       
        <asp:TemplateField HeaderText="操作">
            <itemstyle horizontalalign="Center" width="300"/>
              	<itemtemplate>
              	<asp:LinkButton ForeColor="Gray" ID="lkbGo" CommandName="Go" CommandArgument='<%#Eval("ID") %>' runat="server" CssClass="greenFont">进入子科目</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                <asp:LinkButton ForeColor="Gray" ID="lkbAdd" CommandName="Add" CommandArgument='<%#Eval("ID") %>' runat="server" CssClass="greenFont">添加子科目</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                <asp:LinkButton ID="lkbDel" CssClass="greenFont" CommandName="Del" CommandArgument='<%#Eval("ID") %>' runat="server">删除</asp:LinkButton>
            </itemtemplate>
        </asp:TemplateField>
    </Columns>
    <HeaderStyle CssClass="CTitle" />
    </asp:GridView>
    <KS:Page ID="Page1" runat="server" />
    <KS:Foot ID="Foot1" runat="server" CancelButtonVisible="false" OnSubmit="Foot1_Submit" SubmitButtonText="批量保存(0)" />
</asp:Panel>
</div>

<asp:Panel ID="AddPannel" runat="server" Width="100%" Visible="false">
 <div class="content-area">
     <div class="myTitle">添加会计科目</div> 
        <table width="99%" style="margin:0 auto;" border="0" cellpadding="1" cellspacing="1" class="CTable no-borderTable"> 
        <tr>
                <td align="right" class="lefttd" height="30" style="width: 258px">
                    <strong>所属科目：</strong></td>
                <td class="righttd">
                    &nbsp;<asp:DropDownList CssClass="select" ID="DrpParentID" runat="server" Width="200px" OnSelectedIndexChanged="DrpParentID_SelectedIndexChanged" AutoPostBack="True">
                    <asp:ListItem Value="0">--作为一级科目分类--</asp:ListItem>
                   
                   </asp:DropDownList>
                    </td>
            </tr>
        
          <tr>
            <td class="lefttd" height="30" align="right" style="width: 258px"><b>科目名称：</b></td>
            <td class="righttd">
                &nbsp;<asp:TextBox CssClass="textbox" ID="TxtCity" runat="server"></asp:TextBox> <span style="color:#ff0000">*</span>如会计，电算等
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtCity"
                    ErrorMessage="请输入科目名称!"></asp:RequiredFieldValidator></td>
          </tr>
          

        
            <tr>
                <td align="right" class="lefttd" height="30" style="width: 258px">
                    <strong>排列序号：</strong></td>
                <td class="righttd">
                &nbsp;<asp:TextBox CssClass="textbox" ID="TxtOrderID" runat="server"></asp:TextBox> <span style="color:#ff0000">*</span>数字越小排在越前面
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxtOrderID"
                    ErrorMessage="请输入排序号!"></asp:RequiredFieldValidator>
                </td>
            </tr>
    
        </table>
      <br />
      <KS:Foot ID="Foot2" runat="server"  OnSubmit="Foot2_Submit"  />
</asp:Panel>
</div>
</asp:Content>


