<%@ page language="C#" autoeventwireup="true" inherits="Plan_PlanEFRM, App_Web_dy1ncacz" stylesheettheme="Themes" theme="Themes" %>

<%@ Register Src="../UserControls/SetPlanExam.ascx" TagName="SetPlanExam" TagPrefix="uc1" %>
<%@ Register Src="../UserControls/SetHomeWork.ascx" TagName="SetHomeWork" TagPrefix="uc2" %>
<!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 id="Head1" runat="server">
    <title>编辑设置计划</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src="../js/calendar.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.pngFix.pack.js"></script>
    <script type="text/javascript" src="../Js/WebValidator.js"></script>
    <script type="text/javascript" src="../Js/InterfaceContrl.js"></script>

    </head>
<body>
    <form name="form1" id="form1" runat="server">
    <div class="right_postion_bg">
        <span class="s_potion_font"><img src="../Images/homen.gif" class="pic_style" />  
        当前的位置：培训计划管理 &gt; 配置培训计划 &gt; 编辑和配置培训计划 </span>
    </div>
    <div class="box">
        <table width="100%" cellpadding="5" cellspacing="0" bgcolor="white">
            <tr>
                <td align="center" id="tab_title" style="text-align:center;">
                    编辑计划
                    <asp:HiddenField ID="hidePlanID" runat="server" Value="0" />
                    <asp:HiddenField ID="hideActivityID" runat="server" Value="0" />
                    <asp:HiddenField ID="hideConditionID" runat="server" Value="0" />
                    <asp:HiddenField ID="hideConditionSetID" runat="server" Value="0" />
                    <asp:HiddenField ID="hideConditionCount1" runat="server" Value="1" />
                    <asp:HiddenField ID="hideConditionCount2" runat="server" Value="0" />
                    <asp:HiddenField ID="hideConditionSetString" runat="server" />
                </td>
                <td align="right">
                    <asp:Button ID="btnReturn" runat="server" Text="返回培训计划列表" OnClick="btnReturn_Click" />
                </td>
            </tr>
        </table>
    </div>
    <div class="box" align="left">
        <asp:Wizard ID="Wizard1" runat="server" Width="100%" ActiveStepIndex="3" 
            onactivestepchanged="Wizard1_ActiveStepChanged">
            <WizardSteps>
                <asp:WizardStep ID="WizardStep1" runat="server" Title="编辑计划基本信息">
                    <table border="0" cellpadding="5" cellspacing="1" width="100%" class="table_notitle">
                        <tr>
                            <td align="center" colspan="2" class="td02" height="30px">
                                计划基本信息
                            </td>
                        </tr>
                        <tr>
                            <td bgcolor="#ffffff" height="25" width="30%" align="right" class="td01">
                                计划类型:
                            </td>
                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                <asp:DropDownList ID="ddlPlanType" runat="server">
                                </asp:DropDownList><font color="red">*</font>
                            </td>
                        </tr>
                        <tr>
                            <td bgcolor="#ffffff" height="25" width="30%" align="right" class="td01">
                                计划名称:
                            </td>
                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                <asp:TextBox ID="txtPlanName" runat="server" Width="345px" MaxLength="25"></asp:TextBox><font color="red">
                                *</font>
                            </td>
                        </tr>
                        <tr>
                            <td bgcolor="#ffffff" height="25" width="30%" align="right" class="td01">
                                计划描述:<br />
                                (培训目的限100字)
                            </td>
                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                <asp:TextBox ID="txtDescrip" runat="server" Width="349px" Height="64px"
                                    TextMode="MultiLine" MaxLength="200"></asp:TextBox><font color="red">*</font>
                            </td>
                        </tr>
                        <tr>
                            <td bgcolor="#ffffff" height="25" width="30%" align="right" class="td01">
                                开始时间:
                            </td>
                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                <input onselectstart="return false;" onkeypress="return false" id="txtBeginTime"
                                    onfocus="setday(this)" readonly type="text" size="25" name="txtBeginTime" class="input1"
                                    runat="server" style="width: 75px"><font color="red">*</font>
                                <div class="warning"><font>开始时间和结束时间都为空表示计划无时效性。</font></div>
                            &nbsp;<font color="red">*</font>
                                <div class="warning"><font>开始时间和结束时间都为空表示计划无时效性。</font></div>
                            &nbsp;<font color="red">*</font>
                                <div class="warning"><font>开始时间和结束时间都为空表示计划无时效性。</font></div>
                            &nbsp;<font color="red">*</font>
                                <div class="warning"><font>开始时间和结束时间都为空表示计划无时效性。</font></div>
                            &nbsp;<font color="red">*</font>
                                <div class="warning"><font>开始时间和结束时间都为空表示计划无时效性。</font></div>
                            &nbsp;<font color="red">*</font>
<font color="red">*</font>
                                <div class="warning"><font>开始时间和结束时间都为空表示计划无时效性。</font></div>
                            &nbsp;<font color="red">*</font>
                                </td>
                        </tr>
                        <tr>
                            <td bgcolor="#ffffff" height="25" width="30%" align="right" class="td01">
                                结束时间:
                            </td>
                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                <input onselectstart="return false;" onkeypress="return false" id="txtEndTime" onfocus="setday(this)"
                                    readonly type="text" size="25" name="txtEndTime" class="input1" runat="server"
                                    style="width: 75px"><font color="red">*</font>
                                <div class="warning"><font>开始时间和结束时间都为空表示计划无时效性。</font></div>
                            &nbsp;<font color="red">*</font>
                                <div class="warning"><font>开始时间和结束时间都为空表示计划无时效性。</font></div>
                            &nbsp;<font color="red">*</font>
                                <div class="warning"><font>开始时间和结束时间都为空表示计划无时效性。</font></div>
                            &nbsp;<font color="red">*</font>
                                <div class="warning"><font>开始时间和结束时间都为空表示计划无时效性。</font></div>
                            &nbsp;<font color="red">*</font>
                                <div class="warning"><font>开始时间和结束时间都为空表示计划无时效性。</font></div>
                            &nbsp;<font color="red">*</font>
<font color="red">*</font>
                                <div class="warning"><font>开始时间和结束时间都为空表示计划无时效性。</font></div>
                            &nbsp;<font color="red">*</font>
                                </td>
                        </tr>
                        <tr>
                            <td bgcolor="#ffffff" height="25" width="30%" align="right" class="td01">
                                是否允许申请:
                            </td>
                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                <asp:RadioButtonList ID="rblIsCanApply" runat="server" RepeatDirection="Horizontal">
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td bgcolor="#ffffff" height="25" width="30%" align="right" class="td01">
                                申请人数上限:
                            </td>
                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                <asp:TextBox ID="txtApplyNum" runat="server" Width="345px" MaxLength="5" Text="0"></asp:TextBox><font color="red">
                                *</font>
                                <div class="warning"><font>默认为0，表示无限制。</font></div>
                            </td>
                        </tr>
                        <tr>
                            <td bgcolor="#ffffff" height="25" width="30%" align="right" class="td01">
                                使用状态:
                            </td>
                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                <asp:RadioButtonList ID="rblState" runat="server" RepeatDirection="Horizontal" 
                                    AutoPostBack="true" OnSelectedIndexChanged="rblState_SelectedIndexChanged">
                                </asp:RadioButtonList>
                                <div class="warning"><font>新增计划时默认为停用，开始使用时请手动修改。</font></div>
                            </td>
                        </tr>
                    </table>

                    <script language="javascript" type="text/javascript">
                        $(document).ready(function() {
                            ValidatorPlan();
                        });
                        function ValidatorPlan() {
                            $('#<%= txtPlanName.ClientID %>').textlimit(50);
                            $('#<%= txtDescrip.ClientID %>').textlimit(100);
                            $('#<%= txtApplyNum.ClientID %>').onlypressInt();
                        }
                    </script>

                </asp:WizardStep>
                <asp:WizardStep ID="WizardStep2" runat="server" Title="配置计划中的活动">
                    <table border="0" cellpadding="3" cellspacing="0" width="100%">
                        <tr>
                            <td align="left" bgcolor="#ffffff" width="30%">
                                <asp:DropDownList ID="ddlCourseType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCourseType_SelectedIndexChanged" Visible="False"></asp:DropDownList>
                                <asp:Button ID="btnAddActivity" runat="server" OnClick="btnAddActivity_Click" Text="添加活动" />
                                <asp:Button ID="lbtnReturn" runat="server" Text="返回活动列表" Visible="False" OnClick="lbtnReturn_Click"></asp:Button>
                                <br /><br />
                                <div class="warning"><font>请注意！活动可以是学习、考试、线下活动等内容。学习活动对应的是课程，考试等活动则对应配置。详情请参见用户手册。</font></div>
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td align="left" bgcolor="#ffffff" width="30%">
                                <asp:GridView ID="gvSelectedActivity" runat="server" 
                                    AutoGenerateColumns="False" OnRowCommand="gvSelectedActivity_RowCommand"
                                    DataKeyNames="ID" OnRowDataBound="gvSelectedActivity_RowDataBound">
                                    <Columns>
                                        <asp:BoundField DataField="Name" HeaderText="活动名称" ItemStyle-Wrap="true" 
                                            ItemStyle-Width="350px" >
<ItemStyle Wrap="True" Width="350px"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Type" HeaderText="类型" />
                                        <asp:BoundField DataField="ActivityID" HeaderText="活动内容" />
                                        <asp:TemplateField HeaderText="编辑">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lbtnEditActivity" CommandName="EditActivity" runat="server">编辑</asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="配置">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lbtnSetActivity" CommandName="SetActivity" CommandArgument='<%# Eval("Type") %>' runat="server">配置</asp:LinkButton>
                                                <asp:Label ID="lblAID" runat="server" Text='<%# Eval("ActivityID") %>' Visible="false"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="移除">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lbtnRemoveActivity" CommandName="RemovActivity" runat="server">移除</asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <asp:Label ID="lblEmpty" runat="server" Text="没有符合条件的数据！"></asp:Label>
                                    </EmptyDataTemplate>
                                </asp:GridView>
                                <div id="divActivity" runat="server" visible="false">
                                    <table id="tblActivity" runat="server" border="0" cellpadding="5" cellspacing="1" width="100%" class="table_notitle">
                                        <tr>
                                            <td align="left" colspan="2" class="td02">
                                                活动基本信息
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#ffffff" width="10%" height="25" align="right" class="td01">
                                                活动类型:
                                            </td>
                                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                                <asp:DropDownList ID="dllActivityType" runat="server">
                                                </asp:DropDownList><font color="red">*</font>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#ffffff" height="25" width="10%" align="right" class="td01">
                                                活动名称:
                                            </td>
                                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                                <asp:TextBox ID="txtActivityName" runat="server" Width="345px" MaxLength="50"></asp:TextBox><font color="red">
                                                *</font>
                                                <div class="warning"><font>线下活动可写明日期地点内容。</font></div>
                                            </td>
                                        </tr>
                                        <tr class="td_3">
                                            <td bgcolor="#ffffff" height="25" width="30%" align="right" class="style1">
                                                &nbsp;
                                            </td>
                                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                                <asp:Button ID="btnSaveActivity" runat="server" Text="保存" OnClick="btnSaveActivity_Click" />
                                            </td>
                                        </tr>
                                    </table>

                                    <script language="javascript" type="text/javascript">
                                        $(document).ready(function() {
                                            ValidatorActivity();
                                        });
                                        function ValidatorActivity() {
                                            $('#<%= btnSaveActivity.ClientID %>').bind('click', function() {
                                                ValidatorEmpty($("#<%=txtActivityName.ClientID %>"), "活动名称");

                                                return GetValidatorMessage();
                                            });
                                            $('#<%= txtActivityName.ClientID %>').textlimit(50);
                                        }
                                    </script>
                                </div>
                                <asp:GridView ID="gvCourse" runat="server" AutoGenerateColumns="False" Visible="False" OnRowCommand="gvCourse_RowCommand" 
                                    DataKeyNames="CourseID">
                                    <Columns>
                                        <asp:BoundField DataField="name" HeaderText="课程名称" />
                                        <asp:BoundField DataField="Minutes" HeaderText="课时" />
                                        <asp:BoundField DataField="credit" HeaderText="学分" />
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lbtnAdd" CommandName="addasaactivity" runat="server">设置为活动内容</asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        请通过课程类别选择课程
                                    </EmptyDataTemplate>
                                </asp:GridView>
                                <uc1:SetPlanExam ID="SetPlanExam1" runat="server" Visible="False" />
                                <uc2:SetHomeWork ID="SetHomeWork1" runat="server" Visible="False" />
                            </td>
                        </tr>
                    </table>
                </asp:WizardStep>
                <asp:WizardStep ID="WizardStep3" runat="server" Title="配置计划中的条件">
                    <table border="0" cellpadding="3" cellspacing="0" width="100%">
                        <tr>
                            <td align="left" bgcolor="#ffffff" width="30%">
                                <asp:Button ID="btnAddConditon" runat="server" OnClick="btnAddConditon_Click" Text="添加条件" />
                                <asp:Button ID="btnReturnCList" runat="server" Text="返回条件列表" Visible="False" OnClick="btnReturnCList_Click"></asp:Button>
                                <br /><br />
                                <div class="warning"><font>请注意！此处可设置计划中的各个活动的通过条件或计划的完成条件。详情请参见用户手册。</font></div>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" bgcolor="#ffffff" width="30%">
                                <asp:GridView ID="gvConditions" runat="server" AutoGenerateColumns="False" 
                                    DataKeyNames="ID" OnRowCommand="gvConditions_RowCommand" 
                                    OnRowDataBound="gvConditions_RowDataBound">
                                    <Columns>
                                        <asp:BoundField DataField="ConditionType" HeaderText="条件类型" />
                                        <asp:BoundField DataField="ActivityName" HeaderText="活动" ItemStyle-Wrap="true" 
                                            ItemStyle-Width="350px" >
                                        <ItemStyle Wrap="True" Width="350px"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ActivityType" HeaderText="活动类型" />
                                        <asp:BoundField DataField="GreaterEqual" HeaderText="大于等于的条件" />
                                        <asp:BoundField DataField="LessThan" HeaderText="小于的条件" />
                                        <asp:BoundField DataField="LastWriteTime" HeaderText="时间" DataFormatString="{0:D}" />
                                        <asp:TemplateField HeaderText="编辑">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lbtnEditCondition" CommandName="EditCondition" runat="server">编辑</asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="移除">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lbtnRemoveCondition" CommandName="RemovCondition" runat="server">移除</asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <asp:Label ID="lblEmpty" runat="server" Text="没有符合条件的数据！"></asp:Label>
                                    </EmptyDataTemplate>
                                </asp:GridView>
                                <div id="divEditCondition" runat="server" visible="false">
                                    <table runat="server" border="0" cellpadding="5" cellspacing="1" width="100%" class="table_notitle">
                                        <tr>
                                            <td align="center" colspan="2" class="td02" height="30px">
                                                条件信息
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#ffffff" height="25" width="30%" align="right" class="td01">
                                                条件类型:
                                            </td>
                                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                                <asp:DropDownList ID="ddlConditionType" runat="server">
                                                </asp:DropDownList><font color="red">*</font>
                                                <div class="warning"><font>
                                                    &quot;活动通过&quot;指作为活动的通过条件。&quot;计划完成&quot;指作为计划的完成条件。&quot;共用条件&quot;指作为活动通过和计划完成的共用条件。</font></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#ffffff" height="25" width="30%" align="right" class="td01">
                                                计划中的活动:
                                            </td>
                                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                                <asp:DropDownList ID="ddlActivitys" runat="server">
                                                </asp:DropDownList><font color="red">*</font>
                                                <div class="warning"><font>此处为当前计划下可供选择的活动。</font></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#ffffff" height="35" width="30%" align="right" class="td01">
                                                大于等于条件:
                                            </td>
                                            <td bgcolor="#ffffff" height="35" width="*" align="left">
                                                <asp:TextBox ID="txtGreaterEqual" runat="server" Width="155px" MaxLength="4"></asp:TextBox><font color="red">
                                                *</font>
                                                <div class="warning"><font>活动为学习，此处表示规定学习时间(以分钟为单位)；其余的如考试等活动，则表示规定分数。</font></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#ffffff" height="35" width="30%" align="right" class="td01">
                                                小于条件:
                                            </td>
                                            <td bgcolor="#ffffff" height="35" width="*" align="left">
                                                <asp:TextBox ID="txtLessThan" runat="server" Width="155px" MaxLength="4"></asp:TextBox>
                                                <div class="warning"><font>活动为学习，此处表示规定学习时间(以分钟为单位)；其余的如考试等活动，则表示规定分数。</font></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#ffffff" height="25" width="30%" align="right"  class="td01">
                                                &nbsp;
                                            </td>
                                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                                <asp:Button ID="btnSaveCondition" runat="server" Text="保存" OnClick="btnSaveCondition_Click" />
                                            </td>
                                        </tr>
                                    </table>

                                    <script language="javascript" type="text/javascript">
                                        $(document).ready(function() {
                                            ValidatorCondition();
                                        });
                                        function ValidatorCondition() {
                                            $('#<%= btnSaveCondition.ClientID %>').bind('click', function() {
                                                ValidatorEmpty($("#<%=txtGreaterEqual.ClientID %>"), "大于等于条件");

                                                return GetValidatorMessage();
                                            });
                                            $('#<%= txtGreaterEqual.ClientID %>').textlimit(4);
                                            $('#<%= txtGreaterEqual.ClientID %>').onlypressInt();
                                            $('#<%= txtLessThan.ClientID %>').textlimit(4);
                                            $('#<%= txtLessThan.ClientID %>').onlypressInt();
                                        }
                                    </script>
                                </div>
                            </td>
                        </tr>
                    </table>
                </asp:WizardStep>
                <asp:WizardStep ID="WizardStep4" runat="server" Title="配置计划中的流程">
                    <table border="0" cellpadding="5" cellspacing="0" width="100%">
                        <tr>
                            <td align="left" bgcolor="#ffffff" width="30%">
                                <asp:Button ID="btnAddSet" runat="server" OnClick="btnAddSet_Click" Text="配置条件" />
                                <asp:Button ID="btnReturnSList" runat="server" Text="返回配置列表" Visible="False" OnClick="btnReturnSList_Click"></asp:Button>
                                <br /><br />
                                <div class="warning"><font>请注意！此处可设置以一个或多个活动的通过条件作为进入某个活动的条件。详情请参见用户手册。</font></div>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" bgcolor="#ffffff" width="30%">
                                <asp:GridView ID="gvConditionSets" runat="server" AutoGenerateColumns="False" 
                                    DataKeyNames="ID,ActivityID" OnRowCommand="gvConditionSets_RowCommand" 
                                    OnRowDataBound="gvConditionSets_RowDataBound">
                                    <Columns>
                                        <asp:BoundField DataField="ActivityName" HeaderText="活动" ItemStyle-Wrap="true" 
                                            ItemStyle-Width="350px" >
                                        <ItemStyle Wrap="True" Width="350px"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ActivityType" HeaderText="活动类型" />
                                        <asp:BoundField DataField="Condition" HeaderText="条件配置模型" />
                                        <asp:BoundField DataField="LastWriteTime" HeaderText="时间" DataFormatString="{0:D}" />
                                        <asp:TemplateField HeaderText="编辑">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lbtnEditSet" CommandName="EditSet" runat="server">编辑</asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="移除">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lbtnRemoveSet" CommandName="RemovSet" runat="server">移除</asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <asp:Label ID="lblEmpty" runat="server" Text="没有符合条件的数据！"></asp:Label>
                                    </EmptyDataTemplate>
                                </asp:GridView>
                                <div id="divSet" runat="server" visible="false">
                                    <table runat="server" border="0" cellpadding="2" cellspacing="1" width="100%" class="table_notitle">
                                        <tr>
                                            <td align="center" colspan="2" class="td02" height="25px">
                                                条件信息
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#ffffff" height="25" width="20%" align="right" class="td01">
                                                待进入的活动:
                                            </td>
                                            <td bgcolor="#ffffff" height="25" align="left">
                                                <asp:DropDownList ID="ddlActivity" runat="server">
                                                </asp:DropDownList><font color="red">*</font>
                                                <div class="warning"><font>此处为当前计划下可供选择的活动。</font></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#ffffff" height="35" width="20%" align="right" class="td01">
                                                进入活动的条件组合配置:  
                                            </td>
                                            <td bgcolor="#ffffff" height="35" align="left">
                                                <table border="0" cellpadding="5" cellspacing="5" width="100%">
                                                    <tr>
                                                        <td>
                                                            <asp:Button ID="btnAddRelation" runat="server" Text="添加条件组" OnClick="btnAddRelation_Click" />
                                                            <asp:Button ID="btnReset" runat="server" Text="重置条件" OnClick="btnReset_Click" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:Table ID="tblConditions1" runat="server">
                                                                <asp:TableRow>
                                                                    <asp:TableCell>
                                                                        <asp:Button ID="btnAddCondition1" runat="server" Text="添加本组条件"  OnClick="btnAddCondition1_Click" />
</asp:TableCell>
                                                                    <asp:TableCell>
                                                                       <select id="ddlSelectConditions11" runat="server"></select>
                                                                    


                                                                    

                                                                    


                                                                    

                                                                    


                                                                    

                                                                    


                                                                    

                                                                    


                                                                    

                                                                    


                                                                    

                                                                    


                                                                    

                                                                    


                                                                    <font color="red">*</font>
                                                                    </asp:TableCell>
                                                                </asp:TableRow>
                                                            </asp:Table>
                                                        </td>
                                                    </tr>
                                                    <tr id="trRelation" runat="server" visible="false">
                                                        <td>
                                                            <asp:RadioButtonList ID="rblRelation" runat="server" RepeatDirection="Horizontal">
                                                                <asp:ListItem Text="并且" Value="&" Selected="True"></asp:ListItem>
                                                                <asp:ListItem Text="或者" Value="|"></asp:ListItem>
                                                            </asp:RadioButtonList>
                                                        </td>
                                                    </tr>
                                                    <tr id="trConditionGroup" runat="server" visible="false">
                                                        <td>
                                                            <asp:Table ID="tblConditions2" runat="server">
                                                                <asp:TableRow>
                                                                    <asp:TableCell>
                                                                        <asp:Button ID="btnAddCondition2" runat="server" Text="添加本组条件" OnClick="btnAddCondition2_Click" />
</asp:TableCell>
                                                                    <asp:TableCell></asp:TableCell>
                                                                </asp:TableRow>
                                                            </asp:Table>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <div class="warning"><font>此处为当前计划下可供选择的条件。请勿选择活动自身的通过条件作为其进入条件！</font></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#ffffff" height="25" width="20%" align="right" class="style1">
                                                &nbsp;
                                            </td>
                                            <td bgcolor="#ffffff" height="25" align="left">
                                                <asp:Button ID="btnSaveConditions" runat="server" Text="保存" OnClick="btnSaveConditions_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                    <script type="text/javascript" language="javascript">
                                        function change() {
                                            var v = "";
                                            var count1 = document.getElementById('<%= hideConditionCount1.ClientID %>').value;
                                            var count2 = document.getElementById('<%= hideConditionCount2.ClientID %>').value;
                                            if (count2 == 0) {
                                                for (var n = 1; n <= count1; n++) {
                                                    var objId = "Wizard1_ddlSelectConditions1" + n.toString();
                                                    var obj = document.getElementById(objId);
                                                    for (var i = 0; i < obj.options.length; i++) {
                                                        if (obj.options[i].selected) {
                                                            v = v + obj.options[i].value;
                                                        }
                                                    }
                                                    if (n != count1) {
                                                        var objId2 = "Wizard1_ddlLogic1" + n.toString();
                                                        var obj2 = document.getElementById(objId2);
                                                        for (var i = 0; i < obj2.options.length; i++) {
                                                            if (obj2.options[i].selected) {
                                                                v = v + obj2.options[i].value;
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                            else {
                                                v = "(";
                                                for (var n = 1; n <= count1; n++) {
                                                    var objId = "Wizard1_ddlSelectConditions1" + n.toString();
                                                    var obj = document.getElementById(objId);
                                                    for (var i = 0; i < obj.options.length; i++) {
                                                        if (obj.options[i].selected) {
                                                            v = v + obj.options[i].value;
                                                        }
                                                    }
                                                    if (n != count1) {
                                                        var objId2 = "Wizard1_ddlLogic1" + n.toString();
                                                        var obj2 = document.getElementById(objId2);
                                                        for (var i = 0; i < obj2.options.length; i++) {
                                                            if (obj2.options[i].selected) {
                                                                v = v + obj2.options[i].value;
                                                            }
                                                        }
                                                    }
                                                }
                                                v = v + ")";
                                                var obj = document.getElementsByName("Wizard1$rblRelation");
                                                if (obj[0].checked) {
                                                    v = v + "$";
                                                }
                                                else {
                                                    v = v + "|";
                                                }
                                                v = v + "(";
                                                for (var n = 1; n <= count2; n++) {
                                                    var objId = "Wizard1_ddlSelectConditions2" + n.toString();
                                                    var obj = document.getElementById(objId);
                                                    for (var i = 0; i < obj.options.length; i++) {
                                                        if (obj.options[i].selected) {
                                                            v = v + obj.options[i].value;
                                                        }
                                                    }
                                                    if (n != count2) {
                                                        var objId2 = "Wizard1_ddlLogic2" + n.toString();
                                                        var obj2 = document.getElementById(objId2);
                                                        for (var i = 0; i < obj2.options.length; i++) {
                                                            if (obj2.options[i].selected) {
                                                                v = v + obj2.options[i].value;
                                                            }
                                                        }
                                                    }
                                                }
                                                v = v + ")";
                                            }
                                            document.getElementById('<%= hideConditionSetString.ClientID %>').value = v;
                                        }
                                    </script>
                                </div>
                            </td>
                        </tr>
                    </table>
                </asp:WizardStep>
                <asp:WizardStep ID="stop" runat="server" Title="完成配置">
                    <div class="box_nob" style="padding: 10px; margin: 20px">
                        <img src="../Images/ok_big.gif" class="pic_style" />您可以在确认以上步骤操作您已经完成并保存后选择点击“<font color="red">完成</font>”按钮回到职业规划配置页，或者您可以点击“<font color="red">我想再确认一下</font>”按钮，以便您修改刚才的设置。</div></div>
                </asp:WizardStep>
            </WizardSteps>
            <StepStyle Width="100%" VerticalAlign="top" HorizontalAlign="left" />
            <StartNavigationTemplate>
                <asp:Button ID="btnStart" runat="server" Text="下一步" OnClick="btnStart_Click" />
            </StartNavigationTemplate>
            <StepNavigationTemplate>
                <asp:Button ID="btnOn" runat="server" Text="上一步" OnClick="btnOn_Click" />
                <asp:Button ID="btnNext" runat="server" Text="下一步" OnClick="btnNext_Click" />
            </StepNavigationTemplate>
            <FinishNavigationTemplate>
                <asp:Button ID="btnContinue" runat="server" Text="我想再确认一下" OnClick="btnContinue_Click" />
                <asp:Button ID="btnAchieve" runat="server" Text="完成" OnClick="btnAchieve_Click" />
            </FinishNavigationTemplate>
        </asp:Wizard>
    </div>
    </form>
</body>
</html>
