<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="User_Select_Info.aspx.cs"
    Inherits="RM.Web.Training.UserStudents.User_Select_Info" %>

<!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>
        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("UserInfo_Form")%></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/jquery.form.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/Validator/JValidator.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/artDialog.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/iframeTools.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/TreeTable/jquery.treeTable.js" type="text/javascript"></script>
    <link href="/Themes/Scripts/TreeTable/css/jquery.treeTable.css" rel="stylesheet"
        type="text/css" />
    <link href="/Themes/Scripts/TreeView/treeview.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/TreeView/treeview.pack.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/jsAddress.js" type="text/javascript"></script>
    <script type="text/javascript">
        //初始化
        $(function () {
            Setform();
            treeAttrCss();
            $('#table2').hide();
            $('#table3').hide();
            $('#table4').hide();
            $('#table5').hide();
            $('#table6').hide();
            $('#table7').hide();
            $('#table8').hide();
            $('#table9').hide();
            var action = QueryString("action");
            switch (action) {
                case "flow_list": //流水账页
                    $('#tab5').show();
                    $("#form1").attr("action", "/Finance/Finflow_List.aspx?isok=ok");
                    break;
                case "finorderlist": //订单页
                    $('#tab6').show();
                    $("#form1").attr("action", "/Finance/FinOrderList.aspx?isok=ok");
                    break;
                case "toexaminelist":
                    $('#tab7').show();
                    $("#form1").attr("action", "/Training/LearnToSet/Courseware_ToExamineList.aspx?isok=ok");
                    break;
                case "studentstatus":
                    $('#tab8').show();
                    $("#form1").attr("action", "/Training/UserStudents/StudentStatus.aspx?isok=ok");
                    break;
            }
        });
        //点击切换面板
        var IsFixedTableLoad = 1;
        function panel(obj) {
            $('#table1').hide();
            $('#table2').hide();
            $('#table3').hide();
            $('#table4').hide();
            $('#table5').hide();
            $('#table6').hide();
            $('#table7').hide();
            $('#table8').hide();
            $('#table9').hide();
            $('#table' + obj).show();
           

        }
        //附加信息表单赋值
        function Setform() {
            var pk_id = GetQuery('key');
            if (IsNullOrEmpty(pk_id)) {
                var strArray = new Array();
                var strArray1 = new Array();
                var item_value = $("#AppendProperty_value").val(); //后台返回值
                strArray = item_value.split(';');
                for (var i = 0; i < strArray.length; i++) {
                    var item_value1 = strArray[i];
                    strArray1 = item_value1.split('|');
                    $("#" + strArray1[0]).val(strArray1[1]);
                }
            }
        }
        //获取表单值
        function CheckValid() {

            var item_value = '';
            $("#AppendProperty_value").empty;
            $("#table2 tr").each(function (r) {
                $(this).find('td').each(function (i) {
                    $(this).find('input,select').each(function (ii) {
                        var pk_id = $(this).attr('id');
                        if ($(this).val() != "" && $(this).val() != "==请选择==" && $(this).val() != undefined && pk_id != undefined) {
                            item_value += pk_id + "|" + $(this).val() + ";";
                        }
                    });
                });
            });
            $("#AppendProperty_value").val(item_value);
            $("#checkbox_value").val(CheckboxValue())
            if (!confirm('<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("AllotAuthority_Form_zhixing")%>')) {
                return false;
            } else {

            }
            $("#form1").submit();
            OpenClose();

        }
    </script>
</head>
<body>
    <form id="form1" target="main" action="User_select_List.aspx">
    <%-- 所有打勾复选框值--%>
    <input id="checkbox_value" type="hidden" runat="server" />
    <%--获取附加信息值--%>
    <input id="AppendProperty_value" type="hidden" runat="server" />
    <div class="frmtop">
        <table style="padding: 0px; margin: 0px;" cellpadding="0" cellspacing="0">
            <tr>
                <td id="menutab" style="vertical-align: bottom;">
                    <div id="tab0" class="Tabsel" onclick="GetTabClick(this);panel(1)">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Jbxx")%></div>
                    <div id="tab1" class="Tabremovesel" onclick="GetTabClick(this);panel(2);">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Fjxx")%></div>
                    <div id="tab2" class="Tabremovesel" onclick="GetTabClick(this);panel(3);">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Role_Form_ssbm")%></div>
                    <div id="tab3" class="Tabremovesel" onclick="GetTabClick(this);panel(4);">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Role_Info_ssjc")%></div>
                    <div id="tab4" class="Tabremovesel" onclick="GetTabClick(this);panel(5);">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Role_Info_ssgzz")%></div>
                    <div style="display: none;" id="tab5" class="Tabremovesel" onclick="GetTabClick(this);panel(6);">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Finance_caiwulishui")%></div>
                    <div style="display: none;" id="tab6" class="Tabremovesel" onclick="GetTabClick(this);panel(7);">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Finance_dingdanlist")%></div>
                    <div style="display: none;" id="tab7" class="Tabremovesel" onclick="GetTabClick(this);panel(8);">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Finance_dingdanlist")%></div>
                              <div style="display: none;" id="tab8" class="Tabremovesel" onclick="GetTabClick(this);panel(9);">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Student_situ")%></div>
                </td>
            </tr>
        </table>
    </div>
    <div class="div-frm" style="height: 275px;">
        <%--基本信息--%>
        <table id="table1" border="0" cellpadding="0" cellspacing="0" class="frm">
            <tr>
                <th>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("UserInfo_Form_no")%>:
                </th>
                <td>
                    <input id="User_Code" runat="server" type="text" class="txt" datacol="yes" err="职工工号"
                        checkexpession="NotNull" style="width: 200px" />
                </td>
                <th>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Name")%>:
                </th>
                <td>
                    <input id="User_Name" runat="server" type="text" class="txt" datacol="yes" err="职工姓名"
                        checkexpession="NotNull" style="width: 200px" />
                </td>
            </tr>
            <tr>
                <th>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Sex")%>:
                </th>
                <td>
                    <select id="User_Sex" class="select" runat="server" style="width: 206px">
                        <option value="">请选择</option>
                    </select>
                </td>
                <th>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("LoginList_luser")%>:
                </th>
                <td>
                    <input id="User_Account" runat="server" type="text" class="txt" datacol="yes" err="登录账户"
                        checkexpession="NotNull" style="width: 200px" />
                </td>
            </tr>
            <tr>
                <th>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Email")%>:
                </th>
                <td>
                    <input id="Email" runat="server" type="text" class="txt" datacol="yes" err="电子邮箱"
                        checkexpession="EmailOrNull" style="width: 200px" />
                </td>
                <th>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Title")%>:
                </th>
                <td colspan="3">
                    <input id="Title" runat="server" type="text" class="txt" style="width: 200px" />
                </td>
            </tr>
            <tr>
                <th>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("question_lxdh")%>:
                </th>
                <td>
                    <input id="Phone" runat="server" type="text" class="txt" style="width: 200px" />
                </td>
                <th>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_State")%>:
                </th>
                <td>
                    <select id="deletemark" runat="server">
                    </select>
                </td>
            </tr>
            <tr>
                <th>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("user_area")%>:
                </th>
                <td colspan="3">
                    <select id="Province" runat="server">
                    </select>
                    <select id="City" runat="server">
                    </select>
                    <select id="Area" runat="server">
                    </select>
                    <input type="text" style="display: none;" id="txtProvince" runat="server" />
                    <input type="text" style="display: none;" id="txtCity" runat="server" />
                    <input type="text" style="display: none;" id="txtArea" runat="server" />
                </td>
            </tr>
        </table>
        <table id="table2" border="0" cellpadding="0" cellspacing="0" class="frm">
            <%=str_OutputHtml.ToString() %>
        </table>
        <%--附加信息--%>
        <%--所属部门--%>
        <div id="table3">
            <div class="btnbartitle">
                <div>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Organization")%>
                </div>
            </div>
            <div class="div-body" style="height: 245px;">
                <ul class="strTree">
                    <%=strOrgHtml.ToString()%>
                </ul>
            </div>
        </div>
        <%--所属角色--%>
        <div id="table4">
            <div class="btnbartitle">
                <div>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Role")%>
                </div>
            </div>
            <div class="div-body" style="height: 245px;">
                <ul class="strTree">
                    <%=strRoleHtml.ToString()%>
                </ul>
            </div>
        </div>
        <%--所属工作组--%>
        <div id="table5">
            <div class="btnbartitle">
                <div>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("UserGroup")%>
                </div>
            </div>
            <div class="div-body" style="height: 245px;">
                <ul class="strTree">
                    <%=strUserGroupHtml.ToString()%>
                </ul>
            </div>
        </div>
        <%--财务流水属性--%>
        <table id="table6" border="0" cellpadding="0" cellspacing="0" class="frm">
            <tr>
                <th>
                    操作人
                </th>
                <td>
                    <input type="text" id="Finance_Account_UserName" runat="server" value="" />
                </td>
                <th>
                    操作时间
                </th>
                <td>
                    <input type="text" id="Finance_Account_Date" onclick="WdatePicker()" runat="server"
                        value="" />
                </td>
            </tr>
        </table>
        <%--订单列表属性--%>
        <table id="table7" border="0" cellpadding="0" cellspacing="0" class="frm">
            <tr>
                <th>
                    订单号
                </th>
                <td>
                    <input type="text" id="Finance_Order_ID" runat="server" value="" />
                </td>
                <th>
                    下单时间
                </th>
                <td>
                    <input type="text" id="Finance_Order_Date" onclick="WdatePicker()" runat="server"
                        value="" />
                </td>
            </tr>
            <tr>
                <th>
                    是否付款
                </th>
                <td>
                    <select runat="server" id="Finance_Order_Complete">
                        <option value="">请选择</option>
                        <option value="0">未付款</option>
                        <option value="1">已付款</option>
                    </select>
                </td>
                <th>
                    金额
                </th>
                <td>
                    <input runat="server" type="text" id="Finance_Order_Together" value="" />
                </td>
            </tr>
        </table>
        <%--授权审核课程--%>
        <table id="table8" border="0" cellpadding="0" cellspacing="0" class="frm">
            <tr>
                <th>
                    课程名
                </th>
                <td>
                    <input type="text" id="ToexamineList_csname" runat="server" value="" />
                </td>
                <th>
                    申请日期
                </th>
                <td>
                    <input type="text" id="ToexamineList_Date" onclick="WdatePicker()" runat="server"
                        value="" />
                </td>
            </tr>
            <tr>
                <th>
                    姓名
                </th>
                <td>
                    <input type="text" id="ToexamineList_Username" runat="server" value="" />
                </td>
                <th>
                    是否授权
                </th>
                <td>
                    <select runat="server" id="ToexamineList_IsOk">
                        <option value="">请选择</option>
                        <option value="1">已授权</option>
                        <option value="0">未授权</option>
                    </select>
                </td>
            </tr>
        </table>
        <%--学员情况--%>
        <table id="table9" border="0" cellpadding="0" cellspacing="0" class="frm">
            <tr>
                <th>
                    起始时间
                </th>
                <td>
                    <input type="text" id="StudentStatus_Start"  onclick="WdatePicker()"  runat="server" value="" />
                </td>
             <th>
                    结束时间
                </th>
                <td>
                    <input type="text" id="StudentStatus_End"  onclick="WdatePicker()"  runat="server" value="" />
                </td>
            </tr>
        </table>
    </div>
    <div class="frmbottom">
        <%--查询按钮--%>
        <a class="l-btn" onclick="CheckValid()"><span class="l-btn-left">
            <img src="/Themes/Images/disk.png" alt="" />查询</span></a> <a class="l-btn" href="javascript:void(0)"
                onclick="OpenClose();"><span class="l-btn-left">
                    <img src="/Themes/Images/cancel.png" alt="" /><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Close")%></span></a>
    </div>
    </form>
    <script type="text/javascript">
        addressInit('Province', 'City', 'Area', '<%=ProvinceStr %>', '<%=CityStr %>', '<%=AreaStr %>');
    </script>
</body>
</html>
