Areas/E/Views/SelectData/List.cshtml

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

@{
    CurrentUser user = ViewBag.CurrentUser;
    bool isTree = bool.Parse(ViewBag.IsTree);
    string tableType = ViewBag.TableType;
    int infoTableId = StringHelper.Format<int>(ViewBag.InfoTableId);
}
<div class="main">
    <table border=0 cellpadding=0 cellspacing=0 class="tb-head form-inline form-group-sm">
        <tr>
            <td align="right">
                <input type="hidden" id="fieldId" name="fieldId" class="ui-queryString" value="@ViewBag.FieldId" />
                @if (tableType == "column")
                {
                    <select name="siteId" id="siteId" style="width:auto;display:inline" class="form-control ui-queryString ui-queryString-search" data-source="@Html.GetSiteListJsonByUser(user)" data-custom-params="dataSourceFrom:'attr',textField:'Remark'">
                        <option value="0">选择栏目所属站点</option>
                    </select>
                }
                else if (tableType == "member")
                {
                    <select id="memberGroupId" class="ui-queryString form-control ui-queryString-search" data-source="@Html.GetCanAdminMemberGroupListJson()" data-custom-params="dataSourceFrom:'attr',valueField:'Id',textField:'Name'">
                        <option value="">所有会员组</option>
                    </select>
                        <select id="departmentId" class="ui-queryString form-control  ui-queryString-search" data-source="@Html.GetDepartmentListJson()" data-custom-params="dataSourceFrom:'attr',valueField:'Id',textField:'Name',onlySelectFinal:false,isTree:true">
                            <option value="">所有部门</option>
                        </select>
                }
                else if (tableType == "infoTable")
                {
                    <select name="columnId" id="columnId" class="form-control ui-queryString ui-queryString-search" data-custom-params="isTree:true" data-source="@Html.GetColumnListJsonByUser(infoTableId,user)">
                        <option value="">所有栏目</option>
                    </select>
                }
                @if (!isTree)
                {
                    <input type="text" id="@ViewBag.TextField" name="@ViewBag.TextField" maxlength="20" class="form-control  ui-queryString" style="width:140px;">
                    <input type="button" value="搜索" class="btn btn-default btn-sm ui-queryString-search">

                }
                </td>
            </tr>
        </table>
        <table border=0 cellpadding=0 cellspacing=0 class="table table-bordered form-inline form-group-sm" id="tb_list">
            <thead>
                <tr>
                    <td style="width:40px" align="center"><input type="checkbox" title="选择" class="ui-selectInvert" data-custom-params="isReverse:false"></td>
                    <td align=left>@ViewBag.TextfieldName</td>
                </tr>
            </thead>
            <tr @if (isTree) { <text> class="item item-template parent_{parentGuid}" id="item_{id}" data-id="{id}" data-parentId="{parentId}" data-isFinal="{isFinal}" </text>         } else { <text> class="item item-template" id="item_{id}" </text>         }>
                <td align="center" style="width:40px"><input type="checkbox" id="id" name="id" value="{@ViewBag.ValueField}" class="checked-item ck id_{id}@if(isTree){<text> ck_isfinal_{isFinal}</text>}"></td>
                @if (isTree)
            {
                    <td align="center" style="text-align:left">{space}<span class="node node_{isFinal}"></span><span class="title">{@ViewBag.TextField}</span></td>
                }
                else
                {
                    <td align=left><span class="title">{@ViewBag.TextField}</span></td>
                }
            </tr>
        </table>

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。