server/aspnetapp/Views/Analyse/ServeMeals.cshtml

(开头部分) 22KB

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

@model List<OrderEntity>

@{
    DateTime now = DateTime.Now;
    if (ViewBag.chooseTime != null)
    {
        now = (DateTime)ViewBag.chooseTime;
    }
    DateTime today = new DateTime(now.Year, now.Month, now.Day);
    DateTime tomorrow = new DateTime(now.Year, now.Month, now.Day).AddDays(1);

    // 今日派餐
    // 按派餐地点分类
    // 早餐
    IEnumerable<IGrouping<string, OrderEntity>> addressMGroup = Model.Where(s => s.OrderForDate == today && s.OrderType == (int)EnumCode.OrderType.早餐).OrderBy(s => s.Building).GroupBy(s => s.Building);

    // 午餐
    IEnumerable<IGrouping<string, OrderEntity>> addressNGroup = Model.Where(s => s.OrderForDate == today && s.OrderType == (int)EnumCode.OrderType.午餐).OrderBy(s => s.Building).GroupBy(s => s.Building);
    // 晚餐
    IEnumerable<IGrouping<string, OrderEntity>> addressEGroup = Model.Where(s => s.OrderForDate == today && s.OrderType == (int)EnumCode.OrderType.晚餐).OrderBy(s => s.Building).GroupBy(s => s.Building);
}

<div class="table-box">
    <div class="col-md-12  xigw-tab">
        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active">
                <a href="#">订餐统计</a>
            </li>
        </ul>
        <div style="padding-top:10px;">
            <form id="form1" name="form1" action="ServeMeals" method="get">
                <table>
                    <tr>
                        <th style="padding-left:5px;width:80px">统计时间:</th>
                        <td>
                            <input name="chooseTime" id="chooseTime" style="width:220px" pattern="[0-9]{4}/[0-9]{2}/[0-9]{2}" class="form-control date-signing required" autocomplete="off" value="@now.ToString("yyyy/MM/dd")" onchange="func()" />
                        </td>
                        <th>订单类型:</th>
                        <td>
                            @Html.DropDownList("ordertype", @ViewBag.ordertype, "全部", new { @class = "form-control", @style = "width:160px", @onchange="func()" })
                        </td>
                    </tr>
                </table>
            </form>
        </div>
        <div class="part-head">
            <div class="pull-left">
                <span class="head-rect"></span>
                <span class="title" style="font-size:26px">@today.ToString("yyyy年MM月dd日")</span>
            </div>
            <div class="clearfix"></div>
        </div>
        @if (ViewBag.thisordertype == null || ViewBag.thisordertype == (int)EnumCode.OrderTypeShow.早餐)
        {
            string mstr = "";
            if (addressMGroup.Any())
            {
                int m = 0;
                int qm = 0;
                int qzm = 0;
后面还有 423 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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