<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="syncyqdeptanduser.aspx.cs" Inherits="Us.Web.Extend.admin.extexport.syncyqdeptanduser" %>


<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <title>同步部门和人员</title>
    <asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal>
    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
    <%=ImportScriptStr %>
    <script language="javascript" src="/admin/js/System.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        function AutoStart() {
            var info;
            var bstate;

            if (document.getElementById("radOutput").checked) {
                info = "您确实要导出数据吗？导出数据比较浪费系统资源，请尽量在服务器不忙的时候使用！";
                //bstate = confirm(info);
                if (art.dialog.data("retdata") == 1) {
                    art.dialog.data("retdata", 0);//重置
                    return true;
                }
                art.dialog.confirm(info, function () {
                    art.dialog.data("retdata", 1);
                    document.getElementById("btnSubmit1").click();
                });
                return false;
            }

            else {
                info = "您确实要开始同步信息吗？请注意在没有结束的时候，请不要关闭浏览器，否则系统将可能存在问题！";

                if (art.dialog.data("retdata") == 1) {
                    art.dialog.data("retdata", 0);//重置
                    return true;
                }
                art.dialog.confirm(info, function () {
                    art.dialog.data("retdata", 1);

                    var txt1 = document.getElementById("btnSubmit1");
                    txt1.style.display = "none";

                    document.getElementById("btnSubmit1").click();
                });
                return false;
                //bstate = confirm(info);
                //if (bstate) {
                //var txt1 = document.getElementById("btnSubmit1");
                //txt1.style.display = "none";
                //}
            }
            return bstate;
        }

        function SetButtonState(state) {
            var btn = document.getElementById("btnSubmit1");
            if (state) {
                btn.style.display = "none";
            }
            else {
                btn.style.display = "";
            }
        }

    </script>



</head>
<body>
    <form id="form1" runat="server">

        <div id="tbMain">
            <div class="divTbg">
                <div class="divTbgL">
                </div>
                <div class="divTbgInfo">
                    <div class="divTbgTitle">
                        同步部门和人员信息
                    </div>
                </div>
            </div>
            <div class="divTbgF">
            </div>
            <div class="divTNavBG" id="topURL">
                <ul id="topURLul">
                    <li class="divURLed" id="div1">
                        <div>
                            <img src="../style/default/images/mini_icons_046.gif" width="10" height="10" />
                            基本信息
                        </div>
                    </li>
                </ul>
            </div>
            <div id="mypanel">
                <div class="divInfoContext">
                    <div class="divInfo">
                        <div class="divInfoblack">
                            <div class="divInfoTopList">
                                <div class="listLeft">
                                    <div class="navtitle">
                                        同步部门和人员信息
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="divInfo">
                        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="mainlist"
                            onmouseover="changeto()" onmouseout="changeback()">
                            <tr class="tablisttr nodisplay">
                                <td class="tablisttitle">同步/导出
                                </td>
                                <td class="tabmanagertr">
                                    <div class="divRadCheck">
                                        <asp:RadioButton ID="radOutput" runat="server"  GroupName="1"
                                            Text="导出数据" OnCheckedChanged="radOutput_CheckedChanged"
                                            AutoPostBack="True" />&nbsp;&nbsp;
                                      <asp:RadioButton ID="radInput" runat="server" GroupName="1" Text="导入数据" Checked="True"
                                          OnCheckedChanged="radInput_CheckedChanged" AutoPostBack="True" />
                                    </div>
                                </td>
                            </tr>
                            <tbody runat="server" id="tbOutput">
                            </tbody>
                            <tbody runat="server" id="tbInput" visible="false">
                                <tr class="tablisttr">
                                    <td class="tablisttitle">时间间隔<span class="fStar">*</span>
                                    </td>
                                    <td class="tabmanagertr">
                                        <asp:TextBox runat="server" ID="txtPath">100</asp:TextBox>&nbsp;&nbsp;毫秒 <span class="usHelpMessage">* 注意事项： 处理一条记录的休眠时间，防止一卡通服务器压力过大</span>
                                        
                                    </td>
                                </tr>
                                <tr class="tablisttr">
                                    <td class="tablisttitle">同步类型
                                    </td>
                                    <td class="tabmanagertr">
                                        <div class="divRadCheck">
                                            <asp:RadioButton ID="radSDeptment" runat="server" GroupName="3" Text="同步部门信息" Checked="True" />&nbsp;&nbsp;
                                            <asp:RadioButton ID="radSTeacher" runat="server" GroupName="3" Text="同步教师信息" />&nbsp;&nbsp;
                                            <asp:RadioButton ID="radSStudent" runat="server" GroupName="3" Text="同步学生信息" />&nbsp;&nbsp;
                                        </div>
                                    </td>
                                </tr>
                                <tr class="tablisttr">
                                    <td class="tablisttitle">同步提示
                                    </td>
                                    <td class="tabmanagertr">
                                        <div style="height: 300px; overflow: auto" id="logInfo">
                                            <iframe src="exportmainserver.aspx" id="OutputFrame" allowtransparency="true" frameborder="0"
                                                width="100%" height="100%" scrolling="auto" marginheight="0"></iframe>
                                        </div>
                                    </td>
                                </tr>
                                <tr class="tablisttr">
                                    <td class="tablisttitle">同步说明</td>
                                    <td class="tabmanagertr">1.只有相关的部门教师学生有变化的时候才需要同步<br/>
                                        2.每学期招生完毕后，可以进行同步，同步后数据将进入一卡通系统<br/>
                                        3.同步的具体日志，系统存放在数据库中，可以具体查询<br/>
                                        4.同步的基地址，可以在Web.config文件里面配置<br/>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <div class="divSave">
                            <asp:Button ID="btnSubmit1" runat="server" Text="提交(S)" CssClass="SkyButtonFocus"
                                OnClick="btnSubmit_Click" />
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </form>
</body>
</html>
