@model GBLab.Entities.T_User
@using GBLab.Common.Utils
@using GBLab.Common.Expand
@{
    Layout = "~/Areas/Manage/Views/DefaultSkin/Shared_Back/_Layout_ContentBase.cshtml";

    // 树形链接
    string dataTreeUrl = ViewData["dataTreeUrl"].ToString();
}

@section Head{
}

@section JavaScript{
    @Html.Partial("~/Areas/Manage/Views/DefaultSkin/Shared_Back/_Layout_Head_Edit.cshtml")
    <script language="javascript" type="text/javascript">
        seajs.use(
            [
                // 全局配置
                "/App_Themes/Skin_Manage/Extend/helper/global/global_config.js?v=@(ViewBag.Version)"

                @* 可放大和触控的相册 *@
                , "/App_Themes/Skin_Manage/Extend/helper/plus/plus_images.js?v=@(ViewBag.Version)"
            ]
            , function (main) {
                var F_Logo = new gblab_images.func();
                F_Logo.controls.$imgs = $('#F_Logo>div>img');
                F_Logo.config.bgOpacity = 1;
                F_Logo.init();

                var F_Imgs = new gblab_images.func();
                F_Imgs.controls.$imgs = $('#F_Imgs>div>img');
                F_Imgs.config.bgOpacity = 1;
                F_Imgs.init();
            }
        );
    </script>
}

<div data-options="region:'center',border:true">
    @Html.Hidden("IsNew", false)
    @Html.Hidden("ActionGUID", "")
    @Html.Hidden("Template", ViewData["Template"])
    @Html.Hidden("MvcMarkName", ViewData["MvcMarkName"])
    @Html.Hidden("MvcClassID", ViewData["MvcClassID"])
    @Html.HiddenFor(m => m.F_Id)
    @Html.HiddenFor(m => m.F_Guid)
    @Html.HiddenFor(m => m.F_MarkName)
    <div class="easyui-tabs" data-options="border:false,fit:true,plain:true">
        <div title="基本信息" style="padding:6px;">
            <table class="table">
                <tr>
                    <th class="tdright" style="width: 100px;">
                        ID GUID：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_Id) 【@(Model.F_Guid.ToString().ToUpper())】
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        所属栏目：<em>*</em>
                    </th>
                    <td colspan="5">
                        @(Html.TextBoxFor(t => t.F_TypeId, "", new { @class = "easyui-combotree textbox", @style = "width:300px;", @required = "false", @url = dataTreeUrl, @disabled = "disabled" }))
                        <span class="ico-Tree"></span>
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        相关栏目：<em>*</em>
                    </th>
                    <td colspan="5">
                        @(Html.TextBoxFor(m => m.F_TypeIds, new { @class = "easyui-combotree textbox", @style = "width:500px;", @url = dataTreeUrl, @multiple = "true", @disabled = "disabled" }))<span class="ico-Tree"></span>
                        <script>$(function () { $('#F_FromClassID').combotree('setValues', [@(Model.F_TypeIds)]); });</script>
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        昵称：<em>*</em>
                    </th>
                    <td colspan="5">
                        @(Model.F_Name)
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        信息状态：<em></em>
                    </th>
                    <td>
                        @Html.DropDownListFor(t => t.F_MarkStatus, GBLab.Common.Helper.SelectItem.GetSelectListItem(GBLab.Common.Utils.Dictionarys.IsStatus), new { @class = "easyui-combobox", @style = "width:120px;", @editable = "false", @disabled = "disabled" })
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        账户：<em>*</em>
                    </th>
                    <td colspan="5">
                        @(Model.F_Account)
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        手机号码：<em>*</em>
                    </th>
                    <td colspan="5">
                        @(Model.F_Phone)
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        固定电话：<em>*</em>
                    </th>
                    <td colspan="5">
                        @(Model.F_HomePhone)
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        邮政编码：<em>*</em>
                    </th>
                    <td colspan="5">
                        @(Model.F_PostCode)
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        邮箱：<em>*</em>
                    </th>
                    <td colspan="5">
                        @(Model.F_Email)
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        QQ：<em>*</em>
                    </th>
                    <td colspan="5">
                        @(Model.F_Qq)
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        微信：<em>*</em>
                    </th>
                    <td colspan="5">
                        @(Model.F_WeiXin)
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        联系地址：<em>*</em>
                    </th>
                    <td>
                        <div style="width:550px; height:120px; text-align:left;overflow:auto;">
                            @(Model.F_HomeAddress)
                        </div>
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        备注：<em>*</em>
                    </th>
                    <td>
                        <div style="width:550px; height:120px; text-align:left;overflow:auto;">
                            @(Model.F_Remark)
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div title="配置信息" style="padding:6px;">
            <table class="table">
                <tr>
                    <th class="tdright" style="width:200px;">
                        是否管理员：<em></em>
                    </th>
                    <td>
                        @Html.DropDownListFor(t => t.F_IsAdmin, GBLab.Common.Helper.SelectItem.GetSelectListItem(GBLab.Common.Utils.Dictionarys.TrueOrFalse), new { @class = "easyui-combobox", @style = "width:120px;", @editable = "false", @disabled = "disabled" })
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        部门：<em>*</em>
                    </th>
                    <td colspan="5">
                        @(Html.TextBoxFor(t => t.F_DepartmentId, new { @Class = "easyui-validatebox textbox w500 Title ", required = "true" }))
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width:200px;">
                        是否部门管理员：<em></em>
                    </th>
                    <td>
                        @Html.DropDownListFor(t => t.F_IsDepartmentAdmin, GBLab.Common.Helper.SelectItem.GetSelectListItem(GBLab.Common.Utils.Dictionarys.TrueOrFalse), new { @class = "easyui-combobox", @style = "width:120px;", @editable = "false", @disabled = "disabled" })
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        岗位：<em>*</em>
                    </th>
                    <td colspan="5">
                        @(Html.TextBoxFor(t => t.F_PostId, new { @Class = "easyui-validatebox textbox w500 Title ", required = "true" }))
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width:200px;">
                        是否创建HR档案：<em></em>
                    </th>
                    <td>
                        @Html.DropDownListFor(t => t.F_IsCreateHr, GBLab.Common.Helper.SelectItem.GetSelectListItem(GBLab.Common.Utils.Dictionarys.TrueOrFalse), new { @class = "easyui-combobox", @style = "width:120px;", @editable = "false", @disabled = "disabled" })
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width:200px;">
                        是否后台添加：<em></em>
                    </th>
                    <td>
                        @Html.DropDownListFor(t => t.F_IsBackAdd, GBLab.Common.Helper.SelectItem.GetSelectListItem(GBLab.Common.Utils.Dictionarys.TrueOrFalse), new { @class = "easyui-combobox", @style = "width:120px;", @editable = "false", @disabled = "disabled" })
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width:200px;">
                        允许登录：<em></em>
                    </th>
                    <td>
                        @Html.DropDownListFor(t => t.F_IsAllowLogin, GBLab.Common.Helper.SelectItem.GetSelectListItem(GBLab.Common.Utils.Dictionarys.TrueOrFalse), new { @class = "easyui-combobox", @style = "width:120px;", @editable = "false", @disabled = "disabled" })
                    </td>
                </tr>
            </table>
        </div>
        <div title="个人相册" style="padding:6px;">
            <table class="table">
                <tr>
                    <th class="tdright">
                        封面：<em></em>
                    </th>
                    <td>
                        @Html.Raw(WebAction.GetViewImage_V2("F_Logo", Model.F_Logo, 100, 100))
                    </td>
                </tr>
                <tr>
                    <th class="tdright">
                        图片列表：<em></em>
                    </th>
                    <td>
                        @Html.Raw(WebAction.GetViewImage_V2("F_Imgs", Model.F_Imgs, 100, 100))
                    </td>
                </tr>
            </table>
        </div>
        <div title="个人附件" style="padding:6px;">
            <table class="table">
                <tr>
                    <th class="tdright" style="width: 100px;">
                        附件列表：<em></em>
                    </th>
                    <td colspan="5">
                        @Html.Raw(WebAction.GetViewFile(Model.F_Files))
                    </td>
                </tr>
            </table>
        </div>
        <div title="注册登录" style="padding:6px;">
            <table class="table">
                <tr>
                    <th class="tdright" style="width: 100px;">
                        注册日期：<em></em>
                    </th>
                    <td colspan="5">
                        @Html.TextBox("F_RegDate", Convert.ToDateTime(Model.F_RegDate).ToString("yyyy-MM-dd HH:mm:ss"), new { @class = "easyui-datetimebox textbox w160", @required = "true", @disabled = "disabled" })
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        注册IP：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_RegIp)
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        最后登录日期：<em></em>
                    </th>
                    <td colspan="5">
                        @Html.TextBox("F_LastLoginDate", Convert.ToDateTime(Model.F_LastLoginDate).ToString("yyyy-MM-dd HH:mm:ss"), new { @class = "easyui-datetimebox textbox w160", @required = "true", @disabled = "disabled" })
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        最后登录Ip：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_LoginIp)
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        登录次数：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_LoginNum)
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        密码问题：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_PasswordQuestion)
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        密码答案：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_PasswordAnswer)
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        找回密码代码：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_PasswordCode)
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        密码录入错误次数：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_PasswordErrorNum)
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        禁止登录日期：<em></em>
                    </th>
                    <td colspan="5">
                        @Html.TextBox("F_LoginForbidDate", Convert.ToDateTime(Model.F_LastLoginDate).ToString("yyyy-MM-dd HH:mm:ss"), new { @class = "easyui-datetimebox textbox w160", @required = "true", @disabled = "disabled" })
                    </td>
                </tr>
            </table>
        </div>
        <div title="辅助信息" style="padding:6px;">
            <table class="table">
                <tr>
                    <th class="tdright" style="width: 100px;">
                        添加人：<em></em>
                    </th>
                    <td colspan="5">
                        @(Html.TextBox("F_AddUserId", Model.T_AddUser == null ? "" : Model.T_AddUser.F_Name, new { Class = "easyui-textbox w500" }))
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        添加日期：<em></em>
                    </th>
                    <td colspan="5">
                        @Html.TextBox("F_AddDate", Convert.ToDateTime(Model.F_AddDate).ToString("yyyy-MM-dd HH:mm:ss"), new { @class = "easyui-datetimebox textbox w160", @required = "true", @disabled = "disabled" })
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        更新人：<em></em>
                    </th>
                    <td colspan="5">
                        @(Html.TextBox("F_UpdateUserId", Model.T_UpdateUser == null ? "" : Model.T_UpdateUser.F_Name, new { Class = "easyui-textbox w500" }))
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        更新日期：<em></em>
                    </th>
                    <td colspan="5">
                        @Html.TextBox("F_UpdateDate", Convert.ToDateTime(Model.F_UpdateDate).ToString("yyyy-MM-dd HH:mm:ss"), new { @class = "easyui-datetimebox textbox w160", @required = "true", @disabled = "disabled" })
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        浏览数量：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_ViewNum)
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        留言数量：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_GuestBookNum)
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        点赞数量：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_GoodNum)
                    </td>
                </tr>
                <tr>
                    <th class="tdright" style="width: 100px;">
                        差评数量：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_BadNum)
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
<div id="form-windowEdit" title="查看" class="easyui-window" data-options="modal:true,closed:true,fit:true" style="width: 88%; height: 88%; padding: 6px;"></div>