server/aspnetapp/Views/BuyrUser/Choose.cshtml

(开头部分) 8KB

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

@model BuyrUserEntity
@{
    Layout = null;
    SysUserEntity userinfo = Context.Session.GetObjectFromJson<SysUserEntity>("sysu") ?? new SysUserEntity();

    
    List<AddressEntity> AllBuilding = ViewBag.AllBuilding as List<AddressEntity> ?? new List<AddressEntity>();
    List<CompanyEntity> AllCompany = ViewBag.AllCompany as List<CompanyEntity> ?? new List<CompanyEntity>();
    List<DepartmentEntity> AllDepartment = ViewBag.AllDepartment as List<DepartmentEntity> ?? new List<DepartmentEntity>();
}
<link rel="stylesheet" href="~/min/base.css" />
<link rel="stylesheet" href="~/min/polish.css" />
<script src="~/min/base.js"></script>
<div class="lywrap" style="width:500px">
    <div class="lytt">
        <h2 class="u-tt">编辑</h2>
        <span class="lyclose layerclose">×</span>
    </div>
    <form id="form" name="form" action="Choose" method="post">
        <input type="hidden" asp-for="Id" />
        <input type="hidden" id="pageindex" name="pageindex" value="@ViewBag.pageindex" />
        <div class="lyct">
            <table class="m-table">
                <tr>
                    <td width="100px">姓名</td>
                    <td>@Model.Name</td>
                </tr>
                @if (userinfo.UserType == (int)EnumCode.UserType.订餐管理员 && userinfo.ShowName == Model.Name)
                {
                    <tr>
                        <td width="100px">电话</td>
                        <td>
                            <input type="text" name="Phone" id="Phone" class="form-control number" autocomplete="off" style="width: 98%" value="@Model.Phone">
                        </td>
                    </tr>
                }
                <tr>
                    <td>民族</td>
                    <td>@Enum.GetName(typeof(EnumCode.Mz), Model.Nation)</td>
                </tr>
                <tr>
                    <td>单位</td>
                    <td>
                        <select class="choose-tag form-control js-example-basic-multiple required" style="width:98%" name="CompanyId" id="CompanyId">
                            <optgroup label="请选择所在单位" hidden>
                                @foreach (var item in AllCompany)
                                {
                                    <option value="@item.Id">@item.CompanyName</option>
                                }
                            </optgroup>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>部门</td>
                    <td>
                        <select class="choose-tag form-control js-example-basic-multiple required" style="width:98%" name="Department" id="Department">
                            <optgroup label="请选择所在部门" hidden>
                                @foreach (var item in AllDepartment)
                                {
后面还有 148 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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